diff --git a/src/cmd/6l/span.c b/src/cmd/6l/span.c index b0b666f04c..460a34f2fe 100644 --- a/src/cmd/6l/span.c +++ b/src/cmd/6l/span.c @@ -881,7 +881,8 @@ putrelv: r = addrel(cursym); *r = rel; r->off = curp->pc + andptr - and; - } else if(iself && linkmode == LinkExternal && a->type == D_INDIR+D_FS) { + } else if(iself && linkmode == LinkExternal && a->type == D_INDIR+D_FS + && HEADTYPE != Hopenbsd) { Reloc *r; Sym *s;