Commit 72dd0145 authored by Russ Cox's avatar Russ Cox

cmd/5l: fix build (define stub machoreloc1)

R=ken2
CC=golang-dev
https://golang.org/cl/7694043
parent 761c3867
......@@ -295,6 +295,16 @@ elfsetupplt(void)
}
}
int
machoreloc1(Reloc *r, vlong sectoff)
{
USED(r);
USED(sectoff);
return -1;
}
int
archreloc(Reloc *r, Sym *s, vlong *val)
{
......@@ -325,15 +335,16 @@ archreloc(Reloc *r, Sym *s, vlong *val)
*val = braddoff((0xff000000U & (uint32)r->add),
(0xffffff & (uint32)
((symaddr(r->sym) + ((uint32)r->add) * 4 - (s->value + r->off)) / 4)));
return 0;
}
return -1;
return 0;
}
return -1;
}
static Reloc *
addpltreloc(Sym *plt, Sym *got, Sym *sym, int typ)
{
Reloc *r;
Reloc *r;
r = addrel(plt);
r->sym = got;
r->off = plt->size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment