Commit 04b4dbe1 authored by David Crawshaw's avatar David Crawshaw

cmd/link: mark PIE binaries as ET_DYN

Part of adding PIE internal linking on linux/amd64.

Change-Id: I586e7c2afba349281168df5e20d2fdcb697f6e37
Reviewed-on: https://go-review.googlesource.com/28542Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent d9d1399e
......@@ -2589,6 +2589,8 @@ elfobj:
if Linkmode == LinkExternal {
eh.type_ = ET_REL
} else if Buildmode == BuildmodePIE {
eh.type_ = ET_DYN
} else {
eh.type_ = ET_EXEC
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment