http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375
--- Comment #43 from Mike Hommey <mh+gcc at glandium dot org> 2011-02-10 17:41:53 UTC --- (In reply to comment #42) > (In reply to comment #41) > > > > Segfaults or aborts ? > > Segfaults: > > === > === If you get failures below, please file a bug describing the error > === and your environment (compiler and linker versions), and use > === --disable-elf-hack until this is fixed. > === > /home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack/elfhack -b > test.so > test.so: Reduced by 12128 bytes > # Fail if the backup file doesn't exist > [ -f "test.so.bak" ] > # Fail if the new library doesn't contain less relocations > [ $(objdump -R test.so.bak | wc -l) -gt $(objdump -R test.so | wc -l) ] > /home/mjambor/gcc/icln/inst/bin/gcc -o dummy dummy.o test.so > # Will either crash or return exit code 1 if elfhack is broken > LD_LIBRARY_PATH=/home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack > /home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack/dummy > make[6]: *** [libs] Segmentation fault > make[6]: Leaving directory > `/home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack' > > ...and very early on it seems: > > (gdb) bt > #0 0x00007ffff7ff7040 in frame_dummy () > from /home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack/test.so > #1 0x00007ffff7ff6f5e in _init () from > /home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack/test.so > #2 0x00007ffff7ffa710 in ?? () > #3 0x00007ffff7debe18 in call_init () from /lib64/ld-linux-x86-64.so.2 > #4 0x00007ffff7debf47 in _dl_init_internal () from > /lib64/ld-linux-x86-64.so.2 > #5 0x00007ffff7ddeb3a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2 Ah, so this is a crash of the test, not of elfhack. Could you attach both test.so and test.so.bak files ?