mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
* dbxread.c (process_one_symbol): Do relocate 'S' symbols by
the text offset (revert 12 Oct 93 change).
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
Thu Nov 4 08:27:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Thu Nov 4 08:27:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* dbxread.c (process_one_symbol): Do relocate 'S' symbols by
|
||||||
|
the text offset (revert 12 Oct 93 change).
|
||||||
|
|
||||||
* configure.in: Make hppa*-*-hiux* use hppahpux,
|
* configure.in: Make hppa*-*-hiux* use hppahpux,
|
||||||
not non-existent hppahiux.
|
not non-existent hppahiux.
|
||||||
|
|
||||||
|
@ -1787,9 +1787,17 @@ process_one_symbol (type, desc, valu, name, section_offsets, objfile)
|
|||||||
p = strchr (name, ':');
|
p = strchr (name, ':');
|
||||||
if (p != 0 && p[1] == 'S')
|
if (p != 0 && p[1] == 'S')
|
||||||
{
|
{
|
||||||
/* The linker relocated it. There used to be a kludge here
|
/* The linker relocated it. We don't want to add an
|
||||||
to add the text offset, but that will break if we ever
|
elfstab_offset_sections-type offset, but we *do* want
|
||||||
start using the text offset (currently it is always zero). */
|
to add whatever solib.c passed to symbol_file_add as
|
||||||
|
addr (this is known to affect SunOS4, and I suspect ELF
|
||||||
|
too). Since elfstab_offset_sections currently does not
|
||||||
|
muck with the text offset (there is no Ttext.text
|
||||||
|
symbol), we can get addr from the text offset. If
|
||||||
|
elfstab_offset_sections ever starts dealing with the
|
||||||
|
text offset, and we still need to do this, we need to
|
||||||
|
invent a SECT_OFF_ADDR_KLUDGE or something. */
|
||||||
|
valu += ANOFFSET (section_offsets, SECT_OFF_TEXT);
|
||||||
goto define_a_symbol;
|
goto define_a_symbol;
|
||||||
}
|
}
|
||||||
/* Since it's not the kludge case, re-dispatch to the right handler. */
|
/* Since it's not the kludge case, re-dispatch to the right handler. */
|
||||||
|
Reference in New Issue
Block a user