]> Cypherpunks repositories - gostls13.git/commit
cmd/link: set ELF CPIC bit in mips64 objects
authorIan Lance Taylor <iant@golang.org>
Thu, 4 May 2017 20:13:24 +0000 (16:13 -0400)
committerIan Lance Taylor <iant@golang.org>
Thu, 4 May 2017 20:35:56 +0000 (20:35 +0000)
commit39c07ce9e5311c94880789f19f2f8b49bf1b5241
treea484f8e529b4a4ddf5aed989b27d593245378427
parent98b3e3a0649e749129380bf9117f20402701ec2d
cmd/link: set ELF CPIC bit in mips64 objects

We already set it for mips32 objects. The native ELF linker warns when
linking PIC objects with non-PIC objects. Our objects are PIC, but we
were not marking them as such.

Fixes #20243.

Change-Id: Ifab131200b263e4c72cf81f7b131a65ac02a13a9
Reviewed-on: https://go-review.googlesource.com/42710
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/elf.go