ld: Change the name of input section .gdt_ram_data to gdt
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 gdt. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
d1a14b7eb2
commit
c5837eabcb
2 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ if(CONFIG_GDT_DYNAMIC)
|
|||
-I binary
|
||||
-B ${OUTPUT_ARCH}
|
||||
-O ${OUTPUT_FORMAT}
|
||||
--rename-section .data=gdt_ram_data
|
||||
--rename-section .data=gdt
|
||||
gdt.bin
|
||||
gdt.o
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
|
|
|
@ -331,7 +331,7 @@ SECTIONS
|
|||
. = ALIGN(8);
|
||||
_gdt = .;
|
||||
#ifdef LINKER_PASS2
|
||||
KEEP(*(gdt_ram_data))
|
||||
KEEP(*(gdt))
|
||||
#else /* LINKER_PASS2 */
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue