From 79efafa0e0eff75323cbcb55f2f05cdf61326113 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 5 Nov 2024 13:51:02 -0500 Subject: [PATCH] libroot: Add x86-specific stub. Needed for bootstrapping. --- src/system/libroot/stubbed/Jamfile | 3 +++ src/system/libroot/stubbed/libroot_stubs_x86.c | 1 + 2 files changed, 4 insertions(+) create mode 100644 src/system/libroot/stubbed/libroot_stubs_x86.c diff --git a/src/system/libroot/stubbed/Jamfile b/src/system/libroot/stubbed/Jamfile index a1b5a6107e..012b503d4a 100644 --- a/src/system/libroot/stubbed/Jamfile +++ b/src/system/libroot/stubbed/Jamfile @@ -10,11 +10,14 @@ for architectureObject in [ MultiArchSubDirSetup ] { local stubsSource ; if $(TARGET_PACKAGING_ARCH) = x86_gcc2 { 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 { stubsSource = [ FGristFiles libroot_stubs.c libroot_stubs_sparc.c ] ; } else { stubsSource = [ FGristFiles libroot_stubs.c ] ; } + local stubsObject = $(stubsSource:S=$(SUFOBJ)) ; CCFLAGS on $(stubsObject) = -Wno-missing-prototypes -fno-builtin ; Depends $(stubsObject) : $(stubsSource) ; diff --git a/src/system/libroot/stubbed/libroot_stubs_x86.c b/src/system/libroot/stubbed/libroot_stubs_x86.c new file mode 100644 index 0000000000..84eaf58f68 --- /dev/null +++ b/src/system/libroot/stubbed/libroot_stubs_x86.c @@ -0,0 +1 @@ +void ___tls_get_addr() {}