]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/ld: explicitly ignore R_*_NONE relocation to fix build
authorShenghou Ma <minux.ma@gmail.com>
Fri, 17 Aug 2012 01:11:58 +0000 (09:11 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Fri, 17 Aug 2012 01:11:58 +0000 (09:11 +0800)
        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

index df4c16275f5231c3812fe4446782fea0c52a2272..6376d9370ef065559d4d06db0ab48de82a99e7af 100644 (file)
@@ -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 {