mirror of
https://github.com/golang/go
synced 2024-11-26 04:17:59 -07:00
cmd/5l: fix build (define stub machoreloc1)
R=ken2 CC=golang-dev https://golang.org/cl/7694043
This commit is contained in:
parent
761c386770
commit
72dd01451f
@ -295,6 +295,16 @@ elfsetupplt(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
machoreloc1(Reloc *r, vlong sectoff)
|
||||||
|
{
|
||||||
|
USED(r);
|
||||||
|
USED(sectoff);
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
archreloc(Reloc *r, Sym *s, vlong *val)
|
archreloc(Reloc *r, Sym *s, vlong *val)
|
||||||
{
|
{
|
||||||
@ -334,6 +344,7 @@ static Reloc *
|
|||||||
addpltreloc(Sym *plt, Sym *got, Sym *sym, int typ)
|
addpltreloc(Sym *plt, Sym *got, Sym *sym, int typ)
|
||||||
{
|
{
|
||||||
Reloc *r;
|
Reloc *r;
|
||||||
|
|
||||||
r = addrel(plt);
|
r = addrel(plt);
|
||||||
r->sym = got;
|
r->sym = got;
|
||||||
r->off = plt->size;
|
r->off = plt->size;
|
||||||
|
Loading…
Reference in New Issue
Block a user