| /netbsd/src/external/bsd/file/dist/src/ |
| D | readelf.c | 556 int swap __attribute__((__unused__)), uint32_t namesz, uint32_t descsz, in do_bid_note() argument 560 type == NT_GNU_BUILD_ID && (descsz >= 4 && descsz <= 20)) { in do_bid_note() 565 switch (descsz) { in do_bid_note() 581 memcpy(desc, &nbuf[doff], descsz); in do_bid_note() 582 for (i = 0; i < descsz; i++) in do_bid_note() 588 type == NT_GO_BUILD_ID && descsz < 128) { in do_bid_note() 591 file_copystr(buf, sizeof(buf), descsz, in do_bid_note() 601 int swap, uint32_t namesz, uint32_t descsz, in do_os_note() argument 607 type == NT_GNU_VERSION && descsz == 2) { in do_os_note() 616 type == NT_GNU_VERSION && descsz == 16) { in do_os_note() [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/binutils/ |
| D | od-elf32_avr.c | 102 bfd_size_type *descsz) in elf32_avr_get_note_desc() argument 119 in.descsz = bfd_get_32 (abfd, xnp->descsz); in elf32_avr_get_note_desc() 121 if (in.descsz < 6 * sizeof (uint32_t) in elf32_avr_get_note_desc() 123 || in.descsz > contents - in.descdata + size) in elf32_avr_get_note_desc() 127 if (in.descsz > 8 * sizeof (uint32_t)) in elf32_avr_get_note_desc() 128 in.descdata[in.descsz - 1] = 0; in elf32_avr_get_note_desc() 130 *descsz = in.descsz; in elf32_avr_get_note_desc()
|
| D | elfedit.c | 176 in.descsz = BYTE_GET (xnp->descsz); in update_gnu_property() 179 if (in.descsz != 0 in update_gnu_property() 181 || in.descsz > buf - in.descdata + size)) in update_gnu_property() 194 if (in.descsz < 8 || (in.descsz % align) != 0) in update_gnu_property() 201 ptr_end = ptr + in.descsz; in update_gnu_property() 240 p += ELF_NOTE_NEXT_OFFSET (in.namesz, in.descsz, align); in update_gnu_property()
|
| /netbsd/src/external/gpl3/gdb/dist/bfd/ |
| D | elf-properties.c | 85 bfd_byte *ptr_end = ptr + note->descsz; in _bfd_elf_parse_gnu_properties() 87 if (note->descsz < 8 || (note->descsz % align_size) != 0) in _bfd_elf_parse_gnu_properties() 92 abfd, note->type, note->descsz); in _bfd_elf_parse_gnu_properties() 509 unsigned int descsz; in elf_get_gnu_property_section_size() local 512 descsz = offsetof (Elf_External_Note, name[sizeof "GNU"]); in elf_get_gnu_property_section_size() 513 descsz = (descsz + 3) & -(unsigned int) 4; in elf_get_gnu_property_section_size() 514 size = descsz; in elf_get_gnu_property_section_size() 542 unsigned int descsz; in elf_write_gnu_properties() local 547 descsz = offsetof (Elf_External_Note, name[sizeof "GNU"]); in elf_write_gnu_properties() 548 descsz = (descsz + 3) & -(unsigned int) 4; in elf_write_gnu_properties() [all …]
|
| D | cpu-arm.c | 319 unsigned char descsz[4]; /* Size of the note descriptor. */ member 332 unsigned long descsz; in arm_check_note() local 342 descsz = bfd_get_32 (abfd, buffer + offsetof (arm_Note, descsz)); in arm_check_note() 347 if (namesz + descsz + offsetof (arm_Note, name) > buffer_size) in arm_check_note()
|
| D | elf32-am33lin.c | 47 switch (note->descsz) in elf32_am33lin_grok_prstatus() 75 switch (note->descsz) in elf32_am33lin_grok_psinfo()
|
| D | elf32-tilegx.c | 37 if (note->descsz != TILEGX_PRSTATUS_SIZEOF) in tilegx_elf_grok_prstatus() 60 if (note->descsz != TILEGX_PRPSINFO_SIZEOF) in tilegx_elf_grok_psinfo()
|
| D | elf64-tilegx.c | 37 if (note->descsz != TILEGX_PRSTATUS_SIZEOF) in tilegx_elf_grok_prstatus() 60 if (note->descsz != TILEGX_PRPSINFO_SIZEOF) in tilegx_elf_grok_psinfo()
|
| D | elfxx-kvx.c | 158 switch (note->descsz) in _bfd_kvx_elf_grok_prstatus() 184 switch (note->descsz) in _bfd_kvx_elf_grok_psinfo()
|
| D | opncls.c | 1868 inote.descsz = H_GET_32 (abfd, enote->descsz); in get_build_id() 1872 if (inote.descsz <= 0 in get_build_id() 1876 || inote.descsz > 0x7ffffffe in get_build_id() 1877 || size < (12 + BFD_ALIGN (inote.namesz, 4) + inote.descsz)) in get_build_id() 1884 build_id = bfd_alloc (abfd, sizeof (struct bfd_build_id) + inote.descsz); in get_build_id() 1891 build_id->size = inote.descsz; in get_build_id() 1892 memcpy (build_id->data, inote.descdata, inote.descsz); in get_build_id()
|
| D | elf.c | 10411 sect->size = note->descsz - offs; in elfcore_make_auxv_note_section() 10432 if (note->descsz == sizeof (prstatus_t)) in elfcore_grok_prstatus() 10460 else if (note->descsz == sizeof (prstatus32_t)) in elfcore_grok_prstatus() 10509 note->descsz, note->descpos); in elfcore_make_note_pseudosection() 10866 if (note->descsz == sizeof (elfcore_psinfo_t)) in elfcore_grok_psinfo() 10884 else if (note->descsz == sizeof (elfcore_psinfo32_t)) in elfcore_grok_psinfo() 10931 if (note->descsz == sizeof (pstatus_t) in elfcore_grok_pstatus() 10933 || note->descsz == sizeof (pxstatus_t) in elfcore_grok_pstatus() 10944 else if (note->descsz == sizeof (pstatus32_t)) in elfcore_grok_pstatus() 10972 if (note->descsz != sizeof (lwpstat) in elfcore_grok_lwpstatus() [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/bfd/ |
| D | elf-properties.c | 85 bfd_byte *ptr_end = ptr + note->descsz; in _bfd_elf_parse_gnu_properties() 87 if (note->descsz < 8 || (note->descsz % align_size) != 0) in _bfd_elf_parse_gnu_properties() 92 abfd, note->type, note->descsz); in _bfd_elf_parse_gnu_properties() 509 unsigned int descsz; in elf_get_gnu_property_section_size() local 512 descsz = offsetof (Elf_External_Note, name[sizeof "GNU"]); in elf_get_gnu_property_section_size() 513 descsz = (descsz + 3) & -(unsigned int) 4; in elf_get_gnu_property_section_size() 514 size = descsz; in elf_get_gnu_property_section_size() 542 unsigned int descsz; in elf_write_gnu_properties() local 547 descsz = offsetof (Elf_External_Note, name[sizeof "GNU"]); in elf_write_gnu_properties() 548 descsz = (descsz + 3) & -(unsigned int) 4; in elf_write_gnu_properties() [all …]
|
| D | cpu-arm.c | 349 unsigned char descsz[4]; /* Size of the note descriptor. */ member 362 unsigned long descsz; in arm_check_note() local 372 descsz = bfd_get_32 (abfd, buffer + offsetof (arm_Note, descsz)); in arm_check_note() 377 if (namesz + descsz + offsetof (arm_Note, name) > buffer_size) in arm_check_note()
|
| D | elf32-am33lin.c | 47 switch (note->descsz) in elf32_am33lin_grok_prstatus() 75 switch (note->descsz) in elf32_am33lin_grok_psinfo()
|
| D | elf64-tilegx.c | 37 if (note->descsz != TILEGX_PRSTATUS_SIZEOF) in tilegx_elf_grok_prstatus() 60 if (note->descsz != TILEGX_PRPSINFO_SIZEOF) in tilegx_elf_grok_psinfo()
|
| D | elf32-tilegx.c | 37 if (note->descsz != TILEGX_PRSTATUS_SIZEOF) in tilegx_elf_grok_prstatus() 60 if (note->descsz != TILEGX_PRPSINFO_SIZEOF) in tilegx_elf_grok_psinfo()
|
| D | elfxx-kvx.c | 158 switch (note->descsz) in _bfd_kvx_elf_grok_prstatus() 184 switch (note->descsz) in _bfd_kvx_elf_grok_psinfo()
|
| D | opncls.c | 1844 inote.descsz = H_GET_32 (abfd, enote->descsz); in get_build_id() 1848 if (inote.descsz <= 0 in get_build_id() 1852 || inote.descsz > 0x7ffffffe in get_build_id() 1853 || size < (12 + BFD_ALIGN (inote.namesz, 4) + inote.descsz)) in get_build_id() 1860 build_id = bfd_alloc (abfd, sizeof (struct bfd_build_id) + inote.descsz); in get_build_id() 1867 build_id->size = inote.descsz; in get_build_id() 1868 memcpy (build_id->data, inote.descdata, inote.descsz); in get_build_id()
|
| D | elf.c | 10415 sect->size = note->descsz - offs; in elfcore_make_auxv_note_section() 10436 if (note->descsz == sizeof (prstatus_t)) in elfcore_grok_prstatus() 10464 else if (note->descsz == sizeof (prstatus32_t)) in elfcore_grok_prstatus() 10513 note->descsz, note->descpos); in elfcore_make_note_pseudosection() 10870 if (note->descsz == sizeof (elfcore_psinfo_t)) in elfcore_grok_psinfo() 10888 else if (note->descsz == sizeof (elfcore_psinfo32_t)) in elfcore_grok_psinfo() 10935 if (note->descsz == sizeof (pstatus_t) in elfcore_grok_pstatus() 10937 || note->descsz == sizeof (pxstatus_t) in elfcore_grok_pstatus() 10948 else if (note->descsz == sizeof (pstatus32_t)) in elfcore_grok_pstatus() 10976 if (note->descsz != sizeof (lwpstat) in elfcore_grok_lwpstatus() [all …]
|
| /netbsd/src/sys/arch/ia64/stand/efi/libefi/ |
| D | exec.c | 140 UINTN descsz; in elf64_exec() local 156 descsz = sizeof(EFI_MEMORY_DESCRIPTOR); in elf64_exec() 157 BS->GetMemoryMap(&size, NULL, &mapkey, &descsz, &descver); in elf64_exec() 158 size += descsz + ((sizeof(struct bootinfo) + 0x0f) & ~0x0f); in elf64_exec()
|
| /netbsd/src/external/gpl3/binutils/dist/include/elf/ |
| D | external.h | 181 unsigned char descsz[4]; /* Size of the note descriptor */ member 198 #define ELF_NOTE_NEXT_OFFSET(namesz, descsz, align) \ argument 199 ELF_ALIGN_UP (ELF_NOTE_DESC_OFFSET ((namesz), (align)) + (descsz), \
|
| /netbsd/src/external/gpl3/gdb/dist/include/elf/ |
| D | external.h | 181 unsigned char descsz[4]; /* Size of the note descriptor */ member 198 #define ELF_NOTE_NEXT_OFFSET(namesz, descsz, align) \ argument 199 ELF_ALIGN_UP (ELF_NOTE_DESC_OFFSET ((namesz), (align)) + (descsz), \
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/ |
| D | osabi.c | 417 const char *name, unsigned long descsz, unsigned long type) in check_note() argument 431 notesz += descsz; in check_note() 447 if (bfd_h_get_32 (abfd, note + 4) != descsz) in check_note()
|
| /netbsd/src/external/gpl3/binutils/dist/gold/ |
| D | layout.cc | 3176 const char* section_name, size_t descsz, in create_note() argument 3203 size_t aligned_descsz = align_address(descsz, size / 8); in create_note() 3217 elfcpp::Swap<32, false>::writeval(buffer + 4, descsz); in create_note() 3223 elfcpp::Swap<32, true>::writeval(buffer + 4, descsz); in create_note() 3232 elfcpp::Swap<64, false>::writeval(buffer + 8, descsz); in create_note() 3238 elfcpp::Swap<64, true>::writeval(buffer + 8, descsz); in create_note() 3267 *trailing_padding = aligned_descsz - descsz; in create_note() 3287 size_t descsz = 0; in create_gnu_properties_note() local 3292 descsz = align_address(descsz + 8 + prop->second.pr_datasz, size / 8); in create_gnu_properties_note() 3298 ".note.gnu.property", descsz, in create_gnu_properties_note() [all …]
|
| /netbsd/src/sys/arch/arm/xscale/ |
| D | iopaau.c | 423 size_t descsz = AAU_DESC_SIZE(ninputs); in iopaau_func_xor_setup() local 552 SYNC_DESC(cur, descsz); in iopaau_func_xor_setup() 559 SYNC_DESC(cur, descsz); in iopaau_func_xor_setup()
|