summaryrefslogtreecommitdiffstats
path: root/reloc.S
blob: bf858ced5c64e9827abcc1fc2451987073b68a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * All this does is it wraps reloc/reloc.bin in a .o file.
 * This could also be done with a binary-to-C converter.
 */

		.data
		.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:

/*
 * This is necessary to keep the whole executable
 * from needing a writable stack.
 */
		.section        .note.GNU-stack,"",@progbits