• Gustavo Niemeyer's avatar
    ld: don't attempt to build dynamic sections unnecessarily · 89d334ff
    Gustavo Niemeyer authored
    This prevents ld from generating zeroed symtab entries for
    sections that aren't going to be generated because dynamic
    linkage has been disabled (-d was used or no dynamic libs
    were seen).  Even though they were not explicitly added by
    doelf, the section creation process was making them
    reachable again.
    
    The windows head is being disconsidered for this because
    apparently it's not taking into account debug['d'].
    
    This makes elflint 0.1% happier.
    
    R=golang-dev, rsc, gustavo
    CC=golang-dev
    https://golang.org/cl/4638050
    89d334ff
Name
Last commit
Last update
..
data.c Loading commit data...
doc.go Loading commit data...
dwarf.c Loading commit data...
dwarf.h Loading commit data...
dwarf_defs.h Loading commit data...
elf.c Loading commit data...
elf.h Loading commit data...
go.c Loading commit data...
ldelf.c Loading commit data...
ldmacho.c Loading commit data...
ldpe.c Loading commit data...
lib.c Loading commit data...
lib.h Loading commit data...
macho.c Loading commit data...
macho.h Loading commit data...
pe.c Loading commit data...
pe.h Loading commit data...
symtab.c Loading commit data...