HomeSort by relevance Sort by last modified time
    Searched refs:shdr (Results 1 - 25 of 161) sorted by null

1 2 3 4 5 6 7

  /external/elfutils/libebl/
ebl_check_special_section.c 37 ebl_check_special_section (Ebl *ebl, int ndx, const GElf_Shdr *shdr,
40 return ebl != NULL && ebl->check_special_section (ebl, ndx, shdr, sname);
eblsectionstripp.c 38 ebl_section_strip_p (Ebl *ebl, const GElf_Ehdr *ehdr, const GElf_Shdr *shdr,
49 if (shdr->sh_type == SHT_RELA || shdr->sh_type == SHT_REL)
51 Elf_Scn *scn_l = elf_getscn (ebl->elf, (shdr)->sh_info);
66 return SECTION_STRIP_P (shdr, name, remove_comment);
  /external/elfutils/libdwelf/
dwelf_scn_gnu_compressed_size.c 42 GElf_Shdr shdr;
43 if (gelf_getshdr (scn, &shdr) == NULL)
47 if ((shdr.sh_flags & SHF_ALLOC) != 0
48 || shdr.sh_type == SHT_NULL
49 || shdr.sh_type == SHT_NOBITS)
  /external/elfutils/libelf/
elf_compress_gnu.c 64 Elf32_Shdr *shdr = elf32_getshdr (scn); local
65 if (shdr == NULL)
68 sh_flags = shdr->sh_flags;
69 sh_type = shdr->sh_type;
70 sh_addralign = shdr->sh_addralign;
74 Elf64_Shdr *shdr = elf64_getshdr (scn); local
75 if (shdr == NULL)
78 sh_flags = shdr->sh_flags;
79 sh_type = shdr->sh_type;
80 sh_addralign = shdr->sh_addralign
123 Elf32_Shdr *shdr = elf32_getshdr (scn); local
128 Elf64_Shdr *shdr = elf64_getshdr (scn); local
187 Elf32_Shdr *shdr = elf32_getshdr (scn); local
192 Elf64_Shdr *shdr = elf64_getshdr (scn); local
    [all...]
elf32_getchdr.c 45 ElfW2(LIBELFBITS,Shdr) *shdr = elfw2(LIBELFBITS,getshdr) (scn);
46 if (shdr == NULL)
51 if ((shdr->sh_flags & SHF_ALLOC) != 0)
57 if (shdr->sh_type == SHT_NULL
58 || shdr->sh_type == SHT_NOBITS)
64 if ((shdr->sh_flags & SHF_COMPRESSED) == 0)
gelf_getshdr.c 59 Elf32_Shdr *shdr local
60 = scn->shdr.e32 ?: __elf32_getshdr_rdlock (scn);
62 if (shdr == NULL)
69 dst->name = shdr->name
85 Elf64_Shdr *shdr local
86 = scn->shdr.e64 ?: __elf64_getshdr_rdlock (scn);
88 if (shdr == NULL)
95 result = memcpy (dst, shdr, sizeof (GElf_Shdr));
gelf_update_shdr.c 54 Elf32_Shdr *shdr local
55 = scn->shdr.e32 ?: __elf32_getshdr_wrlock (scn);
57 if (shdr == NULL)
75 shdr->name = src->name
89 Elf64_Shdr *shdr local
90 = scn->shdr.e64 ?: __elf64_getshdr_wrlock (scn);
92 if (shdr == NULL)
99 (void) memcpy (shdr, src, sizeof (GElf_Shdr));
elf32_getshdr.c 48 static ElfW2(LIBELFBITS,Shdr) *
51 ElfW2(LIBELFBITS,Shdr) *result;
58 result = scn->shdr.ELFW(e,LIBELFBITS);
64 || shnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Shdr)))
66 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr));
70 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr =
71 (ElfW2(LIBELFBITS,Shdr) *) malloc (size);
72 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL
    [all...]
elf-knowledge.h 37 #define SECTION_STRIP_P(shdr, name, remove_comment) \
39 (((shdr)->sh_flags & SHF_ALLOC) == 0 \
41 && (shdr)->sh_type != SHT_NOTE \
42 && (((shdr)->sh_type) != SHT_PROGBITS \
60 #define SH_INFO_LINK_P(Shdr) \
61 ((Shdr)->sh_type == SHT_REL || (Shdr)->sh_type == SHT_RELA \
62 || ((Shdr)->sh_flags & SHF_INFO_LINK) != 0)
elf32_checksum.c 94 GElf_Shdr *shdr; local
98 shdr = INTUSE(gelf_getshdr) (scn, &shdr_mem);
99 if (shdr == NULL)
106 if (SECTION_STRIP_P (shdr,
107 INTUSE(elf_strptr) (elf, shstrndx, shdr->sh_name),
113 if (shdr->sh_type == SHT_NOBITS)
  /system/core/libunwindstack/tests/
ElfTestUtils.cpp 59 template <typename Ehdr, typename Shdr>
69 ehdr.e_shentsize = sizeof(Shdr);
73 Shdr shdr; local
74 memset(&shdr, 0, sizeof(shdr));
75 shdr.sh_type = SHT_NULL;
76 copy_func(offset, &shdr, sizeof(shdr));
84 memset(&shdr, 0, sizeof(shdr))
    [all...]
GenGnuDebugdata.cpp 47 template <typename Ehdr, typename Shdr>
52 ehdr->e_shentsize = sizeof(Shdr);
56 Shdr shdr; local
57 memset(&shdr, 0, sizeof(shdr));
58 shdr.sh_name = 0;
59 shdr.sh_type = SHT_NULL;
60 TEMP_FAILURE_RETRY(write(fd, &shdr, sizeof(Shdr)));
    [all...]
ElfInterfaceTest.cpp 73 template <typename Ehdr, typename Phdr, typename Shdr, typename Dyn>
100 template <typename Ehdr, typename Shdr, typename ElfInterfaceType>
103 template <typename Ehdr, typename Shdr, typename Sym, typename ElfInterfaceType>
106 template <typename Ehdr, typename Shdr, typename ElfInterfaceType>
481 template <typename Ehdr, typename Phdr, typename Shdr, typename Dyn>
487 ehdr.e_shentsize = sizeof(Shdr);
493 Shdr shdr; local
494 memset(&shdr, 0, sizeof(shdr));
786 Shdr shdr; local
876 Shdr shdr; local
1028 Elf32_Shdr shdr; local
1091 Elf32_Shdr shdr; local
    [all...]
  /external/elfutils/tests/
update4.c 43 Elf32_Shdr *shdr; local
122 shdr = elf32_getshdr (scn);
123 if (shdr == NULL)
131 shdr->sh_type = SHT_PROGBITS;
132 shdr->sh_flags = SHF_ALLOC | SHF_EXECINSTR;
133 shdr->sh_addr = 0;
134 shdr->sh_link = 0;
135 shdr->sh_info = 0;
136 shdr->sh_entsize = 1;
158 shdr = elf32_getshdr (scn)
    [all...]
asm-tst1.c 158 GElf_Shdr *shdr; local
168 shdr = gelf_getshdr (scn, &shdr_mem);
169 if (shdr == NULL)
177 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
181 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
186 if (shdr->sh_type != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS))
192 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_EXECINSTR))
193 || (cnt == 2 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
194 || (cnt == 3 && shdr->sh_flags != 0))
200 if (shdr->sh_addr != 0
    [all...]
asm-tst2.c 174 GElf_Shdr *shdr; local
184 shdr = gelf_getshdr (scn, &shdr_mem);
185 if (shdr == NULL)
193 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
197 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
202 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
208 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
209 || (cnt == 2 && shdr->sh_flags != 0))
215 if (shdr->sh_addr != 0)
221 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)
    [all...]
sectiondump.c 82 GElf_Shdr *shdr; local
88 shdr = gelf_getshdr (scn, &shdr_mem);
89 if (ehdr == NULL || shdr == NULL)
103 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
104 shdr->sh_type,
105 shdr->sh_flags,
106 shdr->sh_addr,
107 shdr->sh_offset,
108 shdr->sh_size,
109 shdr->sh_link
    [all...]
asm-tst9.c 208 GElf_Shdr *shdr; local
218 shdr = gelf_getshdr (escn, &shdr_mem);
219 if (shdr == NULL)
227 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
231 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
236 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
242 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
243 || (cnt == 2 && shdr->sh_flags != 0))
249 if (shdr->sh_addr != 0)
255 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)
    [all...]
update3.c 43 Elf32_Shdr *shdr; local
118 shdr = elf32_getshdr (scn);
119 if (shdr == NULL)
127 shdr->sh_type = SHT_STRTAB;
128 shdr->sh_flags = 0;
129 shdr->sh_addr = 0;
130 shdr->sh_link = SHN_UNDEF;
131 shdr->sh_info = SHN_UNDEF;
132 shdr->sh_addralign = 1;
133 shdr->sh_entsize = 0
    [all...]
  /external/google-breakpad/src/common/linux/
synth_elf_unittest.cc 201 typedef typename TypeParam::Shdr Shdr;
206 2 * sizeof(Shdr) +
236 EXPECT_EQ(sizeof(Shdr), header->e_shentsize);
240 const Shdr* shdr = local
241 reinterpret_cast<const Shdr*>(contents.data() + header->e_shoff);
242 EXPECT_EQ(0U, shdr[0].sh_name);
243 EXPECT_EQ(static_cast<unsigned int>(SHT_NULL), shdr[0].sh_type);
244 EXPECT_EQ(0U, shdr[0].sh_flags)
315 const Shdr* shdr = local
    [all...]
  /external/elfutils/backends/
aarch64_symbol.c 79 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
80 if (shdr != NULL)
82 sname = elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name);
84 return (sym->st_value >= shdr->sh_addr
85 && sym->st_value < shdr->sh_addr + shdr->sh_size);
  /external/elfutils/libasm/
asm_end.c 79 GElf_Shdr *shdr; local
145 shdr = gelf_getshdr (strscn, &shdr_mem);
146 if (strtabdata == NULL || shdr == NULL)
155 shdr->sh_type = SHT_STRTAB;
156 assert (shdr->sh_entsize == 0);
158 (void) gelf_update_shdr (strscn, shdr);
163 shdr = gelf_getshdr (symscn, &shdr_mem);
164 if (data == NULL || shdr == NULL)
228 shdr = gelf_getshdr (xndxscn, &shdr_mem);
229 if (xndxdata == NULL || shdr == NULL
    [all...]
  /external/v4l2_codec2/vda/
h264_parser.cc     [all...]
  /external/elfutils/src/
unstrip.c 356 section_can_shrink (const GElf_Shdr *shdr)
358 switch (shdr->sh_type)
387 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, i), &shdr_mem);
388 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
396 sym->st_value = shdr->sh_addr;
428 adjust_relocs (Elf_Scn *outscn, Elf_Scn *inscn, const GElf_Shdr *shdr,
440 switch (shdr->sh_type)
443 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i)
454 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i
386 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, i), &shdr_mem); local
576 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
593 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); local
690 GElf_Shdr shdr; member in struct:section
827 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx), local
1057 void *shdr = xmalloc (shdr_bytes); local
1117 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1244 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1266 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1308 GElf_Shdr *shdr = gelf_getshdr (scn, &sections[i].shdr); local
1368 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1489 GElf_Shdr *shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); local
1542 GElf_Shdr *shdr = gelf_getshdr (sec->outscn, &shdr_mem); local
1657 GElf_Shdr *shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); local
1890 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
  /external/elfutils/libdwfl/
dwfl_report_elf.c 74 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
75 if (unlikely (shdr == NULL))
78 if (shdr->sh_flags & SHF_ALLOC)
80 const GElf_Xword align = shdr->sh_addralign ?: 1;
82 if (shdr->sh_addr == 0
88 shdr->sh_addr = next;
92 start = base = shdr->sh_addr;
129 end = shdr->sh_addr + shdr->sh_size;
130 if (likely (shdr->sh_addr != 0
    [all...]

Completed in 186 milliseconds

1 2 3 4 5 6 7