lkml.org 
[lkml]   [2003]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: Stripped binary insertion with the GNU Linker suggestions (fwd)
    From
    On Friday, Jul 11, 2003, at 11:00 US/Central, Jon Masters wrote:
    >
    > The reason I want it is that I am creating a single elf output file
    > which
    > is loaded in to SDRAM by a SystemACE chip and in order for that to work
    > correctly I need to give the appropriate tools a single elf input
    > containing everything where I want it to be loaded in memory.

    Not sure I understand the problem exactly, but I believe ppc32 kernels
    do exactly what you want. Have a look at arch/ppc/boot/ld.script and
    see __{image,ramdisk,sysmap}_begin . Also see how e.g.
    arch/ppc/boot/prep/Makefile uses objcopy
    --add-section=.image=vmlinux.gz .

    The end result is taking an arbitrary file and stuffing it into an ELF
    section, then using a linker script to provide the start and end
    addresses of the file data.

    --
    Hollis Blanchard
    IBM Linux Technology Center

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:46    [W:2.153 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site