From 93fac8859c528520142e83d838a664aa37bf267f Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Fri, 17 Aug 2012 09:11:58 +0800 Subject: [PATCH] cmd/ld: explicitly ignore R_*_NONE relocation to fix build I don't know why this relocation is used. R=golang-dev, iant CC=golang-dev https://golang.org/cl/6464070 --- src/cmd/ld/ldelf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd/ld/ldelf.c b/src/cmd/ld/ldelf.c index df4c16275f..6376d9370e 100644 --- a/src/cmd/ld/ldelf.c +++ b/src/cmd/ld/ldelf.c @@ -658,6 +658,8 @@ ldelf(Biobuf *f, char *pkg, int64 len, char *pn) p += 4; } } + if(info & 0xffffffff == 0) // R_*_NONE relocation + continue; if((info >> 32) == 0) { // absolute relocation, don't bother reading the null symbol rp->sym = S; } else { -- 2.48.1