This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ELF file format

Hi all,

Is it possible to get the C51 compiler output with ELF format ?.
In other words
Can i extract Map file or listing file with ELF file format using c51 compiler or any other embedded system C compiler?
Thanks in advance.

Parents Reply Children
  • Hi all,
    The elf executable is linked with many object files.
    The current elf reader utilities such as readelf,
    ELFDump produces the .text, .data, .bss from the elf
    file by summing up the total number of bytes in the
    .text, .data, .bss from all the object files.

    Iam interested to get the .text, .data, .bss for each
    of the object file.

    Iam aware of the fact that i can get it by looking
    into the map file generated by the linker.

    Please suggest me if there is any tool to get the
    .text, .data, .bss for each object file from the elf
    file ?

    or is there any other way to do this ?

    Looking forward for your reply.
    Thanks in advance.

    Regards,
    Siva

  • Looks like you're going to have to write yourself an OMF51-to-Elf converter (or pay someone else to do it for you).

    You can find the OMF51 spec in the downloads area of this site.