summaryrefslogtreecommitdiffstats
path: root/reloc.S
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.S
downloadwraplinux-b3e7732cf39938575a287cd55907216c318d940c.tar.gz
wraplinux-b3e7732cf39938575a287cd55907216c318d940c.tar.xz
wraplinux-b3e7732cf39938575a287cd55907216c318d940c.zip
Initial commit: functional for newer bzImage kernels
Diffstat (limited to 'reloc.S')
-rw-r--r--reloc.S17
1 files changed, 17 insertions, 0 deletions
diff --git a/reloc.S b/reloc.S
new file mode 100644
index 0000000..f7d1310
--- /dev/null
+++ b/reloc.S
@@ -0,0 +1,17 @@
+/*
+ * All this does is it wraps reloc/reloc.bin in a .o file.
+ * This could also be done with a binary-to-C converter.
+ */
+
+ .section ".rodata","a"
+ .balign 4
+ .globl reloc_size
+reloc_size:
+ .long .L_reloc_end-reloc
+ .size reloc_size, 4
+
+ .globl reloc
+reloc:
+ .incbin "reloc/reloc.bin"
+ .size reloc,.-reloc
+.L_reloc_end: