]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Don't move
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 22 Oct 2002 22:17:11 +0000 (22:17 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 22 Oct 2002 22:17:11 +0000 (22:17 +0000)
the options section into a separate section unless IRIX 6
compatibility is enabled.

bfd/ChangeLog
bfd/elfxx-mips.c

index f00325e12d4f60ddc485588c0d159f2ebbd4062a..08efbe2f86d6bbf6656db00bcdd37813f1e656f5 100644 (file)
@@ -1,3 +1,9 @@
+2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Don't move
+       the options section into a separate section unless IRIX 6
+       compatibility is enabled.
+
 2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
 
        * elflink.h (struct elf_link_sort_rela): Turn rel and rela
index ec0b54b001a9ab0fec58ed3850e287cfcde0b2e0..bc81458987a637031222f9d6da15d2009f3b0ece 100644 (file)
@@ -6137,7 +6137,12 @@ _bfd_mips_elf_modify_segment_map (abfd)
      .dynamic end up in PT_DYNAMIC.  However, we do have to insert a
      PT_OPTIONS segment immediately following the program header
      table.  */
-  if (NEWABI_P (abfd))
+  if (NEWABI_P (abfd)
+      /* On non-IRIX6 new abi, we'll have already created a segment
+        for this section, so don't create another.  I'm not sure this
+        is not also the case for IRIX 6, but I can't test it right
+        now.  */
+      && IRIX_COMPAT (abfd) == ict_irix6)
     {
       for (s = abfd->sections; s; s = s->next)
        if (elf_section_data (s)->this_hdr.sh_type == SHT_MIPS_OPTIONS)