PATCH: Fix elf_backend_section_from_phdr
H. J. Lu
hjl@lucon.org
Thu Mar 3 21:13:00 GMT 2005
elf_backend_section_from_phdr should take 4 arguments. I checked in
the folllowing patch.
H.J.
----
2005-03-03 H.J. Lu <hongjiu.lu@intel.com>
* 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/elf-bfd.h.warn 2005-03-03 12:42:50.051148582 -0800
+++ bfd/elf-bfd.h 2005-03-03 12:37:47.461265000 -0800
@@ -641,7 +641,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
--- bfd/elf.c.warn 2005-03-03 10:28:52.000000000 -0800
+++ bfd/elf.c 2005-03-03 12:44:00.515039414 -0800
@@ -2385,7 +2385,7 @@ bfd_section_from_phdr (bfd *abfd, Elf_In
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");
}
}
More information about the Binutils
mailing list