diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-11-15 23:48:00 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-11-15 23:48:00 +0000 |
commit | 6f610d0772c18436d067ee2ba88d8c73559124c0 (patch) | |
tree | f6a77b341aba31b6dcdfc55aff268ba8cf303ba4 /bfd | |
parent | 4f4c5f80c7482fbd1c2fd5a3b96547f5099bf3fd (diff) | |
download | gdb-6f610d0772c18436d067ee2ba88d8c73559124c0.zip gdb-6f610d0772c18436d067ee2ba88d8c73559124c0.tar.gz gdb-6f610d0772c18436d067ee2ba88d8c73559124c0.tar.bz2 |
bfd/ChangeLog:
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Set udata.p of
synthetic symbol to point to the ELF symbol it was derived from.
gdb/ChangeLog:
* elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
(elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
ELF-private symbol data when processing synthetic symbols. Use
udata.p to get at size of ppc64 synthetic 'dot' symbols.
(elf_symfile_read): Pass TYPE argument to elf_symtab_read.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-ppc.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a5b79ed..09a7e80 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-11-16 Ulrich Weigand <uweigand@de.ibm.com> + + * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Set udata.p of + synthetic symbol to point to the ELF symbol it was derived from. + 2007-11-15 Alan Modra <amodra@bigpond.net.au> PR 5328 diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 6d18fbc..bbb75e8 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -2959,6 +2959,9 @@ ppc64_elf_get_synthetic_symtab (bfd *abfd, len = strlen (syms[i]->name); memcpy (names, syms[i]->name, len + 1); names += len + 1; + /* Have udata.p point back to the original symbol this + synthetic symbol was derived from. */ + s->udata.p = syms[i]; s++; } } @@ -3046,6 +3049,9 @@ ppc64_elf_get_synthetic_symtab (bfd *abfd, len = strlen (syms[i]->name); memcpy (names, syms[i]->name, len + 1); names += len + 1; + /* Have udata.p point back to the original symbol this + synthetic symbol was derived from. */ + s->udata.p = syms[i]; s++; } } |