aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-04-15 15:54:24 +0000
committerIan Lance Taylor <ian@airs.com>1997-04-15 15:54:24 +0000
commita0c807260c809005e26ba60b28d9ff6124b1b8d0 (patch)
tree3aec067547b6b208411b53d79f76f1f4c2e1a76d /bfd/elflink.h
parent21a2898b491cff3aca3d76d17c1becaa4e759da3 (diff)
downloadgdb-a0c807260c809005e26ba60b28d9ff6124b1b8d0.zip
gdb-a0c807260c809005e26ba60b28d9ff6124b1b8d0.tar.gz
gdb-a0c807260c809005e26ba60b28d9ff6124b1b8d0.tar.bz2
* elflink.h (elf_link_add_object_symbols): Don't call check_relocs
if this is a debugging section which we are stripping.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 877f166..c44163c 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -1495,7 +1495,9 @@ elf_link_add_object_symbols (abfd, info)
boolean ok;
if ((o->flags & SEC_RELOC) == 0
- || o->reloc_count == 0)
+ || o->reloc_count == 0
+ || ((info->strip == strip_all || info->strip == strip_debugger)
+ && (o->flags & SEC_DEBUGGING) != 0))
continue;
internal_relocs = (NAME(_bfd_elf,link_read_relocs)