1
0
mirror of https://github.com/golang/go synced 2024-09-25 09:20:18 -06:00
go/src
Clément Chigot f0749c74fd cmd/link: fix moduledata symbols for aix/ppc64 and external linking
Moduledata symbols like runtime.data or runtime.text must have the
same position in the final executable (as some symbol accesses are made
by offset from them).
ld on AIX might move them randomly if there are nil size symbols.

ld will also remove unreachable symbols like runtime.epclntab or
runtime.rodata. In order to keep them, R_REF relocations are created
between firstmoduledata and these symbols. This relocation tells ld to
keep these symbols even if there aren't reachable.

Change-Id: Ie5a28cf406977131cec6442f7f5b6fd89fb775a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/164004
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2019-03-06 15:56:41 +00:00
..
archive archive/tar, syscall: add statUnix for aix/ppc64 2019-02-27 23:40:20 +00:00
bufio bufio: fix emptyFinalToken example to handle multiple Reads 2019-03-02 18:28:10 +00:00
builtin
bytes bytes: add examples for ToTitleSpecial, ToUpperSpecial and ToLowerSpecial 2019-03-01 14:56:41 +00:00
cmd cmd/link: fix moduledata symbols for aix/ppc64 and external linking 2019-03-06 15:56:41 +00:00
compress compress/gzip: clarify that Multistream gzip requires a ByteReader 2019-02-26 23:02:40 +00:00
container container/heap: avoid memory leak in example 2019-02-26 23:42:26 +00:00
context
crypto all: add -mod=vendor to GOFLAGS in tests that execute 'go' commands within std or cmd 2019-03-05 18:21:29 +00:00
database/sql database/sql/driver: fix typo 2019-02-15 17:23:55 +00:00
debug all: add -mod=vendor to GOFLAGS in tests that execute 'go' commands within std or cmd 2019-03-05 18:21:29 +00:00
encoding all: join a few chained ifs 2019-03-05 20:31:32 +00:00
errors errors: add Unwrap, Is, and As 2019-02-27 19:09:40 +00:00
expvar
flag flag: improve docs for PrintDefaults; clarify how to change output destination 2019-01-21 05:30:12 +00:00
fmt fmt: rewrite if-else-if-else chain to switch statement 2019-03-06 15:12:49 +00:00
go go/parser: include more comments in a struct or interface 2019-03-06 06:05:15 +00:00
hash hash/fnv: use bits.Mul64 for 128-bit hash 2018-12-10 22:50:48 +00:00
html html/template: prevent test from failing with nil pointer dereference 2019-03-02 01:53:40 +00:00
image image/png: delete unused statement 2019-02-28 18:24:51 +00:00
index/suffixarray
internal all: add -mod=vendor to GOFLAGS in tests that execute 'go' commands within std or cmd 2019-03-05 18:21:29 +00:00
io io: align style of test comments in multi_test.go 2019-02-26 23:01:20 +00:00
log
math math/big: rewrite pure Go implementations to use math/bits 2019-03-04 20:49:12 +00:00
mime mime/multipart: quote boundary in Content-Type if necessary 2018-12-13 23:58:06 +00:00
net net/mail: better error in ParseAddress when missing "@domain" 2019-03-06 07:56:20 +00:00
os os: add UserConfigDir 2019-03-05 15:14:36 +00:00
path path/filepath: don't discard .. in EvalSymlinks 2019-03-05 01:01:11 +00:00
plugin plugin: fix build constraint to disable test on linux/arm64 2018-11-28 18:14:20 +00:00
reflect all: rename WebAssembly instructions according to spec changes 2019-03-03 21:10:01 +00:00
regexp regexp: add ReplaceAllStringFunc example 2019-02-27 21:48:41 +00:00
runtime cmd/link, runtime: allow external linking for aix/ppc64 2019-03-06 15:32:25 +00:00
sort sort: change let to let's 2019-01-27 01:34:56 +00:00
strconv strconv: simplify (*extFloat).Multiply using math/bits.Mul64 2019-03-04 22:25:21 +00:00
strings strings: add ReplaceAll example 2018-12-13 00:35:06 +00:00
sync sync: allow inlining the Mutex.Unlock fast path 2019-03-05 14:59:31 +00:00
syscall syscall: fix hang when using Unshareflags: CLONE_NEWUSER with uid/gid mapping (linux) 2019-03-06 14:49:30 +00:00
testdata
testing all: join a few chained ifs 2019-03-05 20:31:32 +00:00
text text/template: error on method calls on nil interfaces 2019-02-26 18:05:09 +00:00
time time: move the explanation of u/micro to the ParseDuration example 2019-02-28 00:24:56 +00:00
unicode
unsafe
all.bash
all.bat
all.rc
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash cmd/dist: build exec wrappers during bootstrap 2019-02-26 17:59:23 +00:00
make.bash cmd/dist, cmd/link: allow passing default dynamic linker/loader 2019-03-01 06:06:13 +00:00
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc