https://llvm.org/bugs/show_bug.cgi?id=26838
Bug ID: 26838 Summary: clang option -mabi (and -cc1 -meabi) has no effect when cross-compiling to ARM Product: clang Version: 3.8 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangb...@nondot.org Reporter: david.cab+llvm...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified It is impossible to compile an arm binary with an EABI other than EABI 5. Steps to reproduce: touch main.c clang -target arm---elf -mabi=apcs-gnu -msoft-float -c main.c Other options include: clang -cc1 -triple arm -meabi gnu -target-abi apcs-gnu -emit-obj main.c clang -cc1 -triple arm -meabi gnu -emit-obj main.c clang -cc1 -triple arm -meabi 4 -emit-obj main.c Actual Results: An EABI5 object is created. "file main.o" results in main.o: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), not stripped Expected Results: An object file with the appropriate EABI (other than 5) should have been generated. Build Date & Platform: Tested with Clang 3.7.1 and Clang 3.8.0-rc3 precompiled binaries for Ubuntu 15.10 x86_64 available at llvm.org. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs