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:
parent
b6c9221bb1
commit
67e141b637
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user