diff options
author | Alan Modra <modra@gmail.com> | 2011-07-09 06:20:51 +0000 |
---|---|---|
committer | Alan Modra <modra@gmail.com> | 2011-07-09 06:20:51 +0000 |
commit | f6835aecb3090461498ee588152a86ec816b61ec (patch) | |
tree | 9f144c9bc4a3bb48cb06b81de030a5adfa27c1d4 /include | |
parent | da2cf96189c1624653493882433278e6874b6410 (diff) | |
download | cygnal-f6835aecb3090461498ee588152a86ec816b61ec.tar.gz cygnal-f6835aecb3090461498ee588152a86ec816b61ec.tar.bz2 cygnal-f6835aecb3090461498ee588152a86ec816b61ec.zip |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/bfdlink.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index c80aeb8a5..bf2c020fd 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2011-07-09 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/12942 + * bfdlink.h (bfd_link_info): Add loading_lto_outputs. + 2011-07-01 Joel Brobecker <brobecker@adacore.com> * filenames.h (HAVE_CASE_INSENSITIVE_FILE_SYSTEM): Define diff --git a/include/bfdlink.h b/include/bfdlink.h index b1c751a84..193b85511 100644 --- a/include/bfdlink.h +++ b/include/bfdlink.h @@ -357,6 +357,9 @@ struct bfd_link_info linker created sections, TRUE if it should be omitted. */ unsigned int no_ld_generated_unwind_info: 1; + /* TRUE if we are loading LTO outputs. */ + unsigned int loading_lto_outputs: 1; + /* Non-NULL if .note.gnu.build-id section should be created. */ char *emit_note_gnu_build_id; |