Subject: Re: Need method to combine multiple binary images into one. (ld?) (fwd)

From: Simon Winwood <[email-masked]>
Date: Sun, 16 Jul 2000 23:48:49 +1000

I am working on something similar to this, but it is pretty 
pre-alpha ... what exactly do you want?  How are the binaries linked
in the first place? (i.e. with what linker?)

	What does objdump tell you?  (run objdump -f <image>)

	Simon

On Sun, Jul 16, 2000 at 08:53:16AM +1000, Adam 'WeirdArms' Wiggins wrote:
> 
> 	Can you help them out here?
> 
> ---------- Forwarded message ----------
> Date: Fri, 14 Jul 2000 08:42:00 -0500
> From: S A McConnell <[email-masked]>
> To: [email-masked]
> Subject: Need method to combine multiple binary images into one. (ld?)
> 
> I am showing my lack of Linux/Unix experience....
> 
> I have five different binary images. To speed and simplify the
> loading/Flashing process I would like to combine the images into a
> single file placing each image at a set location. ( Image1 @ 0x0, Image2
> @ 0x3800, Image3 @ 0x10000....) There will be holes between each image.
> 
> The images are all ARM binaries. The command 'file' describes them as
> 'data' files.
> 
> I tried to us arm-linux-ld but it complained about not knowing the
> format. I looked in the documentation but did not see a way to tell the
> linker to treat it as just data.
> 
> $file image1
> image1:data
> 
> $arm-linux-gcc -Timage.ld image1 image2 image3 image4 image5
> image1: file not recognized: File format not recognized
> collect2: ld returned 1 exit status
> 
> 
> 
> INPUT(image1 image2 image3 image4 image5)
> 
> OUTPUT (bigimage)
> 
> SECTIONS 
> {
> 	output :
> 	{
> 		image1
> 		. = 0x3800;
> 		image2
> 		. = 0x4000;
> 		image3
> 		. = 0x1000;
> 		image4
> 		. = 0x100000;
> 		image5
> 	}
> }
> 
> -------------------------------
> Does anyone have a suggestion about how to do this with or without the
> linker?
> 
> Thanks,
> SAM
> 
> unsubscribe: body of `unsubscribe linux-arm' to [email-masked]
> ++        Please use [email-masked] for           ++
> ++                        kernel-related discussions.                      ++

unsubscribe: body of `unsubscribe linux-arm' to [email-masked]
++        Please use [email-masked] for           ++
++                        kernel-related discussions.                      ++