Trying to build glibc 2.11 with gold (after patching out configure.in's checks 
for the expected ld 
version) results in

gcc   -nostdlib -nostartfiles -r -o 
/usr/src/ark/BUILD/libc/build-x86_64-linux/elf/librtld.os '-Wl,-(' 
/usr/src/ark/BUILD/libc/build-x86_64-linux/elf/dl-allobjs.os 
/usr/src/ark/BUILD/libc/build-x86_64-
linux/elf/rtld-libc.a -lgcc '-Wl,-)' \
                  
-Wl,-Map,/usr/src/ark/BUILD/libc/build-x86_64-linux/elf/librtld.os.map
gcc   -nostdlib -nostartfiles -shared -Wl,-z,now        \
                  -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both 
-Wl,-z,defs -Wl,--verbose 2>&1 |  \
                  LC_ALL=C \
                  sed -e '/^=========/,/^=========/!d;/^=========/d'    \
                      -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - 
SIZEOF_HEADERS;/' \
                  > /usr/src/ark/BUILD/libc/build-x86_64-linux/elf/ld.so.lds
gcc   -nostdlib -nostartfiles -shared -o 
/usr/src/ark/BUILD/libc/build-x86_64-linux/elf/ld.so                   \
                  -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both 
-Wl,-z,defs -Wl,-z,now    \
                  /usr/src/ark/BUILD/libc/build-x86_64-linux/elf/librtld.os 
-Wl,--version-
script=/usr/src/ark/BUILD/libc/build-x86_64-linux/ld.map               \
                  -Wl,-soname=ld-linux-x86-64.so.2 -T 
/usr/src/ark/BUILD/libc/build-x86_64-linux/elf/ld.so.lds
/usr/bin/ld: /usr/src/ark/BUILD/libc/build-x86_64-linux/elf/librtld.os: in 
function 
_dl_start:rtld.c(.text+0x847): error: undefined reference to '_begin'
collect2: ld returned 1 exit status

-- 
           Summary: gold fails to link glibc
           Product: binutils
           Version: 2.21 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: ian at airs dot com
        ReportedBy: bero at arklinux dot org
                CC: bug-binutils at gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10937

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to