aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-12-09 16:17:42 +0000
committerDaniel Jacobowitz <drow@false.org>2004-12-09 16:17:42 +0000
commitf9cfae629f47806e75b56f4125539e330e7a6bc3 (patch)
tree307e77297bc74027f62262bf4bbe4f527575b27a
parentdd22970fb50af848c0cf85cd164108b80ef88656 (diff)
downloadgdb-f9cfae629f47806e75b56f4125539e330e7a6bc3.zip
gdb-f9cfae629f47806e75b56f4125539e330e7a6bc3.tar.gz
gdb-f9cfae629f47806e75b56f4125539e330e7a6bc3.tar.bz2
* elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
ELF section symbols.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfcode.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6669277..d488fbb 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-09 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
+ ELF section symbols.
+
2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
* elfxx-mips.c (mips_elf_calculate_relocation): For R_MIPS_JALR,
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index 303e46c..a06b839 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -1293,11 +1293,7 @@ elf_slurp_reloc_table_from_section (bfd *abfd,
ps = symbols + ELF_R_SYM (rela.r_info) - 1;
s = *ps;
- /* Canonicalize ELF section symbols. FIXME: Why? */
- if ((s->flags & BSF_SECTION_SYM) == 0)
- relent->sym_ptr_ptr = ps;
- else
- relent->sym_ptr_ptr = s->section->symbol_ptr_ptr;
+ relent->sym_ptr_ptr = ps;
}
relent->addend = rela.r_addend;