summaryrefslogtreecommitdiffstats
path: root/reloc/reloc.ld
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-01-03 21:54:24 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-01-03 21:54:24 -0800
commitb3e7732cf39938575a287cd55907216c318d940c (patch)
tree4aaf0a8f22dcf2cc5fbb46cbdab6afcad2c99daa /reloc/reloc.ld
downloadwraplinux-b3e7732cf39938575a287cd55907216c318d940c.tar.gz
wraplinux-b3e7732cf39938575a287cd55907216c318d940c.tar.xz
wraplinux-b3e7732cf39938575a287cd55907216c318d940c.zip
Initial commit: functional for newer bzImage kernels
Diffstat (limited to 'reloc/reloc.ld')
-rw-r--r--reloc/reloc.ld27
1 files changed, 27 insertions, 0 deletions
diff --git a/reloc/reloc.ld b/reloc/reloc.ld
new file mode 100644
index 0000000..dc63c62
--- /dev/null
+++ b/reloc/reloc.ld
@@ -0,0 +1,27 @@
+OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
+OUTPUT_ARCH(i386)
+ENTRY(_start)
+SECTIONS
+{
+ . = 0; /* Required for relocatabilty */
+ .start : { *(.start) }
+ .text : { *(.text) }
+ .text16 : { *(.text16) }
+ .rodata : { *(.rodata) }
+ . = ALIGN(4);
+ .data : { *(.data) }
+ .got : { *(.got) }
+ .got.plt : { *(.got.plt) }
+ . = ALIGN(4);
+ .bss :
+ {
+ __bss_start = .;
+ *(.bss)
+ . = ALIGN(4);
+ __bss_end = .;
+ }
+ _end = .;
+ /DISCARD/ : { *(.discard*) }
+}
+
+ \ No newline at end of file