libroot: Add x86-specific stub.

Needed for bootstrapping.
This commit is contained in:
Augustin Cavalier 2024-11-05 13:51:02 -05:00
parent 79e2ef5c69
commit 79efafa0e0
2 changed files with 4 additions and 0 deletions

View File

@ -10,11 +10,14 @@ for architectureObject in [ MultiArchSubDirSetup ] {
local stubsSource ; local stubsSource ;
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 { if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
stubsSource = [ FGristFiles libroot_stubs_legacy.c ] ; stubsSource = [ FGristFiles libroot_stubs_legacy.c ] ;
} else if $(TARGET_PACKAGING_ARCH) = x86 {
stubsSource = [ FGristFiles libroot_stubs.c libroot_stubs_x86.c ] ;
} else if $(TARGET_PACKAGING_ARCH) = sparc { } else if $(TARGET_PACKAGING_ARCH) = sparc {
stubsSource = [ FGristFiles libroot_stubs.c libroot_stubs_sparc.c ] ; stubsSource = [ FGristFiles libroot_stubs.c libroot_stubs_sparc.c ] ;
} else { } else {
stubsSource = [ FGristFiles libroot_stubs.c ] ; stubsSource = [ FGristFiles libroot_stubs.c ] ;
} }
local stubsObject = $(stubsSource:S=$(SUFOBJ)) ; local stubsObject = $(stubsSource:S=$(SUFOBJ)) ;
CCFLAGS on $(stubsObject) = -Wno-missing-prototypes -fno-builtin ; CCFLAGS on $(stubsObject) = -Wno-missing-prototypes -fno-builtin ;
Depends $(stubsObject) : $(stubsSource) ; Depends $(stubsObject) : $(stubsSource) ;

View File

@ -0,0 +1 @@
void ___tls_get_addr() {}