aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/6l
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2014-12-17 12:13:47 -0500
committerAustin Clements <austin@google.com>2014-12-22 22:47:05 +0000
commit326ceeabc46db98cccfbde80fde562c0fb3325c3 (patch)
tree1ce2402dc28583e057bf767d33616708f98129ed /src/cmd/6l
parent6c78443b3e13c43ea887f6b73099e0c1297327c5 (diff)
downloadgo-326ceeabc46db98cccfbde80fde562c0fb3325c3.tar.xz
cmd/ld: add a text generation pass
This will be used by ppc64 to add call stubs to the .text section. ARM needs a similar pass to generate veneers for arm->thumb transitions. Change-Id: Iaee74036e60643a56fab15b564718f359c5910eb Reviewed-on: https://go-review.googlesource.com/2004 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/6l')
-rw-r--r--src/cmd/6l/asm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/6l/asm.c b/src/cmd/6l/asm.c
index 18b5aa3119..41c9cc84c6 100644
--- a/src/cmd/6l/asm.c
+++ b/src/cmd/6l/asm.c
@@ -74,6 +74,11 @@ static void addpltsym(LSym*);
static void addgotsym(LSym*);
void
+gentext(void)
+{
+}
+
+void
adddynrela(LSym *rela, LSym *s, Reloc *r)
{
addaddrplus(ctxt, rela, s, r->off);