Alan Modra f6835aecb3 PR ld/12942
bfd/
	* elflink.c (elf_link_add_object_symbols): Use elf_discarded_section
	rather than kept_section to determine whether a symbol is from
	a discarded section.
	* cofflink.c (coff_link_add_symbols): Make symbols from discarded
	sections appear undefined.

	* elf-bfd.h (_bfd_elf_section_already_linked): Replace
	"asection *" with "struct already_linked *".
	* libbfd-in.h (_bfd_nolink_section_already_linked): Likewise.
	(_bfd_generic_section_already_linked): Likewise.
	(bfd_section_already_linked_table_insert): Likewise.
	(struct already_linked): New.
	(struct bfd_section_already_linked): Use it.
	* elflink.c (_bfd_elf_section_already_linked): Replace.
	"asection *" with "struct already_linked *".  Replace the plugin
	dummy with the LTO output.
	* linker.c (_bfd_generic_section_already_linked): Likewise.
	* targets.c (struct already_linked): Add forward declaration.
	(bfd_target): Replace "struct bfd_section *" with
	"struct already_linked *" in _section_already_linked.
	* bfd-in2.h: Regenerate.
	* libbfd.h: Regenerate.

include/
	* bfdlink.h (bfd_link_info): Add loading_lto_outputs.

ld/
	* ldlang.c (section_already_linked): Pass "struct already_linked *"
	to bfd_section_already_linked.
	(lang_process): Set link_info.loading_lto_outputs before
	loading LTO outputs.
	* plugin.c: Include "libbfd.h".
	(add_symbols): Call bfd_section_already_linked with comdat_key.
2011-07-09 06:20:51 +00:00
..
2010-04-15 10:26:09 +00:00
2010-01-06 05:25:24 +00:00
2011-06-02 13:43:23 +00:00
2011-07-03 13:45:32 +00:00
2011-07-06 07:22:20 +00:00
2010-04-15 10:26:09 +00:00
2010-06-10 08:31:20 +00:00
2011-04-25 18:28:53 +00:00
2011-07-09 06:20:51 +00:00
2010-04-15 10:26:09 +00:00
2011-07-09 06:20:51 +00:00
2011-06-13 23:01:42 +00:00
2009-06-01 19:40:32 +00:00
2009-06-01 19:40:32 +00:00
2011-01-03 21:05:50 +00:00
1999-05-03 07:29:06 +00:00
1999-05-03 07:29:06 +00:00
2010-06-10 18:30:17 +00:00
2010-04-15 10:26:09 +00:00
2011-01-03 21:05:50 +00:00
2009-10-07 02:57:27 +00:00
2000-07-05 19:28:05 +00:00
2010-04-15 10:26:09 +00:00
2010-04-15 10:26:09 +00:00
2010-04-15 10:26:09 +00:00
2010-11-17 02:03:39 +00:00
2010-06-10 18:30:17 +00:00
2005-07-12 10:34:51 +00:00
2001-08-02 23:27:47 +00:00
2011-01-03 21:05:50 +00:00
2010-04-15 10:26:09 +00:00