diff options
author | Nick Clifton <nickc@redhat.com> | 2012-05-16 16:38:29 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-05-16 16:38:29 +0000 |
commit | a0f49396fd3a721a3bcd77457abeff75dd9564d9 (patch) | |
tree | 702c46acaf9d4d7ce1d05d00fc252b1ad1c908d1 /bfd/elf64-mmix.c | |
parent | PR gas/14082 (diff) | |
download | binutils-gdb-a0f49396fd3a721a3bcd77457abeff75dd9564d9.tar.gz binutils-gdb-a0f49396fd3a721a3bcd77457abeff75dd9564d9.tar.bz2 binutils-gdb-a0f49396fd3a721a3bcd77457abeff75dd9564d9.zip |
* bfd-in.h (bfd_get_section_name, bfd_get_section_vma,
bfd_get_section_lma, bfd_get_section_alignment,
bfd_get_section_flags, bfd_get_section_userdata): Rewrite macros
in order to use the `bfd' argument.
* bfd-in2.h: Regenerate.
* elf-vxworks.c (elf_vxworks_finish_dynamic_entry): Pass proper `bfd'
as the first argument for `bfd_get_section_alignment'.
* elf32-arm.c (create_ifunc_sections): Likewise, for
`bfd_set_section_alignment'.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise, for
`bfd_get_section_name'.
* elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
(ppc_elf_relocate_section): Likewise.
* elf64-mmix.c (mmix_final_link_relocate): Likewise, for
`bfd_get_section_vma'.
* elf64-ppc.c (create_linkage_sections): Likewise, for
`bfd_set_section_alignment'.
* emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
as the first argument for `bfd_get_section_name'.
* config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
as the first argument for `bfd_get_section_vma'.
Diffstat (limited to 'bfd/elf64-mmix.c')
-rw-r--r-- | bfd/elf64-mmix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf64-mmix.c b/bfd/elf64-mmix.c index 5366df4f6fe..1eb725dd342 100644 --- a/bfd/elf64-mmix.c +++ b/bfd/elf64-mmix.c @@ -1771,7 +1771,9 @@ mmix_final_link_relocate (reloc_howto_type *howto, asection *input_section, first_global = 255; else { - first_global = bfd_get_section_vma (abfd, regsec) / 8; + first_global + = bfd_get_section_vma (input_section->output_section->owner, + regsec) / 8; if (strcmp (bfd_get_section_name (symsec->owner, symsec), MMIX_REG_CONTENTS_SECTION_NAME) == 0) { |