Felix Held | 2439b2e | 2023-04-03 19:18:32 +0200 | [diff] [blame^] | 1 | all_x86-y += mode_switch.S |
Arthur Heymans | 597b9e9 | 2022-04-19 20:48:42 +0200 | [diff] [blame] | 2 | |
| 3 | # Add --defsym=_start=0 to suppress a linker warning. |
Arthur Heymans | b18fec5 | 2022-10-08 23:09:32 +0200 | [diff] [blame] | 4 | $(objcbfs)/pt: $(dir)/pt.S $(obj)/config.h |
Arthur Heymans | 597b9e9 | 2022-04-19 20:48:42 +0200 | [diff] [blame] | 5 | $(CC_bootblock) $(CFLAGS_bootblock) $(CPPFLAGS_bootblock) -o $@.tmp $< -Wl,--section-start=.rodata=$(CONFIG_ARCH_X86_64_PGTBL_LOC),--defsym=_start=0 |
| 6 | $(OBJCOPY_ramstage) -Obinary -j .rodata $@.tmp $@ |
| 7 | rm $@.tmp |
| 8 | |
| 9 | cbfs-files-y += pagetables |
| 10 | pagetables-file := $(objcbfs)/pt |
| 11 | pagetables-type := raw |
| 12 | pagetables-compression := none |
| 13 | pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC) |