Searched refs:shdr (Results 1 - 25 of 117) sorted by relevance

12345

/netbsd-current/sys/arch/amd64/stand/prekern/
H A Delf.c38 Elf_Shdr *shdr; member in struct:elfinfo
64 elf_section_mappable(Elf_Shdr *shdr) argument
66 if (!(shdr->sh_flags & SHF_ALLOC)) {
69 if (shdr->sh_type != SHT_NOBITS &&
70 shdr->sh_type != SHT_PROGBITS) {
77 elf_can_drop_unmappable(Elf_Shdr *shdr) argument
80 * We found relocations from the section 'shdr' towards the rest of
81 * the binary, but 'shdr' is not mapped. Decide whether to skip the
91 if (shdr->sh_type == SHT_NOTE) {
130 if (eif.shdr[
277 Elf_Shdr *shdr; local
338 Elf_Shdr *shdr; local
[all...]
/netbsd-current/external/bsd/elftoolchain/dist/libelf/
H A Dlibelf_checksum.c58 GElf_Shdr shdr; local
86 if (gelf_getshdr(scn, &shdr) == NULL)
88 if ((shdr.sh_flags & SHF_ALLOC) == 0 ||
89 shdr.sh_type == SHT_DYNAMIC ||
90 shdr.sh_type == SHT_DYNSYM)
H A Delf_strptr.c52 GElf_Shdr shdr; local
61 gelf_getshdr(s, &shdr) == NULL)
64 if (shdr.sh_type != SHT_STRTAB ||
65 offset >= shdr.sh_size) {
/netbsd-current/external/cddl/osnet/dist/tools/ctf/cvt/
H A Doutput.c346 GElf_Shdr shdr; local
361 gelf_getshdr(scn, &shdr);
362 nent = shdr.sh_size / shdr.sh_entsize;
364 scn = elf_getscn(elf, shdr.sh_link);
469 GElf_Shdr shdr; local
550 gelf_getshdr(sscn, &shdr);
567 pad = new_offset % shdr.sh_addralign;
570 new_offset += shdr.sh_addralign - pad;
571 shdr
[all...]
/netbsd-current/sys/lib/libsa/
H A Dloadfile_elf32.c190 internalize_shdr(Elf_Byte bo, Elf_Shdr *shdr) argument
194 I32(shdr->sh_name);
195 I32(shdr->sh_type);
196 I32(shdr->sh_flags);
197 I32(shdr->sh_addr);
198 I32(shdr->sh_offset);
199 I32(shdr->sh_size);
200 I32(shdr->sh_link);
201 I32(shdr->sh_info);
202 I32(shdr
221 externalize_shdr(Elf_Byte bo, Elf_Shdr *shdr) argument
350 Elf_Shdr *shdr; local
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
H A Djit-elf-util.h51 ElfW (Shdr) *const shdr = (ElfW (Shdr) *) ((char *) addr + ehdr->e_shoff);
60 if (shdr[i].sh_type == SHT_SYMTAB)
62 ElfW (Sym) *symtab = (ElfW (Sym) *) (addr + shdr[i].sh_offset);
64 = (ElfW (Sym) *) (addr + shdr[i].sh_offset + shdr[i].sh_size);
66 = (char *) (addr + shdr[shdr[i].sh_link].sh_offset);
H A Dsym-file-loader.c354 const Elf_External_Shdr *shdr; local
363 shdr = find_shdrtab (ehdr);
365 shstr = &shdr[GET (ehdr, e_shstrndx)];
379 const Elf_External_Shdr *shdr = find_shdrtab (ehdr); local
388 uint64_t name = GET (shdr + i, sh_name);
389 if (GET (shdr + i, sh_type) == SHT_STRTAB && name <= shstrtab_size
392 *strtab_size = GET (shdr + i, sh_size);
393 return ((const char *) ehdr) + GET (shdr + i, sh_offset);
414 Elf_External_Shdr *shdr = find_shdrtab (ehdr);
417 uint64_t name = GET (shdr
434 const Elf_External_Shdr *shdr = find_shdrtab (ehdr); local
[all...]
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
H A Djit-elf-util.h51 ElfW (Shdr) *const shdr = (ElfW (Shdr) *) ((char *) addr + ehdr->e_shoff);
60 if (shdr[i].sh_type == SHT_SYMTAB)
62 ElfW (Sym) *symtab = (ElfW (Sym) *) (addr + shdr[i].sh_offset);
64 = (ElfW (Sym) *) (addr + shdr[i].sh_offset + shdr[i].sh_size);
66 = (char *) (addr + shdr[shdr[i].sh_link].sh_offset);
H A Dsym-file-loader.c354 const Elf_External_Shdr *shdr; local
363 shdr = find_shdrtab (ehdr);
365 shstr = &shdr[GET (ehdr, e_shstrndx)];
379 const Elf_External_Shdr *shdr = find_shdrtab (ehdr); local
388 uint64_t name = GET (shdr + i, sh_name);
389 if (GET (shdr + i, sh_type) == SHT_STRTAB && name <= shstrtab_size
392 *strtab_size = GET (shdr + i, sh_size);
393 return ((const char *) ehdr) + GET (shdr + i, sh_offset);
414 Elf_External_Shdr *shdr = find_shdrtab (ehdr);
417 uint64_t name = GET (shdr
434 const Elf_External_Shdr *shdr = find_shdrtab (ehdr); local
[all...]
/netbsd-current/sys/kern/
H A Dsubr_kobj.c156 Elf_Shdr *shdr; local
176 shdr = NULL;
235 error = ko->ko_read(ko, (void **)&shdr, ko->ko_shdrsz, hdr->e_shoff,
241 ko->ko_shdr = shdr;
249 switch (shdr[i].sh_type) {
257 symstrindex = shdr[i].sh_link;
260 if (shdr[shdr[i].sh_info].sh_type != SHT_PROGBITS)
265 if (shdr[shdr[
[all...]
/netbsd-current/external/gpl3/binutils/dist/gprofng/src/
H A DElf.cc371 Elf_Internal_Shdr *shdr = get_shdr (sec); local
372 if (shdr == NULL)
374 char *sname = elf_strptr (ehdrp->e_shstrndx, shdr->sh_name);
384 Elf_Internal_Shdr *shdr = get_shdr (sec); local
385 if (ehdrp == NULL || shdr == NULL)
387 return elf_strptr (ehdrp->e_shstrndx, shdr->sh_name);
402 Elf_Internal_Shdr *shdr = get_shdr (sec); local
403 if (shdr == NULL)
407 if ((shdr->sh_flags & SHF_SUNW_ABSENT) != 0)
433 edta->d_buf = get_data (shdr
664 Elf_Internal_Shdr *shdr = get_shdr (sec); local
1052 Elf_Internal_Shdr *shdr = get_shdr (i); local
1083 Elf_Internal_Shdr *shdr = get_shdr (i); local
1124 Elf_Internal_Shdr *shdr = get_shdr (sec); local
[all...]
/netbsd-current/external/gpl3/binutils.old/dist/elfcpp/
H A Delfcpp_file.h54 // elfcpp::Shdr shdr(file, ef.section_header(n));
440 Ef_shdr shdr(v.data());
443 this->shnum_ = shdr.get_sh_size();
447 this->shstrndx_ = shdr.get_sh_link();
487 Ef_shdr shdr(v.data() + This::shdr_size * i);
488 if (shdr.get_sh_type() == type)
519 Ef_shdr shdr(v.data());
520 sh_name = shdr.get_sh_name();
567 Ef_shdr shdr(v.data());
568 return typename File::Location(shdr
[all...]
/netbsd-current/external/gpl3/binutils/dist/elfcpp/
H A Delfcpp_file.h54 // elfcpp::Shdr shdr(file, ef.section_header(n));
440 Ef_shdr shdr(v.data());
443 this->shnum_ = shdr.get_sh_size();
447 this->shstrndx_ = shdr.get_sh_link();
487 Ef_shdr shdr(v.data() + This::shdr_size * i);
488 if (shdr.get_sh_type() == type)
519 Ef_shdr shdr(v.data());
520 sh_name = shdr.get_sh_name();
567 Ef_shdr shdr(v.data());
568 return typename File::Location(shdr
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/elfcpp/
H A Delfcpp_file.h54 // elfcpp::Shdr shdr(file, ef.section_header(n));
440 Ef_shdr shdr(v.data());
443 this->shnum_ = shdr.get_sh_size();
447 this->shstrndx_ = shdr.get_sh_link();
487 Ef_shdr shdr(v.data() + This::shdr_size * i);
488 if (shdr.get_sh_type() == type)
519 Ef_shdr shdr(v.data());
520 sh_name = shdr.get_sh_name();
567 Ef_shdr shdr(v.data());
568 return typename File::Location(shdr
[all...]
/netbsd-current/external/gpl3/binutils/dist/gold/
H A Dobject.cc122 typename elfcpp::Shdr<size, big_endian> shdr(p);
123 bytecount = convert_to_section_size_type(shdr.get_sh_size());
124 contents = object->get_view(shdr.get_sh_offset(), bytecount, true, false);
527 typename This::Shdr shdr(p);
528 if (shdr.get_sh_type() == elfcpp::SHT_SYMTAB)
546 if (shdr.get_sh_type() == elfcpp::SHT_SYMTAB_SHNDX)
549 xindex_link = this->adjust_shndx(shdr.get_sh_link());
574 const elfcpp::Shdr<size, big_endian>* shdr) const
576 elfcpp::Elf_Word sh_type = shdr->get_sh_type();
579 && (shdr
1156 include_linkonce_section( Layout* layout, unsigned int index, const char* name, const elfcpp::Shdr<size, big_endian>& shdr) argument
1221 layout_section( Layout* layout, unsigned int shndx, const char* name, const typename This::Shdr& shdr, unsigned int sh_type, unsigned int reloc_shndx, unsigned int reloc_type) argument
1251 layout_eh_frame_section( Layout* layout, const unsigned char* symbols_data, section_size_type symbols_size, const unsigned char* symbol_names_data, section_size_type symbol_names_size, unsigned int shndx, const typename This::Shdr& shdr, unsigned int reloc_shndx, unsigned int reloc_type) argument
[all...]
/netbsd-current/external/gpl3/binutils.old/dist/gold/
H A Dobject.cc122 typename elfcpp::Shdr<size, big_endian> shdr(p);
123 bytecount = convert_to_section_size_type(shdr.get_sh_size());
124 contents = object->get_view(shdr.get_sh_offset(), bytecount, true, false);
526 typename This::Shdr shdr(p);
527 if (shdr.get_sh_type() == elfcpp::SHT_SYMTAB)
545 if (shdr.get_sh_type() == elfcpp::SHT_SYMTAB_SHNDX)
548 xindex_link = this->adjust_shndx(shdr.get_sh_link());
573 const elfcpp::Shdr<size, big_endian>* shdr) const
575 elfcpp::Elf_Word sh_type = shdr->get_sh_type();
578 && (shdr
1155 include_linkonce_section( Layout* layout, unsigned int index, const char* name, const elfcpp::Shdr<size, big_endian>& shdr) argument
1220 layout_section( Layout* layout, unsigned int shndx, const char* name, const typename This::Shdr& shdr, unsigned int sh_type, unsigned int reloc_shndx, unsigned int reloc_type) argument
1250 layout_eh_frame_section( Layout* layout, const unsigned char* symbols_data, section_size_type symbols_size, const unsigned char* symbol_names_data, section_size_type symbol_names_size, unsigned int shndx, const typename This::Shdr& shdr, unsigned int reloc_shndx, unsigned int reloc_type) argument
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/gold/
H A Dobject.cc122 typename elfcpp::Shdr<size, big_endian> shdr(p);
123 bytecount = convert_to_section_size_type(shdr.get_sh_size());
124 contents = object->get_view(shdr.get_sh_offset(), bytecount, true, false);
526 typename This::Shdr shdr(p);
527 if (shdr.get_sh_type() == elfcpp::SHT_SYMTAB)
545 if (shdr.get_sh_type() == elfcpp::SHT_SYMTAB_SHNDX)
548 xindex_link = this->adjust_shndx(shdr.get_sh_link());
573 const elfcpp::Shdr<size, big_endian>* shdr) const
575 elfcpp::Elf_Word sh_type = shdr->get_sh_type();
578 && (shdr
1155 include_linkonce_section( Layout* layout, unsigned int index, const char* name, const elfcpp::Shdr<size, big_endian>& shdr) argument
1220 layout_section( Layout* layout, unsigned int shndx, const char* name, const typename This::Shdr& shdr, unsigned int sh_type, unsigned int reloc_shndx, unsigned int reloc_type) argument
1250 layout_eh_frame_section( Layout* layout, const unsigned char* symbols_data, section_size_type symbols_size, const unsigned char* symbol_names_data, section_size_type symbol_names_size, unsigned int shndx, const typename This::Shdr& shdr, unsigned int reloc_shndx, unsigned int reloc_type) argument
[all...]
/netbsd-current/external/gpl3/binutils.old/dist/libiberty/
H A Dsimple-object-elf.c504 unsigned char shdr[sizeof (Elf64_External_Shdr)]; local
508 if (!simple_object_internal_read (descriptor, offset + eor->shoff, shdr,
520 shdr, sh_size, Elf_Addr);
525 shdr, sh_link, Elf_Word);
625 unsigned char *shdr; local
631 shdr = shdrs + (i - 1) * shdr_size;
633 shdr, sh_name, Elf_Word);
644 shdr, sh_offset, Elf_Addr);
646 shdr, sh_size, Elf_Addr);
842 /* Write out an ELF shdr
1161 unsigned char *shdr; local
1210 unsigned char *shdr; local
1305 unsigned char *shdr; local
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/libiberty/
H A Dsimple-object-elf.c504 unsigned char shdr[sizeof (Elf64_External_Shdr)]; local
508 if (!simple_object_internal_read (descriptor, offset + eor->shoff, shdr,
520 shdr, sh_size, Elf_Addr);
525 shdr, sh_link, Elf_Word);
625 unsigned char *shdr; local
631 shdr = shdrs + (i - 1) * shdr_size;
633 shdr, sh_name, Elf_Word);
644 shdr, sh_offset, Elf_Addr);
646 shdr, sh_size, Elf_Addr);
842 /* Write out an ELF shdr
1161 unsigned char *shdr; local
1210 unsigned char *shdr; local
1305 unsigned char *shdr; local
[all...]
/netbsd-current/external/gpl3/binutils/dist/libiberty/
H A Dsimple-object-elf.c504 unsigned char shdr[sizeof (Elf64_External_Shdr)]; local
508 if (!simple_object_internal_read (descriptor, offset + eor->shoff, shdr,
520 shdr, sh_size, Elf_Addr);
525 shdr, sh_link, Elf_Word);
625 unsigned char *shdr; local
631 shdr = shdrs + (i - 1) * shdr_size;
633 shdr, sh_name, Elf_Word);
644 shdr, sh_offset, Elf_Addr);
646 shdr, sh_size, Elf_Addr);
842 /* Write out an ELF shdr
1161 unsigned char *shdr; local
1210 unsigned char *shdr; local
1305 unsigned char *shdr; local
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/libiberty/
H A Dsimple-object-elf.c504 unsigned char shdr[sizeof (Elf64_External_Shdr)]; local
508 if (!simple_object_internal_read (descriptor, offset + eor->shoff, shdr,
520 shdr, sh_size, Elf_Addr);
525 shdr, sh_link, Elf_Word);
625 unsigned char *shdr; local
631 shdr = shdrs + (i - 1) * shdr_size;
633 shdr, sh_name, Elf_Word);
644 shdr, sh_offset, Elf_Addr);
646 shdr, sh_size, Elf_Addr);
842 /* Write out an ELF shdr
1161 unsigned char *shdr; local
1210 unsigned char *shdr; local
1305 unsigned char *shdr; local
[all...]
/netbsd-current/external/gpl3/gcc/dist/libiberty/
H A Dsimple-object-elf.c504 unsigned char shdr[sizeof (Elf64_External_Shdr)]; local
508 if (!simple_object_internal_read (descriptor, offset + eor->shoff, shdr,
520 shdr, sh_size, Elf_Addr);
525 shdr, sh_link, Elf_Word);
625 unsigned char *shdr; local
631 shdr = shdrs + (i - 1) * shdr_size;
633 shdr, sh_name, Elf_Word);
644 shdr, sh_offset, Elf_Addr);
646 shdr, sh_size, Elf_Addr);
842 /* Write out an ELF shdr
1161 unsigned char *shdr; local
1210 unsigned char *shdr; local
1305 unsigned char *shdr; local
[all...]
/netbsd-current/external/gpl3/gdb/dist/libiberty/
H A Dsimple-object-elf.c504 unsigned char shdr[sizeof (Elf64_External_Shdr)]; local
508 if (!simple_object_internal_read (descriptor, offset + eor->shoff, shdr,
520 shdr, sh_size, Elf_Addr);
525 shdr, sh_link, Elf_Word);
625 unsigned char *shdr; local
631 shdr = shdrs + (i - 1) * shdr_size;
633 shdr, sh_name, Elf_Word);
644 shdr, sh_offset, Elf_Addr);
646 shdr, sh_size, Elf_Addr);
842 /* Write out an ELF shdr
1161 unsigned char *shdr; local
1210 unsigned char *shdr; local
1305 unsigned char *shdr; local
[all...]
/netbsd-current/sys/arch/atari/stand/tostools/libtos/
H A Delf.c119 Elf32_Shdr shdr; local
122 if (read(fd, &shdr, sizeof(shdr)) != sizeof(shdr))
124 if ((shdr.sh_type == SHT_SYMTAB) || (shdr.sh_type == SHT_STRTAB))
125 symsize += shdr.sh_size;
/netbsd-current/lib/libexecinfo/
H A Dsymtab.c124 GElf_Shdr shdr; local
129 gelf_getshdr(scn, &shdr);
130 if(shdr.sh_type != SHT_SYMTAB)
134 ns = shdr.sh_size / shdr.sh_entsize;
147 elf_strptr(elf, shdr.sh_link, sym.st_name),
162 elf_strptr(elf, shdr.sh_link, sym.st_name));

Completed in 445 milliseconds

12345