This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld: EXCLUDE_FILES archive doesn't exclude its members
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 8 Jan 2002 08:36:55 +1030
- Subject: Re: ld: EXCLUDE_FILES archive doesn't exclude its members
- References: <orr8p5ifb3.fsf@free.redhat.lsd.ic.unicamp.br>
On Sat, Jan 05, 2002 at 02:37:20AM -0200, Alexandre Oliva wrote:
> When a linker script mentions an archive in EXCLUDE_FILES, this
> doesn't result in the members of the archive being excluded as, IMO,
> it should. This patch corrects this problem, and passes all ld
> regression tests on athlon-pc-linux-gnu. Ok to install?
OK, except for this style nit.
> + if (! skip && file->the_bfd && file->the_bfd->my_archive
> + && file->the_bfd->my_archive->filename)
if (! skip && file->the_bfd != NULL
&& file->the_bfd->my_archive != NULL
&& file->the_bfd->my_archive->filename != NULL)
--
Alan Modra
IBM OzLabs - Linux Technology Centre