This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: About object file (Little off topic)
- From: "Joe Steeve" <joe_clubs at gmx dot net>
- To: gcc-help at gcc dot gnu dot org
- Cc: llewelly at lifesupport dot shutdown dot com
- Date: Sun, 30 Mar 2003 10:19:38 +0530
- Subject: Re: About object file (Little off topic)
- References: <1048937920.7176.ezmlm@gcc.gnu.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks,
- ->I don't know whether you can. I think that you can create a library
- ->though, using "ar"
Well, i found how to do it. you can combine multiple object files into one
object file using the linker ld.
supposing you have a.o and b.o
then the command line,
ld -r a.o b.o -o c.o
will combine a.o and b.o to c.o. All the three are in COFF format. I dont
want to use ar because the output file i need is not a library but a COFF
relocatable object.
Joe
- ----=====< BEGINNING OF ORIGINAL MESSAGE >=====----
- ->Message-ID: <3E8585BE dot 3060300 at xgoat dot com>
- ->Date: Sat, 29 Mar 2003 11:38:38 +0000
- ->From: Robert Spanton <rob at xgoat dot com>
- ->Reply-To: rob at xgoat dot com
- ->MIME-Version: 1.0
- ->To: gcc-help at gcc dot gnu dot org
- ->Subject: Re: About object file (Little off topic)
- ->Content-Type: text/plain; charset=us-ascii; format=flowed
- ->Content-Transfer-Encoding: 7bit
- ->
- ->I don't know whether you can. I think that you can create a library
- ->though, using "ar"
- ->
- ->Joe Steeve wrote:
- ->
- ->>-----BEGIN PGP SIGNED MESSAGE-----
- ->>Hash: SHA1
- ->>
- ->>Hello,
- ->>I need to get one object file (COFF) from a set of source files. how do
- ->i do
- ->>that? is there a way to merge a number of object files (COFF) into one
- ->COFF
- ->>object file which can inturn be linked with some other file finally.
- ->>
- ->>Joe
- ->>
- ->>
- ->>- --= Start of Signature =--
- ->>
- ->>"-Able was I eRe I saw elbA-"
- ->>
- ->>- --= End of Signature =--
- ->>
- ->>
- ->>
- ->>-----BEGIN PGP SIGNATURE-----
- ->>Version: Encrypted with PGP Plugin for Calypso
- ->>
- ->>iQA/AwUBPoT+ZGKVNakHzImXEQLahQCeMxpptcbJuIy4ihV8R9hQG2mW+Q0AoLnf
- ->>gurCSXO2EOYpjvDMERZ+SqEV
- ->>=cugh
- ->>-----END PGP SIGNATURE-----
- ->>
- ->>
- ->>
- ->>
- ----=====< END OF ORIGINAL MESSAGE >=====----
"Knowledge is no worth when it is not shared"
-----BEGIN PGP SIGNATURE-----
Version: Encrypted with PGP Plugin for Calypso
iQA/AwUBPoYpJ2KVNakHzImXEQIg8ACdFNAuKXif13+fqQpFnCYOWooh3CEAoMNV
OcXJD9/fMV7ls8tb58QzwgTb
=VlZX
-----END PGP SIGNATURE-----