diff options
author | Shenghou Ma <minux.ma@gmail.com> | 2013-09-23 13:08:00 -0400 |
---|---|---|
committer | Shenghou Ma <minux.ma@gmail.com> | 2013-09-23 13:08:00 -0400 |
commit | 2cc6e31ca7ca994407ac0592548d0a84a21e2d9e (patch) | |
tree | c778459a9c1396b75601e0856a68897543769882 | |
parent | 53f2d937e501d0937bc94e4012c5afca8b630d5a (diff) | |
download | go-2cc6e31ca7ca994407ac0592548d0a84a21e2d9e.tar.gz |
cmd/ld: fix "_image_base__ not defined" problem for cmd/8l.
Fixes issue 6431.
Change suggested by kin.wilson.za.
R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/13314048
-rw-r--r-- | src/cmd/ld/pe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/ld/pe.c b/src/cmd/ld/pe.c index 090d083f5..7b9a596fc 100644 --- a/src/cmd/ld/pe.c +++ b/src/cmd/ld/pe.c @@ -151,6 +151,7 @@ peinit(void) // some mingw libs depend on this symbol, for example, FindPESectionByName xdefine("__image_base__", SDATA, PEBASE); + xdefine("_image_base__", SDATA, PEBASE); } static void |