PATCH: ld testsuite failures

Daniel Jacobowitz drow@mvista.com
Wed May 21 02:42:00 GMT 2003


On Wed, May 21, 2003 at 10:04:42AM +0930, Alan Modra wrote:
> On Tue, May 20, 2003 at 08:35:52AM -0700, H. J. Lu wrote:
> > On Tue, May 20, 2003 at 04:59:33PM +0930, Alan Modra wrote:
> > > The problem is that the failing tests use -T $srcdir/$subdir/elf-offset.ld,
> > > and elf-offset.ld doesn't specify SEARCH_DIR.  On my system, ld.so.conf
> > > doesn't specify the default dirs of /lib and /usr/lib, and I'm building
> > > binutils with --prefix=/usr/local
> > > 
> > 
> > How about this? I am not too happy about it since it only covers
> > native targets, which is sufficient since I only used CC with
> 
> OK.  Hmm, it would be better to do without elf-offset.ld somehow.  I
> wonder whether something like
> 
> . = (. != 0 ? . : ${TEXT_BASE_ADDRESS});
> 
> instead of the existing expression in elf.sc SECTIONS would work,
> and similarly for the shared lib case.  The idea being to set dot on
> the command line, and not have it overridden by the default script.
> I might play with the idea after the gcc summit.

This is not the first time I've wanted a way to inherit things from the
default linker script... perhaps there should be a way to do this,
either in general or at least specifically for SEARCH_DIRS.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list