diff options
author | Doug Evans <dje@google.com> | 2015-06-19 11:34:43 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2015-06-19 11:34:43 -0700 |
commit | 18a94d75a0a9baca8e2db2563fa3e637415ad86e (patch) | |
tree | 4ba0d9cfdf0c526f58ec81bb4bf2b8c276482c12 /gdb/doc | |
parent | ef8b8d4ad51c2b90e022c5442f60b39f05e38ef6 (diff) | |
download | gdb-18a94d75a0a9baca8e2db2563fa3e637415ad86e.zip gdb-18a94d75a0a9baca8e2db2563fa3e637415ad86e.tar.gz gdb-18a94d75a0a9baca8e2db2563fa3e637415ad86e.tar.bz2 |
Remove special support in gdb for Sun's version of stabs.
Discussion:
https://sourceware.org/ml/gdb-patches/2015-05/msg00169.html
gdb/ChangeLog:
* NEWS: Mention Sun's version of stabs is no longer supported.
* elfread.c (free_elfinfo): Delete. All uses updated.
(elfstab_offset_sections): Delete. All uses updated.
* gdb-stabs.h (stab_section_info): Delete. All uses updated.
* psympriv.h (partial_symtab) <section_offsets>: Delete.
All uses updated.
* psymtab.c (start_psymtab_common): Delete arg section_offsets.
All callers updated.
gdb/doc/ChangeLog:
* stabs.texinfo (ELF Linker Relocation): Mention Sun stabs is no
longer supported.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/stabs.texinfo | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 7d8002e..6d86750 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2015-06-19 Doug Evans <dje@google.com> + + * stabs.texinfo (ELF Linker Relocation): Mention Sun stabs is no + longer supported. + 2015-06-17 Patrick Palka <patrick@parcs.ath.cx> * gdb.texinfo (Command History): Mention that setting diff --git a/gdb/doc/stabs.texinfo b/gdb/doc/stabs.texinfo index 181e171..15c4152 100644 --- a/gdb/doc/stabs.texinfo +++ b/gdb/doc/stabs.texinfo @@ -4062,7 +4062,8 @@ the @code{.stabstr} section. @appendixsec Having the Linker Relocate Stabs in ELF This section describes some Sun hacks for Stabs in ELF; it does not -apply to COFF or SOM. +apply to COFF or SOM. While @value{GDBN} no longer supports this hack +for Sun Stabs in ELF, this section is kept to document the issue. To keep linking fast, you don't want the linker to have to relocate very many stabs. Making sure this is done for @code{N_SLINE}, @@ -4100,8 +4101,8 @@ the address from the ELF symbols. Finding the correct @code{Bbss.bss}, etc., symbol is difficult, because the linker simply concatenates the @code{.stab} sections from each @file{.o} file without including any information about which part of a -@code{.stab} section comes from which @file{.o} file. The way GDB does -this is to look for an ELF @code{STT_FILE} symbol which has the same +@code{.stab} section comes from which @file{.o} file. The way GDB use to +do this is to look for an ELF @code{STT_FILE} symbol which has the same name as the last component of the file name from the @code{N_SO} symbol in the stabs (for example, if the file name is @file{../../gdb/main.c}, it looks for an ELF @code{STT_FILE} symbol named @code{main.c}). This |