Stripped binary insertion with the GNU Linker suggestions (fwd)

Jon Masters (jonathan@jonmasters.org)
Fri, 11 Jul 2003 16:19:55 +0100 (BST)


Hi,

I have a linker script which amongst other things contains:

MEMORY
{
sdram_linux : ORIGIN = 0x00500000, LENGTH = 4M
}

SECTIONS {

.linux :
{ linux_kernel } > sdram_linux

}

What I have is a stripped kernel image which I want to shove in to a
section in the output elf file though the Linker complains it does not
recognise the file format (as it perhaps should). I realise that the
above is not the correct way to do this - suggestions are very welcome.

I have seen other nasty ways to do this involving converting the image to
byte values in very large arrays or inserting literal byte values in to
the output file but there just has to be a generic method for inserting
an image in to the middle of an output file.

Cheers,

Jon.

-
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/