Searched defs:ehdr (Results 1 - 11 of 11) sorted by relevance

/openjdk7/hotspot/agent/src/os/bsd/
H A Dsalibelf.c33 int read_elf_header(int fd, ELF_EHDR* ehdr) { argument
34 if (pread(fd, ehdr, sizeof (ELF_EHDR), 0) != sizeof (ELF_EHDR) ||
35 memcmp(&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0 ||
36 ehdr->e_version != EV_CURRENT) {
43 ELF_EHDR ehdr; local
44 return read_elf_header(fd, &ehdr);
88 void* read_section_data(int fd, ELF_EHDR* ehdr, ELF_SHDR* shdr) { argument
105 uintptr_t find_base_address(int fd, ELF_EHDR* ehdr) { argument
111 if ((phbuf = read_program_header_table(fd, ehdr)) == NULL) {
117 for (phdr = phbuf, cnt = 0; cnt < ehdr
[all...]
H A Dps_proc.c222 ELF_EHDR ehdr; local
233 if (process_read_data(ph, ehdr_addr, (char *)&ehdr, sizeof(ehdr)) != true) {
238 if (!IS_ELF(ehdr) ||
239 ehdr.e_ident[EI_CLASS] != ELF_TARG_CLASS ||
240 ehdr.e_ident[EI_DATA] != ELF_TARG_DATA ||
241 ehdr.e_ident[EI_VERSION] != EV_CURRENT ||
242 ehdr.e_phentsize != sizeof(ELF_PHDR) ||
243 ehdr.e_version != ELF_TARG_VER ||
244 ehdr
[all...]
H A Dsymtab.c59 ELF_EHDR ehdr; local
75 if (! read_elf_header(fd, &ehdr)) {
81 if ((shbuf = read_section_header_table(fd, &ehdr)) == NULL) {
85 baseaddr = find_base_address(fd, &ehdr);
87 scn_cache = calloc(ehdr.e_shnum, sizeof(*scn_cache));
92 for (cursct = shbuf, cnt = 0; cnt < ehdr.e_shnum; cnt++) {
97 if ( (scn_cache[cnt].c_data = read_section_data(fd, &ehdr, cursct)) == NULL) {
114 for (cnt = 1; cnt < ehdr.e_shnum; cnt++) {
194 for (cnt = 0; cnt < ehdr.e_shnum; cnt++) {
/openjdk7/hotspot/agent/src/os/linux/
H A Dsalibelf.c32 int read_elf_header(int fd, ELF_EHDR* ehdr) { argument
33 if (pread(fd, ehdr, sizeof (ELF_EHDR), 0) != sizeof (ELF_EHDR) ||
34 memcmp(&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0 ||
35 ehdr->e_version != EV_CURRENT) {
42 ELF_EHDR ehdr; local
43 return read_elf_header(fd, &ehdr);
87 void* read_section_data(int fd, ELF_EHDR* ehdr, ELF_SHDR* shdr) { argument
104 uintptr_t find_base_address(int fd, ELF_EHDR* ehdr) { argument
110 if ((phbuf = read_program_header_table(fd, ehdr)) == NULL) {
116 for (phdr = phbuf, cnt = 0; cnt < ehdr
[all...]
H A Dsymtab.c164 ELF_EHDR *ehdr,
172 if (scn_cache[ehdr->e_shstrndx].c_data == NULL) {
173 if ((scn_cache[ehdr->e_shstrndx].c_data
174 = read_section_data(fd, ehdr, cursct)) == NULL) {
179 strtab = scn_cache[ehdr->e_shstrndx].c_data;
182 cnt < ehdr->e_shnum;
185 scn_cache[cnt].c_data = read_section_data(fd, ehdr, cursct);
197 ELF_EHDR *ehdr,
202 struct elf_section *debug_link = find_section_by_name(".gnu_debuglink", fd, ehdr,
261 ELF_EHDR *ehdr,
162 find_section_by_name(char *name, int fd, ELF_EHDR *ehdr, ELF_SHDR *shbuf, struct elf_section *scn_cache) argument
195 open_file_from_debug_link(const char *name, int fd, ELF_EHDR *ehdr, ELF_SHDR *shbuf, struct elf_section *scn_cache) argument
259 build_symtab_from_debug_link(const char *name, int fd, ELF_EHDR *ehdr, ELF_SHDR *shbuf, struct elf_section *scn_cache) argument
324 ELF_EHDR ehdr; local
[all...]
/openjdk7/hotspot/src/os/solaris/fix_empty_sec_hdr_flags/
H A Dfix_empty_sec_hdr_flags.c47 void * ehdr; /* ELF header */ local
86 ehdr = elf64_getehdr(elf);
88 ehdr = elf32_getehdr(elf);
90 if (ehdr == NULL) {
96 scn = elf_getscn(elf, ((Elf64_Ehdr *) ehdr)->e_shstrndx);
98 scn = elf_getscn(elf, ((Elf32_Ehdr *) ehdr)->e_shstrndx);
/openjdk7/jdk/make/tools/fix_empty_sec_hdr_flags/
H A Dfix_empty_sec_hdr_flags.c47 void * ehdr; /* ELF header */ local
86 ehdr = elf64_getehdr(elf);
88 ehdr = elf32_getehdr(elf);
90 if (ehdr == NULL) {
96 scn = elf_getscn(elf, ((Elf64_Ehdr *) ehdr)->e_shstrndx);
98 scn = elf_getscn(elf, ((Elf32_Ehdr *) ehdr)->e_shstrndx);
/openjdk7/hotspot/src/os/solaris/add_gnu_debuglink/
H A Dadd_gnu_debuglink.c60 void * ehdr; /* ELF header */ local
119 ehdr = elf64_getehdr(elf);
121 ehdr = elf32_getehdr(elf);
123 if (ehdr == NULL) {
129 scn = elf_getscn(elf, ((Elf64_Ehdr *) ehdr)->e_shstrndx);
131 scn = elf_getscn(elf, ((Elf32_Ehdr *) ehdr)->e_shstrndx);
/openjdk7/jdk/make/tools/add_gnu_debuglink/
H A Dadd_gnu_debuglink.c60 void * ehdr; /* ELF header */ local
119 ehdr = elf64_getehdr(elf);
121 ehdr = elf32_getehdr(elf);
123 if (ehdr == NULL) {
129 scn = elf_getscn(elf, ((Elf64_Ehdr *) ehdr)->e_shstrndx);
131 scn = elf_getscn(elf, ((Elf32_Ehdr *) ehdr)->e_shstrndx);
/openjdk7/jdk/make/tools/reorder/tools/
H A Dremove_mcount.c99 Elf32_Ehdr *ehdr; local
140 ehdr = elf32_getehdr(elf);
141 sectionStringSection = elf_getscn(elf, ehdr->e_shstrndx);
H A Dmcount.c181 ElfXX_Ehdr *ehdr; local
208 ehdr = elfXX_getehdr(elf);
209 sectionStringSection = elf_getscn(elf, ehdr->e_shstrndx);

Completed in 1356 milliseconds