aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-08-13 19:43:38 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-08-13 19:43:38 +0000
commitaf0edeb8e68c89cb0b1483548e8ce4d17562fc95 (patch)
tree3a7d0c2172c3c8fef70efde3a191d2ac433dd407 /bfd/elfxx-mips.c
parent40d72643d37b8001bb9e9fa7b9b3e73140458546 (diff)
downloadgdb-af0edeb8e68c89cb0b1483548e8ce4d17562fc95.zip
gdb-af0edeb8e68c89cb0b1483548e8ce4d17562fc95.tar.gz
gdb-af0edeb8e68c89cb0b1483548e8ce4d17562fc95.tar.bz2
* elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Look up
the options section in the output rather than input BFD to decide if to add a DT_MIPS_OPTIONS tag.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 966a0be..5f8693e 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -9282,7 +9282,7 @@ _bfd_mips_elf_size_dynamic_sections (bfd *output_bfd,
if (IRIX_COMPAT (dynobj) == ict_irix6
&& (bfd_get_section_by_name
- (dynobj, MIPS_ELF_OPTIONS_SECTION_NAME (dynobj)))
+ (output_bfd, MIPS_ELF_OPTIONS_SECTION_NAME (dynobj)))
&& !MIPS_ELF_ADD_DYNAMIC_ENTRY (info, DT_MIPS_OPTIONS, 0))
return FALSE;
}