From eb1e8d350d12800ea0cf0793aee449cfcc74b7b5 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 9 Mar 1995 06:37:02 +0000 Subject: [PATCH] * somsolib.c (som_solib_section_offsets): Get offset of text section right. --- gdb/somsolib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/somsolib.c b/gdb/somsolib.c index a42654208c7..241283b5bca 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. */ -- 2.30.2