[LLVMbugs] [Bug 4291] New: don't emit ".cpu generic" on arm linux
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Jun 1 10:39:35 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4291
Summary: don't emit ".cpu generic" on arm linux
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
The ".cpu" directive doesn't seem to be documented as being supported in
binutils as, but it works anyways (seemingly supporting the same syntax as the
-mcpu=... flag) which means that ".cpu generic" is illegal:
x.s: Assembler messages:
x.s:2: Error: unknown cpu `generic'
For examples of legal .cpu values, you could see
http://sourceware.org/binutils/docs/as/ARM-Options.html but specifying "arm7"
for example causes this:
x.s: Assembler messages:
x.s:25: Error: selected processor does not support `bx lr'
Just removing the .cpu line produces a binary that actually runs.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list