Remove redundant section wildcard members in kernel linker script

This commit is contained in:
Imbus 2025-05-31 10:23:24 +02:00
parent d1efbdf3bd
commit 2c49f5cec3

View file

@ -16,7 +16,7 @@ SECTIONS
*/
.text : {
/* Match any section that starts with .text. */
*(.text .text.*)
*(.text*)
/* Align the next section to a 4KB (page) boundary. */
. = ALIGN(0x1000);
@ -44,9 +44,9 @@ SECTIONS
.rodata : {
/* Align on quadword boundary. */
. = ALIGN(16);
*(.srodata .srodata.*) /* do not need to distinguish this from .rodata */
*(.srodata*) /* do not need to distinguish this from .rodata */
. = ALIGN(16);
*(.rodata .rodata.*)
*(.rodata*)
}
/*
@ -55,9 +55,9 @@ SECTIONS
*/
.data : {
. = ALIGN(16);
*(.sdata .sdata.*) /* do not need to distinguish this from .data */
*(.sdata*) /* do not need to distinguish this from .data */
. = ALIGN(16);
*(.data .data.*)
*(.data*)
}
/*
@ -68,9 +68,9 @@ SECTIONS
*/
.bss : {
. = ALIGN(16);
*(.sbss .sbss.*) /* do not need to distinguish this from .bss */
*(.sbss*) /* do not need to distinguish this from .bss */
. = ALIGN(16);
*(.bss .bss.*)
*(.bss*)
}
/* Define symbol end as current location, note that this is not aligned, see vm.c */