Re: Stripped binary insertion with the GNU Linker suggestions (fwd)

Hollis Blanchard (hollisb@us.ibm.com)
Fri, 11 Jul 2003 11:37:16 -0500


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/