ld: EXCLUDE_FILES archive doesn't exclude its members

Alan Modra amodra@bigpond.net.au
Mon Jan 7 15:51:00 GMT 2002


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



More information about the Binutils mailing list