From 8df3b96402d1d35a4de928aaaca9f08018932fa3 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 24 Jun 2025 14:40:18 +0100 Subject: [build] Allow for the existence of small-data sections Signed-off-by: Michael Brown --- src/scripts/linux.lds | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/scripts/linux.lds') diff --git a/src/scripts/linux.lds b/src/scripts/linux.lds index 53e884ec5..f9128954b 100644 --- a/src/scripts/linux.lds +++ b/src/scripts/linux.lds @@ -29,6 +29,8 @@ SECTIONS { . = ALIGN ( _max_align ); .rodata : { _rodata = .; + *(.srodata) + *(.srodata.*) *(.rodata) *(.rodata.*) _erodata = .; @@ -45,6 +47,8 @@ SECTIONS { . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE)); .data : { _data = .; + *(.sdata) + *(.sdata.*) *(.data) *(.data.*) KEEP(*(SORT(.tbl.*))) @@ -61,6 +65,8 @@ SECTIONS { . = ALIGN ( _max_align ); .bss : { _bss = .; + *(.sbss) + *(.sbss.*) *(.bss) *(.bss.*) *(COMMON) -- cgit v1.2.3-55-g7522