/external/elfutils/libelf/ |
gelf_freechunk.c | 30 gelf_freechunk (elf, ptr) 31 Elf *elf; 34 if (elf == NULL) 39 gelf_rawchunk points into the memory allocated for the ELF 41 if (ptr < (char *) elf->map_address + elf->start_offset 42 || ptr >= ((char *) elf->map_address + elf->start_offset 43 + elf->maximum_size) [all...] |
gelf_getclass.c | 29 gelf_getclass (elf) 30 Elf *elf; 32 return elf == NULL || elf->kind != ELF_K_ELF ? ELFCLASSNONE : elf->class;
|
elf_readall.c | 29 set_address (Elf *elf, size_t offset) 31 if (elf->kind == ELF_K_AR) 33 Elf *child = elf->state.ar.children; 39 child->map_address = elf->map_address; 54 __libelf_readall (elf) 55 Elf *elf; 58 rwlock_wrlock (elf->lock) [all...] |
elf_cntl.c | 1 /* Control an ELF file desrciptor. 28 elf_cntl (elf, cmd) 29 Elf *elf; 34 if (elf == NULL) 37 if (elf->fildes == -1) 43 rwlock_wrlock (elf->lock); 49 if (elf->map_address == NULL && __libelf_readall (elf) == NULL) 59 elf->fildes = -1 [all...] |
elf_update.c | 30 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) 32 int class = elf->class; 39 if (elf->parent == NULL 40 && (elf->maximum_size == ~((size_t) 0) || size > elf->maximum_size) 41 && unlikely (ftruncate (elf->fildes, size) != 0)) 48 if (elf->map_address == NULL && elf->cmd == ELF_C_WRITE_MMAP) 50 elf->map_address = mmap (NULL, size, PROT_READ | PROT_WRITE [all...] |
elf_getbase.c | 29 elf_getbase (elf) 30 Elf *elf; 32 return elf == NULL ? (off_t) -1 : elf->start_offset;
|
elf_kind.c | 29 elf_kind (elf) 30 Elf *elf; 32 return elf == NULL ? ELF_K_NONE : elf->kind;
|
gelf_newehdr.c | 1 /* Create new ELF header. 29 gelf_newehdr (elf, class) 30 Elf *elf; 34 ? (unsigned long int) INTUSE(elf32_newehdr) (elf) 35 : (unsigned long int) INTUSE(elf64_newehdr) (elf));
|
elf_rand.c | 29 elf_rand (elf, offset) 30 Elf *elf; 34 if (elf == NULL || elf->kind != ELF_K_AR) 38 elf->state.ar.offset = elf->start_offset + offset; 41 if (__libelf_next_arhdr (elf) != 0) 44 elf->state.ar.elf_ar_hdr.ar_name = NULL;
|
elf_rawfile.c | 29 elf_rawfile (elf, ptr) 30 Elf *elf; 33 if (elf == NULL) 44 if (elf->map_address == NULL && __libelf_readall (elf) == NULL) 48 *ptr = elf->maximum_size; 50 return (char *) elf->map_address + elf->start_offset;
|
gelf_checksum.c | 1 /* Convert from file to memory representation. Generic ELF version. 29 gelf_checksum (elf) 30 Elf *elf; 32 if (elf == NULL) 35 return (elf->class == ELFCLASS32 36 ? INTUSE(elf32_checksum) (elf) : INTUSE(elf64_checksum) (elf));
|
elf_getshnum.c | 1 /* Return number of sections in the ELF file. 30 elf_getshnum (elf, dst) 31 Elf *elf; 37 if (elf == NULL) 40 if (unlikely (elf->kind != ELF_K_ELF)) 46 rwlock_rdlock (elf->lock); 48 idx = elf->state.elf.scns_last->cnt; 50 || (elf->state.elf.scns_las [all...] |
elf32_newehdr.c | 1 /* Create new ELF header. 33 elfw2(LIBELFBITS,newehdr) (elf) 34 Elf *elf; 38 if (elf == NULL) 41 if (unlikely (elf->kind != ELF_K_ELF)) 47 rwlock_wrlock (elf->lock); 49 if (elf->class == 0) 50 elf->class = ELFW(ELFCLASS,LIBELFBITS); 51 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)) [all...] |
gelf_newphdr.c | 1 /* Create new ELF program header. 29 gelf_newphdr (elf, phnum) 30 Elf *elf; 33 return (elf->class == ELFCLASS32 34 ? (unsigned long int) INTUSE(elf32_newphdr) (elf, phnum) 35 : (unsigned long int) INTUSE(elf64_newphdr) (elf, phnum));
|
elf32_newphdr.c | 1 /* Create new ELF program header table. 34 elfw2(LIBELFBITS,newphdr) (elf, count) 35 Elf *elf; 40 if (elf == NULL) 43 if (unlikely (elf->kind != ELF_K_ELF)) 49 rwlock_wrlock (elf->lock); 51 if (elf->class == 0) 52 elf->class = ELFW(ELFCLASS,LIBELFBITS); 53 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)) [all...] |
elf_end.c | 1 /* Free resources associated with Elf descriptor. 31 elf_end (elf) 32 Elf *elf; 34 Elf *parent; 36 if (elf == NULL) 41 rwlock_wrlock (elf->lock); 43 if (elf->ref_count != 0 && --elf->ref_count != 0) 46 int result = elf->ref_count [all...] |
elf_flagehdr.c | 1 /* Manipulate ELF header flags. 29 elf_flagehdr (elf, cmd, flags) 30 Elf *elf; 36 if (elf == NULL) 39 if (unlikely (elf->kind != ELF_K_ELF)) 46 result = (elf->state.elf.ehdr_flags |= (flags & ELF_F_DIRTY)); 48 result = (elf->state.elf.ehdr_flags &= ~(flags & ELF_F_DIRTY)) [all...] |
elf_flagphdr.c | 1 /* Manipulate ELF program header flags. 29 elf_flagphdr (elf, cmd, flags) 30 Elf *elf; 36 if (elf == NULL) 39 if (unlikely (elf->kind != ELF_K_ELF)) 46 result = (elf->state.elf.phdr_flags |= (flags & ELF_F_DIRTY)); 48 result = (elf->state.elf.phdr_flags &= ~(flags & ELF_F_DIRTY)) [all...] |
elf32_getehdr.c | 1 /* Get ELF header. 33 elfw2(LIBELFBITS,getehdr) (elf) 34 Elf *elf; 38 if (elf == NULL) 41 if (unlikely (elf->kind != ELF_K_ELF)) 47 rwlock_rdlock (elf->lock); 49 if (elf->class == 0) 50 elf->class = ELFW(ELFCLASS,LIBELFBITS); 51 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)) [all...] |
elf_newscn.c | 32 elf_newscn (elf) 33 Elf *elf; 38 if (elf == NULL) 41 /* We rely on the prefix of the `elf', `elf32', and `elf64' element 43 assert (offsetof (Elf, state.elf.scns_last) 44 == offsetof (Elf, state.elf32.scns_last)); 45 assert (offsetof (Elf, state.elf.scns_last [all...] |
elf_clone.c | 28 Elf * 29 elf_clone (Elf *elf, Elf_Cmd cmd) 31 Elf *retval = NULL; 33 if (elf == NULL) 38 rwlock_rdlock (elf->lock); 44 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset, 45 elf->maximum_size, elf->cmd, elf->parent, elf->kind [all...] |
elf_getident.c | 28 elf_getident (elf, ptr) 29 Elf *elf; 32 /* In case this is no ELF file, the handle is invalid and we return 34 if (elf == NULL || elf->kind != ELF_K_ELF) 41 /* We already read the ELF header. Return a pointer to it and store 46 return (char *) (elf->class == ELFCLASS32 47 || (offsetof (struct Elf, state.elf32.ehdr) 48 == offsetof (struct Elf, state.elf64.ehdr) [all...] |
gelf_rawchunk.c | 31 gelf_rawchunk (elf, offset, size) 32 Elf *elf; 36 if (elf == NULL) 43 if (offset >= elf->maximum_size 44 || offset + size >= elf->maximum_size 53 if (elf->map_address != NULL) 54 return (char *) elf->map_address + elf->start_offset + offset; 62 if ((size_t) pread (elf->fildes, result, size, elf->start_offset + offset [all...] |
elf_getshstrndx.c | 32 elf_getshstrndx (elf, dst) 33 Elf *elf; 38 if (elf == NULL) 41 if (unlikely (elf->kind != ELF_K_ELF)) 47 rwlock_rdlock (elf->lock); 49 /* We rely here on the fact that the `elf' element is a common prefix 51 assert (offsetof (struct Elf, state.elf.ehdr) 52 == offsetof (struct Elf, state.elf32.ehdr)) [all...] |
/sdk/emulator/qtools/tests/ |
common_head.mk | 1 CC := arm-elf-gcc 2 LD := arm-elf-ld 3 AS := arm-elf-as 4 OBJCOPY := arm-elf-objcopy 5 OBJDUMP := arm-elf-objdump 10 .SUFFIXES: .dis .bin .elf 12 .c.elf: 18 .S.elf: 21 .elf.dis: 24 .elf.bin [all...] |