* how to add the contents of an elf file into another elf file?
@ 2007-12-11 3:33 阎淼
2007-12-11 11:09 ` Dave Korn
0 siblings, 1 reply; 2+ messages in thread
From: 阎淼 @ 2007-12-11 3:33 UTC (permalink / raw)
To: binutils
Hi all,
I have 2 .o files: a.o, b.o, which will be linked with other libs
to generate an exeutable file.
I would like the contents of b.o as a whole to be an independant
part of the executable file. b.o contains data and instructions which
will be created as a process at runtime( embedded target ).
How can I do this?
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: how to add the contents of an elf file into another elf file?
2007-12-11 3:33 how to add the contents of an elf file into another elf file? 阎淼
@ 2007-12-11 11:09 ` Dave Korn
0 siblings, 0 replies; 2+ messages in thread
From: Dave Korn @ 2007-12-11 11:09 UTC (permalink / raw)
To: '??', binutils
On 11 December 2007 03:34, ?? wrote:
> Hi all,
>
> I have 2 .o files: a.o, b.o, which will be linked with other libs
> to generate an exeutable file.
> I would like the contents of b.o as a whole to be an independant
> part of the executable file. b.o contains data and instructions which
> will be created as a process at runtime( embedded target ).
> How can I do this?
One solution would be to use objcopy to rename the sections in b.o to some new
names, then use a custom linker script to group them in a single output section
together, bracketed by start and end symbols.
cheers,
DaveK
--
Can't think of a witty .sigline today....
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-11 11:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-11 3:33 how to add the contents of an elf file into another elf file? 阎淼
2007-12-11 11:09 ` Dave Korn
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 read-only IMAP folder(s) and NNTP newsgroup(s).