[llvm-bugs] [Bug 26838] New: clang option -mabi (and -cc1 -meabi) has no effect when cross-compiling to ARM
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Mar 4 07:02:17 PST 2016
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: unassignedclangbugs at nondot.org
Reporter: david.cab+llvmbug at gmail.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160304/729b8735/attachment-0001.html>
More information about the llvm-bugs
mailing list