aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1995-03-09 06:37:02 +0000
committerJeff Law <law@redhat.com>1995-03-09 06:37:02 +0000
commiteb1e8d350d12800ea0cf0793aee449cfcc74b7b5 (patch)
tree54092dfb131d09f2378a00380ff9034c9b9fdbec /gdb
parent9468f8aa3eb073ad12c5b1c13c414951ffd12582 (diff)
downloadgdb-eb1e8d350d12800ea0cf0793aee449cfcc74b7b5.zip
gdb-eb1e8d350d12800ea0cf0793aee449cfcc74b7b5.tar.gz
gdb-eb1e8d350d12800ea0cf0793aee449cfcc74b7b5.tar.bz2
* somsolib.c (som_solib_section_offsets): Get offset of text
section right.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/somsolib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/somsolib.c b/gdb/somsolib.c
index a426542..241283b 100644
--- a/gdb/somsolib.c
+++ b/gdb/somsolib.c
@@ -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. */