linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Stripped binary insertion with the GNU Linker suggestions (fwd)
@ 2003-07-11 15:19 Jon Masters
  2003-07-11 15:35 ` Larry McVoy
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Masters @ 2003-07-11 15:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: jcm

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-07-12  1:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-11 15:19 Stripped binary insertion with the GNU Linker suggestions (fwd) Jon Masters
2003-07-11 15:35 ` Larry McVoy
2003-07-11 16:00   ` Jon Masters
2003-07-11 16:37     ` Hollis Blanchard
2003-07-12  1:14       ` Jon Masters

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).