Commit c3ca0561 authored by Russ Cox's avatar Russ Cox

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
parent 46eb0f7b
...@@ -426,7 +426,7 @@ asmb(void) ...@@ -426,7 +426,7 @@ asmb(void)
wputl(4); /* Shdr with strings */ wputl(4); /* Shdr with strings */
fo = 0; fo = 0;
va = INITRND; va = INITTEXT & ~((vlong)INITRND - 1);
w = HEADR+textsize; w = HEADR+textsize;
linuxphdr(1, /* text - type = PT_LOAD */ linuxphdr(1, /* text - type = PT_LOAD */
...@@ -537,7 +537,7 @@ asmb(void) ...@@ -537,7 +537,7 @@ asmb(void)
w = symsize; w = symsize;
linuxshdr(".gosymtab", /* name */ linuxshdr(".gosymtab", /* name */
2, /* type */ 7, /* type */
0, /* flags */ 0, /* flags */
0, /* addr */ 0, /* addr */
fo, /* off */ fo, /* off */
...@@ -551,7 +551,7 @@ asmb(void) ...@@ -551,7 +551,7 @@ asmb(void)
w = lcsize; w = lcsize;
linuxshdr(".gopclntab", /* name */ linuxshdr(".gopclntab", /* name */
2, /* type */ 7, /* type */
0, /* flags */ 0, /* flags */
0, /* addr */ 0, /* addr */
fo, /* off */ fo, /* off */
......
...@@ -198,7 +198,7 @@ main(int argc, char *argv[]) ...@@ -198,7 +198,7 @@ main(int argc, char *argv[])
case 7: /* elf64 executable */ case 7: /* elf64 executable */
HEADR = linuxheadr(); HEADR = linuxheadr();
if(INITTEXT == -1) if(INITTEXT == -1)
INITTEXT = 4096+HEADR; INITTEXT = (1<<22)+HEADR;
if(INITDAT == -1) if(INITDAT == -1)
INITDAT = 0; INITDAT = 0;
if(INITRND == -1) if(INITRND == -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