Lines Matching defs:ew
694 static size_t section_index(struct elf_writer *ew, in section_index()
700 static struct elf_writer_section *last_section(struct elf_writer *ew) in last_section()
705 static void strtab_init(struct elf_writer *ew, size_t size) in strtab_init()
724 static void symtab_init(struct elf_writer *ew, size_t max_entries) in symtab_init()
754 struct elf_writer *ew; in elf_writer_init() local
805 void elf_writer_destroy(struct elf_writer *ew) in elf_writer_destroy()
825 int elf_writer_add_section(struct elf_writer *ew, const Elf64_Shdr *shdr, in elf_writer_add_section()
846 static void ehdr_write(struct elf_writer *ew, struct buffer *m) in ehdr_write()
873 static void shdr_write(struct elf_writer *ew, size_t n, struct buffer *m) in shdr_write()
904 phdr_write(struct elf_writer *ew, struct buffer *m, Elf64_Phdr *phdr) in phdr_write()
928 static int section_consecutive(struct elf_writer *ew, Elf64_Half secidx) in section_consecutive()
951 static void write_phdrs(struct elf_writer *ew, struct buffer *phdrs) in write_phdrs()
1006 static void fixup_symbol_table(struct elf_writer *ew) in fixup_symbol_table()
1056 static void fixup_relocations(struct elf_writer *ew) in fixup_relocations()
1132 int elf_writer_serialize(struct elf_writer *ew, struct buffer *out) in elf_writer_serialize()
1245 static int elf_writer_add_string(struct elf_writer *ew, const char *new) in elf_writer_add_string()
1272 static int elf_writer_section_index(struct elf_writer *ew, const char *name) in elf_writer_section_index()
1288 int elf_writer_add_symbol(struct elf_writer *ew, const char *name, in elf_writer_add_symbol()
1320 static int elf_sym_index(struct elf_writer *ew, const char *sym) in elf_sym_index()
1340 static struct elf_writer_rel *rel_section(struct elf_writer *ew, in rel_section()
1409 int elf_writer_add_rel(struct elf_writer *ew, const char *sym, Elf64_Addr addr) in elf_writer_add_rel()