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

            Bug ID: 16259
           Summary: ld testsuite uses the wrong crtend for -pie
           Product: binutils
           Version: 2.25 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com

configure.host has

*-*-linux*)
  HOSTING_CRT0='-dynamic-linker `${CC} --help --verbose 2>&1 | egrep "ld[^
]*\.so" | sed -e "s,.*-dynamic-linker[       ][      ]*\(.*/ld[^
]*\.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC}
--print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo
../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`'
  HOSTING_SCRT0='-dynamic-linker `${CC} --help --verbose 2>&1 | egrep "ld[^
]*\.so" | sed -e "s,.*-dynamic-linker[      ][      ]*\(.*/ld[^
]*\.so..\).*,\1,"` `${CC} --print-file-name=Scrt1.o` `${CC}
--print-file-name=crti.o` `if [ -f ../gcc/crtbeginS.o ]; then echo
../gcc/crtbeginS.o; else ${CC} --print-file-name=crtbeginS.o; fi`'
  HOSTING_LIBS='-L`dirname \`${CC} --print-file-name=libc.so\``
'"$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else
${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`'
  ;;  

But it fails to handle crtendS.o.

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

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

Reply via email to