• 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
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...