Browse Source

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.
binutils-csl-arm-2005q1-branch
H.J. Lu 22 years ago
parent
commit
d27f5fa16e
  1. 8
      bfd/ChangeLog
  2. 2
      bfd/elf-bfd.h
  3. 2
      bfd/elf.c

8
bfd/ChangeLog

@ -1,3 +1,11 @@
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.
2005-03-02 Daniel Jacobowitz <dan@codesourcery.com> 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
Joseph Myers <joseph@codesourcery.com> Joseph Myers <joseph@codesourcery.com>

2
bfd/elf-bfd.h

@ -639,7 +639,7 @@ struct elf_backend_data
/* A function to handle unusual program segment types when creating BFD /* A function to handle unusual program segment types when creating BFD
sections from ELF program segments. */ sections from ELF program segments. */
bfd_boolean (*elf_backend_section_from_phdr) 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 /* 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 preparation for writing it out. This is where the flags and type

2
bfd/elf.c

@ -2379,7 +2379,7 @@ bfd_section_from_phdr (bfd *abfd, Elf_Internal_Phdr *hdr, int index)
default: default:
/* Check for any processor-specific program segment types. */ /* Check for any processor-specific program segment types. */
bed = get_elf_backend_data (abfd); 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");
} }
} }

Loading…
Cancel
Save