This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch 3/3] unordered FAILs: readelf R_XTENSA_DIFF* (xtensa-elf)
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: binutils at sourceware dot org
- Date: Mon, 7 Sep 2009 05:33:36 +0200
- Subject: [patch 3/3] unordered FAILs: readelf R_XTENSA_DIFF* (xtensa-elf)
Hi,
readelf could complain:
readelf: Warning: unable to apply unsupported reloc type 19 to section .debug_info
Due to:
Relocation section '.rela.debug_info' at offset 0x50c contains 3 entries:
Offset Info Type Sym. Value Symbol's Name + Addend
00000000 00000b13 R_XTENSA_DIFF32 00000000 .debug_info + 4
00000006 00000f01 R_XTENSA_32 00000000 .debug_abbrev + 0
0000000c 00000713 R_XTENSA_DIFF32 00000000 .debug_ranges + 0
This patch also fixes (similar messages):
Running gas/testsuite/gas/lns/lns.exp ...
-FAIL: lns-duplicate
+PASS: lns-duplicate
-FAIL: lns-big-delta
+PASS: lns-big-delta
binutils/
2009-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
* readelf.c (is_none_reloc <EM_XTENSA_OLD>, is_none_reloc <EM_XTENSA>):
New.
--- binutils/readelf.c 17 Aug 2009 08:34:37 -0000 1.454
+++ binutils/readelf.c 30 Aug 2009 14:43:03 -0000
@@ -8163,6 +8163,12 @@ is_none_reloc (unsigned int reloc_type)
case EM_MN10300: /* R_MN10300_NONE. */
case EM_M32R: /* R_M32R_NONE. */
return reloc_type == 0;
+ case EM_XTENSA_OLD:
+ case EM_XTENSA:
+ return reloc_type == 0 /* R_XTENSA_NONE. */
+ || reloc_type == 17 /* R_XTENSA_DIFF8. */
+ || reloc_type == 18 /* R_XTENSA_DIFF16. */
+ || reloc_type == 19; /* R_XTENSA_DIFF32. */
}
return FALSE;
}