• Alex Brainman's avatar
    cmd/link: add all pe section names to pe symbol table · b660a4b0
    Alex Brainman authored
    dwarf relocations refer to dwarf section symbols, so dwarf
    section symbols must be present in pe symbol table before we
    write dwarf relocations.
    
    .ctors pe section already refer to .text symbol.
    
    Write all pe section name symbols into symbol table, so we
    can use them whenever we need them.
    
    This CL also simplified some code.
    
    For #10776.
    
    Change-Id: I9b8c680ea75904af90c797a06bbb1f4df19e34b6
    Reviewed-on: https://go-review.googlesource.com/36978Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    b660a4b0
ldpe.go 12.5 KB