summaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-06-08 09:33:42 +0930
committerAlan Modra <amodra@gmail.com>2022-06-08 21:28:48 +0930
commit3418a349c624257d6a47a299901b9e996469acba (patch)
tree792e4fc01b1b5930b47efd2f163ef5f9cea94430 /bfd/bfd-in2.h
parent47be149aca50ce421d2f4be5586aeb8ff45caa97 (diff)
HOWTO_RSIZE
Define a helper macro for HOWTO. * reloc.c (HOWTO_RSIZE): Define. (HOWTO): Use it. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 25061e153c..02ba9706c2 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -2135,9 +2135,10 @@ struct reloc_howto_struct
const char *name;
};
+#define HOWTO_RSIZE(sz) (sz < 0 ? -sz : sz)
#define HOWTO(type, right, size, bits, pcrel, left, ovf, func, name, \
inplace, src_mask, dst_mask, pcrel_off) \
- { (unsigned) type, size < 0 ? -size : size, bits, right, left, ovf, \
+ { (unsigned) type, HOWTO_RSIZE (size), bits, right, left, ovf, \
size < 0, pcrel, inplace, pcrel_off, src_mask, dst_mask, func, name }
#define EMPTY_HOWTO(C) \
HOWTO ((C), 0, 0, 0, false, 0, complain_overflow_dont, NULL, \