aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2002-09-18 01:38:20 +0000
committerStan Cox <scox@redhat.com>2002-09-18 01:38:20 +0000
commita902ee94b7b0212607630a2c0920565f01899051 (patch)
treec44eaf1ffede5a8c9d90be1f791ee0b9661b5ca3 /bfd/elfxx-mips.c
parent419586656da32a0ea553d34a9bed51037a22993a (diff)
downloadgdb-a902ee94b7b0212607630a2c0920565f01899051.zip
gdb-a902ee94b7b0212607630a2c0920565f01899051.tar.gz
gdb-a902ee94b7b0212607630a2c0920565f01899051.tar.bz2
* elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
(mips_elf64_final_gp): Don't make up gp value. * elfn32-mips.c (mips_elf_final_gp): Likewise. * elfxx-mips.c (_bfd_mips_elf_final_link): Always create .MIPS.options/.options section.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 5132693..8da904b 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -6984,6 +6984,8 @@ _bfd_mips_elf_final_link (abfd, info)
<= g->global_gotno);
}
+#if 0
+ /* We want to set the GP value for ld -r. */
/* On IRIX5, we omit the .options section. On IRIX6, however, we
include it, even though we don't process it quite right. (Some
entries are supposed to be merged.) Empirically, we seem to be
@@ -7021,6 +7023,7 @@ _bfd_mips_elf_final_link (abfd, info)
break;
}
}
+#endif
/* Get a value for the GP register. */
if (elf_gp (abfd) == 0)