diff options
Diffstat (limited to 'arch/x86/boot/header.S')
-rw-r--r-- | arch/x86/boot/header.S | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S index f1bbeeb09148..8bbea6aa40d9 100644 --- a/arch/x86/boot/header.S +++ b/arch/x86/boot/header.S | |||
@@ -147,7 +147,7 @@ optional_header: | |||
147 | # Filled in by build.c | 147 | # Filled in by build.c |
148 | .long 0x0000 # AddressOfEntryPoint | 148 | .long 0x0000 # AddressOfEntryPoint |
149 | 149 | ||
150 | .long 0x0000 # BaseOfCode | 150 | .long 0x0200 # BaseOfCode |
151 | #ifdef CONFIG_X86_32 | 151 | #ifdef CONFIG_X86_32 |
152 | .long 0 # data | 152 | .long 0 # data |
153 | #endif | 153 | #endif |
@@ -189,7 +189,7 @@ extra_header_fields: | |||
189 | .quad 0 # SizeOfHeapCommit | 189 | .quad 0 # SizeOfHeapCommit |
190 | #endif | 190 | #endif |
191 | .long 0 # LoaderFlags | 191 | .long 0 # LoaderFlags |
192 | .long 0x1 # NumberOfRvaAndSizes | 192 | .long 0x6 # NumberOfRvaAndSizes |
193 | 193 | ||
194 | .quad 0 # ExportTable | 194 | .quad 0 # ExportTable |
195 | .quad 0 # ImportTable | 195 | .quad 0 # ImportTable |
@@ -217,18 +217,17 @@ section_table: | |||
217 | 217 | ||
218 | # | 218 | # |
219 | # The EFI application loader requires a relocation section | 219 | # The EFI application loader requires a relocation section |
220 | # because EFI applications are relocatable and not having | 220 | # because EFI applications must be relocatable. But since |
221 | # this section seems to confuse it. But since we don't need | 221 | # we don't need the loader to fixup any relocs for us, we |
222 | # the loader to fixup any relocs for us just fill it with a | 222 | # just create an empty (zero-length) .reloc section header. |
223 | # single dummy reloc. | ||
224 | # | 223 | # |
225 | .ascii ".reloc" | 224 | .ascii ".reloc" |
226 | .byte 0 | 225 | .byte 0 |
227 | .byte 0 | 226 | .byte 0 |
228 | .long reloc_end - reloc_start | 227 | .long 0 |
229 | .long reloc_start | 228 | .long 0 |
230 | .long reloc_end - reloc_start # SizeOfRawData | 229 | .long 0 # SizeOfRawData |
231 | .long reloc_start # PointerToRawData | 230 | .long 0 # PointerToRawData |
232 | .long 0 # PointerToRelocations | 231 | .long 0 # PointerToRelocations |
233 | .long 0 # PointerToLineNumbers | 232 | .long 0 # PointerToLineNumbers |
234 | .word 0 # NumberOfRelocations | 233 | .word 0 # NumberOfRelocations |
@@ -469,10 +468,3 @@ setup_corrupt: | |||
469 | 468 | ||
470 | .data | 469 | .data |
471 | dummy: .long 0 | 470 | dummy: .long 0 |
472 | |||
473 | .section .reloc | ||
474 | reloc_start: | ||
475 | .long dummy - reloc_start | ||
476 | .long 10 | ||
477 | .word 0 | ||
478 | reloc_end: | ||