From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiangfu Liu Date: Wed, 21 Jul 2010 18:19:22 +0800 Subject: [U-Boot] question about example/standalone/mips.lds In-Reply-To: References: <4C43CABB.3070302@openmobilefree.net> <20100719175103.BFF6C153A81@gemini.denx.de> <4C453325.4080003@openmobilefree.net> <20100720093702.839AA11D94C@gemini.denx.de> Message-ID: <4C46C9AA.6010705@openmobilefree.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Andrew thanks for the link. I think we should add $(ENDIANNESS) when link the hello_world.o. I will send one patch in next email. thanks again for the document. On 07/20/2010 11:29 PM, Andrew Dyer wrote: > No matter the compiler, I believe the lines in the linker scripts are > wrong (this is repeated all through the mips linker files in u-boot). > OUTPUT_FORMAT for mips is supposed to tell the linker what bfd output > format to generate given a link command of unspecifed(default), big, > and little endian formats. > > The lines in the linker script say for a little endian command line > the output format is big endian, so I think the OP's toolchain did > what is expected - it made a big endian object file. > > http://sources.redhat.com/binutils/docs-2.12/ld.info/Format-Commands.html -- Best Regards Xiangfu Liu http://www.openmobilefree.net