aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/ldscript.ia64
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2001-03-09 13:47:25 +0000
committerDoug Rabson <dfr@FreeBSD.org>2001-03-09 13:47:25 +0000
commit9c738f3e82f61f47d226e980145dcea4e41d085d (patch)
tree4cc2192aa8e830980e7e5198cf9200fd96b9e265 /sys/conf/ldscript.ia64
parent2af41c92e81a080ec5ec6cdbd7650408cb5c8366 (diff)
Change the kernel layout to match Linux/ia64 more closely. This prevents
the Linux loader from corrupting our text section when it attempts to write out boot options.
Notes
Notes: svn path=/head/; revision=74033
Diffstat (limited to 'sys/conf/ldscript.ia64')
-rw-r--r--sys/conf/ldscript.ia6419
1 files changed, 11 insertions, 8 deletions
diff --git a/sys/conf/ldscript.ia64 b/sys/conf/ldscript.ia64
index e018d3ce5e00..5a7a1d2b17fb 100644
--- a/sys/conf/ldscript.ia64
+++ b/sys/conf/ldscript.ia64
@@ -8,6 +8,17 @@ SECTIONS
{
/* Read-only sections, merged into text segment: */
. = 0xe000000000500000;
+
+ .text :
+ {
+ *(.text.ivt)
+ . += 8192;
+ *(.text)
+ *(.stub)
+ /* .gnu.warning sections are handled specially by elf32.em. */
+ *(.gnu.warning)
+ *(.gnu.linkonce.t*)
+ } =0x47ff041f
.interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
@@ -42,14 +53,6 @@ SECTIONS
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
.init : { *(.init) } =0x47ff041f
- .text :
- {
- *(.text)
- *(.stub)
- /* .gnu.warning sections are handled specially by elf32.em. */
- *(.gnu.warning)
- *(.gnu.linkonce.t*)
- } =0x47ff041f
_etext = .;
PROVIDE (etext = .);
.fini : { *(.fini) } =0x47ff041f