patchelf icon indicating copy to clipboard operation
patchelf copied to clipboard

Every alteration increases size a bit, effect is additive

Open alexey-pelykh opened this issue 3 years ago • 0 comments

Describe the bug

After altering an SO, it increases in size after every change, the effect is additive.

Steps To Reproduce

# cp libusd_usd.so libusd_usd-test.so ; ls -lA libusd_usd-test.so
-rwxr-xr-x 1 root root 9684968 Mar 25 17:08 libusd_usd-test.so
# patchelf --replace-needed libusd_kind.so libusd_kind-test.so libusd_usd-test.so ; ls -lA libusd_usd-test.so
-rwxr-xr-x 1 root root 11090424 Mar 25 17:08 libusd_usd-test.so
# patchelf --replace-needed libusd_pcp.so libusd_pcp-test.so libusd_usd-test.so ; ls -lA libusd_usd-test.so
-rwxr-xr-x 1 root root 12418920 Mar 25 17:08 libusd_usd-test.so
# patchelf --replace-needed libusd_sdf.so libusd_sdf-test.so libusd_usd-test.so ; ls -lA libusd_usd-test.so
-rwxr-xr-x 1 root root 13746048 Mar 25 17:08 libusd_usd-test.so
# patchelf --replace-needed libusd_ar.so libusd_ar-test.so libusd_usd-test.so ; ls -lA libusd_usd-test.so
-rwxr-xr-x 1 root root 15073168 Mar 25 17:08 libusd_usd-test.so

Expected behavior

Size is not to be affected that much it total and is not increased with every change.

patchelf --version output

patchelf 0.14.5

and

patchelf 0.12

Additional context

libusd_usd.so.zip

https://github.com/PixarAnimationStudios/USD/issues/1814

alexey-pelykh avatar Mar 25 '22 17:03 alexey-pelykh