• Than McIntosh's avatar
    cmd/compile, cmd/link: support for DWARF file reference relocations · b52b77cb
    Than McIntosh authored
    New relocation flavor R_DWARFFILEREF, to be applied to DWARF attribute
    values that correspond to file references (ex: DW_AT_decl_file,
    DW_AT_call_file). The LSym for this relocation is the file itself; the
    linker replaces the relocation target with the index of the specified
    file in the line table's file section.
    
    Note: for testing purposes this patch changes the DWARF function
    subprogram DIE abbrev to include DW_AT_decl_file (allowed by DWARF
    but not especially useful) so as to have a way to test this
    functionality. This attribute will be removed once there are other
    file reference attributes (coming as part of inlining support).
    
    Change-Id: Icf676beb60fcc33f06d78e747ef717532daaa3ba
    Reviewed-on: https://go-review.googlesource.com/73330
    Run-TryBot: Than McIntosh <thanm@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarAustin Clements <austin@google.com>
    b52b77cb
Name
Last commit
Last update
..
asm.go Loading commit data...
l.go Loading commit data...
obj.go Loading commit data...