[LLVMbugs] [Bug 20610] New: ARM exception vectors - error: constant expression expected

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 10 02:57:33 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20610

            Bug ID: 20610
           Summary: ARM exception vectors - error: constant expression
                    expected
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM assembly language parser
          Assignee: unassignedbugs at nondot.org
          Reporter: mpj at rowley.co.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This is a common way of implementing ARM exception vectors. The GNU assembler
eats this the LLVM assembler produces 

error: constant expression expected

  ldr pc, [pc, #reset_handler_address - . - 8]
  ldr pc, [pc, #undef_handler_address - . - 8]
  ldr pc, [pc, #swi_handler_address - . - 8]
  ldr pc, [pc, #pabort_handler_address - . - 8]
  ldr pc, [pc, #dabort_handler_address - . - 8]
  nop
  ldr pc, [pc, #irq_handler_address - . - 8]
  ldr pc, [pc, #fiq_handler_address - . - 8]

reset_handler_address:
  .word reset_handler
undef_handler_address:
  .word undef_handler
swi_handler_address:
  .word swi_handler
pabort_handler_address:
  .word pabort_handler
dabort_handler_address:
  .word dabort_handler
irq_handler_address:
  .word irq_handler
fiq_handler_address:
  .word fiq_handler

-- 
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/20140810/e00c24d2/attachment.html>


More information about the llvm-bugs mailing list