From a0c807260c809005e26ba60b28d9ff6124b1b8d0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 15 Apr 1997 15:54:24 +0000 Subject: [PATCH] * elflink.h (elf_link_add_object_symbols): Don't call check_relocs if this is a debugging section which we are stripping. --- bfd/ChangeLog | 10 ++++++++++ bfd/elflink.h | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8fc70bd6d31..b1230204900 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +Tue Apr 15 11:50:37 1997 Ian Lance Taylor + + * elflink.h (elf_link_add_object_symbols): Don't call check_relocs + if this is a debugging section which we are stripping. + +Mon Apr 14 12:39:30 1997 Richard Henderson + + * elf64-alpha.c (elf64_alpha_object_p): Allocate the + alpha-specific target data struct. + Mon Apr 14 11:45:46 1997 Ian Lance Taylor From Thomas Graichen : diff --git a/bfd/elflink.h b/bfd/elflink.h index 877f166ff86..c44163c3bd4 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) -- 2.30.2