This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH (ld/testsuite, binutils 2.14): i386-unknown-freebsd4.8 tweak
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 13 Jun 2003 19:42:11 -0500 (CDT)
- Subject: PATCH (ld/testsuite, binutils 2.14): i386-unknown-freebsd4.8 tweak
- Reply-to: rittle at labs dot mot dot com
Testing gcc 2.95.X (as installed as system compiler) to FSF mainline
against binutils ~2.14 on {i386,alpha}-unknown-freebsd4.8 reveals that
this xfail hasn't been required for some time and that this new logic
to conditionally find ld-elf.so.1 is more robust (since it will take
the file produced if actually found; I rewrote a patch I've had in my
tree for ages; gcc on FreeBSD keeps this special library outside any
place that would typically be searched thus defeating gcc's generic
library-finding logic). With this test suite patch, no failures on
i386-unknown-freebsd4.8.
* ld-undefined/undefined.exp (i?86-*-freebsd*): Remove xfail.
* ld/configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
if not produced by gcc.
Index: ld/testsuite/ld-undefined/undefined.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-undefined/undefined.exp,v
retrieving revision 1.15.2.1
diff -c -r1.15.2.1 undefined.exp
*** ld/testsuite/ld-undefined/undefined.exp 15 May 2003 19:15:11 -0000 1.15.2.1
--- ld/testsuite/ld-undefined/undefined.exp 13 Jun 2003 23:44:03 -0000
***************
*** 130,136 ****
# hence the xfails below.
#setup_xfail arm-*-elf
! setup_xfail i?86-*-freebsd*
#setup_xfail strongarm-*-elf
#setup_xfail thumb-*-elf
setup_xfail mcore-*-elf
--- 130,136 ----
# hence the xfails below.
#setup_xfail arm-*-elf
! #setup_xfail i?86-*-freebsd*
#setup_xfail strongarm-*-elf
#setup_xfail thumb-*-elf
setup_xfail mcore-*-elf
Index: ld/configure.host
===================================================================
RCS file: /cvs/src/src/ld/configure.host,v
retrieving revision 1.27
diff -c -r1.27 configure.host
*** ld/configure.host 6 Jan 2003 16:13:57 -0000 1.27
--- ld/configure.host 14 Jun 2003 00:25:05 -0000
***************
*** 19,29 ****
case "${host}" in
*-*-freebsd*)
! # Older versions of gcc do not use a specs file. In those cases,
! # gcc -print-file-name=specs will simply print specs. We create a
! # dummy specs files to handle this.
! echo "-dynamic-linker `${CC} --print-file-name=ld-elf.so.1`" > specs
! HOSTING_CRT0='-dynamic-linker `${CC} --print-prog-name=ld-elf.so.1` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `${CC} --print-file-name=crtbegin.o`'
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`'
;;
--- 19,25 ----
case "${host}" in
*-*-freebsd*)
! HOSTING_CRT0='-dynamic-linker `[ -f \`${CC} --print-prog-name=ld-elf.so.1\` ] || echo /usr/libexec/``${CC} --print-prog-name=ld-elf.so.1` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `${CC} --print-file-name=crtbegin.o`'
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`'
;;