summaryrefslogtreecommitdiffstats
path: root/kernel.ld
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-05-13 23:14:01 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-05-13 23:14:01 -0500
commit59a7c32126f7aa856221d080fa9eaba3d8bde1d2 (patch)
treef26faf6a7e61b6f6ea2de67ecae8258716a2b493 /kernel.ld
downloadtalos-hostboot-59a7c32126f7aa856221d080fa9eaba3d8bde1d2.tar.gz
talos-hostboot-59a7c32126f7aa856221d080fa9eaba3d8bde1d2.zip
Boot, set 64bit mode, relocate from ROM.
Diffstat (limited to 'kernel.ld')
-rw-r--r--kernel.ld40
1 files changed, 40 insertions, 0 deletions
diff --git a/kernel.ld b/kernel.ld
new file mode 100644
index 000000000..9b7ddd6e0
--- /dev/null
+++ b/kernel.ld
@@ -0,0 +1,40 @@
+base_load_address = 0xfff00000;
+text_load_address = 0xfff08000;
+hreset_load_address = 0xfffffffc;
+
+SECTIONS
+{
+ . = base_load_address;
+
+ .text.intvects ALIGN(0x1000): {
+ *(.text.intvects)
+ }
+
+ . = text_load_address;
+ .text ALIGN(0x1000): {
+ *(.text)
+ *(.rodata)
+ *(.rodata.*)
+ }
+
+ .data ALIGN(0x1000): {
+ *(.data)
+ *(.data.*)
+ *(.branch_lt)
+ *(.opd)
+
+ *(.bss)
+ }
+
+ . = hreset_load_address;
+ .text.hreset : {
+ *(.text.hreset)
+ }
+
+ /DISCARD/ : {
+ *(.comment)
+ *(.gnu.attributes)
+ }
+}
+
+
OpenPOWER on IntegriCloud