Blob Blame History Raw
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 gcl (2.6.12-57) unstable; urgency=medium
   * list_order.13
Author: Camm Maguire <>

The information above should follow the Patch Tagging Guidelines, please
checkout to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2017-08-29

--- gcl-2.6.12.orig/h/elf32_mips_reloc.h
+++ gcl-2.6.12/h/elf32_mips_reloc.h
@@ -35,7 +35,7 @@
       if (a) add_vals(where,MASK(16),(s>>16)+a);
     case R_MIPS_LO16:
-      if (sym->st_other) s=gpd;
+      if (sym->st_other) s=gpd ? gpd : ({massert(sym->st_other==2);(ul)got;});
       if (a&0x8000) a|=0xffff0000;