aboutsummaryrefslogtreecommitdiff
path: root/bfd/linker.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-07-28 22:18:25 +0930
committerAlan Modra <amodra@gmail.com>2014-07-28 22:33:55 +0930
commitb794fc1d1c3a3dfb65b74a36fe96c474fee65000 (patch)
tree8ddcf3ad5e531f53a3d9bcdb7033972cfe94b76f /bfd/linker.c
parent774bb79e9b9e192bcecc38da919edffaf9b5d236 (diff)
downloadgdb-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 'bfd/linker.c')
-rw-r--r--bfd/linker.c8
1 files changed, 7 insertions, 1 deletions
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;