aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-12-05 18:47:03 +0000
committerIan Lance Taylor <ian@airs.com>1996-12-05 18:47:03 +0000
commit80be821d2e1e9b79c44d53b08e25b43c29a236b9 (patch)
tree11a4a6d0c75b41b920e6870074e00e7358726558 /bfd/elflink.h
parent00a69b895a5ff0836c14a1d7c799963e9f0e10a6 (diff)
downloadgdb-80be821d2e1e9b79c44d53b08e25b43c29a236b9.zip
gdb-80be821d2e1e9b79c44d53b08e25b43c29a236b9.tar.gz
gdb-80be821d2e1e9b79c44d53b08e25b43c29a236b9.tar.bz2
* elflink.h (elf_link_add_object_symbols): Calling check_relocs
even if SEC_ALLOC is not set. * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC when deciding whether to copy a reloc into a shared object. (elf_i386_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. (elf32_sparc_relocate_section): Likewise. * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a reloc section if it is not set in the source section. * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. * elf.c (bfd_section_from_shdr): Mark a reloc section associated with a SEC_DEBUGGING section as SEC_DEBUGGING. PR 11174.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 3c8c339..8be2f2d 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -956,12 +956,6 @@ elf_link_add_object_symbols (abfd, info)
|| o->reloc_count == 0)
continue;
- /* I believe we can ignore the relocs for any section which
- does not form part of the final process image, such as a
- debugging section. */
- if ((o->flags & SEC_ALLOC) == 0)
- continue;
-
internal_relocs = (NAME(_bfd_elf,link_read_relocs)
(abfd, o, (PTR) NULL,
(Elf_Internal_Rela *) NULL,