This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] rl78: fix relax type logic
- From: DJ Delorie <dj at redhat dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 26 Aug 2014 17:02:51 -0400
- Subject: Re: [patch] rl78: fix relax type logic
- Authentication-results: sourceware.org; auth=none
- References: <201408261804 dot s7QI4kgC021261 at greed dot delorie dot com> <87vbpfawij dot fsf at redhat dot com>
> grepping for RL78_RELAXA_MASK shows only places where it is used, not
> declared. Maybe there's a following commit coming? :-)
There is now :-) (our internal working tree is a patch or two ahead of
fsf)
* rl78.h (RL78_RELAXA_MASK): New. Relax types are enums, not bits
diff --git a/include/elf/rl78.h b/include/elf/rl78.h
index 342932d..1a526fa 100644
--- a/include/elf/rl78.h
+++ b/include/elf/rl78.h
@@ -109,6 +109,7 @@ END_RELOC_NUMBERS (R_RL78_max)
#define E_FLAG_RL78_G10 (1 << 2) /* CPU is missing register banks 1-3, so uses different ABI. */
/* These define the addend field of R_RL78_RH_RELAX relocations. */
+#define RL78_RELAXA_MASK 0x000000f0 /* Mask for relax types */
#define RL78_RELAXA_BRA 0x00000010 /* Any type of branch (must be decoded). */
#define RL78_RELAXA_ADDR16 0x00000020 /* addr16->sfr/saddr opportunity */
#define RL78_RELAXA_RNUM 0x0000000f /* Number of associated relocations. */