Home | History | Annotate | Download | only in libdwfl

Lines Matching refs:buffer

70    local buffer at DATA; it should return -1 for errors (with code in
86 unsigned char *buffer = malloc (initial_bufsize);
87 if (buffer == NULL)
94 ssize_t nread = (*read_memory) (arg, buffer, ehdr_vma,
99 free (buffer);
104 if (memcmp (buffer, ELFMAG, SELFMAG) != 0)
121 .d_buf = buffer,
137 switch (buffer[EI_CLASS])
141 if (elf32_xlatetom (&xlateto, &xlatefrom, buffer[EI_DATA]) == NULL)
157 if (elf64_xlatetom (&xlateto, &xlatefrom, buffer[EI_DATA]) == NULL)
180 xlatefrom.d_buf = buffer + phoff;
187 unsigned char *newbuf = realloc (buffer, phnum * phentsize);
190 free (buffer);
193 buffer = newbuf;
195 nread = (*read_memory) (arg, buffer, ehdr_vma + phoff,
200 xlatefrom.d_buf = buffer;
274 free (buffer);
277 buffer = calloc (1, contents_size);
278 if (buffer == NULL)
290 nread = (*read_memory) (arg, buffer + start,
317 xlateto.d_buf = buffer;
344 xlateto.d_buf = buffer;
357 Elf *elf = elf_memory ((char *) buffer, contents_size);
360 free (buffer);