bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About: objcopy etc


From: Tauno Voipio
Subject: Re: About: objcopy etc
Date: Tue, 28 Nov 2000 17:29:33 GMT

"li zhenying" <address@hidden> wrote in message
news:address@hidden
> I use "objcopyarm.exe" to convert an obj-file, but I
> don't get what of I wanted.
> the command line I used is following:
> "objcopyarm -O coff-arm-big -I coff-arm-little test_L.o test_B.o"
>
> as above, I expect that the file "test_B.o" is the format
> of coff-arm-big, but, It is not. The instructions' bytes
> order in the file are aslo Little Endian, even though,
> "objdumparm.exe" shows test_B.o is the format of coff-arm-big.
>
> Given a *.c file, I can use "ccarm.exe" to create an object
> file with the format of coff-arm-big or coff-arm-little. Now
>  the problem is that:there are some object files with the
> format of coff-arm-little, I want to link them with my own
> object file to create an object file with the format of
> coff-arm-big.
>
> How can I acheive this? thank you very much for your reply.
>
> Best Regards!
>
> li zhenying

You cannot. The endianness must be determined when translating the code. It
cannot be changed after assembly, the code and data references cannot be
automatically changed.

Tauno Voipio
tauno voipio @ iki fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]