Re: 64-bit jiffies, a better solution

Maciej W. Rozycki
2002-05-13T11:09:03Z

On Fri, 10 May 2002, george anzinger wrote:

> If that were only true. The problem is that some architectures can be
> built with either endian. Mips, for example, seems to take the endian
> stuff in as an environment variable. The linker seems to know this
> stuff, but does not provide the "built in" to allow it to be used.

Huh? You can use CONFIG_CPU_LITTLE_ENDIAN. Gcc and the linker for
MIPS/Linux typically support both endiannesses (with a default selected at
their build time) and it's the configuration variable that selects either
of them.

> The info is available from the header files at compile time, but I could
> not find a clean way to export it to the Makefile, where we might choose
> which linker script to use. I suppose we could run the linker script
> thru cpp if all else fails. Any ideas?

CONFIG_CPU_LITTLE_ENDIAN is available to Makefiles. There used to be
separate linker scripts for different endiannesses for MIPS once.

--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +