[U-Boot] question about example/standalone/mips.lds

Xiangfu Liu xiangfu at openmobilefree.net
Wed Jul 21 12:19:22 CEST 2010


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


More information about the U-Boot mailing list