• David Crawshaw's avatar
    cmd/link: handle R_GOTPCREL separately on darwin · 7ee79365
    David Crawshaw authored
    To generate the correct section offset the shared code path for
    R_CALL, R_PCREL, and R_GOTPCREL on darwin when externally linking
    walks up the symbol heirarchy adding the differences. This is fine,
    except in the case where we are generating a GOT lookup, because
    the topmost symbol is left in r.Xsym instead of the symbol we are
    looking up. So all funcsym GOT lookups were looking up the outer
    "go.func.*" symbol.
    
    Fix this by separating out the R_GOTPCREL code path.
    
    For #17828 (and may fix it).
    
    Change-Id: I2c9f4d135e77c17270aa064d8c876dc6d485d659
    Reviewed-on: https://go-review.googlesource.com/33211
    Run-TryBot: David Crawshaw <crawshaw@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    7ee79365
Name
Last commit
Last update
..
errors Loading commit data...
fortran Loading commit data...
gmp Loading commit data...
life Loading commit data...
nocgo Loading commit data...
stdio Loading commit data...
test Loading commit data...
testasan Loading commit data...
testcarchive Loading commit data...
testcshared Loading commit data...
testgodefs Loading commit data...
testplugin Loading commit data...
testsanitizers Loading commit data...
testshared Loading commit data...
testsigfwd Loading commit data...
testso Loading commit data...
testsovar Loading commit data...
testtls Loading commit data...