summaryrefslogtreecommitdiff
path: root/stand/i386/boot.ldscript
diff options
context:
space:
mode:
Diffstat (limited to 'stand/i386/boot.ldscript')
-rw-r--r--stand/i386/boot.ldscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/stand/i386/boot.ldscript b/stand/i386/boot.ldscript
new file mode 100644
index 0000000000000..04ea39d476938
--- /dev/null
+++ b/stand/i386/boot.ldscript
@@ -0,0 +1,11 @@
+/* $FreeBSD$ */
+/* Merge text, data and bss together almost no padding */
+OUTPUT_FORMAT("elf32-i386-freebsd")
+OUTPUT_ARCH(i386)
+ENTRY(_start)
+SECTIONS {
+ . = 0x08048000 + SIZEOF_HEADERS;
+ .text : { *(.text) } =0x90909090 /* Pad with nops, if needed */
+ .data : { *(.data) } _edata = .;
+ .bss : { *(.bss) } _end = .;
+}