Results 1 to 6 of 6

Thread: Elf2bin problem

                  
   
  1. #1
    DCEmu Newbie
    Join Date
    Oct 2005
    Posts
    23
    Rep Power
    0

    Unhappy Elf2bin problem

    Hi everybody,

    I try to convert a .elf file i have made and i use (it works on DC with the cable) in a .bin file to make an autoboot CD.

    I try several elf2bin tools but errors occur :


    BFD: Warning: Writing section `.text' to huge (ie negative) file offset 0x8bfe00
    00.
    BFD: Warning: Writing section `.rodata' to huge (ie negative) file offset 0x8c04
    b080.
    BFD: Warning: Writing section `.data' to huge (ie negative) file offset 0x8c070a
    a0.
    BFD: Warning: Writing section `.eh_frame' to huge (ie negative) file offset 0x8c
    07670c.
    BFD: Warning: Writing section `.ctors' to huge (ie negative) file offset 0x8c076
    7a0.
    BFD: Warning: Writing section `.dtors' to huge (ie negative) file offset 0x8c076
    7a8.
    /cygdrive/c/WINDOWS/TEMP/elf2bin_tmp/sh-elf-objcopy: test.bin: File truncated
    ELF2BI.EXE: Conversion of test.elf to test.bin completed.



    Anyone could help me please ?


    thank you

  2. #2

    Default

    Try 1st_read.bin checker as in contains extra parameters for the extact problem you're getting.

  3. #3
    DCEmu Newbie
    Join Date
    Oct 2005
    Posts
    23
    Rep Power
    0

    Default

    Thanks !

  4. #4
    DCEmu Coder SiZiOUS's Avatar
    Join Date
    Aug 2004
    Location
    France
    Age
    29
    Posts
    558
    Rep Power
    39

    Default

    Yes it's depends of your binutils version. If you want to put the conversion in your makefiles, you can do this (Does your tool support commands line Fakue ? If yes ignore the next of this message) :

    To know the version of your binutils type sh-elf-objcopy -v.

    If your version is 2.13 or minor, use the command : sh-elf-objcopy -O binary myproggy.elf myproggy.bin

    For 2.14 the command is : sh-elf-objcopy -S -R .stack -O binary myproggy.elf myproggy.bin


  5. #5

    Default

    My tool add -R .stack... though I don't remember using -S. It didn't seem to have problems... what's -S for?

  6. #6
    DCEmu Coder SiZiOUS's Avatar
    Join Date
    Aug 2004
    Location
    France
    Age
    29
    Posts
    558
    Rep Power
    39

    Default

    Quote Originally Posted by fackue
    My tool add -R .stack... though I don't remember using -S. It didn't seem to have problems... what's -S for?
    Don't know

    Erwan wrote it in his Wiki.

    PS : I updated my Elf2bin proggy too.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •