From d27f5fa16e38f664a8c17ed1d367c42da6cc7b87 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 3 Mar 2005 20:52:31 +0000 Subject: [PATCH] 2005-03-03 H.J. Lu * elf-bfd.h (elf_backend_data): Add "const char *" to elf_backend_section_from_phdr. * elf.c (bfd_section_from_phdr): Pass "proc" to the elf_backend_section_from_phdr hook. --- bfd/ChangeLog | 8 ++++++++ bfd/elf-bfd.h | 2 +- bfd/elf.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 57cea9a8e6c..b2d3a3f1e5e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2005-03-03 H.J. Lu + + * elf-bfd.h (elf_backend_data): Add "const char *" to + elf_backend_section_from_phdr. + + * elf.c (bfd_section_from_phdr): Pass "proc" to the + elf_backend_section_from_phdr hook. + 2005-03-02 Daniel Jacobowitz Joseph Myers diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index fae6f3128b9..d714974573f 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -639,7 +639,7 @@ struct elf_backend_data /* A function to handle unusual program segment types when creating BFD sections from ELF program segments. */ bfd_boolean (*elf_backend_section_from_phdr) - (bfd *, Elf_Internal_Phdr *, int); + (bfd *, Elf_Internal_Phdr *, int, const char *); /* A function to set up the ELF section header for a BFD section in preparation for writing it out. This is where the flags and type diff --git a/bfd/elf.c b/bfd/elf.c index 75f42edbc2a..ef326f03da8 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -2379,7 +2379,7 @@ bfd_section_from_phdr (bfd *abfd, Elf_Internal_Phdr *hdr, int index) default: /* Check for any processor-specific program segment types. */ bed = get_elf_backend_data (abfd); - return bed->elf_backend_section_from_phdr (abfd, hdr, index); + return bed->elf_backend_section_from_phdr (abfd, hdr, index, "proc"); } } -- 2.30.2