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

Re: Fixing buildd issues on ppc64el



On 09/11/2014 12:03 PM, Aurelien Jarno wrote:
[snip]  I think ld would refuse to link ppc64 BE and
LE objects together.

Yes, you're right:

	$ echo 'int main() { return 0; }' > test.c

	$ gcc -c test.c -o el.o -mlittle-endian
	$ gcc -c test.c -o eb.o -mbig-endian

	$ ld el.o eb.o
	[...]
	ld: eb.o: compiled for a big endian system and target is little endian
	ld: failed to merge target specific data of file eb.o
	[...]

	$ uname -m
	ppc64le


--
Mauricio Faria de Oliveira
IBM Linux Technology Center


Reply to: