From d241a682bb4bff9b2247c8003e3f086ffb92cd6e Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Wed, 30 Sep 2015 08:31:12 +0000 Subject: community/go-bootstrap: moved from main --- community/go-bootstrap/no-pic.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 community/go-bootstrap/no-pic.patch (limited to 'community/go-bootstrap/no-pic.patch') diff --git a/community/go-bootstrap/no-pic.patch b/community/go-bootstrap/no-pic.patch new file mode 100644 index 0000000000..633dd9a1cf --- /dev/null +++ b/community/go-bootstrap/no-pic.patch @@ -0,0 +1,14 @@ +--- a/src/cmd/ld/lib.c ++++ b/src/cmd/ld/lib.c +@@ -786,6 +786,11 @@ hostlink(void) + p = strchr(p + 1, ' '); + } + ++ // The Go linker does not currently support building objects that ++ // may be linked into a PIE. See: ++ // https://code.google.com/p/go/issues/detail?id=6940 ++ argv[argc++] = "-fno-PIC"; ++ + argv[argc] = nil; + + quotefmtinstall(); -- cgit v1.2.3