list_order.13
authorCamm Maguire <camm@debian.org>
Mon, 30 Dec 2019 15:46:22 +0000 (15:46 +0000)
committerCamm Maguire <camm@debian.org>
Mon, 30 Dec 2019 15:46:22 +0000 (15:46 +0000)
Gbp-Pq: Name list_order.13

h/elf32_mips_reloc.h

index 629f2f5448103d4dcc15860ff4a8fc545dfe24e2..8346d264e82640059ae9d5c1421e7a5ba5cee91d 100644 (file)
@@ -35,7 +35,7 @@
       if (a) add_vals(where,MASK(16),(s>>16)+a);
       break;
     case R_MIPS_LO16:
-      if (sym->st_other) s=gpd;
+      if (sym->st_other) s=gpd ? gpd : ({massert(sym->st_other==2);(ul)got;});
       a=*where&MASK(16);
       if (a&0x8000) a|=0xffff0000; 
       a+=s&MASK(16);