diff options
author | H.J. Lu <hjl@lucon.org> | 2005-03-20 23:36:19 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2005-03-20 23:36:19 +0000 |
commit | 4a99a1c70926957d4184f792680bde4648e56332 (patch) | |
tree | 226580875b3748bb9d2d6cac3c25e8fdbf634e74 /bfd/elf64-hppa.c | |
parent | 1285af872ed4863ad2d3efdb3244e1d209061580 (diff) | |
download | binutils-redhat-4a99a1c70926957d4184f792680bde4648e56332.tar.gz |
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.
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r-- | bfd/elf64-hppa.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c index 869f7ed707..d306a40453 100644 --- a/bfd/elf64-hppa.c +++ b/bfd/elf64-hppa.c @@ -184,9 +184,6 @@ static const char *get_dyn_name static bfd_boolean elf64_hppa_object_p PARAMS ((bfd *)); -static bfd_boolean elf64_hppa_section_from_shdr - PARAMS ((bfd *, Elf_Internal_Shdr *, const char *)); - static void elf64_hppa_post_process_headers PARAMS ((bfd *, struct bfd_link_info *)); @@ -413,10 +410,10 @@ elf64_hppa_object_p (abfd) /* Given section type (hdr->sh_type), return a boolean indicating whether or not the section is an elf64-hppa specific section. */ static bfd_boolean -elf64_hppa_section_from_shdr (abfd, hdr, name) - bfd *abfd; - Elf_Internal_Shdr *hdr; - const char *name; +elf64_hppa_section_from_shdr (bfd *abfd, + Elf_Internal_Shdr *hdr, + const char *name, + int shindex) { asection *newsect; @@ -436,7 +433,7 @@ elf64_hppa_section_from_shdr (abfd, hdr, name) 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; newsect = hdr->bfd_section; |