aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-08 18:30:25 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-08 18:30:25 +0000
commit32d71e32d118332ecf993c167b899fdda8680a13 (patch)
treed7da7204a620e1c200ed38210f6f1a6adc6aad24
parent3c7d306488436a011afb3a11e5ff2ef0d771717a (diff)
downloadgdb-32d71e32d118332ecf993c167b899fdda8680a13.zip
gdb-32d71e32d118332ecf993c167b899fdda8680a13.tar.gz
gdb-32d71e32d118332ecf993c167b899fdda8680a13.tar.bz2
* stabs.texinfo (Stabs In ELF, Statics): More on relocating stabs
in ELF files.
-rw-r--r--gdb/doc/stabs.texinfo15
1 files changed, 7 insertions, 8 deletions
diff --git a/gdb/doc/stabs.texinfo b/gdb/doc/stabs.texinfo
index 367c02f..ba8a453 100644
--- a/gdb/doc/stabs.texinfo
+++ b/gdb/doc/stabs.texinfo
@@ -3624,14 +3624,13 @@ For Solaris 2.3 and later, the linker ignores relocations for the stabs
section. The value of a @code{N_FUN} stab is zero and the address of a
function can be obtained from the ELF (non-stab) symbols. Sun, in
reference to bug 1142109, has verified that this is intentional.
-Because looking things up in the ELF symbols is slow and GDB currently
-only has code to do this for functions (which is enough for Solaris
-since read-only variables go in the @code{.rodata} section), it would
-probably be better to use a @code{Ttext.text} symbol for stabs-in-elf on
-non-Solaris machines, and make the address in the @code{N_FUN} relative
-to the @code{Ttext.text} symbol. In addition to @code{N_FUN} symbols,
-whether the linker relocates stabs also affects some @code{N_ROSYM},
-@code{N_STSYM}, and @code{N_LCSYM} symbols; see @ref{Statics}.
+Because looking things up in the ELF symbols is slow and GDB lacks code
+to do this this, it would probably be better to use a @code{Ttext.text}
+symbol for stabs-in-elf on non-Solaris machines, and make the address in
+the @code{N_FUN} relative to the @code{Ttext.text} symbol. In addition
+to @code{N_FUN} symbols, whether the linker relocates stabs also affects
+some @code{N_ROSYM}, @code{N_STSYM}, and @code{N_LCSYM} symbols; see
+@ref{Statics}.
@node Symbol Types Index
@unnumbered Symbol Types Index