/netbsd-src/external/gpl3/binutils/dist/bfd/ |
H A D | cpu-ns32k.c | 161 reloc_howto_type *howto = reloc_entry->howto; in do_ns32k_reloc() local 196 if (output_bfd != NULL && ! howto->partial_inplace) in do_ns32k_reloc() 209 if (howto->pc_relative) in do_ns32k_reloc() 241 if (howto->pcrel_offset) in do_ns32k_reloc() 247 if (! howto->partial_inplace) in do_ns32k_reloc() 364 if (howto->complain_on_overflow != complain_overflow_dont) in do_ns32k_reloc() 370 if (howto->rightshift > howto->bitpos) in do_ns32k_reloc() 371 check = relocation >> (howto->rightshift - howto->bitpos); in do_ns32k_reloc() 373 check = relocation << (howto->bitpos - howto->rightshift); in do_ns32k_reloc() 374 switch (howto->complain_on_overflow) in do_ns32k_reloc() [all …]
|
H A D | reloc.c | 522 bfd_reloc_offset_in_range (reloc_howto_type *howto, in bfd_reloc_offset_in_range() argument 528 bfd_size_type reloc_size = bfd_get_reloc_size (howto); in bfd_reloc_offset_in_range() 540 read_reloc (bfd *abfd, bfd_byte *data, reloc_howto_type *howto) in read_reloc() argument 542 switch (bfd_get_reloc_size (howto)) in read_reloc() 574 write_reloc (bfd *abfd, bfd_vma val, bfd_byte *data, reloc_howto_type *howto) in write_reloc() argument 576 switch (bfd_get_reloc_size (howto)) in write_reloc() 612 apply_reloc (bfd *abfd, bfd_byte *data, reloc_howto_type *howto, in apply_reloc() argument 615 bfd_vma val = read_reloc (abfd, data, howto); in apply_reloc() 617 if (howto->negate) in apply_reloc() 620 val = ((val & ~howto->dst_mask) in apply_reloc() [all …]
|
H A D | elf64-bpf.c | 138 bfd_reloc->howto = &bpf_elf_howto_table [i]; in bpf_info_to_howto() 195 reloc_howto_type * howto; in bpf_elf_relocate_section() local 212 howto = &bpf_elf_howto_table[howto_index]; in bpf_elf_relocate_section() 244 rel, 1, relend, howto, 0, contents); in bpf_elf_relocate_section() 249 switch (howto->type) in bpf_elf_relocate_section() 261 addend = bfd_get (howto->bitsize, input_bfd, in bpf_elf_relocate_section() 263 + (howto->bitsize == 16 ? 2 : 4)); in bpf_elf_relocate_section() 265 if ((addend & (((~howto->src_mask) >> 1) & howto->src_mask)) != 0) in bpf_elf_relocate_section() 266 addend -= (((~howto->src_mask) >> 1) & howto->src_mask) << 1; in bpf_elf_relocate_section() 270 bfd_put (howto->bitsize, input_bfd, relocation, in bpf_elf_relocate_section() [all …]
|
H A D | mach-o-arm.c | 175 res->howto = &arm_howto_table[7]; in bfd_mach_o_arm_canonicalize_one_reloc() 181 res->howto = &arm_howto_table[10]; in bfd_mach_o_arm_canonicalize_one_reloc() 192 res->howto = &arm_howto_table[5]; in bfd_mach_o_arm_canonicalize_one_reloc() 197 res->howto = &arm_howto_table[8]; in bfd_mach_o_arm_canonicalize_one_reloc() 207 res->howto = &arm_howto_table[6]; in bfd_mach_o_arm_canonicalize_one_reloc() 212 res->howto = &arm_howto_table[9]; in bfd_mach_o_arm_canonicalize_one_reloc() 224 res->howto = &arm_howto_table[12]; in bfd_mach_o_arm_canonicalize_one_reloc() 227 res->howto = &arm_howto_table[14]; in bfd_mach_o_arm_canonicalize_one_reloc() 247 res->howto = &arm_howto_table[2]; in bfd_mach_o_arm_canonicalize_one_reloc() 250 res->howto = &arm_howto_table[1]; in bfd_mach_o_arm_canonicalize_one_reloc() [all …]
|
H A D | coff-z80.c | 35 reloc_howto_type howto; member 263 if (howto_table[i].howto.type == dst->r_type) in rtype2howto() 265 internal->howto = &howto_table[i].howto; in rtype2howto() 269 internal->howto = NULL; in rtype2howto() 281 return &howto_table[i].howto; in coff_z80_reloc_type_lookup() 293 if (strcasecmp(howto_table[i].howto.name, r_name) == 0) in coff_z80_reloc_name_lookup() 294 return &howto_table[i].howto; in coff_z80_reloc_name_lookup() 344 bfd_size_type reloc_size = bfd_get_reloc_size (reloc->howto); in extra_case() 357 switch (reloc->howto->type) in extra_case() 360 if (reloc->howto->partial_inplace) in extra_case() [all …]
|
H A D | elfxx-loongarch.c | 35 reloc_howto_type howto; member 55 reloc_bits (bfd *abfd, reloc_howto_type *howto, bfd_vma *val); 57 reloc_sign_bits (bfd *abfd, reloc_howto_type *howto, bfd_vma *fix_val); 1891 BFD_ASSERT (loongarch_howto_table[r_type].howto.type == r_type); in loongarch_elf_rtype_to_howto() 1892 return &loongarch_howto_table[r_type].howto; in loongarch_elf_rtype_to_howto() 1905 if (loongarch_howto_table[i].howto.name in loongarch_reloc_name_lookup() 1906 && strcasecmp (loongarch_howto_table[i].howto.name, r_name) == 0) in loongarch_reloc_name_lookup() 1907 return &loongarch_howto_table[i].howto; in loongarch_reloc_name_lookup() 1930 return &ht->howto; in loongarch_reloc_type_lookup() 1935 return &loongarch_howto_table[i].howto; in loongarch_reloc_type_lookup() [all …]
|
H A D | elf32-d10v.c | 239 cache_ptr->howto = &elf_d10v_howto_table[r_type]; in d10v_info_to_howto_rel() 323 reloc_howto_type *howto) in extract_rel_addend() argument 327 switch (bfd_get_reloc_size (howto)) in extract_rel_addend() 342 val = (insn & howto->dst_mask) >> howto->bitpos << howto->rightshift; in extract_rel_addend() 345 if (howto->pc_relative) in extract_rel_addend() 348 sign = howto->dst_mask & (~howto->dst_mask >> 1 | ~(-(bfd_vma) 1 >> 1)); in extract_rel_addend() 349 sign = sign >> howto->bitpos << howto->rightshift; in extract_rel_addend() 358 reloc_howto_type *howto, in insert_rel_addend() argument 363 addend = (addend >> howto->rightshift << howto->bitpos) & howto->dst_mask; in insert_rel_addend() 364 insn = ~howto->dst_mask; in insert_rel_addend() [all …]
|
H A D | mach-o-aarch64.c | 175 res->howto = &arm64_howto_table[10]; in bfd_mach_o_arm64_canonicalize_one_reloc() 190 res->howto = &arm64_howto_table[3]; in bfd_mach_o_arm64_canonicalize_one_reloc() 193 res->howto = &arm64_howto_table[2]; in bfd_mach_o_arm64_canonicalize_one_reloc() 196 res->howto = &arm64_howto_table[6]; in bfd_mach_o_arm64_canonicalize_one_reloc() 199 res->howto = &arm64_howto_table[1]; in bfd_mach_o_arm64_canonicalize_one_reloc() 202 res->howto = &arm64_howto_table[5]; in bfd_mach_o_arm64_canonicalize_one_reloc() 205 res->howto = &arm64_howto_table[0]; in bfd_mach_o_arm64_canonicalize_one_reloc() 208 res->howto = &arm64_howto_table[4]; in bfd_mach_o_arm64_canonicalize_one_reloc() 220 res->howto = &arm64_howto_table[11]; in bfd_mach_o_arm64_canonicalize_one_reloc() 223 res->howto = &arm64_howto_table[12]; in bfd_mach_o_arm64_canonicalize_one_reloc() [all …]
|
H A D | elfxx-kvx.c | 65 reloc_howto_type *howto, in _bfd_kvx_elf_put_addend() argument 72 size = bfd_get_reloc_size (howto); in _bfd_kvx_elf_put_addend() 79 if (howto->src_mask != 0xffffffff) in _bfd_kvx_elf_put_addend() 93 switch (howto->complain_on_overflow) in _bfd_kvx_elf_put_addend() 99 howto->bitsize + howto->rightshift); in _bfd_kvx_elf_put_addend() 103 howto->bitsize + howto->rightshift); in _bfd_kvx_elf_put_addend() 110 addend >>= howto->rightshift; in _bfd_kvx_elf_put_addend() 126 addend <<= howto->bitpos; in _bfd_kvx_elf_put_addend() 127 contents = ((contents & ~howto->dst_mask) | (addend & howto->dst_mask)); in _bfd_kvx_elf_put_addend() 135 if (howto->dst_mask != 0xffffffff) in _bfd_kvx_elf_put_addend()
|
/netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
H A D | cpu-ns32k.c | 161 reloc_howto_type *howto = reloc_entry->howto; in do_ns32k_reloc() local 196 if (output_bfd != NULL && ! howto->partial_inplace) in do_ns32k_reloc() 209 if (howto->pc_relative) in do_ns32k_reloc() 241 if (howto->pcrel_offset) in do_ns32k_reloc() 247 if (! howto->partial_inplace) in do_ns32k_reloc() 364 if (howto->complain_on_overflow != complain_overflow_dont) in do_ns32k_reloc() 370 if (howto->rightshift > howto->bitpos) in do_ns32k_reloc() 371 check = relocation >> (howto->rightshift - howto->bitpos); in do_ns32k_reloc() 373 check = relocation << (howto->bitpos - howto->rightshift); in do_ns32k_reloc() 374 switch (howto->complain_on_overflow) in do_ns32k_reloc() [all …]
|
H A D | reloc.c | 517 bfd_reloc_offset_in_range (reloc_howto_type *howto, in bfd_reloc_offset_in_range() argument 523 bfd_size_type reloc_size = bfd_get_reloc_size (howto); in bfd_reloc_offset_in_range() 535 read_reloc (bfd *abfd, bfd_byte *data, reloc_howto_type *howto) in read_reloc() argument 537 switch (bfd_get_reloc_size (howto)) in read_reloc() 569 write_reloc (bfd *abfd, bfd_vma val, bfd_byte *data, reloc_howto_type *howto) in write_reloc() argument 571 switch (bfd_get_reloc_size (howto)) in write_reloc() 607 apply_reloc (bfd *abfd, bfd_byte *data, reloc_howto_type *howto, in apply_reloc() argument 610 bfd_vma val = read_reloc (abfd, data, howto); in apply_reloc() 612 if (howto->negate) in apply_reloc() 615 val = ((val & ~howto->dst_mask) in apply_reloc() [all …]
|
H A D | elfxx-loongarch.c | 35 reloc_howto_type howto; member 53 bool loongarch_gen_adjust_reloc_bits (reloc_howto_type *howto, bfd_vma *val); 54 bool loongarch_adjust_reloc_bits_l16_xx5_h5 (reloc_howto_type *howto, 56 bool loongarch_adjust_reloc_bits_l16_h10 (reloc_howto_type *howto, 697 if (loongarch_howto_table[r_type].howto.type == r_type) in loongarch_elf_rtype_to_howto() 700 BFD_ASSERT (loongarch_howto_table[r_type].howto.type == r_type); in loongarch_elf_rtype_to_howto() 703 if (loongarch_howto_table[i].howto.type == r_type) in loongarch_elf_rtype_to_howto() 719 if (loongarch_howto_table[i].howto.name in loongarch_reloc_name_lookup() 720 && strcasecmp (loongarch_howto_table[i].howto.name, r_name) == 0) in loongarch_reloc_name_lookup() 761 bool loongarch_gen_adjust_reloc_bits (reloc_howto_type *howto, bfd_vma *fix_val) in loongarch_gen_adjust_reloc_bits() argument [all …]
|
H A D | mach-o-arm.c | 175 res->howto = &arm_howto_table[7]; in bfd_mach_o_arm_canonicalize_one_reloc() 181 res->howto = &arm_howto_table[10]; in bfd_mach_o_arm_canonicalize_one_reloc() 192 res->howto = &arm_howto_table[5]; in bfd_mach_o_arm_canonicalize_one_reloc() 197 res->howto = &arm_howto_table[8]; in bfd_mach_o_arm_canonicalize_one_reloc() 207 res->howto = &arm_howto_table[6]; in bfd_mach_o_arm_canonicalize_one_reloc() 212 res->howto = &arm_howto_table[9]; in bfd_mach_o_arm_canonicalize_one_reloc() 224 res->howto = &arm_howto_table[12]; in bfd_mach_o_arm_canonicalize_one_reloc() 227 res->howto = &arm_howto_table[14]; in bfd_mach_o_arm_canonicalize_one_reloc() 247 res->howto = &arm_howto_table[2]; in bfd_mach_o_arm_canonicalize_one_reloc() 250 res->howto = &arm_howto_table[1]; in bfd_mach_o_arm_canonicalize_one_reloc() [all …]
|
H A D | coff-z80.c | 35 reloc_howto_type howto; member 263 if (howto_table[i].howto.type == dst->r_type) in rtype2howto() 265 internal->howto = &howto_table[i].howto; in rtype2howto() 269 internal->howto = NULL; in rtype2howto() 281 return &howto_table[i].howto; in coff_z80_reloc_type_lookup() 293 if (strcasecmp(howto_table[i].howto.name, r_name) == 0) in coff_z80_reloc_name_lookup() 294 return &howto_table[i].howto; in coff_z80_reloc_name_lookup() 345 switch (reloc->howto->type) in extra_case() 348 if (reloc->howto->partial_inplace) in extra_case() 350 & reloc->howto->src_mask); in extra_case() [all …]
|
H A D | elf64-bpf.c | 331 bfd_reloc->howto = &bpf_elf_howto_table [r_type]; in bpf_info_to_howto() 388 reloc_howto_type * howto; in bpf_elf_relocate_section() local 402 howto = bpf_elf_howto_table + ELF64_R_TYPE (rel->r_info); in bpf_elf_relocate_section() 434 rel, 1, relend, howto, 0, contents); in bpf_elf_relocate_section() 439 switch (howto->type) in bpf_elf_relocate_section() 452 addend = bfd_get (howto->bitsize, input_bfd, in bpf_elf_relocate_section() 454 + (howto->bitsize == 16 ? 2 : 4)); in bpf_elf_relocate_section() 456 if ((addend & (((~howto->src_mask) >> 1) & howto->src_mask)) != 0) in bpf_elf_relocate_section() 457 addend -= (((~howto->src_mask) >> 1) & howto->src_mask) << 1; in bpf_elf_relocate_section() 461 bfd_put (howto->bitsize, input_bfd, relocation, in bpf_elf_relocate_section() [all …]
|
H A D | elf32-d10v.c | 239 cache_ptr->howto = &elf_d10v_howto_table[r_type]; in d10v_info_to_howto_rel() 323 reloc_howto_type *howto) in extract_rel_addend() argument 327 switch (bfd_get_reloc_size (howto)) in extract_rel_addend() 342 val = (insn & howto->dst_mask) >> howto->bitpos << howto->rightshift; in extract_rel_addend() 345 if (howto->pc_relative) in extract_rel_addend() 348 sign = howto->dst_mask & (~howto->dst_mask >> 1 | ~(-(bfd_vma) 1 >> 1)); in extract_rel_addend() 349 sign = sign >> howto->bitpos << howto->rightshift; in extract_rel_addend() 358 reloc_howto_type *howto, in insert_rel_addend() argument 363 addend = (addend >> howto->rightshift << howto->bitpos) & howto->dst_mask; in insert_rel_addend() 364 insn = ~howto->dst_mask; in insert_rel_addend() [all …]
|
H A D | mach-o-aarch64.c | 175 res->howto = &arm64_howto_table[10]; in bfd_mach_o_arm64_canonicalize_one_reloc() 190 res->howto = &arm64_howto_table[3]; in bfd_mach_o_arm64_canonicalize_one_reloc() 193 res->howto = &arm64_howto_table[2]; in bfd_mach_o_arm64_canonicalize_one_reloc() 196 res->howto = &arm64_howto_table[6]; in bfd_mach_o_arm64_canonicalize_one_reloc() 199 res->howto = &arm64_howto_table[1]; in bfd_mach_o_arm64_canonicalize_one_reloc() 202 res->howto = &arm64_howto_table[5]; in bfd_mach_o_arm64_canonicalize_one_reloc() 205 res->howto = &arm64_howto_table[0]; in bfd_mach_o_arm64_canonicalize_one_reloc() 208 res->howto = &arm64_howto_table[4]; in bfd_mach_o_arm64_canonicalize_one_reloc() 220 res->howto = &arm64_howto_table[11]; in bfd_mach_o_arm64_canonicalize_one_reloc() 223 res->howto = &arm64_howto_table[12]; in bfd_mach_o_arm64_canonicalize_one_reloc() [all …]
|
H A D | coff-i386.c | 109 reloc_howto_type *howto = reloc_entry->howto; in coff_i386_reloc() local 118 if (howto->pc_relative && howto->pcrel_offset) in coff_i386_reloc() 119 diff = -bfd_get_reloc_size (howto); in coff_i386_reloc() 132 if (reloc_entry->howto->type == R_IMAGEBASE in coff_i386_reloc() 139 x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + diff) & howto->dst_mask)) in coff_i386_reloc() 143 reloc_howto_type *howto = reloc_entry->howto; in coff_i386_reloc() local 148 if (!bfd_reloc_offset_in_range (howto, abfd, input_section, octets)) in coff_i386_reloc() 151 switch (bfd_get_reloc_size (howto)) in coff_i386_reloc() 191 in_reloc_p (bfd *abfd ATTRIBUTE_UNUSED, reloc_howto_type *howto) in in_reloc_p() argument 193 return ! howto->pc_relative in in_reloc_p() [all …]
|
/netbsd-src/external/gpl3/binutils.old/dist/bfd/doc/ |
H A D | bfd.info | 3333 * howto manager:: 3336 File: bfd.info, Node: typedef arelent, Next: howto manager, Prev: Relocations, Up: Relocations 3389 reloc_howto_type *howto; 3417 the relocation offset. Its interpretation is dependent upon the howto. 3498 * `howto' 3499 The `howto' field can be imagined as a relocation instruction. It is 3504 would be possible to create each howto field on demand. 3633 This is used to fill in an empty howto entry in an array. 3639 bfd_get_reloc_size (reloc_howto_type *howto) 3641 return howto->size; [all …]
|
/netbsd-src/external/gpl3/binutils/dist/bfd/doc/ |
H A D | bfd.info | 2875 * howto manager:: 2878 File: bfd.info, Node: typedef arelent, Next: howto manager, Prev: Relocations, Up: Relocations 2897 reloc_howto_type *howto; 2924 the relocation offset. Its interpretation is dependent upon the howto. 3005 • ‘howto’ 3006 The ‘howto’ field can be imagined as a relocation instruction. It is 3011 would be possible to create each howto field on demand. 3146 This is used to fill in an empty howto entry in an array. 3152 bfd_get_reloc_size (reloc_howto_type *howto) 3154 return howto->size; [all …]
|
/netbsd-src/sbin/reboot/ |
H A D | reboot.c | 74 int ch, howto, lflag, nflag, qflag, sverrno, len; in main() local 83 howto = RB_HALT; in main() 86 howto = RB_HALT | RB_POWERDOWN; in main() 88 howto = 0; in main() 93 howto |= RB_DUMP; in main() 100 howto |= RB_NOSYNC; in main() 105 howto |= RB_POWERDOWN; in main() 111 howto |= AB_VERBOSE; in main() 114 howto |= AB_DEBUG; in main() 117 howto |= AB_SILENT; in main() [all …]
|
/netbsd-src/sys/arch/evbmips/malta/ |
H A D | machdep.c | 239 int howto; in mach_init() local 244 howto = 0; in mach_init() 245 BOOT_FLAG(*cp, howto); in mach_init() 246 if (! howto) in mach_init() 249 boothowto |= howto; in mach_init() 319 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument 326 howto |= RB_HALT; in cpu_reboot() 332 howto |= RB_HALT; in cpu_reboot() 334 boothowto = howto; in cpu_reboot() 335 if ((howto & RB_NOSYNC) == 0 && (waittime < 0)) { in cpu_reboot() [all …]
|
/netbsd-src/sys/arch/zaurus/stand/zboot/ |
H A D | boot.c | 86 static int exec_netbsd(const char *file, int howto); 251 bootit(const char *filename, int howto, int tell) in bootit() argument 256 if (howto) in bootit() 257 printf(" (howto 0x%x)", howto); in bootit() 261 if (exec_netbsd(filename, howto) < 0) { in bootit() 270 exec_netbsd(const char *file, int howto) in exec_netbsd() argument 276 bi_howto.howto = howto; in exec_netbsd() 295 static int parseopts(const char *opts, int *howto); 296 static int parseboot(char *arg, char **filename, int *howto); 340 int howto; in bootcmd_boot() local [all …]
|
/netbsd-src/sys/arch/landisk/stand/boot/ |
H A D | boot2.c | 80 void bootit(const char *filename, int howto, int tell); 84 int exec_netbsd(const char *file, int howto); 87 static int parseopts(const char *opts, int *howto); 88 static int parseboot(char *arg, char **filename, int *howto); 194 bootit(const char *filename, int howto, int tell) in bootit() argument 199 if (howto) in bootit() 200 printf(" (howto 0x%x)", howto); in bootit() 204 if (exec_netbsd(filename, howto) < 0) { in bootit() 268 exec_netbsd(const char *file, int howto) in exec_netbsd() argument 301 (*(void (*)(int, void *))marks[MARK_ENTRY])(howto, bibuf); in exec_netbsd() [all …]
|
/netbsd-src/sys/arch/mipsco/mipsco/ |
H A D | machdep.c | 164 int i, howto; in mach_init() local 240 howto = 0; in mach_init() 241 BOOT_FLAG(*cp, howto); in mach_init() 242 if (! howto) in mach_init() 245 boothowto |= howto; in mach_init() 343 prom_halt(int howto) in prom_halt() argument 345 if (howto & RB_HALT) in prom_halt() 352 cpu_reboot(volatile int howto, char *bootstr) in cpu_reboot() argument 364 howto |= RB_HALT; in cpu_reboot() 370 howto |= RB_HALT; in cpu_reboot() [all …]
|