mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 05:52:21 +08:00
2005-03-20 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (elf_backend_data): Add int to elf_backend_section_from_shdr. (bfd_elf_section_data): Update comment for this_idx. (_bfd_elf_make_section_from_shdr): Add int. * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise. * elf.c (_bfd_elf_make_section_from_shdr): Take section index and use it to set this_idx in bfd_elf_section_data. (bfd_section_from_shdr): Pass shindex to _bfd_elf_make_section_from_shdr. (_bfd_elf_section_from_bfd_section): Use this_idx in bfd_elf_section_data to find section index. * elf32-arm.c (elf32_arm_section_from_shdr): Take section index and pass it to _bfd_elf_make_section_from_shdr. * elf32-i370.c(i370_elf_section_from_shdr): Likewise. * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise. * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise. * elf32-v850.c (v850_elf_section_from_shdr): Likewise. * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise. * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise. * elf64-x86-64.c (elf64_x86_64_section_from_shdr): Likewise. * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise. * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
This commit is contained in:
@ -63,7 +63,7 @@ static bfd_boolean sh64_elf_link_output_symbol_hook
|
||||
(struct bfd_link_info *, const char *, Elf_Internal_Sym *, asection *,
|
||||
struct elf_link_hash_entry *);
|
||||
static bfd_boolean sh64_backend_section_from_shdr
|
||||
(bfd *, Elf_Internal_Shdr *, const char *);
|
||||
(bfd *, Elf_Internal_Shdr *, const char *, int);
|
||||
static void sh64_elf_final_write_processing
|
||||
(bfd *, bfd_boolean);
|
||||
static bfd_boolean sh64_bfd_elf_copy_private_section_data
|
||||
@ -253,13 +253,14 @@ sh64_elf_merge_private_data (bfd *ibfd, bfd *obfd)
|
||||
}
|
||||
|
||||
/* Handle a SH64-specific section when reading an object file. This
|
||||
is called when elfcode.h finds a section with an unknown type.
|
||||
is called when bfd_section_from_shdr finds a section with an unknown
|
||||
type.
|
||||
|
||||
We only recognize SHT_SH5_CR_SORTED, on the .cranges section. */
|
||||
|
||||
bfd_boolean
|
||||
sh64_backend_section_from_shdr (bfd *abfd, Elf_Internal_Shdr *hdr,
|
||||
const char *name)
|
||||
const char *name, int shindex)
|
||||
{
|
||||
flagword flags = 0;
|
||||
|
||||
@ -284,7 +285,7 @@ sh64_backend_section_from_shdr (bfd *abfd, Elf_Internal_Shdr *hdr,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name))
|
||||
if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
|
||||
return FALSE;
|
||||
|
||||
if (flags
|
||||
|
Reference in New Issue
Block a user