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

1 2 3 4 5

  /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_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);
69 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
125 Elf32_Shdr *shdr = elf32_getshdr (scn); local
130 Elf64_Shdr *shdr = elf64_getshdr (scn); local
190 Elf32_Shdr *shdr = elf32_getshdr (scn); local
195 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)
  /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...]
addsections.c 134 GElf_Shdr *shdr = gelf_getshdr (shstrtab_scn, &shdr_mem); local
135 if (shdr == NULL)
142 size_t shstrtab_idx = shdr->sh_name;
143 shdr->sh_name = old_shstrtab_idx;
145 if (gelf_update_shdr (shstrtab_scn, shdr) == 0)
177 shdr = gelf_getshdr (scn, &shdr_mem);
178 if (shdr == NULL)
185 shdr->sh_type = SHT_PROGBITS;
186 shdr->sh_flags = 0;
187 shdr->sh_addr = 0
    [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...]
fillfile.c 79 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
80 if (shdr == NULL)
87 shdr->sh_type = SHT_STRTAB;
88 shdr->sh_flags = 0;
89 shdr->sh_addr = 0;
90 shdr->sh_link = SHN_UNDEF;
91 shdr->sh_info = SHN_UNDEF;
92 shdr->sh_addralign = 1;
93 shdr->sh_entsize = 0;
94 shdr->sh_name = add_strtab_entry (scn, ".strtab")
140 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
301 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
373 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [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 83 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
84 if (shdr != NULL)
86 sname = elf_strptr (elf, shstrndx, shdr->sh_name);
88 return (sym->st_value >= shdr->sh_addr
89 && sym->st_value < shdr->sh_addr + shdr->sh_size);
s390_symbol.c 82 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
83 if (shdr != NULL)
85 sname = elf_strptr (elf, shstrndx, shdr->sh_name);
87 return (sym->st_value >= shdr->sh_addr
88 && sym->st_value < shdr->sh_addr + shdr->sh_size);
  /external/elfutils/src/
unstrip.c 364 section_can_shrink (const GElf_Shdr *shdr)
366 switch (shdr->sh_type)
395 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, i), &shdr_mem);
396 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
404 sym->st_value = shdr->sh_addr;
436 adjust_relocs (Elf_Scn *outscn, Elf_Scn *inscn, const GElf_Shdr *shdr,
448 switch (shdr->sh_type)
451 if (shdr->sh_entsize == 0)
454 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i
394 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, i), &shdr_mem); local
599 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
620 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); local
720 GElf_Shdr shdr; member in struct:section
869 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx), local
1140 void *shdr = xmalloc (shdr_bytes); local
1201 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1328 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1351 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1393 GElf_Shdr *shdr = gelf_getshdr (scn, &sections[i].shdr); local
1457 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
1631 GElf_Shdr *shdr = gelf_getshdr (sec->outscn, &shdr_mem); local
1765 GElf_Shdr *shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); local
2003 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
    [all...]
  /external/elfutils/libasm/
asm_end.c 78 GElf_Shdr *shdr; local
144 shdr = gelf_getshdr (strscn, &shdr_mem);
145 if (strtabdata == NULL || shdr == NULL)
154 shdr->sh_type = SHT_STRTAB;
155 assert (shdr->sh_entsize == 0);
157 (void) gelf_update_shdr (strscn, shdr);
162 shdr = gelf_getshdr (symscn, &shdr_mem);
163 if (data == NULL || shdr == NULL)
227 shdr = gelf_getshdr (xndxscn, &shdr_mem);
228 if (xndxdata == NULL || shdr == NULL
    [all...]
  /external/v4l2_codec2/vda/
h264_parser.cc     [all...]
  /external/elfutils/libdwfl/
dwfl_report_elf.c 78 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); local
79 if (unlikely (shdr == NULL))
82 if (shdr->sh_flags & SHF_ALLOC)
84 const GElf_Xword align = shdr->sh_addralign ?: 1;
86 if (shdr->sh_addr == 0
92 shdr->sh_addr = next;
96 start = base = shdr->sh_addr;
133 end = shdr->sh_addr + shdr->sh_size;
134 if (likely (shdr->sh_addr != 0
    [all...]

Completed in 1171 milliseconds

1 2 3 4 5