aboutsummaryrefslogtreecommitdiff
path: root/src/liblink
diff options
context:
space:
mode:
authorAram Hăvărneanu <aram@mgk.ro>2014-11-13 16:07:10 +0100
committerAram Hăvărneanu <aram@mgk.ro>2014-11-13 16:07:10 +0100
commite088e16256a00447c6d5cded22ceb62bcdcc4698 (patch)
tree663844ae9b34a1833042ebf12371396cab0ed181 /src/liblink
parenta0862a175dc1d4df280f4ae08a847d1e74680955 (diff)
downloadgo-e088e16256a00447c6d5cded22ceb62bcdcc4698.tar.xz
[dev.cc] runtime: convert Solaris port to Go
Memory management was consolitated with the BSD ports, since it was almost identical. Assembly thunks are gone, being replaced by the new //go:linkname feature. This change supersedes CL 138390043 (runtime: convert solaris netpoll to Go), which was previously reviewed and tested. This change is only the first step, the port now builds, but doesn't run. Binaries fail to exec: ld.so.1: 6.out: fatal: 6.out: TLS requirement failure : TLS support is unavailable Killed This seems to happen because binaries don't link with libc.so anymore. We will have to solve that in a different CL. Also this change is just a rough translation of the original C code, cleanup will come in a different CL. [This CL is part of the removal of C code from package runtime. See golang.org/s/dev.cc for an overview.] LGTM=rsc R=rsc, dave CC=golang-codereviews, iant, khr, minux, r, rlh https://golang.org/cl/174960043
Diffstat (limited to 'src/liblink')
-rw-r--r--src/liblink/asm6.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/liblink/asm6.c b/src/liblink/asm6.c
index 428eb9442b..7971022b56 100644
--- a/src/liblink/asm6.c
+++ b/src/liblink/asm6.c
@@ -1543,9 +1543,8 @@ static vlong vaddr(Link*, Addr*, Reloc*);
static int
isextern(LSym *s)
{
- // All the Solaris dynamic imports from libc.so begin with "libc·", which
- // the compiler rewrites to "libc." by the time liblink gets it.
- return strncmp(s->name, "libc.", 5) == 0;
+ // All the Solaris dynamic imports from libc.so begin with "libc_".
+ return strncmp(s->name, "libc_", 5) == 0;
}
// single-instruction no-ops of various lengths.