Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.80
 
1.81
 
MAIN:gmcgarry:20080625114705
 
local.c
_>981981                 printf(LABFMT ",0%o\n", sp->soffset, off);
 982982 }
 983983 
<> 984+static char *
  985+section2string(const char *name, int len)
  986+{
  987+        char *s;
  988+        int n;
  989+
  990+#if defined(ELFABI)
  991+        if (strncmp(name, "link_set", 8) == 0) {
  992+                const char *postfix = ",\"aw\",@progbits";
  993+                n = len + strlen(postfix) + 1;
  994+                s = IALLOC(n);
  995+                strlcpy(s, name, n);
  996+                strlcat(s, postfix, n);
  997+                return s;
  998+        }
  999+#endif
  1000+
  1001+        return newstring(name, len);
  1002+}
  1003+
9841004 char *nextsect;
 9851005 #ifdef TLS
 9861006 static int gottls;
     
 !
10081028                 destructor = 1;
 10091029                 return 1;
 10101030         }
<>1011 -        if (strcmp(ary[1], "section") || ary[2] == NULL)
 1012 -                return 0;
10131031 
<>1014 -        nextsect = newstring(ary[2], strlen(ary[2]));
 1015 -        return 1;
  1032+        if (strcmp(ary[1], "section") == 0 && ary[2] != NULL) {
  1033+                nextsect = section2string(ary[2], strlen(ary[2]));
  1034+                return 1;
  1035+        }
  1036+
  1037+        return 0;
<_10161038 }
 10171039 
 10181040 /*
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-23 12:24 +0200