Lines Matching +defs:name +defs:text
15 * 3. The name of the author may not be used to endorse or promote products
69 static void *saveRead(int file, off_t offset, size_t len, const char *name);
92 { ".text", N_TEXT },
103 get_symtab_type(const char *name)
107 if (strcmp(name, nv[i].n) == 0)
111 warnx("section `%s' is not handled\n", name);
201 struct sect text, data, bss;
210 text.len = data.len = bss.len = 0;
211 text.vaddr = data.vaddr = bss.vaddr = 0;
296 char *name = shstrtab + sh[i].sh_name;
297 if (!strcmp(name, ".symtab"))
299 else if (!strcmp(name, ".strtab"))
302 symTypeTable[i] = get_symtab_type(name);
344 combine(&text, &ntxt, 0);
352 if (text.vaddr > data.vaddr || data.vaddr > bss.vaddr ||
353 text.vaddr + text.len > data.vaddr ||
357 /* If there's a data section but no text section, then the loader
358 * combined everything into one section. That needs to be the text
359 * section, so just make the data section zero length following text. */
360 if (data.len && text.len == 0) {
361 text = data;
362 data.vaddr = text.vaddr + text.len;
365 /* If there is a gap between text and data, we'll fill it when we copy
366 * the data, so update the length of the text segment as represented
369 if (text.vaddr + text.len < data.vaddr)
370 text.len = data.vaddr - text.vaddr;
377 aex.a_text = text.len;
644 saveRead(int file, off_t offset, size_t len, const char *name)
651 errx(EXIT_FAILURE, "%s: seek failed", name);
654 "%s: Can't allocate %jd bytes.", name, (intmax_t)len);
658 err(EXIT_FAILURE, "%s: read error", name);
661 name);