* elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Look up
authorMaciej W. Rozycki <macro@linux-mips.org>
Mon, 13 Aug 2012 19:43:38 +0000 (19:43 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Mon, 13 Aug 2012 19:43:38 +0000 (19:43 +0000)
the options section in the output rather than input BFD to
decide if to add a DT_MIPS_OPTIONS tag.

bfd/ChangeLog
bfd/elfxx-mips.c

index a9592f96f89bf22f9299b77a49ba8da3f840900a..c61342dc7fc35b196a0ca25d09c8d347eb53c9d1 100644 (file)
@@ -1,3 +1,9 @@
+2012-08-13  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * 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  <macro@codesourcery.com>
 
        * config.bfd: Wrap mips*el-*-linux* and mips*-*-linux* into
index 966a0be32429f2a1f1e8b3e50780ab8124544b2a..5f8693e46914cc9470442ea33cf4a72b89d82ead 100644 (file)
@@ -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;
        }
This page took 0.045518 seconds and 4 git commands to generate.