• David Crawshaw's avatar
    cmd/link: plugin support on darwin/amd64 · 73e7a569
    David Crawshaw authored
    This CL turns some special section marker symbols into real symbols
    laid out in the sections they mark. This is to deal with the fact
    that dyld on OS X resolves the section marker symbols in any dlopen-ed
    Go program to the original section marker symbols in the host program.
    
    More details in a comment in cmd/link/internal/ld/data.go.
    
    Change-Id: Ie9451cfbf06d0bdcccb9959219c791b829f3f771
    Reviewed-on: https://go-review.googlesource.com/29394Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: David Crawshaw <crawshaw@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    73e7a569
macho.go 22 KB