This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reading an elf file with binutils


Hi,

On Thu, Aug 06, 2009 at 12:19:30AM -0700, Yan wrote:

> Basically, I'm trying to read an ELF file with BFD and get some data
> out of it. However, the list of sections that BFD provides is blank,
> and when I try to read symbols out of the file at all, the whole thing
> segfaults.

You are looking at an executable, where section and symbol information is
optional as it's not used for anything (loading is controlled by the PHDRs,
and library symbol resolution uses the DYNAMIC segment).

   Simon


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]