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


--
To UNSUBSCRIBE, email to debian-powerpc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/5411cbd5.6040...@linux.vnet.ibm.com

Reply via email to