https://sourceware.org/bugzilla/show_bug.cgi?id=23194
--- Comment #6 from Andreas Baumann <mail at andreasbaumann dot cc> ---
(In reply to H.J. Lu from comment #5)
> I can build glibc 2.27 on i686. Please provide ALL linker inputs
> so that I can reproduce it.
Hope this helps:
gcc -nostdlib -nostartfiles -shared -o
/root/glibc/src/glibc-build/elf/ld.so.new \
-Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs
-Wl,-z,now \
/root/glibc/src/glibc-build/elf/librtld.os
-Wl,--version-script=/root/glibc/src/glibc-build/ld.map \
-Wl,-soname=ld-linux.so.2 \
-Wl,-defsym=_begin=0
segfaults, but ommiting '-shared' works:
gcc -nostdlib -nostartfiles -o /root/glibc/src/glibc-build/elf/ld.so.new
\
-Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs
-Wl,-z,now \
/root/glibc/src/glibc-build/elf/librtld.os
-Wl,--version-script=/root/glibc/src/glibc-build/ld.map \
-Wl,-soname=ld-linux.so.2 \
-Wl,-defsym=_begin=0
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils