Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10)

Delta Between Two Patch Sets: src/cmd/9l/asm.c

Issue 160200044: [dev.power64] code review 160200044: build: merge default into dev.power64 (Closed)
Left Patch Set: diff -r be0c14f62257b42485019e9e1db23cf40d2e249f https://code.google.com/p/go Created 10 years, 4 months ago
Right Patch Set: diff -r be0c14f62257b42485019e9e1db23cf40d2e249f https://code.google.com/p/go Created 10 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/9g/gsubr.c ('k') | src/cmd/addr2line/main.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Inferno utils/5l/asm.c 1 // Inferno utils/5l/asm.c
2 // http://code.google.com/p/inferno-os/source/browse/utils/5l/asm.c 2 // http://code.google.com/p/inferno-os/source/browse/utils/5l/asm.c
3 // 3 //
4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. 4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) 5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net)
6 // Portions Copyright © 1997-1999 Vita Nuova Limited 6 // Portions Copyright © 1997-1999 Vita Nuova Limited
7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov a.com) 7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov a.com)
8 // Portions Copyright © 2004,2006 Bruce Ellis 8 // Portions Copyright © 2004,2006 Bruce Ellis
9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) 9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net)
10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others 10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 if(!debug['s']) { 238 if(!debug['s']) {
239 // TODO: rationalize 239 // TODO: rationalize
240 if(debug['v']) 240 if(debug['v'])
241 Bprint(&bso, "%5.2f sym\n", cputime()); 241 Bprint(&bso, "%5.2f sym\n", cputime());
242 Bflush(&bso); 242 Bflush(&bso);
243 switch(HEADTYPE) { 243 switch(HEADTYPE) {
244 default: 244 default:
245 if(iself) 245 if(iself)
246 goto ElfSym; 246 goto ElfSym;
247 case Hplan9: 247 case Hplan9:
248 » » » symo = HEADR+segtext.len+segdata.filelen; 248 » » » symo = segdata.fileoff+segdata.filelen;
249 break; 249 break;
250 ElfSym: 250 ElfSym:
251 » » » symo = rnd(HEADR+segtext.filelen, INITRND)+rnd(HEADR+seg rodata.filelen, INITRND)+segdata.filelen; 251 » » » symo = segdata.fileoff+segdata.filelen;
252 symo = rnd(symo, INITRND); 252 symo = rnd(symo, INITRND);
253 break; 253 break;
254 } 254 }
255 cseek(symo); 255 cseek(symo);
256 switch(HEADTYPE) { 256 switch(HEADTYPE) {
257 default: 257 default:
258 if(iself) { 258 if(iself) {
259 if(debug['v']) 259 if(debug['v'])
260 Bprint(&bso, "%5.2f elfsym\n", cputime() ); 260 Bprint(&bso, "%5.2f elfsym\n", cputime() );
261 asmelfsym(); 261 asmelfsym();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 if(r <= 0) 330 if(r <= 0)
331 return v; 331 return v;
332 v += r - 1; 332 v += r - 1;
333 c = v % r; 333 c = v % r;
334 if(c < 0) 334 if(c < 0)
335 c += r; 335 c += r;
336 v -= c; 336 v -= c;
337 return v; 337 return v;
338 } 338 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b