pike.git
/
NT
/
tools
/
pntld
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/NT/tools/pntld:696:
#else write("[%5d] name : %s\n",e,getCOFFstring(pos)); write("[%5d] value : %x\n",e,i4(pos+8)); write("[%5d] secnum : %d\n",e,i2(pos+12)); write("[%5d] type : %s\n",e,decodeCOFFtype(i2(pos+14))); write("[%5d] Storage class : %s\n",e,decodeCOFFstorageclass(i1(pos+16))); write("[%5d] Num Aux syms : %x\n",e,aux=i1(pos+17)); #endif #endif
+
switch(i1(pos+16))
+
{
+
case 103: continue; /* file */
+
}
string name=getCOFFstring(pos); int cls=i1(pos+16); int sect=i2(pos+12); int value=i4(pos+8); int type=i2(pos+14); if(sect > 32768) sect=65536-sect; Symbol s=Symbol(); s->name=name; s->value=value;
-
+
// werror("SECT: %O %O\n",sect,file_sections);
if(sect > 0) s->section=file_sections[sect-1]; s->type=type; s->cls=cls; s->aux=0; #define COFFSYM_external 2 switch(cls) {
pike.git/NT/tools/pntld:964:
} } int main(int argc, array(string) argv) { int export_all; int strip=0; string output="a.out"; // werror("%O\n",argv); werror("Pike Win32 partial linker.\n"
-
"$Id: pntld,v 1.
6
2001/01/
04
02
:
15
:
44
hubbe Exp $\n"
+
"$Id: pntld,v 1.
7
2001/01/
11
23
:
21
:
24
hubbe Exp $\n"
"Written by Fredrik Hubinette 2000\n"); foreach(Getopt.find_all_options(argv,aggregate( ({"output",Getopt.HAS_ARG,({"-o"})}), ({"R",Getopt.HAS_ARG,({"-R"})}), ({"L",Getopt.HAS_ARG,({"-L"})}), ({"l",Getopt.HAS_ARG,({"-l"})}), ({"S",Getopt.NO_ARG,({"-S"})}), ({"a",Getopt.NO_ARG,({"-a"})}), ({"ignore","Getopt.HAS_ARG",({"-r","-i","-s","-g","-B","-W"})}),