This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[3/3, ppc64, bfd patch] eu-strip vs. func addresses for GDB inferior calls
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: binutils at sourceware dot org
- Cc: elfutils-devel at lists dot fedorahosted dot org, gdb-patches at sourceware dot org
- Date: Wed, 23 Mar 2011 16:30:22 +0100
- Subject: [3/3, ppc64, bfd patch] eu-strip vs. func addresses for GDB inferior calls
Hi,
the bfd part.
The patch has been regression tested on:
powerpc-eabisim powerpc-eabispe powerpc-elf powerpc-ibm-aix4.3.3.0
powerpc-linux-gnu powerpc-nto powerpc-wrs-vxworks powerpc64-linux-gnu
ppc-linux rs6000-aix4.3.3
Thanks,
Jan
bfd/
2011-03-23 Jan Kratochvil <jan.kratochvil@redhat.com>
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
SEC_LOAD.
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -3317,8 +3317,9 @@ ppc64_elf_get_synthetic_symtab (bfd *abfd,
{
if (sec->vma > ent)
break;
- if ((sec->flags & SEC_ALLOC) == 0
- || (sec->flags & SEC_LOAD) == 0)
+ /* SEC_LOAD may not be set if ABFD is a separate debug info
+ file. */
+ if ((sec->flags & SEC_ALLOC) == 0)
break;
if ((sec->flags & SEC_CODE) != 0)
s->section = sec;