1
0
mirror of https://github.com/golang/go synced 2024-11-12 02:00:23 -07:00

Bug fix. Without rounding, .shstrtab is written on top of data segment

SVN=122567
This commit is contained in:
Rob Pike 2008-06-12 18:51:06 -07:00
parent b6c9221bb1
commit 67e141b637

View File

@ -226,7 +226,7 @@ debug['s'] = 1;
break; break;
case 7: case 7:
debug['s'] = 1; debug['s'] = 1;
seek(cout, HEADR+textsize+datsize, 0); seek(cout, rnd(HEADR+textsize, INITRND)+datsize, 0);
linuxstrtable(); linuxstrtable();
break; break;
case 6: case 6:
@ -498,7 +498,6 @@ w = bsssize;
8, /* align */ 8, /* align */
0); /* entsize */ 0); /* entsize */
fo = HEADR+textsize+datsize;
w = stroffset + w = stroffset +
strlen(".shstrtab")+1; strlen(".shstrtab")+1;
// strlen(".gosymtab")+1; // strlen(".gosymtab")+1;