aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2001-11-16 02:56:08 +0000
committerDaniel Jacobowitz <drow@false.org>2001-11-16 02:56:08 +0000
commit44421011e33f60d08f624fc8464c7079a07bc104 (patch)
tree1a10833b98ae18d0c26040df09d168e42a56c773 /bfd/elflink.h
parenta1677dfb5ef9883154db5c193c0464a88f6a3b07 (diff)
downloadgdb-44421011e33f60d08f624fc8464c7079a07bc104.zip
gdb-44421011e33f60d08f624fc8464c7079a07bc104.tar.gz
gdb-44421011e33f60d08f624fc8464c7079a07bc104.tar.bz2
* elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
local syms from discarded sections. Update comment.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h3
1 files changed, 1 insertions, 2 deletions
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;