Question regarding Linking (GCC)
Posted: Mon Jul 01, 2013 9:32 am
Hi
I am trying to link two different architecture images into single image is it possible ?
For example if i have image0 which is ARM compliant and image1 which is MSA intel architecture compliant.
How i can create an image image2 = image0+image1 ?
I know that linker script takes the object file as part of section (text) input and
I was using objcopy to generate .bin to .obj for placing the images into appropriate location in case of ARM architecture.
Also, linker script takes the architecture specific flag for OUTPUT format but i am not sure if there is a way i can make the two images with different architecture support as piggy back images inside a final image ?
I know the workaround could be to just copy Opcodes for one of the image directly into memory but i am trying to find a better way ?
Thanks,
- Ja
I am trying to link two different architecture images into single image is it possible ?
For example if i have image0 which is ARM compliant and image1 which is MSA intel architecture compliant.
How i can create an image image2 = image0+image1 ?
I know that linker script takes the object file as part of section (text) input and
I was using objcopy to generate .bin to .obj for placing the images into appropriate location in case of ARM architecture.
Also, linker script takes the architecture specific flag for OUTPUT format but i am not sure if there is a way i can make the two images with different architecture support as piggy back images inside a final image ?
I know the workaround could be to just copy Opcodes for one of the image directly into memory but i am trying to find a better way ?
Thanks,
- Ja