summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-10-22 22:17:11 +0000
committerAlexandre Oliva <aoliva@redhat.com>2002-10-22 22:17:11 +0000
commitf07f3eb7e6defc8c7c317b49e0f952d2726446dc (patch)
treedad4917c44813b2d9020459660eb4659fa96d2ec
parent3a9ae80a51fa3303ccd7afd093a96a16480a6536 (diff)
downloadgdb-f07f3eb7e6defc8c7c317b49e0f952d2726446dc.tar.gz
* 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.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elfxx-mips.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f00325e12d4..08efbe2f86d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
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
into arrays.
(elf_link_sort_cmp1, elf_link_sort_cmp2): Adjust.
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index ec0b54b001a..bc81458987a 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -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)