summaryrefslogtreecommitdiffstats
path: root/gdb/dbxread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-08 14:08:43 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-08 14:08:43 +0000
commitc09bd4433e4ab2c089edb59c7c4c7d72cd45090e (patch)
tree1ae970e6a6b32920e3e626e60010cf571c0ec5f5 /gdb/dbxread.c
parent959eba20700542a14e1c09dd834db2514ea32a65 (diff)
downloadppe42-binutils-c09bd4433e4ab2c089edb59c7c4c7d72cd45090e.tar.gz
ppe42-binutils-c09bd4433e4ab2c089edb59c7c4c7d72cd45090e.zip
revise comment
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r--gdb/dbxread.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 8c35def35f..cc0c43ea9f 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -1809,7 +1809,10 @@ process_one_symbol (type, desc, valu, name, section_offsets, objfile)
.stab "foo:V...",N_STSYM is relative (section base subtracted).
This leaves us no choice but to search for the 'S' or 'V'...
(or pass the whole section_offsets stuff down ONE MORE function
- call level, which we really don't want to do). */
+ call level, which we really don't want to do).
+
+ The above is indeed true for Solaris 2.1. I'm not sure what
+ happens in Solaris 2.3, in which ld stops relocating stabs. */
{
char *p;
p = strchr (name, ':');
@@ -1817,7 +1820,9 @@ process_one_symbol (type, desc, valu, name, section_offsets, objfile)
{
/* FIXME! We relocate it by the TEXT offset, in case the
whole module moved in memory. But this is wrong, since
- the sections can side around independently. */
+ the sections can side around independently. (I suspect that
+ the text offset is always zero anyway--elfread.c doesn't
+ process (and Sun cc doesn't produce) Ttext.text symbols). */
valu += ANOFFSET (section_offsets, SECT_OFF_TEXT);
goto define_a_symbol;
}
OpenPOWER on IntegriCloud