mirror of
https://github.com/golang/go
synced 2024-11-22 01:44:40 -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;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user