aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-04-24 17:19:37 +0000
committerRoland McGrath <roland@gnu.org>2003-04-24 17:19:37 +0000
commit811072d8510604b8f9adc0209d5bb5614ac3b29b (patch)
tree481e4e703f143d866d72ba48d2fb6081aac4abf0 /bfd
parentd038301c195742daa0008b68ee50e59ec151829e (diff)
downloadfsf-binutils-gdb-811072d8510604b8f9adc0209d5bb5614ac3b29b.zip
fsf-binutils-gdb-811072d8510604b8f9adc0209d5bb5614ac3b29b.tar.gz
fsf-binutils-gdb-811072d8510604b8f9adc0209d5bb5614ac3b29b.tar.bz2
2003-04-24 Roland McGrath <roland@redhat.com>
* elf.c (bfd_section_from_phdr): Map PT_GNU_EH_FRAME to "eh_frame_hdr".
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elf.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 56dfda3..72fe61c 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2292,6 +2292,10 @@ bfd_section_from_phdr (abfd, hdr, index)
case PT_PHDR:
return _bfd_elf_make_section_from_phdr (abfd, hdr, index, "phdr");
+ case PT_GNU_EH_FRAME:
+ return _bfd_elf_make_section_from_phdr (abfd, hdr, index,
+ "eh_frame_hdr");
+
default:
/* Check for any processor-specific program segment types.
If no handler for them, default to making "segment" sections. */
@@ -4778,7 +4782,7 @@ copy_private_bfd_data (ibfd, obfd)
section = section->next)
if (INCLUDE_SECTION_IN_SEGMENT (section, segment, bed))
++section_count;
-
+
/* Allocate a segment map big enough to contain
all of the sections we have selected. */
amt = sizeof (struct elf_segment_map);
@@ -5458,11 +5462,11 @@ swap_out_syms (abfd, sttp, relocatable_p)
Unable to find equivalent output section for symbol '%s' from section '%s'"),
syms[idx]->name ? syms[idx]->name : "<Local sym>",
sec->name);
- bfd_set_error (bfd_error_invalid_operation);
+ bfd_set_error (bfd_error_invalid_operation);
_bfd_stringtab_free (stt);
return FALSE;
}
-
+
shndx = _bfd_elf_section_from_bfd_section (abfd, sec2);
BFD_ASSERT (shndx != -1);
}
@@ -7071,7 +7075,7 @@ elfcore_grok_nto_note (abfd, note)
Elf_Internal_Note *note;
{
/* Every GREG section has a STATUS section before it. Store the
- tid from the previous call to pass down to the next gregs
+ tid from the previous call to pass down to the next gregs
function. */
static pid_t tid = 1;