1
0
mirror of https://github.com/golang/go synced 2024-11-22 06:54:39 -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;
case 7:
debug['s'] = 1;
seek(cout, HEADR+textsize+datsize, 0);
seek(cout, rnd(HEADR+textsize, INITRND)+datsize, 0);
linuxstrtable();
break;
case 6:
@ -498,7 +498,6 @@ w = bsssize;
8, /* align */
0); /* entsize */
fo = HEADR+textsize+datsize;
w = stroffset +
strlen(".shstrtab")+1;
// strlen(".gosymtab")+1;