diff options
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 8 | ||||
-rw-r--r-- | bfd/archive.c | 4 | ||||
-rw-r--r-- | bfd/linker.c | 8 |
3 files changed, 19 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f187761..9444812 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2014-07-28 Alan Modra <amodra@gmail.com> + + PR 13227 + * archive.c (_bfd_compute_and_write_armap): Warn on adding + __gnu_lto_slim to armap. + * linker.c (_bfd_generic_link_add_one_symbol): Warn on adding + __gnu_lto_slim to linker hash table. + 2014-07-27 Anthony Green <green@moxielogic.org> * config.bfd: Add moxie-*-moxiebox*. diff --git a/bfd/archive.c b/bfd/archive.c index 1c3ad52..40a3395 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -2357,6 +2357,10 @@ _bfd_compute_and_write_armap (bfd *arch, unsigned int elength) map = new_map; } + if (strcmp (syms[src_count]->name, "__gnu_lto_slim") == 0) + (*_bfd_error_handler) + (_("%s: plugin needed to handle lto object"), + bfd_get_filename (current)); namelen = strlen (syms[src_count]->name); amt = sizeof (char *); map[orl_count].name = (char **) bfd_alloc (arch, amt); diff --git a/bfd/linker.c b/bfd/linker.c index f6ae4e2..5ad7988 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -1642,7 +1642,13 @@ _bfd_generic_link_add_one_symbol (struct bfd_link_info *info, else if ((flags & BSF_WEAK) != 0) row = DEFW_ROW; else if (bfd_is_com_section (section)) - row = COMMON_ROW; + { + row = COMMON_ROW; + if (strcmp (name, "__gnu_lto_slim") == 0) + (*_bfd_error_handler) + (_("%s: plugin needed to handle lto object"), + bfd_get_filename (abfd)); + } else row = DEF_ROW; |