• David Crawshaw's avatar
    cmd/link: only exclude C-only symbols on darwin · 9cf06ed6
    David Crawshaw authored
    C-only symbols are excluded from pclntab because of a quirk of darwin,
    where functions are referred to by an exported symbol so dynamic
    relocations de-duplicate to the host binary module and break unwinding.
    
    This doesn't happen on ELF systems because the linker always refers to
    unexported module-local symbols, so we don't need this condition.
    And the current logic for excluding some functions breaks the module
    verification code in moduledataverify1. So disable this for plugins
    on linux.
    
    (In 1.9, it will probably be necessary to introduce a module-local
    symbol reference system on darwin to fix a different bug, so all of
    this onlycsymbol code made be short-lived.)
    
    With this CL, the tests in CL 35116 pass.
    
    Change-Id: I517d7ca4427241fa0a91276c462827efb9383be9
    Reviewed-on: https://go-review.googlesource.com/35190Reviewed-by: 's avatarMichael Hudson-Doyle <michael.hudson@canonical.com>
    Run-TryBot: David Crawshaw <crawshaw@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    9cf06ed6
Name
Last commit
Last update
..
ar.go Loading commit data...
config.go Loading commit data...
data.go Loading commit data...
deadcode.go Loading commit data...
decodesym.go Loading commit data...
dwarf.go Loading commit data...
elf.go Loading commit data...
go.go Loading commit data...
ld.go Loading commit data...
ldelf.go Loading commit data...
ldmacho.go Loading commit data...
ldpe.go Loading commit data...
lib.go Loading commit data...
link.go Loading commit data...
macho.go Loading commit data...
macho_combine_dwarf.go Loading commit data...
main.go Loading commit data...
objfile.go Loading commit data...
pcln.go Loading commit data...
pe.go Loading commit data...
sym.go Loading commit data...
symbols.go Loading commit data...
symtab.go Loading commit data...
typelink.go Loading commit data...
util.go Loading commit data...