summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2001-11-16 02:56:08 +0000
committerDaniel Jacobowitz <dan@debian.org>2001-11-16 02:56:08 +0000
commitc2774c6cf3920f4f564a2c0f4674b4e81bdb5fcf (patch)
tree0d603c555afbf2703d20e55ffabb0957b53a53a7 /bfd
parent49c89307e7aec74dd5c0013b32ac9ad29e44f68d (diff)
downloadgdb-c2774c6cf3920f4f564a2c0f4674b4e81bdb5fcf.tar.gz
* elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
local syms from discarded sections. Update comment.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.h3
2 files changed, 6 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1d15e0aab6f..24bb2e6b4d0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-15 Daniel Jacobowitz <drow@mvista.com>
+
+ * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
+ local syms from discarded sections. Update comment.
+
2001-11-15 Alan Modra <amodra@bigpond.net.au>
* po/SRC-POTFILES.in: Regenerate.
diff --git a/bfd/elflink.h b/bfd/elflink.h
index da0021ccefe..431d17ddf15 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;