From: Maciej W. Rozycki Date: Mon, 13 Aug 2012 19:43:38 +0000 (+0000) Subject: * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Look up X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af0edeb8e68c89cb0b1483548e8ce4d17562fc95;p=binutils-gdb.git * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a9592f96f89..c61342dc7fc 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2012-08-13 Maciej W. Rozycki + + * 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. + 2012-08-13 Maciej W. Rozycki * config.bfd: Wrap mips*el-*-linux* and mips*-*-linux* into diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 966a0be3242..5f8693e4691 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; }