30 #define BYTES_IN_WORD 4
31 #define PA_PAGESIZE 0x1000
149 #define HPPA_R_ARG_RELOC(a) \
150 (((a) >> 22) & 0x3ff)
151 #define HPPA_R_CONSTANT(a) \
152 ((((bfd_signed_vma)(a)) << (BFD_ARCH_SIZE - 22)) >> (BFD_ARCH_SIZE - 22))
153 #define HPPA_R_ADDEND(r, c) \
154 (((r) << 22) + ((c)&0x3fffff))
181 int signbit = (1 << (
len - 1));
182 int mask = (signbit << 1) - 1;
183 return ((
x &
mask) ^ signbit) - signbit;
188 return (
x >> 1) - ((
x & 1) << (
len - 1));
199 len_ones = (1 <<
len) - 1;
209 sign = (
x >> (
len - 1)) & 1;
213 return (temp << 1) | sign;
218 return (((as3 & 4) << (13 - 2)) | ((as3 & 3) << (13 + 1)));
223 return (((as12 & 0x800) >> 11) | ((as12 & 0x400) >> (10 - 2)) | ((as12 & 0x3ff) << (1 + 2)));
228 return (((as14 & 0x1fff) << 1) | ((as14 & 0x2000) >> 13));
236 t = (as16 << 1) & 0xffff;
238 return (t ^
s ^ (
s >> 1)) | (
s >> 15);
243 return (((as17 & 0x10000) >> 16) | ((as17 & 0x0f800) << (16 - 11)) | ((as17 & 0x00400) >> (10 - 2)) | ((as17 & 0x003ff) << (1 + 2)));
248 return (((as21 & 0x100000) >> 20) | ((as21 & 0x0ffe00) >> 8) | ((as21 & 0x000180) << 7) | ((as21 & 0x00007c) << 14) | ((as21 & 0x000003) << 12));
253 return (((as22 & 0x200000) >> 21) | ((as22 & 0x1f0000) << (21 - 16)) | ((as22 & 0x00f800) << (16 - 11)) | ((as22 & 0x000400) >> (10 - 2)) | ((as22 & 0x0003ff) << (1 + 2)));
272 value = sym_val + addend;
328 value = sym_val + ((addend + 0x1000) & -0x2000);
338 value = (sym_val & 0x7ff) + (((addend & 0x1fff) ^ 0x1000) - 0x1000);
348 #define get_opcode(insn) (((insn) >> 26) & 0x3f)
487 if ((insn & 0x8000) != 0)
static int hppa_rebuild_insn(int, int, int) ATTRIBUTE_UNUSED
static int re_assemble_12(int) ATTRIBUTE_UNUSED
static int re_assemble_3(int) ATTRIBUTE_UNUSED
static int re_assemble_21(int) ATTRIBUTE_UNUSED
hppa_reloc_field_selector_type_alt
hppa_reloc_field_selector_type
static int re_assemble_17(int) ATTRIBUTE_UNUSED
static int low_sign_unext(int, int) ATTRIBUTE_UNUSED
static bfd_signed_vma hppa_field_adjust(bfd_vma, bfd_signed_vma, enum hppa_reloc_field_selector_type_alt) ATTRIBUTE_UNUSED
static int re_assemble_16(int) ATTRIBUTE_UNUSED
static int sign_unext(int, int) ATTRIBUTE_UNUSED
static int bfd_hppa_insn2fmt(bfd *, int) ATTRIBUTE_UNUSED
static int low_sign_extend(int, int) ATTRIBUTE_UNUSED
static int sign_extend(int, int) ATTRIBUTE_UNUSED
static int re_assemble_14(int) ATTRIBUTE_UNUSED
static int re_assemble_22(int) ATTRIBUTE_UNUSED
BFD_HOST_64_BIT bfd_signed_vma
BFD_HOST_U_64_BIT bfd_vma
const struct bfd_arch_info * arch_info