Commit 67e141b6 authored by Rob Pike's avatar Rob Pike

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

SVN=122567
parent b6c9221b
...@@ -226,7 +226,7 @@ debug['s'] = 1; ...@@ -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; ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment