/haiku-buildtools/binutils/bfd/ |
H A D | i386msdos.c | 46 static char hdr[EXE_PAGE_SIZE]; local 47 file_ptr outfile_size = sizeof(hdr); 64 file_ptr sec_end = (sizeof (hdr) 80 H_PUT_16 (abfd, EXE_MAGIC, &hdr[0]); 81 H_PUT_16 (abfd, EXE_PAGE_SIZE / 16, &hdr[8]); 82 H_PUT_16 (abfd, EXE_LOAD_LOW, &hdr[12]); 83 H_PUT_16 (abfd, 0x3e, &hdr[24]); 84 H_PUT_16 (abfd, 0x0001, &hdr[28]); /* XXX??? */ 85 H_PUT_16 (abfd, 0x30fb, &hdr[30]); /* XXX??? */ 86 H_PUT_16 (abfd, 0x726a, &hdr[3 [all...] |
H A D | archive64.c | 162 struct ar_hdr hdr; local 175 memset (&hdr, ' ', sizeof (struct ar_hdr)); 176 memcpy (hdr.ar_name, "/SYM64/", strlen ("/SYM64/")); 177 if (!_bfd_ar_sizepad (hdr.ar_size, sizeof (hdr.ar_size), mapsize)) 179 _bfd_ar_spacepad (hdr.ar_date, sizeof (hdr.ar_date), "%ld", 182 _bfd_ar_spacepad (hdr.ar_uid, sizeof (hdr.ar_uid), "%ld", 0); 183 _bfd_ar_spacepad (hdr [all...] |
H A D | archive.c | 489 struct ar_hdr hdr; 490 char *hdrp = (char *) &hdr; 508 if (strncmp (hdr.ar_fmag, ARFMAG, 2) != 0 510 || strncmp (hdr.ar_fmag, mag, 2) != 0)) 517 fmag_save = hdr.ar_fmag[0]; 518 hdr.ar_fmag[0] = 0; 519 scan = sscanf (hdr.ar_size, "%" BFD_VMA_FMT "u", &parsed_size); 520 hdr.ar_fmag[0] = fmag_save; 530 if ((hdr.ar_name[0] == '/' 531 || (hdr 486 struct ar_hdr hdr; local 1161 struct ar_hdr hdr; local 1673 struct ar_hdr *hdr = arch_hdr (current); local 1743 struct ar_hdr *hdr = arch_hdr (current); local 1816 struct ar_hdr *hdr = arch_hdr (current); local 1832 struct ar_hdr *hdr = arch_hdr (abfd); local 1844 struct ar_hdr *hdr = arch_hdr (abfd); local 1918 struct ar_hdr *hdr; local 1995 struct ar_hdr *hdr; local 2057 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local 2089 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local 2121 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local 2219 struct ar_hdr hdr; local 2474 struct ar_hdr hdr; local 2623 struct ar_hdr hdr; local 2697 struct ar_hdr hdr; local [all...] |
H A D | elf.c | 326 Elf_Internal_Shdr *hdr; local 334 hdr = elf_elfsections (abfd)[shindex]; 336 if (hdr->contents == NULL) 338 if (hdr->sh_type != SHT_STRTAB && hdr->sh_type < SHT_LOOS) 351 if (strindex >= hdr->sh_size) 357 abfd, strindex, (unsigned long) hdr->sh_size, 358 (shindex == shstrndx && strindex == hdr->sh_name 360 : bfd_elf_string_from_elf_section (abfd, shstrndx, hdr->sh_name))); 364 return ((char *) hdr 556 Elf_Internal_Shdr *hdr; local 582 setup_group(bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect) argument 946 _bfd_elf_make_section_from_shdr(bfd *abfd, Elf_Internal_Shdr *hdr, const char *name, int shindex) argument 1944 Elf_Internal_Shdr *hdr; local 2879 _bfd_elf_make_section_from_phdr(bfd *abfd, Elf_Internal_Phdr *hdr, int hdr_index, const char *type_name) argument 2971 bfd_section_from_phdr(bfd *abfd, Elf_Internal_Phdr *hdr, int hdr_index) argument 4219 Elf_Internal_Shdr *hdr; local 4631 asection *hdr; local 5625 Elf_Internal_Shdr *hdr; local 5846 Elf_Internal_Shdr *hdr = &elf_section_data (sect)->this_hdr; local 5923 Elf_Internal_Shdr *hdr; local 7933 Elf_Internal_Shdr *hdr = &elf_tdata (abfd)->symtab_hdr; local 7948 Elf_Internal_Shdr *hdr = &elf_tdata (abfd)->dynsymtab_hdr; local 8105 Elf_Internal_Shdr *hdr; local 8229 Elf_Internal_Shdr *hdr; local 8667 Elf_Internal_Shdr *hdr; local 11055 Elf_Internal_Shdr *hdr; local [all...] |
/haiku-buildtools/binutils/ld/testsuite/ld-elf/ |
H A D | eh-frame-hdr.d | 1 #source: eh-frame-hdr.s 2 #ld: -e _start --eh-frame-hdr
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.target/sh/torture/ |
H A D | pr58314.c | 53 xfs_attr_leaf_hdr_t hdr; member in struct:xfs_attr_leafblock 62 xfs_attr_leaf_hdr_t *hdr; local 68 hdr = &leaf->hdr; 73 tablesize = __arch_swab16(hdr->count); 75 map = &hdr->freemap[0]; 96 map = &hdr->freemap[after]; 101 map = &hdr->freemap[smallest];
|
/haiku-buildtools/legacy/binutils/bfd/ |
H A D | archive.c | 374 struct ar_hdr hdr; 375 char *hdrp = (char *) &hdr; 389 if (strncmp (hdr.ar_fmag, ARFMAG, 2) != 0 391 || strncmp (hdr.ar_fmag, mag, 2) != 0)) 398 parsed_size = strtol (hdr.ar_size, NULL, 10); 408 if ((hdr.ar_name[0] == '/' 409 || (hdr.ar_name[0] == ' ' 410 && memchr (hdr.ar_name, '/', ar_maxnamelen (abfd)) == NULL)) 413 filename = get_extended_arelt_filename (abfd, hdr.ar_name); 419 else if (hdr 371 struct ar_hdr hdr; local 1267 struct ar_hdr *hdr = arch_hdr (current); local 1308 struct ar_hdr *hdr = arch_hdr (current); local 1365 struct ar_hdr *hdr; local 1445 struct ar_hdr *hdr; local 1505 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local 1537 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local 1585 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local 1692 struct ar_hdr hdr; local 1715 struct ar_hdr *hdr = arch_hdr (current); local 1931 struct ar_hdr hdr; local 2012 struct ar_hdr hdr; local 2081 struct ar_hdr hdr; local [all...] |
H A D | i386msdos.c | 55 static char hdr[EXE_PAGE_SIZE]; local 56 file_ptr outfile_size = sizeof(hdr); 73 file_ptr sec_end = (sizeof (hdr) 89 H_PUT_16 (abfd, EXE_MAGIC, &hdr[0]); 90 H_PUT_16 (abfd, EXE_PAGE_SIZE / 16, &hdr[8]); 91 H_PUT_16 (abfd, EXE_LOAD_LOW, &hdr[12]); 92 H_PUT_16 (abfd, 0x3e, &hdr[24]); 93 H_PUT_16 (abfd, 0x0001, &hdr[28]); /* XXX??? */ 94 H_PUT_16 (abfd, 0x30fb, &hdr[30]); /* XXX??? */ 95 H_PUT_16 (abfd, 0x726a, &hdr[3 [all...] |
H A D | archive64.c | 158 struct ar_hdr hdr; local 171 memset (&hdr, ' ', sizeof (struct ar_hdr)); 172 memcpy (hdr.ar_name, "/SYM64/", strlen ("/SYM64/")); 173 _bfd_ar_spacepad (hdr.ar_size, sizeof (hdr.ar_size), "%-10ld", 175 _bfd_ar_spacepad (hdr.ar_date, sizeof (hdr.ar_date), "%ld", 178 _bfd_ar_spacepad (hdr.ar_uid, sizeof (hdr.ar_uid), "%ld", 0); 179 _bfd_ar_spacepad (hdr [all...] |
H A D | elf.c | 273 Elf_Internal_Shdr *hdr; local 278 hdr = elf_elfsections (abfd)[shindex]; 280 if (hdr->contents == NULL 284 if (strindex >= hdr->sh_size) 289 abfd, strindex, (unsigned long) hdr->sh_size, 290 (shindex == shstrndx && strindex == hdr->sh_name 292 : bfd_elf_string_from_elf_section (abfd, shstrndx, hdr->sh_name))); 296 return ((char *) hdr->contents) + strindex; 442 Elf_Internal_Shdr *hdr; local 449 hdr 466 setup_group(bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect) argument 727 _bfd_elf_make_section_from_shdr(bfd *abfd, Elf_Internal_Shdr *hdr, const char *name, int shindex) argument 1800 Elf_Internal_Shdr *hdr = elf_elfsections (abfd)[shindex]; local 2495 _bfd_elf_make_section_from_phdr(bfd *abfd, Elf_Internal_Phdr *hdr, int index, const char *typename) argument 2568 bfd_section_from_phdr(bfd *abfd, Elf_Internal_Phdr *hdr, int index) argument 3504 Elf_Internal_Shdr *hdr; local 3707 asection *hdr; local 4742 Elf_Internal_Shdr *hdr; local 4778 Elf_Internal_Shdr *hdr; local 6312 Elf_Internal_Shdr *hdr = &elf_tdata (abfd)->symtab_hdr; local 6327 Elf_Internal_Shdr *hdr = &elf_tdata (abfd)->dynsymtab_hdr; local 6486 Elf_Internal_Shdr *hdr; local 6599 Elf_Internal_Shdr *hdr; local 7049 Elf_Internal_Shdr *hdr; local 8436 Elf_Internal_Shdr *hdr; local [all...] |
/haiku-buildtools/gcc/gcc/go/gofrontend/ |
H A D | import-archive.cc | 112 interpret_header(const Archive_header* hdr, off_t off, 219 Archive_header hdr; local 225 ssize_t got = ::read(this->fd_, &hdr, sizeof hdr); 226 if (got != sizeof hdr) 238 if (!this->interpret_header(&hdr, off, pname, size, &local_nested_off)) 249 Archive_file::interpret_header(const Archive_header* hdr, off_t off, argument 253 if (memcmp(hdr->ar_fmag, arfmag, sizeof arfmag) != 0) 260 const int size_string_size = sizeof hdr->ar_size; 262 memcpy(size_string, hdr 519 const Archive_header* hdr = reinterpret_cast<const Archive_header*>(buf); local [all...] |
/haiku-buildtools/gcc/libsanitizer/sanitizer_common/ |
H A D | sanitizer_procmaps_mac.cc | 107 const mach_header* hdr = _dyld_get_image_header(current_image_); local 108 if (!hdr) continue; 111 current_load_cmd_count_ = hdr->ncmds; 112 current_magic_ = hdr->magic; 113 current_filetype_ = hdr->filetype; 117 current_load_cmd_addr_ = (char*)hdr + sizeof(mach_header_64); 122 current_load_cmd_addr_ = (char*)hdr + sizeof(mach_header);
|
/haiku-buildtools/gcc/libiberty/ |
H A D | simple-object-mach-o.c | 897 unsigned char *hdr; local 908 hdr = &hdrbuf[0]; 909 set_32 (hdr + offsetof (struct mach_o_header_32, magic), attrs->magic); 910 set_32 (hdr + offsetof (struct mach_o_header_32, cputype), attrs->cputype); 911 set_32 (hdr + offsetof (struct mach_o_header_32, cpusubtype), 913 set_32 (hdr + offsetof (struct mach_o_header_32, filetype), MACH_O_MH_OBJECT); 914 set_32 (hdr + offsetof (struct mach_o_header_32, ncmds), 1); 915 set_32 (hdr + offsetof (struct mach_o_header_32, flags), attrs->flags); 919 set_32 (hdr + offsetof (struct mach_o_header_32, sizeofcmds), 925 set_32 (hdr 952 unsigned char *hdr; local 1046 unsigned char *hdr; local [all...] |
H A D | simple-object-xcoff.c | 60 unsigned char f_opthdr[2]; /* sizeof(optional hdr) */ 66 unsigned char f_opthdr[2]; /* sizeof(optional hdr) */ 580 unsigned char *hdr; local 585 hdr = &hdrbuf[0]; 591 memset (hdr, 0, sizeof (struct external_filehdr)); 593 set_16 (hdr + offsetof (struct external_filehdr, f_magic), attrs->magic); 594 set_16 (hdr + offsetof (struct external_filehdr, f_nscns), nscns); 598 set_64 (hdr + offsetof (struct external_filehdr, u.xcoff64.f_symptr), 600 set_32 (hdr + offsetof (struct external_filehdr, u.xcoff64.f_nsyms), 603 set_16 (hdr 638 unsigned char *hdr; local [all...] |
/haiku-buildtools/binutils/libiberty/ |
H A D | simple-object-mach-o.c | 897 unsigned char *hdr; local 908 hdr = &hdrbuf[0]; 909 set_32 (hdr + offsetof (struct mach_o_header_32, magic), attrs->magic); 910 set_32 (hdr + offsetof (struct mach_o_header_32, cputype), attrs->cputype); 911 set_32 (hdr + offsetof (struct mach_o_header_32, cpusubtype), 913 set_32 (hdr + offsetof (struct mach_o_header_32, filetype), MACH_O_MH_OBJECT); 914 set_32 (hdr + offsetof (struct mach_o_header_32, ncmds), 1); 915 set_32 (hdr + offsetof (struct mach_o_header_32, flags), attrs->flags); 919 set_32 (hdr + offsetof (struct mach_o_header_32, sizeofcmds), 925 set_32 (hdr 952 unsigned char *hdr; local 1046 unsigned char *hdr; local [all...] |
H A D | simple-object-xcoff.c | 60 unsigned char f_opthdr[2]; /* sizeof(optional hdr) */ 66 unsigned char f_opthdr[2]; /* sizeof(optional hdr) */ 580 unsigned char *hdr; local 585 hdr = &hdrbuf[0]; 591 memset (hdr, 0, sizeof (struct external_filehdr)); 593 set_16 (hdr + offsetof (struct external_filehdr, f_magic), attrs->magic); 594 set_16 (hdr + offsetof (struct external_filehdr, f_nscns), nscns); 598 set_64 (hdr + offsetof (struct external_filehdr, u.xcoff64.f_symptr), 600 set_32 (hdr + offsetof (struct external_filehdr, u.xcoff64.f_nsyms), 603 set_16 (hdr 638 unsigned char *hdr; local [all...] |
/haiku-buildtools/gcc/contrib/ |
H A D | check_makefile_deps.sh | 58 for hdr in $hdrs; do 59 case $hdr in 62 echo $hdr ;;
|
/haiku-buildtools/legacy/binutils/gas/ |
H A D | ecoff.h | 56 (HDRR *hdr, char **bufp, const struct ecoff_debug_swap *);
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/execute/ |
H A D | pr53688.c | 2 struct hdr { struct
|
/haiku-buildtools/gcc/libgcc/ |
H A D | unwind-dw2-fde-dip.c | 166 const struct unw_eh_frame_hdr *hdr; local 316 hdr = (const struct unw_eh_frame_hdr *) 318 if (hdr->version != 1) 351 p = read_encoded_value_with_base (hdr->eh_frame_ptr_enc, 352 base_from_cb_data (hdr->eh_frame_ptr_enc, 354 (const unsigned char *) (hdr + 1), 360 if (hdr->fde_count_enc != DW_EH_PE_omit 361 && hdr->table_enc == (DW_EH_PE_datarel | DW_EH_PE_sdata4)) 365 p = read_encoded_value_with_base (hdr->fde_count_enc, 366 base_from_cb_data (hdr [all...] |
/haiku-buildtools/legacy/binutils/gas/config/ |
H A D | obj-ecoff.c | 144 HDRR *hdr; local 150 hdr = &ecoff_data (stdoutput)->debug_info.symbolic_header; 151 ecoff_build_debug (hdr, &buf, debug_swap); 156 if (hdr->count == 0) \ 161 set += hdr->count * size; \
|
/haiku-buildtools/binutils/gas/config/ |
H A D | obj-ecoff.c | 143 HDRR *hdr; local 149 hdr = &ecoff_data (stdoutput)->debug_info.symbolic_header; 150 ecoff_build_debug (hdr, &buf, debug_swap); 155 if (hdr->count == 0) \ 160 set += hdr->count * size; \
|
/haiku-buildtools/jam/ |
H A D | fileunix.c | 343 struct ar_hdr hdr; member in struct:__anon2324 384 read( fd, &ar_hdr, sizeof( ar_hdr ) ) >= sizeof( ar_hdr.hdr ) ) 389 sscanf( ar_hdr.hdr.ar_namlen, "%d", &lar_namlen ); 390 sscanf( ar_hdr.hdr.ar_date, "%ld", &lar_date ); 391 sscanf( ar_hdr.hdr.ar_nxtmem, "%ld", &offset ); 396 ar_hdr.hdr._ar_name.ar_name[ lar_namlen ] = '\0'; 398 sprintf( buf, "%s(%s)", archive, ar_hdr.hdr._ar_name.ar_name );
|
H A D | hash.c | 44 struct hashhdr hdr; member in struct:item 115 for( i = *base; i; i = i->hdr.next ) 116 if( keyval == i->hdr.keyval && 129 i->hdr.keyval = keyval; 130 i->hdr.next = *base; 169 ITEM **ip = hp->tab.base + i->hdr.keyval % hp->tab.nel; 171 i->hdr.next = *ip;
|
/haiku-buildtools/binutils/gas/ |
H A D | ecoff.h | 57 (HDRR *hdr, char **bufp, const struct ecoff_debug_swap *);
|