> On Mon, Jun 02, 2003 at 05:10:38PM -0400, John David Anglin wrote: > > tmpdir/sh1p.o(.text+0x0): In function `shlib_mainvar': > > /home/dave/binutils-2.14.90/src/ld/testsuite/ld-elfvsb/sh1.c:32: undefined > > refer > > ence to `mainvar' > > ... > > FAIL: visibility (hidden) > > Fixing this one probably requires porting some of the recent changes > I made for x86 and ppc to hppa. See SYMBOL_REFERENCES_LOCAL and > SYMBOL_CALLS_LOCAL.
Nope. This was caused by the previous bug and the change to using gcc as the driver program to run the newly built linker. Using `-B' doesn't override the GCC configure option `--with-ld='. The same problem occurs with using gcc to run the newly build assembler (`-B' doesn't override `--with-as='). I think we need to revert to the previous technique for running these tools in the ld testsuite. To work around this problem, I installed the newly built tools. This fixed most of the ld FAILS but we are still left with the following: Running /home/dave/binutils-2.14.90/src/ld/testsuite/ld-elfvsb/elfvsb.exp ... FAIL: visibility (hidden_undef_def) FAIL: visibility (hidden_undef_def) (PIC main) FAIL: visibility (hidden_weak) FAIL: visibility (hidden_weak) (PIC main) FAIL: visibility (protected_weak) FAIL: visibility (protected_weak) (PIC main) Running /home/dave/binutils-2.14.90/src/ld/testsuite/ld-elfweak/elfweak.exp ... FAIL: ELF weak func first DSO FAIL: ELF weak func last DSO FAIL: ELF weak data first DSO FAIL: ELF weak data last DSO FAIL: ELF weak data first DSO common FAIL: ELF weak data last DSO common Dave -- J. David Anglin [EMAIL PROTECTED] National Research Council of Canada (613) 990-0752 (FAX: 952-6602)