This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: ld testsuite failures
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.
--
Alan Modra
IBM OzLabs - Linux Technology Centre