[PATCH] Preliminary MIPS gas NewABI relocation handling

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Mon Oct 15 00:49:00 GMT 2001


Hi All,

this adds some sort of handling for NewABI relocations, doing
basically nothing instead of running into an internal error.
It is a preliminary fix because some of these relocs might need
special handling for proper NewABI support.


Thiemo


2001-10-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

	/gas/ChangeLog
	* config/tc-mips.c (md_apply_fix): Preliminary handling of NewABI
	relocations.


diff -BurpNX /bigdisk/src/binutils-exclude src-orig/gas/config/tc-mips.c src/gas/config/tc-mips.c
--- src-orig/gas/config/tc-mips.c	Sat Oct 13 19:41:13 2001
+++ src/gas/config/tc-mips.c	Mon Oct 15 07:32:21 2001
@@ -10239,6 +10239,21 @@ md_apply_fix (fixP, valueP)
   switch (fixP->fx_r_type)
     {
     case BFD_RELOC_MIPS_JMP:
+    case BFD_RELOC_MIPS_SHIFT5:
+    case BFD_RELOC_MIPS_SHIFT6:
+    case BFD_RELOC_MIPS_GOT_DISP:
+    case BFD_RELOC_MIPS_GOT_PAGE:
+    case BFD_RELOC_MIPS_GOT_OFST:
+    case BFD_RELOC_MIPS_SUB:
+    case BFD_RELOC_MIPS_INSERT_A:
+    case BFD_RELOC_MIPS_INSERT_B:
+    case BFD_RELOC_MIPS_DELETE:
+    case BFD_RELOC_MIPS_HIGHEST:
+    case BFD_RELOC_MIPS_HIGHER:
+    case BFD_RELOC_MIPS_SCN_DISP:
+    case BFD_RELOC_MIPS_REL16:
+    case BFD_RELOC_MIPS_RELGOT:
+    case BFD_RELOC_MIPS_JALR:
     case BFD_RELOC_HI16:
     case BFD_RELOC_HI16_S:
     case BFD_RELOC_MIPS_GPREL:



More information about the Binutils mailing list