This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] MIPS/ELF: R_MIPS_max is not a real relocation
- From: "Maciej W. Rozycki" <macro at mips dot com>
- To: binutils at sources dot redhat dot com
- Cc: "Maciej W. Rozycki" <macro at linux-mips dot org>
- Date: Fri, 11 Feb 2005 15:15:19 +0000 (GMT)
- Subject: [PATCH] MIPS/ELF: R_MIPS_max is not a real relocation
Hello,
This should be obvious -- R_MIPS_max is only used for range checking
and is not a real relocation. Therefore it should be defined using
FAKE_RELOC.
The change should be innocuous, but I've rebuilt the sources and executed
the testsuite for mips64-linux-gnu, mipsel-linux-gnu and mips64el-elf just
in case.
2005-02-11 Maciej W. Rozycki <macro@mips.com>
* elf/mips.h (R_MIPS_max): Use FAKE_RELOC to define.
OK to apply?
Maciej
binutils-2.15.94-20050202-r_mips_max-0
diff -up --recursive --new-file binutils-2.15.94-20050202.macro/include/elf/mips.h binutils-2.15.94-20050202/include/elf/mips.h
--- binutils-2.15.94-20050202.macro/include/elf/mips.h 2004-12-09 06:02:45.000000000 +0000
+++ binutils-2.15.94-20050202/include/elf/mips.h 2005-02-11 14:33:15.000000000 +0000
@@ -72,7 +72,7 @@ START_RELOC_NUMBERS (elf_mips_reloc_type
RELOC_NUMBER (R_MIPS_PJUMP, 35)
RELOC_NUMBER (R_MIPS_RELGOT, 36)
RELOC_NUMBER (R_MIPS_JALR, 37)
- RELOC_NUMBER (R_MIPS_max, 38)
+ FAKE_RELOC (R_MIPS_max, 38)
/* These relocs are used for the mips16. */
RELOC_NUMBER (R_MIPS16_26, 100)
RELOC_NUMBER (R_MIPS16_GPREL, 101)