[LLVMdev] section relative expressions

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Oct 15 12:41:22 PDT 2014


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



More information about the llvm-dev mailing list