relocatable ELF objects generated by fpc (the free pascal compiler) dont seem to play well with `strip --strip-unneeded` ... i'm wondering if this is a bug in strip or in fpc (it not generating enough ELF information), but i think it's a bug in strip ;)
for example, in the attached object produced by fpc, there is a global symbol THREADVARLIST_SYSCALL which is culled after being processed with --strip-unneeded similar behavior can be seen with yasm/nasm when generating objects without DWARF debug code ... for example: $ cat test.asm GLOBAL _foo:function _foo: ret; $ yasm -f elf test.asm -o test.o $ readelf -s test.o | grep foo 3: 00000000 0 FUNC GLOBAL DEFAULT 4 _foo $ strip --strip-unneeded test.o $ readelf -s test.o | grep foo <nothing> $ yasm -g dwarf2 -f elf test.asm -o test.o $ readelf -s test.o | grep foo 7: 00000000 0 FUNC GLOBAL DEFAULT 4 _foo $ strip --strip-unneeded test.o $ readelf -s test.o | grep foo 2: 00000000 0 FUNC GLOBAL DEFAULT 1 _foo -- Summary: --strip-unneeded strips too much with relocatable ELF objects from fpc/nasm Product: binutils Version: 2.18 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: vapier at gentoo dot org CC: bug-binutils at gnu dot org,toolchain at gentoo dot org GCC host triplet: i686-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=4716 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils