fromGoogleCode / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

Specify the endian of output (-EL/-EB) #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
DejaGNU needs -EB/-EL options.

In the man manual of GNU ld:
-EB
    Link big-endian objects. This affects the default output format. 
-EL
    Link little-endian objects. This affects the default output format.

I am confusing. If the given input object file and the target backend is 
different from the -EB/EL option, then what happens?

Original issue reported on code.google.com by LubaTang on 11 May 2012 at 9:20

GoogleCodeExporter commented 9 years ago

Original comment by pete.c...@gmail.com on 2 Apr 2014 at 8:38

GoogleCodeExporter commented 9 years ago
It's invalid that the given -LE/-BE option conflict with the endianness in 
target_info. Linker should give an error message. In gold, the error message 
"input file does not match -EB/EL option" will be produced.

Original comment by mysekki on 15 Sep 2014 at 8:23

GoogleCodeExporter commented 9 years ago
Hi Michele, since you're working on BE/LE support, would you like to add these 
two options, -EB and -EL, to MCLinker? 

Original comment by mysekki on 15 Sep 2014 at 8:24