mirror of
https://github.com/golang/go
synced 2024-11-19 01:34:40 -07:00
go linux x86-64 kernel fixes:
* change .gosymtab and .gopclntab to section 7 (note) * start INITTEXT at 4MB, not 4KB R=r OCL=14953 CL=14959
This commit is contained in:
parent
46eb0f7b08
commit
c3ca056143
@ -426,7 +426,7 @@ asmb(void)
|
||||
wputl(4); /* Shdr with strings */
|
||||
|
||||
fo = 0;
|
||||
va = INITRND;
|
||||
va = INITTEXT & ~((vlong)INITRND - 1);
|
||||
w = HEADR+textsize;
|
||||
|
||||
linuxphdr(1, /* text - type = PT_LOAD */
|
||||
@ -537,7 +537,7 @@ asmb(void)
|
||||
w = symsize;
|
||||
|
||||
linuxshdr(".gosymtab", /* name */
|
||||
2, /* type */
|
||||
7, /* type */
|
||||
0, /* flags */
|
||||
0, /* addr */
|
||||
fo, /* off */
|
||||
@ -551,7 +551,7 @@ asmb(void)
|
||||
w = lcsize;
|
||||
|
||||
linuxshdr(".gopclntab", /* name */
|
||||
2, /* type */
|
||||
7, /* type */
|
||||
0, /* flags */
|
||||
0, /* addr */
|
||||
fo, /* off */
|
||||
|
@ -198,7 +198,7 @@ main(int argc, char *argv[])
|
||||
case 7: /* elf64 executable */
|
||||
HEADR = linuxheadr();
|
||||
if(INITTEXT == -1)
|
||||
INITTEXT = 4096+HEADR;
|
||||
INITTEXT = (1<<22)+HEADR;
|
||||
if(INITDAT == -1)
|
||||
INITDAT = 0;
|
||||
if(INITRND == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user