[LLVMbugs] [Bug 8715] incorrect .debug_line section entries in generated .s file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 1 08:10:52 PST 2010


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

Devang Patel <dpatel at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |

--- Comment #4 from Devang Patel <dpatel at apple.com> 2010-12-01 10:10:52 CST ---
I am reopening this because this is a darwin9 issue.

The assembler+linker on darwin9 are not able to handle this. The linker crashes
in fact. This could be a bug in linker. However, this is a new regression
caused by llvm code generator changes in .debug_line output in .s file.

FWIW, here is what llvm code generator used to emit before .loc related changes
were introduced.


        .section        __DWARF,__debug_line,regular,debug
Lset2 = Lline_end-Lline_begin           ## Length of Source Line Info
        .long   Lset2
Lline_begin:
        .short  2                       ## DWARF version number
Lset3 = Lline_prolog_end-Lline_prolog_begin ## Prolog Length
        .long   Lset3
Lline_prolog_begin:
        .byte   1                       ## Minimum Instruction Length
        .byte   1                       ## Default is_stmt_start flag
        .byte   246                     ## Line Base Value (Special Opcodes)
        .byte   245                     ## Line Range Value (Special Opcodes)
        .byte   10                      ## Special Opcode Base
        .byte   0                       ## DW_LNS_copy arg count
        .byte   1                       ## DW_LNS_advance_pc arg count
        .byte   1                       ## DW_LNS_advance_line arg count
        .byte   1                       ## DW_LNS_set_file arg count
        .byte   1                       ## DW_LNS_set_column arg count
        .byte   0                       ## DW_LNS_negate_stmt arg count
        .byte   0                       ## DW_LNS_set_basic_block arg count
        .byte   0                       ## DW_LNS_const_add_pc arg count
        .byte   1                       ## DW_LNS_fixed_advance_pc arg count
        .asciz   "/tmp/"                ## Directory
        .byte   0                       ## End of directories
        .asciz   "g.c"                  ## Source
        .byte   1                       ## Directory #
        .byte   0                       ## Mod date
        .byte   0                       ## File size
        .byte   0                       ## End of files
Lline_prolog_end:
        .byte   0                       ## Extended Op
        .byte   9                       ## Op size
        .byte   2                       ## DW_LNE_set_address
        .quad   Lsection_end1           ## Section end label
        .byte   0                       ## DW_LNE_end_sequence
        .byte   1
        .byte   1
Lline_end:

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list