ld: Change the name of section .user_mmu_data to user_mmu_tables

The arch/x86/CMakeLists.txt build scripts names five sections that are
generated from .bin files. Two of them are named the same as the .bin
file, and the other three are named inconsistently.

To be consistent, we will rename the three that are named inconistenly
to align with the two that are named as the .bin file.

Being consistent simplifies the system and fosters code-reuse.

This patch renames user_mmu_tables.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2019-02-19 15:55:58 +01:00 committed by Andrew Boie
parent d5ea49bcbd
commit d1a14b7eb2
2 changed files with 2 additions and 2 deletions

View file

@ -195,7 +195,7 @@ if(CONFIG_X86_MMU)
-I binary
-B ${OUTPUT_ARCH}
-O ${OUTPUT_FORMAT}
--rename-section .data=.user_mmu_data
--rename-section .data=user_mmu_tables
user_mmu_tables.bin
user_mmu_tables.o
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}

View file

@ -381,7 +381,7 @@ SECTIONS
KEEP(*(mmu_tables));
#ifdef CONFIG_X86_KPTI
z_x86_user_pdpt = .;
KEEP(*(.user_mmu_data));
KEEP(*(user_mmu_tables));
#endif /* CONFIG_X86_KPTI */
__mmu_tables_end = .;
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)