[systemd-bugs] [Bug 75416] New: enable-compat-libs requires gold linker

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Feb 23 16:04:35 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=75416

          Priority: medium
            Bug ID: 75416
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: enable-compat-libs requires gold linker
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: stefan.bruens at rwth-aachen.de
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

I tried linking the compat libs with the legacy binutils linker. The failing
command (called from libtool) 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

It fails with:
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: 
internal error, aborting at elf64-x86-64.c line 3219 in
elf_x86_64_relocate_section

I have instrumented the abort with some additional output, which prints the
section flags and plt offset:
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld:
.libs/libsystemd_login_la-libsystemd-login.o: Error with relocation
R_X86_64_GOTPCREL against STT_GNU_IFUNC flags: 0x20011f offset
0xffffffffffffffff

Tested binutils 2.23.2 and 2.24.0.

Linking with gold works fine.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140224/c4edab0b/attachment.html>


More information about the systemd-bugs mailing list