From a0c807260c809005e26ba60b28d9ff6124b1b8d0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 15 Apr 1997 15:54:24 +0000 Subject: * elflink.h (elf_link_add_object_symbols): Don't call check_relocs if this is a debugging section which we are stripping. --- bfd/elflink.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bfd/elflink.h') 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) -- cgit v1.1