aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-10-16 15:25:54 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-10-16 15:25:54 +0000
commit7aaa0689cc7af3af91089ae7203f1f783cc45ec8 (patch)
treecd0b2a6d0e36eff1d347db844f32c530d3350b8c
parentcd275bff00d6ee9e81b430f285220d163a77fbf0 (diff)
downloadgdb-7aaa0689cc7af3af91089ae7203f1f783cc45ec8.zip
gdb-7aaa0689cc7af3af91089ae7203f1f783cc45ec8.tar.gz
gdb-7aaa0689cc7af3af91089ae7203f1f783cc45ec8.tar.bz2
2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
* elf32-xtensa.c (xtensa_read_table_entries): The external size of entry is 8 bytes.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-xtensa.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 3195c4b..407a51c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-xtensa.c (xtensa_read_table_entries): The external size
+ of entry is 8 bytes.
+
2003-10-15 Andrew Cagney <cagney@redhat.com>
* targets.c (BFD_JUMP_TABLE_SYMBOLS): Replace NAME##_get_symtab
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index 1c6413b..5cf45b6 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -514,7 +514,7 @@ xtensa_read_table_entries (abfd, section, table_p, sec_name)
return 0;
}
- num_records = table_size / sizeof (property_table_entry);
+ num_records = table_size / 8;
table_data = retrieve_contents (abfd, table_section, TRUE);
blocks = (property_table_entry *)
bfd_malloc (num_records * sizeof (property_table_entry));
@@ -556,7 +556,7 @@ xtensa_read_table_entries (abfd, section, table_p, sec_name)
and the addresses are already in the table. */
bfd_vma off;
- for (off = 0; off < table_size; off += sizeof (property_table_entry))
+ for (off = 0; off < table_size; off += 8)
{
bfd_vma address = bfd_get_32 (abfd, table_data + off);