Lines Matching refs:size
62 add_section(obj, section_rwdata, SHT_PROGBITS, SHF_WRITE | SHF_ALLOC, d->section.size, in add_datasec()
68 add_section(obj, section_rodata, SHT_PROGBITS, SHF_ALLOC, d->section.size, align); in add_datasec()
76 (void)add_symbol(obj, symbol_begin, 0, d->section.size, d->index); in add_datasec()
77 (void)add_symbol(obj, symbol_end, d->section.size, 0, d->index); in add_datasec()
112 s->size = st.st_size; in read_datasec()
114 if (NULL == (s->ptr = malloc(s->size))) in read_datasec()
121 if (s->size != fread(s->ptr, sizeof(u8), s->size, fp)) in read_datasec()
152 obj->section[obj->header.e_shstrndx].sh_size = obj->section_name.size; in add_section_name()
171 u32 add_section(Object * obj, const char *name, u32 type, u32 flags, u32 size, u32 align) in add_section() argument
186 s->sh_size = size; in add_section()
223 obj->section[obj->symbol_name_index].sh_size = obj->symbol_name.size; in add_symbol_name()
241 u32 add_symbol(Object * obj, const char *symbol, u32 value, u32 size, u32 section) in add_symbol() argument
254 l->st_size = size; in add_symbol()
288 int new_size = s->size + strlen(string) + 1; in section_add_string()
290 int size; in section_add_string() local
297 memcpy(new_ptr, s->ptr, s->size); in section_add_string()
298 strcpy(new_ptr + s->size, string); in section_add_string()
301 size = s->size; in section_add_string()
303 s->size = new_size; in section_add_string()
305 return size; in section_add_string()