This example generates the following error: .Ltmp3: .Ltmp5: .Ltmp13: .word (.Ltmp5-.Ltmp3)-.Ltmp13 ./llvm-mc ex.s -filetype=obj LLVM ERROR: expected relocatable expression when using: -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
On Fri, Sep 20, 2013 at 2:50 PM, Sid Manning <sidneym at codeaurora.org> wrote:> > This example generates the following error: > .Ltmp3: > .Ltmp5: > .Ltmp13: > .word (.Ltmp5-.Ltmp3)-.Ltmp13 > > ./llvm-mc ex.s -filetype=obj > LLVM ERROR: expected relocatable expression when using: > >Umm, isn't this equivalent to the following? What do you expect LLVM to do with it? .Ltmp13: .word -.Ltmp13 -Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130920/2ae97521/attachment.html>
On 09/20/2013 06:00 PM, Eli Friedman wrote:> On Fri, Sep 20, 2013 at 2:50 PM, Sid Manning <sidneym at codeaurora.org > <mailto:sidneym at codeaurora.org>> wrote: > > > This example generates the following error: > .Ltmp3: > .Ltmp5: > .Ltmp13: > .word (.Ltmp5-.Ltmp3)-.Ltmp13 > > ./llvm-mc ex.s -filetype=obj > LLVM ERROR: expected relocatable expression when using: > > > Umm, isn't this equivalent to the following? What do you expect LLVM to > do with it? > > .Ltmp13: > .word -.Ltmp13I removed the target specific assembly to produce a simple generic example. It was derived from eh_frame code the compiler was emitting. (.Ltmp5-.Ltmp3)+.Ltmp13 does not generate the error.> > -Eli-- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Maybe Matching Threads
- [LLVMdev] LLVM ERROR: expected relocatable expression
- [LLVMdev] LLVM ERROR: expected relocatable expression
- [LLVMdev] LLVM ERROR: expected relocatable expression
- [LLVMdev] LLVM ERROR: expected relocatable expression
- [LLVMdev] LLVM ERROR: expected relocatable expression