From 4b6609a057b19dc0dc0278013d096101cba68963 Mon Sep 17 00:00:00 2001 From: Ulf Carlsson Date: Mon, 2 Oct 2000 06:04:16 +0000 Subject: [PATCH] 2000-10-01 Ulf Carlsson From Ralf Baechle * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld produces binaries with got[1] = 0x80000001 to differenciate them for the dynamic linker from the broken binaries produced by old versions. --- bfd/ChangeLog | 9 +++++++++ bfd/elf32-mips.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e220860c042..b4a6deffdd7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +2000-10-01 Ulf Carlsson + + From Ralf Baechle + + * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld + produces binaries with got[1] = 0x80000001 to differenciate them + for the dynamic linker from the broken binaries produced by old + versions. + 2000-09-30 Petr Sorfa * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t. diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index fd8847a8e2c..9a02f46db61 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -8879,7 +8879,7 @@ _bfd_mips_elf_finish_dynamic_sections (output_bfd, info) if (sgot != NULL && sgot->_raw_size > 0) { MIPS_ELF_PUT_WORD (output_bfd, (bfd_vma) 0, sgot->contents); - MIPS_ELF_PUT_WORD (output_bfd, (bfd_vma) 0x80000000, + MIPS_ELF_PUT_WORD (output_bfd, (bfd_vma) 0x80000001, sgot->contents + MIPS_ELF_GOT_SIZE (output_bfd)); } -- 2.30.2