* somsolib.c (som_solib_section_offsets): Get offset of text

section right.
This commit is contained in:
Jeff Law 1995-03-09 06:37:02 +00:00
parent 9468f8aa3e
commit eb1e8d350d
1 changed files with 2 additions and 1 deletions

View File

@ -586,7 +586,8 @@ som_solib_section_offsets (objfile, offsets)
asection *private_section;
/* The text offset is easy. */
ANOFFSET (offsets, 0) = so_list->som_solib.text_addr;
ANOFFSET (offsets, 0) = (so_list->som_solib.text_addr
- so_list->som_solib.text_link_addr);
/* We should look at presumed_dp in the SOM header, but
that's not easily available. This should be OK though. */