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;
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;
......
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