• Alex Brainman's avatar
    cmd/link: do not add __image_base__ and _image_base__ if external linker · 6db4d92e
    Alex Brainman authored
    The symbols get in a way when using external linker. They are
    not associated with a section. And linker fails when
    generating relocations for them.
    
    __image_base__ and _image_base__ have been added long time ago.
    I do not think they are needed anymore. If I delete them, all
    tests still PASS. I tried going back to the commit that added
    them to see if I can reproduce original error, but I cannot
    build it. I don't have hg version of go repo, and my gcc is
    complaining about cc source code.
    
    I wasted too much time with this, so I decided to leave them only
    for internal linker. That is what they were originally added for.
    
    For #10776.
    
    Change-Id: Ibb72b04f3864947c782f964a7badc69f4b074e25
    Reviewed-on: https://go-review.googlesource.com/36979Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    6db4d92e
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...