explicit PHDRS to control number of Elf32_Phdr: no PT_GNU_STACK

l_lx_elf86.lds l_lx_exec86.lds l_lx_sep86.lds l_lx_sh86.lds

committer: jreiser <jreiser> 1083997506 +0000
This commit is contained in:
John Reiser
2004-05-08 06:25:06 +00:00
parent 767e4e2ce6
commit fee6f17caf
3 changed files with 19 additions and 11 deletions
+6 -2
View File
@@ -31,6 +31,11 @@
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
OUTPUT_ARCH(i386)
/*ENTRY(_start)*/
PHDRS /* force exactly 1 ELF32_Phdr: in particular, no PT_GNU_STACK */
{
phdr0 PT_LOAD FILEHDR PHDRS FLAGS(7);
}
SECTIONS
{
/* 0x00401000: l_lx_exec86.asm assumes 1 page up from 64KB boundary */
@@ -41,6 +46,5 @@ SECTIONS
*(.data)
*(.bss)
*(COMMON)
}
/* save other Phdr for the overlay */
} : phdr0
}