diff options
author | Alan Modra <amodra@gmail.com> | 2014-07-28 22:18:25 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-07-28 22:33:55 +0930 |
commit | b794fc1d1c3a3dfb65b74a36fe96c474fee65000 (patch) | |
tree | 8ddcf3ad5e531f53a3d9bcdb7033972cfe94b76f /binutils/nm.c | |
parent | 774bb79e9b9e192bcecc38da919edffaf9b5d236 (diff) | |
download | gdb-b794fc1d1c3a3dfb65b74a36fe96c474fee65000.zip gdb-b794fc1d1c3a3dfb65b74a36fe96c474fee65000.tar.gz gdb-b794fc1d1c3a3dfb65b74a36fe96c474fee65000.tar.bz2 |
Warn for ar/nm/ranlib/ld on lto objects without plugin
PR 13227
bfd/
* 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.
binutils/
* nm.c (filter_symbols): Warn on __gnu_lto_slim.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index 2a44a84..ecd147e 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -434,6 +434,10 @@ filter_symbols (bfd *abfd, bfd_boolean is_dynamic, void *minisyms, if (sym == NULL) bfd_fatal (bfd_get_filename (abfd)); + if (strcmp (sym->name, "__gnu_lto_slim") == 0) + non_fatal (_("%s: plugin needed to handle lto object"), + bfd_get_filename (abfd)); + if (undefined_only) keep = bfd_is_und_section (sym->section); else if (external_only) |