Re: vdso handling

Alan Modra
2014-03-13T13:13:16Z

On Thu, Mar 13, 2014 at 10:07:10AM +0000, Pedro Alves wrote:
> Why doesn't the memory-backed bfd paths take the same paths as
> a file-backed bfd internally in bfd?

I think they do. In symfile-mem.c:symbol_file_add_from_memory

nbfd = bfd_elf_bfd_from_remote_memory (templ, addr, &loadbase,
target_read_memory_bfd);
..
if (!bfd_check_format (nbfd, bfd_object))

That bfd_check_format is where elf_object_p is called. *If*
bfd_from_remote_memory picked up the sections headers, you'll get a
normal bfd with sections..

--
Alan Modra
Australia Development Lab, IBM