mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
2000-04-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* win32-nat.c (handle_load_dll): Don't treat .text as a special section anymore. * somread.c (som_symfile_offsets): Ditto. * somsolib.c (som_solib_add_solib_objfile): Ditto.
This commit is contained in:
@@ -465,6 +465,7 @@ som_symfile_offsets (objfile, addrs)
|
||||
struct section_addr_info *addrs;
|
||||
{
|
||||
int i;
|
||||
CORE_ADDR text_addr;
|
||||
|
||||
objfile->num_sections = SECT_OFF_MAX;
|
||||
objfile->section_offsets = (struct section_offsets *)
|
||||
@@ -474,8 +475,13 @@ som_symfile_offsets (objfile, addrs)
|
||||
offsets from the library, else get them from addrs. */
|
||||
if (!som_solib_section_offsets (objfile, objfile->section_offsets))
|
||||
{
|
||||
for (i = 0; i < SECT_OFF_MAX && addrs->other[i].name; i++)
|
||||
if (strcmp (addrs->other[i].name, ".text") == 0)
|
||||
break;
|
||||
text_addr = addrs->other[i].addr;
|
||||
|
||||
for (i = 0; i < SECT_OFF_MAX; i++)
|
||||
ANOFFSET (objfile->section_offsets, i) = addrs -> text_addr;
|
||||
ANOFFSET (objfile->section_offsets, i) = text_addr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user