| /NextBSD/sys/boot/userboot/userboot/ |
| HD | bootinfo.c | 44 int howto; in bi_getboothowto() local 50 howto = 0; in bi_getboothowto() 60 howto |= RB_ASKNAME; in bi_getboothowto() 63 howto |= RB_CDROM; in bi_getboothowto() 66 howto |= RB_KDB; in bi_getboothowto() 69 howto |= RB_MULTIPLE; in bi_getboothowto() 72 howto |= RB_MUTE; in bi_getboothowto() 75 howto |= RB_GDB; in bi_getboothowto() 78 howto |= RB_SERIAL; in bi_getboothowto() 81 howto |= RB_PAUSE; in bi_getboothowto() [all …]
|
| /NextBSD/sys/boot/i386/libi386/ |
| HD | bootinfo.c | 44 int howto; in bi_getboothowto() local 50 howto = 0; in bi_getboothowto() 60 howto |= RB_ASKNAME; in bi_getboothowto() 63 howto |= RB_CDROM; in bi_getboothowto() 66 howto |= RB_KDB; in bi_getboothowto() 69 howto |= RB_MULTIPLE; in bi_getboothowto() 72 howto |= RB_MUTE; in bi_getboothowto() 75 howto |= RB_GDB; in bi_getboothowto() 78 howto |= RB_SERIAL; in bi_getboothowto() 81 howto |= RB_PAUSE; in bi_getboothowto() [all …]
|
| /NextBSD/contrib/binutils/bfd/ |
| HD | reloc.c | 434 bfd_get_reloc_size (reloc_howto_type *howto) in bfd_get_reloc_size() argument 436 switch (howto->size) in bfd_get_reloc_size() 587 reloc_howto_type *howto = reloc_entry->howto; in bfd_perform_relocation() local 610 if (howto->special_function) in bfd_perform_relocation() 613 cont = howto->special_function (abfd, reloc_entry, symbol, data, in bfd_perform_relocation() 636 if ((output_bfd && ! howto->partial_inplace) in bfd_perform_relocation() 650 if (howto->pc_relative) in bfd_perform_relocation() 683 if (howto->pcrel_offset) in bfd_perform_relocation() 689 if (! howto->partial_inplace) in bfd_perform_relocation() 803 if (howto->complain_on_overflow != complain_overflow_dont in bfd_perform_relocation() [all …]
|
| HD | coff-i386.c | 111 reloc_howto_type *howto = reloc_entry->howto; local 120 if (howto->pc_relative && howto->pcrel_offset) 121 diff = -(1 << howto->size); 134 if (reloc_entry->howto->type == R_IMAGEBASE 141 x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + diff) & howto->dst_mask)) 145 reloc_howto_type *howto = reloc_entry->howto; local 148 switch (howto->size) 189 static bfd_boolean in_reloc_p (abfd, howto) in in_reloc_p() argument 191 reloc_howto_type *howto; 193 return ! howto->pc_relative && howto->type != R_IMAGEBASE; [all …]
|
| HD | coff-x86_64.c | 103 reloc_howto_type *howto = reloc_entry->howto; in coff_amd64_reloc() local 112 if(howto->pc_relative && howto->pcrel_offset) in coff_amd64_reloc() 113 diff = -(1 << howto->size); in coff_amd64_reloc() 126 if (reloc_entry->howto->type == R_AMD64_IMAGEBASE in coff_amd64_reloc() 133 x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + diff) & howto->dst_mask)) in coff_amd64_reloc() 137 reloc_howto_type *howto = reloc_entry->howto; in coff_amd64_reloc() local 140 switch (howto->size) in coff_amd64_reloc() 187 in_reloc_p (bfd *abfd ATTRIBUTE_UNUSED, reloc_howto_type *howto) in in_reloc_p() argument 189 return ! howto->pc_relative && howto->type != R_AMD64_IMAGEBASE; in in_reloc_p() 446 #define SELECT_RELOC(x,howto) { x.r_type = howto->type; } argument [all …]
|
| HD | pe-mips.c | 90 …x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + (diff >> howto->rightshift)) & howto->dst_… in coff_mips_reloc() 94 reloc_howto_type *howto = reloc_entry->howto; in coff_mips_reloc() local 97 switch (howto->size) in coff_mips_reloc() 140 in_reloc_p (bfd * abfd ATTRIBUTE_UNUSED, reloc_howto_type *howto) in in_reloc_p() argument 142 return ! howto->pc_relative && howto->type != MIPS_R_RVA; in in_reloc_p() 338 #define SELECT_RELOC(x, howto) { x.r_type = howto->type; } argument 345 (cache_ptr)->howto = howto_table + (dst)->r_type; 391 reloc_howto_type *howto; in coff_mips_rtype_to_howto() local 393 howto = howto_table + rel->r_type; in coff_mips_rtype_to_howto() 399 if (howto->pc_relative) in coff_mips_rtype_to_howto() [all …]
|
| HD | coff-rs6000.c | 78 #define SELECT_RELOC(internal, howto) \ argument 80 internal.r_type = howto->type; \ 82 ((howto->complain_on_overflow == complain_overflow_signed \ 85 | (howto->bitsize - 1)); \ 1003 relent->howto = &xcoff_howto_table[internal->r_type]; 1009 relent->howto = &xcoff_howto_table[0x1c]; 1011 relent->howto = &xcoff_howto_table[0x1d]; 1013 relent->howto = &xcoff_howto_table[0x1e]; 1021 if (relent->howto->dst_mask != 0 1022 && (relent->howto->bitsize [all …]
|
| HD | aout-arm.c | 145 reloc_howto_type *howto, in MY() 154 r_length = howto->size; in MY() 157 if (howto->type == 3 || howto->type == 7) in MY() 160 r_pcrel = howto->type & 4; /* PC Relative done? */ in MY() 161 r_neg = howto->type & 8; /* Negative relocation. */ in MY() 191 MY (relocatable_reloc) (reloc_howto_type *howto, in MY() 197 if (howto->type == 3) in MY() 215 else if (howto->type == 7) in MY() 287 reloc_entry->howto = &MY (howto_table)[7]; in MY() 360 cache_ptr->howto = MY_reloc_howto (abfd, bytes, r_index, r_extern, r_pcrel); in MY_swap_std_reloc_in() [all …]
|
| HD | coff-ppc.c | 364 static bfd_boolean in_reloc_p PARAMS((bfd *abfd, reloc_howto_type *howto)); 966 static bfd_boolean in_reloc_p(abfd, howto) in in_reloc_p() argument 968 reloc_howto_type *howto; 971 (! howto->pc_relative) 972 && (howto->type != IMAGE_REL_PPC_ADDR32NB) 973 && (howto->type != IMAGE_REL_PPC_TOCREL16) 974 && (howto->type != IMAGE_REL_PPC_IMGLUE) 975 && (howto->type != IMAGE_REL_PPC_IFGLUE) 976 && (howto->type != IMAGE_REL_PPC_SECREL) 977 && (howto->type != IMAGE_REL_PPC_SECTION) [all …]
|
| HD | elf32-score.c | 409 if (reloc_entry->howto->partial_inplace) in gprel32_with_gp() 419 if (reloc_entry->howto->partial_inplace) in gprel32_with_gp() 1750 reloc_howto_type *howto, in score_elf_add_to_rel() argument 1756 unsigned long r_type = howto->type; in score_elf_add_to_rel() 1761 addend = contents & howto->src_mask; in score_elf_add_to_rel() 1762 if (addend & ((howto->src_mask + 1) >> 1)) in score_elf_add_to_rel() 1767 mask &= ~howto->src_mask; in score_elf_add_to_rel() 1775 (((contents & howto->src_mask) & 0x3ff0000) >> 6) | ((contents & howto->src_mask) & 0x3ff); in score_elf_add_to_rel() 1778 (contents & ~howto-> in score_elf_add_to_rel() 1779 src_mask) | (((offset << 6) & howto->src_mask) & 0x3ff0000) | (offset & 0x3ff); in score_elf_add_to_rel() [all …]
|
| HD | coff-arm.c | 110 x = ((x & ~howto->dst_mask) \ in coff_arm_reloc() 111 | (((x & howto->src_mask) + diff) & howto->dst_mask)) in coff_arm_reloc() 115 reloc_howto_type *howto = reloc_entry->howto; in coff_arm_reloc() local 118 switch (howto->size) in coff_arm_reloc() 509 reloc_howto_type * howto) in in_reloc_p() argument 511 return !howto->pc_relative && howto->type != ARM_RVA32; in in_reloc_p() 516 (cache_ptr)->howto = \ 531 reloc_howto_type * howto; in coff_arm_rtype_to_howto() local 536 howto = aoutarm_std_reloc_howto + rel->r_type; in coff_arm_rtype_to_howto() 567 return howto; in coff_arm_rtype_to_howto() [all …]
|
| HD | coff64-rs6000.c | 222 #define SELECT_RELOC(internal, howto) \ argument 224 internal.r_type = howto->type; \ 226 ((howto->complain_on_overflow == complain_overflow_signed \ 229 | (howto->bitsize - 1)); \ 1101 xcoff64_reloc_type_br (input_bfd, input_section, output_bfd, rel, sym, howto, in xcoff64_reloc_type_br() argument 1108 struct reloc_howto_struct *howto; 1161 howto->complain_on_overflow = complain_overflow_dont; 1164 howto->pc_relative = TRUE; 1165 howto->src_mask &= ~3; 1166 howto->dst_mask = howto->src_mask; [all …]
|
| HD | bout.c | 318 if (g->howto== &howto_reloc_callj) in b_out_squirt_out_relocs() 320 else if (g->howto == &howto_reloc_pcrel24) in b_out_squirt_out_relocs() 322 else if (g->howto == &howto_reloc_pcrel13) in b_out_squirt_out_relocs() 324 else if (g->howto == &howto_reloc_abs32code) in b_out_squirt_out_relocs() 326 else if (g->howto >= howto_align_table in b_out_squirt_out_relocs() 327 && g->howto <= (howto_align_table + ARRAY_SIZE (howto_align_table) - 1)) in b_out_squirt_out_relocs() 333 | ((g->howto - howto_align_table) << 1)); in b_out_squirt_out_relocs() 758 cache_ptr->howto = 0; in b_out_slurp_reloc_table() 815 cache_ptr->howto = &howto_align_table[(raw[7] >> length_shift) & 3]; in b_out_slurp_reloc_table() 833 if (cache_ptr->howto != 0) in b_out_slurp_reloc_table() [all …]
|
| HD | elf32-cr16.c | 474 cache_ptr->howto = &cr16_elf_howto_table[r_type]; in elf_cr16_info_to_howto() 480 cr16_elf_final_link_relocate (reloc_howto_type *howto, in cr16_elf_final_link_relocate() argument 492 unsigned short r_type = howto->type; in cr16_elf_final_link_relocate() 534 if (howto->pc_relative) in cr16_elf_final_link_relocate() 548 check = Rvalue >> howto->rightshift; in cr16_elf_final_link_relocate() 553 reloc_bits = (((1 << (howto->bitsize - 1)) - 1) << 1) | 1; in cr16_elf_final_link_relocate() 562 if (howto->rightshift && (bfd_signed_vma) Rvalue < 0) in cr16_elf_final_link_relocate() 566 >> howto->rightshift)); in cr16_elf_final_link_relocate() 577 Rvalue >>= (bfd_vma) howto->rightshift; in cr16_elf_final_link_relocate() 580 Rvalue &= howto->dst_mask; in cr16_elf_final_link_relocate() [all …]
|
| /NextBSD/sbin/reboot/ |
| HD | reboot.c | 70 int ch, howto, i, fd, lflag, nflag, qflag, sverrno, Nflag; in main() local 76 howto = RB_HALT; in main() 78 howto = 0; in main() 83 howto |= RB_DUMP; in main() 93 howto |= RB_NOSYNC; in main() 100 howto |= RB_POWEROFF; in main() 106 howto |= RB_REROOT; in main() 115 if ((howto & (RB_DUMP | RB_HALT)) == (RB_DUMP | RB_HALT)) in main() 117 if (Nflag && (howto & RB_NOSYNC) != 0) in main() 119 if ((howto & RB_REROOT) != 0 && howto != RB_REROOT) in main() [all …]
|
| /NextBSD/sys/boot/mips/beri/loader/ |
| HD | metadata.c | 68 int howto; in md_getboothowto() local 73 howto = 0; in md_getboothowto() 83 howto |= RB_ASKNAME; in md_getboothowto() 86 howto |= RB_CDROM; in md_getboothowto() 89 howto |= RB_KDB; in md_getboothowto() 92 howto |= RB_MULTIPLE; in md_getboothowto() 95 howto |= RB_MUTE; in md_getboothowto() 98 howto |= RB_GDB; in md_getboothowto() 101 howto |= RB_SERIAL; in md_getboothowto() 104 howto |= RB_PAUSE; in md_getboothowto() [all …]
|
| /NextBSD/sys/boot/powerpc/ps3/ |
| HD | metadata.c | 46 int howto; in md_getboothowto() local 51 howto = 0; in md_getboothowto() 61 howto |= RB_ASKNAME; in md_getboothowto() 64 howto |= RB_CDROM; in md_getboothowto() 67 howto |= RB_KDB; in md_getboothowto() 70 howto |= RB_MULTIPLE; in md_getboothowto() 73 howto |= RB_MUTE; in md_getboothowto() 76 howto |= RB_GDB; in md_getboothowto() 79 howto |= RB_SERIAL; in md_getboothowto() 82 howto |= RB_PAUSE; in md_getboothowto() [all …]
|
| /NextBSD/sys/boot/uboot/common/ |
| HD | metadata.c | 54 int howto; in md_getboothowto() local 59 howto = 0; in md_getboothowto() 69 howto |= RB_ASKNAME; in md_getboothowto() 72 howto |= RB_CDROM; in md_getboothowto() 75 howto |= RB_KDB; in md_getboothowto() 78 howto |= RB_MULTIPLE; in md_getboothowto() 81 howto |= RB_MUTE; in md_getboothowto() 84 howto |= RB_GDB; in md_getboothowto() 87 howto |= RB_SERIAL; in md_getboothowto() 90 howto |= RB_PAUSE; in md_getboothowto() [all …]
|
| /NextBSD/sys/boot/powerpc/ofw/ |
| HD | metadata.c | 47 int howto; in md_getboothowto() local 52 howto = 0; in md_getboothowto() 62 howto |= RB_ASKNAME; in md_getboothowto() 65 howto |= RB_CDROM; in md_getboothowto() 68 howto |= RB_KDB; in md_getboothowto() 71 howto |= RB_MULTIPLE; in md_getboothowto() 74 howto |= RB_MUTE; in md_getboothowto() 77 howto |= RB_GDB; in md_getboothowto() 80 howto |= RB_SERIAL; in md_getboothowto() 83 howto |= RB_PAUSE; in md_getboothowto() [all …]
|
| /NextBSD/sys/boot/powerpc/kboot/ |
| HD | metadata.c | 47 int howto; in md_getboothowto() local 52 howto = 0; in md_getboothowto() 62 howto |= RB_ASKNAME; in md_getboothowto() 65 howto |= RB_CDROM; in md_getboothowto() 68 howto |= RB_KDB; in md_getboothowto() 71 howto |= RB_MULTIPLE; in md_getboothowto() 74 howto |= RB_MUTE; in md_getboothowto() 77 howto |= RB_GDB; in md_getboothowto() 80 howto |= RB_SERIAL; in md_getboothowto() 83 howto |= RB_PAUSE; in md_getboothowto() [all …]
|
| /NextBSD/sys/boot/sparc64/loader/ |
| HD | metadata.c | 55 int howto; in md_getboothowto() local 60 howto = 0; in md_getboothowto() 70 howto |= RB_ASKNAME; in md_getboothowto() 73 howto |= RB_CDROM; in md_getboothowto() 76 howto |= RB_KDB; in md_getboothowto() 79 howto |= RB_MULTIPLE; in md_getboothowto() 82 howto |= RB_MUTE; in md_getboothowto() 85 howto |= RB_GDB; in md_getboothowto() 88 howto |= RB_SERIAL; in md_getboothowto() 91 howto |= RB_PAUSE; in md_getboothowto() [all …]
|
| /NextBSD/sys/kern/ |
| HD | kern_shutdown.c | 164 static void shutdown_halt(void *junk, int howto); 165 static void shutdown_panic(void *junk, int howto); 166 static void shutdown_reset(void *junk, int howto); 237 shutdown_nice(int howto) in shutdown_nice() argument 243 if (howto & RB_POWEROFF) in shutdown_nice() 245 else if (howto & RB_HALT) in shutdown_nice() 252 kern_reboot(howto | RB_NOSYNC); in shutdown_nice() 317 kern_reboot(int howto) in kern_reboot() argument 343 EVENTHANDLER_INVOKE(shutdown_pre_sync, howto); in kern_reboot() 348 if (!cold && (howto & RB_NOSYNC) == 0 && once == 0) { in kern_reboot() [all …]
|
| /NextBSD/sys/boot/efi/loader/ |
| HD | bootinfo.c | 72 int howto, i; in bi_getboothowto() local 74 howto = 0; in bi_getboothowto() 79 howto |= howto_names[i].mask; in bi_getboothowto() 85 howto |= RB_SERIAL; in bi_getboothowto() 87 howto |= RB_MUTE; in bi_getboothowto() 92 return (howto); in bi_getboothowto() 100 howto |= howto_masks[sw - howto_switches]; in bi_getboothowto() 105 return (howto); in bi_getboothowto() 347 int howto; in bi_load() local 368 howto = bi_getboothowto(args); in bi_load() [all …]
|
| /NextBSD/contrib/binutils/ld/ |
| HD | ldctor.c | 256 reloc_howto_type *howto; in ldctor_build_sets() local 276 howto = bfd_reloc_type_lookup (output_bfd, p->reloc); in ldctor_build_sets() 277 if (howto == NULL) in ldctor_build_sets() 291 howto = bfd_reloc_type_lookup (p->elements->section->owner, in ldctor_build_sets() 293 if (howto == NULL) in ldctor_build_sets() 303 reloc_size = bfd_get_reloc_size (howto); in ldctor_build_sets() 310 if (howto->complain_on_overflow == complain_overflow_signed) in ldctor_build_sets() 317 bfd_get_reloc_size (howto), p->h->root.string); in ldctor_build_sets() 366 lang_add_reloc (p->reloc, howto, e->section, e->name, in ldctor_build_sets()
|
| /NextBSD/sys/boot/efi/loader/arch/i386/ |
| HD | bootinfo.c | 56 int howto, i; in bi_getboothowto() local 58 howto = 0; in bi_getboothowto() 63 howto |= howto_names[i].mask; in bi_getboothowto() 68 return (howto); in bi_getboothowto() 76 howto |= howto_masks[sw - howto_switches]; in bi_getboothowto() 81 return (howto); in bi_getboothowto()
|