mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-07 13:39:43 +08:00
HOWTO_RSIZE
Define a helper macro for HOWTO. * reloc.c (HOWTO_RSIZE): Define. (HOWTO): Use it. * bfd-in2.h: Regenerate.
This commit is contained in:
parent
47be149aca
commit
3418a349c6
@ -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, \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user