summaryrefslogtreecommitdiff
path: root/util/mkelfImage/linux-i386/convert.lds
diff options
context:
space:
mode:
Diffstat (limited to 'util/mkelfImage/linux-i386/convert.lds')
-rw-r--r--util/mkelfImage/linux-i386/convert.lds36
1 files changed, 36 insertions, 0 deletions
diff --git a/util/mkelfImage/linux-i386/convert.lds b/util/mkelfImage/linux-i386/convert.lds
new file mode 100644
index 0000000000..2195fe435d
--- /dev/null
+++ b/util/mkelfImage/linux-i386/convert.lds
@@ -0,0 +1,36 @@
+OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
+OUTPUT_ARCH(i386)
+
+
+ENTRY(startup_32)
+SECTIONS
+{
+ . = 0x10000;
+ _text = .; /* Text and read-only data */
+ .text . : {
+ *(.text)
+ *(.text.*)
+ } = 0x9090
+ .rodata (.): {
+ *(.rodata)
+ *(.rodata.*)
+ }
+ _etext = .; /* End of text section */
+ .data (.): { /* Data */
+ *(.data)
+ *(.data.*)
+ *(.trailer)
+ }
+ _edata = .; /* End of data section */
+ _bss = .; /* BSS */
+ .bss (.): {
+ *(.bss)
+ }
+ _end = . ;
+ bss_size = _end - _bss;
+
+ /DISCARD/ : {
+ *(.comment)
+ *(.note)
+ }
+}