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]

Dump data from object files


Hello guys, 
I want to dump data from object files like "objdump -s fileName" does it.
I open the object file in that way:

    bfd *abfd = NULL;
    const char ** target = NULL;

    bfd_init();

    target =  bfd_target_list();

    abfd = bfd_openr("c:\\config.o", target);

Abfd is not null, but it doesnt contains sections.

What is the next step getting data from the sections ?

Sincerly
Patrick


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