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
This only happens with the "legacy" linker, gold works fine
Dup. *** This bug has been marked as a duplicate of bug 16467 ***