diff options
author | H.J. Lu <hjl@lucon.org> | 2003-10-16 15:25:54 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2003-10-16 15:25:54 +0000 |
commit | 7d1a755c7ea748ed4b5802aeb5f5cf686a763439 (patch) | |
tree | b1c758fb15dc67aa92d730b424bb3a074b61eb6a /bfd/elf32-xtensa.c | |
parent | 2753443f3886519c4fab8c85515475d23e793c8f (diff) | |
download | gdb-7d1a755c7ea748ed4b5802aeb5f5cf686a763439.tar.gz |
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.
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r-- | bfd/elf32-xtensa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index 1c6413b9109..5cf45b615a3 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); |