From 58332ddae8627321b36b1210aaa21d2ca5a4c2d0 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 7 Sep 2009 18:08:52 +0000 Subject: [PATCH] binutils/ * readelf.c (is_none_reloc , is_none_reloc ): New. --- binutils/ChangeLog | 5 +++++ binutils/readelf.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e44742515c0..d9c1562f820 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2009-09-07 Jan Kratochvil + + * readelf.c (is_none_reloc , is_none_reloc ): + New. + 2009-09-07 Jan Kratochvil * dwarf.c (process_debug_info): Support section padding abbrev codes. diff --git a/binutils/readelf.c b/binutils/readelf.c index a8c16914c32..09a4b1cef6e 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -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; } -- 2.30.2