aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/ld/pe.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/link/internal/ld/pe.go')
-rw-r--r--src/cmd/link/internal/ld/pe.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/link/internal/ld/pe.go b/src/cmd/link/internal/ld/pe.go
index 8eb4231c3a..871bf8de2b 100644
--- a/src/cmd/link/internal/ld/pe.go
+++ b/src/cmd/link/internal/ld/pe.go
@@ -1061,6 +1061,8 @@ func Peinit(ctxt *Link) {
// linker will honour that requirement.
PESECTALIGN = 32
PEFILEALIGN = 0
+ // We are creating an object file. The absolute address is irrelevant.
+ PEBASE = 0
}
var sh [16]pe.SectionHeader32