summaryrefslogtreecommitdiff
path: root/src/cmd/ld/pe.c
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2013-09-23 13:08:00 -0400
committerShenghou Ma <minux.ma@gmail.com>2013-09-23 13:08:00 -0400
commit2cc6e31ca7ca994407ac0592548d0a84a21e2d9e (patch)
treec778459a9c1396b75601e0856a68897543769882 /src/cmd/ld/pe.c
parent53f2d937e501d0937bc94e4012c5afca8b630d5a (diff)
downloadgo-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
Diffstat (limited to 'src/cmd/ld/pe.c')
-rw-r--r--src/cmd/ld/pe.c1
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