It looks like llvm-mc isn't treating section relative expressions correctly. In this example: .text mov (.rodata+0), %rsi .section .rodata .byte 0xff llvm-mc will create an undefined symbol for the expression, ".rodata+0" and a relocation will be generated against the undefined symbol not the section. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
On 8 November 2013 11:03, Sid Manning <sidneym at codeaurora.org> wrote:> It looks like llvm-mc isn't treating section relative expressions correctly. > > In this example: > .text > mov (.rodata+0), %rsi > .section .rodata > .byte 0xff > > > llvm-mc will create an undefined symbol for the expression, ".rodata+0" and > a relocation will be generated against the undefined symbol not the section.Should be fixed in r219835. Thanks! Cheers, Rafael
Maybe Matching Threads
- [LLVMdev] gcc bug?..segfault problem with getElfArchType.
- [LLVMdev] LLVM ERROR: expected relocatable expression
- [LLVMdev] LLVM ERROR: expected relocatable expression
- [LLVMdev] LLVM ERROR: expected relocatable expression
- [LLVMdev] Hwo to guess PC-relative offset