From 44421011e33f60d08f624fc8464c7079a07bc104 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 16 Nov 2001 02:56:08 +0000 Subject: * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against local syms from discarded sections. Update comment. --- bfd/ChangeLog | 5 +++++ bfd/elflink.h | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1d15e0a..24bb2e6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-11-15 Daniel Jacobowitz + + * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against + local syms from discarded sections. Update comment. + 2001-11-15 Alan Modra * po/SRC-POTFILES.in: Regenerate. diff --git a/bfd/elflink.h b/bfd/elflink.h index da0021c..431d17d 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -7811,7 +7811,7 @@ elf_reloc_symbol_deleted_p (offset, cookie) else if (rcookie->locsyms) { /* It's not a relocation against a global symbol, - but it could be a relocation against a section + but it could be a relocation against a local symbol for a discarded section. */ asection *isec; @@ -7820,7 +7820,6 @@ elf_reloc_symbol_deleted_p (offset, cookie) { isec = section_from_elf_index (rcookie->abfd, isym.st_shndx); if (isec != NULL - && ELF_ST_TYPE (isym.st_info) == STT_SECTION && ! bfd_is_abs_section (isec) && bfd_is_abs_section (isec->output_section)) return true; -- cgit v1.1