[LLVMdev] [patch] DwarfDebug problem with line section

Devang Patel devang.patel at gmail.com
Wed Jun 30 09:40:05 PDT 2010

On Wed, Jun 30, 2010 at 1:57 AM, Artur Pietrek <pietreka at gmail.com> wrote:
> Hi Devang,
> Thanks for working on that. Unfortunately after your change it still doesn't
> work (I've tried x86 and our backend under Linux).

What errors exactly you are seeing ?

> The problem is that you put difference between two labels
> .Lset7 = .Lsection_line_begin-.Lsection_line ## DW_AT_stmt_list
> and that will be evaluated by assembler to a constant. It has to be a label,
> not a constant, because it is the linker who knows the correct offset.

How will linker translate a label into correct offset ?

More information about the llvm-dev mailing list