bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/23194] Building glibc 2.27 on 32-bit Intel with binutils 2.30 se


From: mail at andreasbaumann dot cc
Subject: [Bug ld/23194] Building glibc 2.27 on 32-bit Intel with binutils 2.30 segfaults in elf subdir
Date: Fri, 18 May 2018 19:18:15 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23194

--- Comment #8 from Andreas Baumann <mail at andreasbaumann dot cc> ---
(In reply to H.J. Lu from comment #7)
> (In reply to Andreas Baumann from comment #6)
> > (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
> 
> It doesn't help at all.  Please add -v to gcc and show me the output of
> 
> # gcc -v  -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

Sorry about that.

COMPILER_PATH=/usr/lib/gcc/i686-pc-linux-gnu/8.1.0/:/usr/lib/gcc/i686-pc-linux-gnu/8.1.0/:/usr/lib/gcc/i686-pc-linux-gnu/:/usr/lib/gcc/i686-pc-linux-gnu/8.1.0/:/usr/lib/gcc/i686-pc-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/i686-pc-linux-gnu/8.1.0/:/usr/lib/gcc/i686-pc-linux-gnu/8.1.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-nostdlib' '-nostartfiles' '-shared' '-o'
'/root/glibc/src/glibc-build/elf/ld.so.new' '-mtune=generic'
'-march=pentiumpro'
 /usr/lib/gcc/i686-pc-linux-gnu/8.1.0/collect2 -plugin
/usr/lib/gcc/i686-pc-linux-gnu/8.1.0/liblto_plugin.so
-plugin-opt=/usr/lib/gcc/i686-pc-linux-gnu/8.1.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccDugu2E.res --build-id --eh-frame-hdr
--hash-style=gnu -m elf_i386 -shared -o
/root/glibc/src/glibc-build/elf/ld.so.new
-L/usr/lib/gcc/i686-pc-linux-gnu/8.1.0
-L/usr/lib/gcc/i686-pc-linux-gnu/8.1.0/../../.. -z combreloc -z relro
--hash-style=both -z defs -z now /root/glibc/src/glibc-build/elf/librtld.os
--version-script=/root/glibc/src/glibc-build/ld.map -soname=ld-linux.so.2
-defsym=_begin=0
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core
dumped
compilation terminated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]