diff options
| author | Michael Brown | 2025-06-24 15:40:18 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-06-24 15:40:57 +0200 |
| commit | 8df3b96402d1d35a4de928aaaca9f08018932fa3 (patch) | |
| tree | 81392a15493a98d7936aebd531c1a7846c554412 /src/scripts | |
| parent | [legacy] Allocate legacy driver .bss-like segments at probe time (diff) | |
| download | ipxe-8df3b96402d1d35a4de928aaaca9f08018932fa3.tar.gz ipxe-8df3b96402d1d35a4de928aaaca9f08018932fa3.tar.xz ipxe-8df3b96402d1d35a4de928aaaca9f08018932fa3.zip | |
[build] Allow for the existence of small-data sections
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/scripts')
| -rw-r--r-- | src/scripts/efi.lds | 6 | ||||
| -rw-r--r-- | src/scripts/linux.lds | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/scripts/efi.lds b/src/scripts/efi.lds index 218b1df66..a3b2c29d2 100644 --- a/src/scripts/efi.lds +++ b/src/scripts/efi.lds @@ -39,6 +39,8 @@ SECTIONS { . = ALIGN ( _page_align ); .rodata : { _rodata = .; + *(.srodata) + *(.srodata.*) *(.rodata) *(.rodata.*) _erodata = .; @@ -52,6 +54,8 @@ SECTIONS { . = ALIGN ( _page_align ); .data : { _data = .; + *(.sdata) + *(.sdata.*) *(.data) *(.data.*) KEEP(*(SORT(.tbl.*))) /* Various tables. See include/tables.h */ @@ -68,6 +72,8 @@ SECTIONS { . = ALIGN ( _page_align ); .bss : { _bss = .; + *(.sbss) + *(.sbss.*) *(.bss) *(.bss.*) *(COMMON) 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) |
