diff options
author | Alan Modra <amodra@gmail.com> | 2022-06-08 09:33:42 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-06-08 21:28:48 +0930 |
commit | 3418a349c624257d6a47a299901b9e996469acba (patch) | |
tree | 792e4fc01b1b5930b47efd2f163ef5f9cea94430 /bfd/reloc.c | |
parent | 47be149aca50ce421d2f4be5586aeb8ff45caa97 (diff) | |
download | gdb-3418a349c624257d6a47a299901b9e996469acba.zip gdb-3418a349c624257d6a47a299901b9e996469acba.tar.gz gdb-3418a349c624257d6a47a299901b9e996469acba.tar.bz2 |
HOWTO_RSIZE
Define a helper macro for HOWTO.
* reloc.c (HOWTO_RSIZE): Define.
(HOWTO): Use it.
* bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r-- | bfd/reloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c index 3d1768f..d0b2b20 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -375,9 +375,10 @@ DESCRIPTION The HOWTO macro fills in a reloc_howto_type (a typedef for const struct reloc_howto_struct). +.#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 } DESCRIPTION |