Bug 16627 - internal error, aborting at elf64-x86-64.c line 3363 in elf_x86_64_relocate_section
Summary: internal error, aborting at elf64-x86-64.c line 3363 in elf_x86_64_relocate_s...
Status: RESOLVED DUPLICATE of bug 16467
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.24
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-24 00:31 UTC by Stefan Brüns
Modified: 2014-02-24 17:27 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Brüns 2014-02-24 00:31:13 UTC
I tried compiling systemd 209 with the --enable-compat-libs option. This configure switch creates compat libs using "__attribute ((ifunc ...))" to generate the stub compat libs.

The failing command was:

gcc -shared  -fPIC -DPIC  .libs/libsystemd_login_la-libsystemd-login.o   -Wl,-rpath -Wl,/home/abuild/rpmbuild/BUILD/systemd-209/.libs -Wl,-rpath -Wl,/usr/lib64 ./.libs/libsystemd.so -L/usr/lib64 -llzma -lgcrypt -lgpg-error -lrt -lresolv -ldl  -flto -O2 -Wl,--as-needed -Wl,--no-undefined -Wl,--gc-sections -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--version-script=./src/compat-libs/libsystemd-login.sym   -pthread -Wl,-soname -Wl,libsystemd-login.so.0 -o .libs/libsystemd-login.so.0.9.2


input_section->flags is 0x20011f
h->plt.offset is 0xffffffffffffffff
Comment 1 Stefan Brüns 2014-02-24 00:32:27 UTC
This only happens with the "legacy" linker, gold works fine
Comment 2 H.J. Lu 2014-02-24 17:27:40 UTC
Dup.

*** This bug has been marked as a duplicate of bug 16467 ***