svn commit: r301006 - head/sys/sys
Ed Maste
emaste at FreeBSD.org
Mon May 30 20:51:52 UTC 2016
Author: emaste
Date: Mon May 30 20:51:51 2016
New Revision: 301006
URL: https://svnweb.freebsd.org/changeset/base/301006
Log:
Add and correct MIPS relocation types
The correct names for R_MIPS_GOT_HI16 and R_MIPS_GOT_LO16 have a _
after GOT. The nonstandard names (R_MIPS_GOTHI16, R_MIPS_GOTLO16) in the
FreeBSD elf_common.h header also had incorrect values and were not used
in the tree, so just remove them.
Add other MIPS relocation types found in FreeBSD/mips64 object files.
Reviewed by: imp, jmallett
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6561
Modified:
head/sys/sys/elf_common.h
Modified: head/sys/sys/elf_common.h
==============================================================================
--- head/sys/sys/elf_common.h Mon May 30 20:41:55 2016 (r301005)
+++ head/sys/sys/elf_common.h Mon May 30 20:51:51 2016 (r301006)
@@ -1037,10 +1037,16 @@ typedef struct {
#define R_MIPS_CALL16 11 /* 16 bit GOT entry for function */
#define R_MIPS_GPREL32 12 /* GP relative 32 bit */
#define R_MIPS_64 18 /* Direct 64 bit */
-#define R_MIPS_GOTHI16 21 /* GOT HI 16 bit */
-#define R_MIPS_GOTLO16 22 /* GOT LO 16 bit */
+#define R_MIPS_GOT_DISP 19
+#define R_MIPS_GOT_PAGE 20
+#define R_MIPS_GOT_OFST 21
+#define R_MIPS_GOT_HI16 22 /* GOT HI 16 bit */
+#define R_MIPS_GOT_LO16 23 /* GOT LO 16 bit */
+#define R_MIPS_SUB 24
#define R_MIPS_CALLHI16 30 /* upper 16 bit GOT entry for function */
#define R_MIPS_CALLLO16 31 /* lower 16 bit GOT entry for function */
+#define R_MIPS_JALR 37
+#define R_MIPS_TLS_GD 42
#define R_PPC_NONE 0 /* No relocation. */
#define R_PPC_ADDR32 1
More information about the svn-src-all
mailing list