]> Cypherpunks repositories - gostls13.git/commit
cmd/6l, cmd/internal/ld: handle R_PCREL to function in other shared library
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Tue, 5 May 2015 04:10:12 +0000 (16:10 +1200)
committerIan Lance Taylor <iant@golang.org>
Wed, 6 May 2015 00:17:23 +0000 (00:17 +0000)
commit9f5d0bff415b57726b38f0ca85183f379ca04432
tree19e3fd8ddccf23dab3888e5fe01cd81e0be3eff7
parentc661cb01f7cbe5683395569dea0556ba1679723a
cmd/6l, cmd/internal/ld: handle R_PCREL to function in other shared library

An ELF linker handles a PC-relative reference to an STT_FUNC defined in a
shared library by building a PLT entry and referring to that, so do the
same in 6l.

Fixes #10690

Change-Id: I061a96fd4400d957e301d0ac86760ce256910e1d
Reviewed-on: https://go-review.googlesource.com/9711
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/6l/asm.go
src/cmd/internal/ld/lib.go
src/cmd/internal/ld/link.go
src/cmd/internal/ld/symtab.go