diff options
author | Tristan Gingold <tristan.gingold@adacore.com> | 2014-04-04 12:37:50 +0200 |
---|---|---|
committer | Tristan Gingold <tristan.gingold@adacore.com> | 2014-04-04 14:22:18 +0200 |
commit | 47c509326557dcef05608226b8d6428476289886 (patch) | |
tree | 892bc471f57d346669a0713757d6d85fcf8ea271 /bfd/mach-o-i386.c | |
parent | 4ef27e045fbd5b9ec41685ea3843f65fc15827af (diff) | |
download | fsf-binutils-gdb-47c509326557dcef05608226b8d6428476289886.zip fsf-binutils-gdb-47c509326557dcef05608226b8d6428476289886.tar.gz fsf-binutils-gdb-47c509326557dcef05608226b8d6428476289886.tar.bz2 |
mach-o: output output_section target_index to write relocs.
bfd/
* mach-o-i386.c (bfd_mach_o_i386_swap_reloc_out): Use target index
of output_section.
* mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Ditto.
Diffstat (limited to 'bfd/mach-o-i386.c')
-rw-r--r-- | bfd/mach-o-i386.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/mach-o-i386.c b/bfd/mach-o-i386.c index 95dc48c..8349c66 100644 --- a/bfd/mach-o-i386.c +++ b/bfd/mach-o-i386.c @@ -210,7 +210,8 @@ bfd_mach_o_i386_swap_reloc_out (arelent *rel, bfd_mach_o_reloc_info *rinfo) if ((*rel->sym_ptr_ptr)->flags & BSF_SECTION_SYM) { rinfo->r_extern = 0; - rinfo->r_value = (*rel->sym_ptr_ptr)->section->target_index; + rinfo->r_value = + (*rel->sym_ptr_ptr)->section->output_section->target_index; } else { |