summaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-08-13 19:43:37 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-08-13 19:43:37 +0000
commit51a4fedbbbd8ed3fc5c5b555e45dbb9b4f5f11f2 (patch)
treeb61178485cb7ad28e5e8d0423e64f1b5f9940a09 /bfd/elfxx-mips.c
parent829646a7e827b3bc9b7a5b2641b48bb7a7ba43bd (diff)
downloadbinutils-redhat-51a4fedbbbd8ed3fc5c5b555e45dbb9b4f5f11f2.tar.gz
* 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 966a0be324..5f8693e469 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;
}