aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld/lib.h
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-10-10 00:55:48 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-10-10 00:55:48 +0800
commitfa563ae82e2d1038656be21c52831e7ad42108a8 (patch)
tree94a7df7dfaab2aae1dc44a7a7b1dc99a7415b509 /src/cmd/ld/lib.h
parentcffbfaeb1819bfb6770848c4d57615f0ee1a46ba (diff)
downloadgo-fa563ae82e2d1038656be21c52831e7ad42108a8.tar.xz
cmd/ld, cmd/6l, cmd/8l: sort exported dynamic symbols for Darwin
Also corrected cmd/8l's .dynsym handling (differentiate between exported symbols and imported symbols) Fixes #4029. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6620075
Diffstat (limited to 'src/cmd/ld/lib.h')
-rw-r--r--src/cmd/ld/lib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/ld/lib.h b/src/cmd/ld/lib.h
index d322df5c6b..162e16180f 100644
--- a/src/cmd/ld/lib.h
+++ b/src/cmd/ld/lib.h
@@ -196,6 +196,8 @@ vlong addaddr(Sym*, Sym*);
vlong addaddrplus(Sym*, Sym*, int32);
vlong addpcrelplus(Sym*, Sym*, int32);
vlong addsize(Sym*, Sym*);
+vlong setaddrplus(Sym*, vlong, Sym*, int32);
+vlong setaddr(Sym*, vlong, Sym*);
void setuint8(Sym*, vlong, uint8);
void setuint16(Sym*, vlong, uint16);
void setuint32(Sym*, vlong, uint32);
@@ -341,3 +343,5 @@ char* decodetype_structfieldname(Sym*, int);
Sym* decodetype_structfieldtype(Sym*, int);
vlong decodetype_structfieldoffs(Sym*, int);
vlong decodetype_ifacemethodcount(Sym*);
+
+void sortdynexp(void);