• David du Colombier's avatar
    cmd/link: fix build on plan9/amd64 · 29c600bb
    David du Colombier authored
    Support for multiple text sections was added in CL 27790.
    However, this change broke the build on plan9/amd64.
    
    In relocsym, the R_ADDROFF relocation was changed to
    use offsets relative to the start of the first text
    section. However, Segtext.Vaddr is the address of
    the text segment, while we expect to start from
    the first section (text.runtime) of the text segment.
    
    Fixes #17411.
    
    Change-Id: I86bbcbda81cea735b0ecf156eab2e6e5d63acce3
    Reviewed-on: https://go-review.googlesource.com/30911
    Run-TryBot: David du Colombier <0intro@gmail.com>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    29c600bb
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...