Use custom ldscript template to fix missing .bss warning from linker

This fixes "No linker command file input for section '.bss'" being printed by the linker for every TU that includes the weak .bss from the PCH but then it gets stripped out and doesn't appear in the final object.
This commit is contained in:
LagoLunatic
2025-08-26 23:02:54 -04:00
parent d9c2ffe619
commit f1dc07558c
8 changed files with 1733 additions and 0 deletions
File diff suppressed because it is too large Load Diff
+18
View File
@@ -0,0 +1,18 @@
SECTIONS
{
GROUP:
{
.init :{}
.text ALIGN(0x4):{}
.ctors ALIGN(0x4):{}
.dtors ALIGN(0x4):{}
.rodata ALIGN(0x8):{}
.data ALIGN(0x8):{ *(.data) *(extabindex) *(extab) }
.bss ALIGN(0x8):{}
}
}
FORCEACTIVE
{
$FORCEACTIVE
}
File diff suppressed because it is too large Load Diff
+18
View File
@@ -0,0 +1,18 @@
SECTIONS
{
GROUP:
{
.init :{}
.text ALIGN(0x4):{}
.ctors ALIGN(0x4):{}
.dtors ALIGN(0x4):{}
.rodata ALIGN(0x8):{}
.data ALIGN(0x8):{ *(.data) *(extabindex) *(extab) }
.bss ALIGN(0x8):{}
}
}
FORCEACTIVE
{
$FORCEACTIVE
}
File diff suppressed because it is too large Load Diff
+18
View File
@@ -0,0 +1,18 @@
SECTIONS
{
GROUP:
{
.init :{}
.text ALIGN(0x4):{}
.ctors ALIGN(0x4):{}
.dtors ALIGN(0x4):{}
.rodata ALIGN(0x8):{}
.data ALIGN(0x8):{ *(.data) *(extabindex) *(extab) }
.bss ALIGN(0x8):{}
}
}
FORCEACTIVE
{
$FORCEACTIVE
}
File diff suppressed because it is too large Load Diff
+18
View File
@@ -0,0 +1,18 @@
SECTIONS
{
GROUP:
{
.init :{}
.text ALIGN(0x4):{}
.ctors ALIGN(0x4):{}
.dtors ALIGN(0x4):{}
.rodata ALIGN(0x8):{}
.data ALIGN(0x8):{ *(.data) *(extabindex) *(extab) }
.bss ALIGN(0x8):{}
}
}
FORCEACTIVE
{
$FORCEACTIVE
}