diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-05-11 00:36:17 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-05-11 00:36:17 +0000 |
commit | 9e12421610186897f3147622fb7d28806a527c46 (patch) | |
tree | fa047b194add89cdca59fdd3824fcacaffcf4a49 /gdb/elfread.c | |
parent | cd4c806ac95a85d8ee0271d7db797504cc656ec0 (diff) | |
download | gdb-9e12421610186897f3147622fb7d28806a527c46.zip gdb-9e12421610186897f3147622fb7d28806a527c46.tar.gz gdb-9e12421610186897f3147622fb7d28806a527c46.tar.bz2 |
2000-05-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* solib.c (symbol_add_stub): Remember the index and the name of
the section with the lowest address. Use this data (instead of
data from .text) to pass info into symbol_file_add.
* elfread.c (record_minimal_symbol_and_info): Use the section
where the symbol lives to get the index, instead of guessing.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index 85b04ec..60f7988 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -191,18 +191,16 @@ record_minimal_symbol_and_info (name, address, ms_type, info, bfd_section, { case mst_text: case mst_file_text: - section = SECT_OFF_TEXT (objfile); + section = bfd_section->index; #ifdef SMASH_TEXT_ADDRESS SMASH_TEXT_ADDRESS (address); #endif break; case mst_data: case mst_file_data: - section = SECT_OFF_DATA (objfile); - break; case mst_bss: case mst_file_bss: - section = SECT_OFF_BSS (objfile); + section = bfd_section->index; break; default: section = -1; |