diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-07-24 19:27:54 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-07-24 19:27:54 +0200 |
| commit | 94d007b7bda07f0aa97ed5ae5e1b64bb8d6576f0 (patch) | |
| tree | b1b2202555b19a526ef137488edbb6cb8fdc5ddf | |
| parent | 03214f80ef456f3f826db96fdad697df43effb3f (diff) | |
| download | teachos-toolchain-94d007b7bda07f0aa97ed5ae5e1b64bb8d6576f0.tar.xz teachos-toolchain-94d007b7bda07f0aa97ed5ae5e1b64bb8d6576f0.zip | |
x86_64: use init_array for global ctors
| -rw-r--r-- | Makefile | 2 | ||||
| -rwxr-xr-x | scripts/0300-build-bootstrap-gcc.sh | 1 | ||||
| -rwxr-xr-x | scripts/0500-build-target-gcc.sh | 1 |
3 files changed, 3 insertions, 1 deletions
@@ -7,7 +7,7 @@ NEWLIB_VERSION ?= 4.5.0.20241231 TARGET ?= x86_64-pc-elf PLATFORM ?= x86-64 -IMAGE_BUILD ?= 3 +IMAGE_BUILD ?= 4 all: podman pull docker.io/archlinux:latest diff --git a/scripts/0300-build-bootstrap-gcc.sh b/scripts/0300-build-bootstrap-gcc.sh index 0e54b3b..f5c28e7 100755 --- a/scripts/0300-build-bootstrap-gcc.sh +++ b/scripts/0300-build-bootstrap-gcc.sh @@ -19,6 +19,7 @@ CXXFLAGS=${CXXFLAGS/-Werror=format-security/} PATH=/opt/bootstrap/bin:/opt/toolchain/bin:$PATH ../gcc-$GCC_VERSION/configure \ + --enable-initfini-array \ --enable-languages=c,c++ \ --prefix=/opt/bootstrap \ --target=$TARGET \ diff --git a/scripts/0500-build-target-gcc.sh b/scripts/0500-build-target-gcc.sh index ac00bbe..e3053f8 100755 --- a/scripts/0500-build-target-gcc.sh +++ b/scripts/0500-build-target-gcc.sh @@ -15,6 +15,7 @@ PATH=/opt/bootstrap/bin:/opt/toolchain/bin:$PATH --disable-wchar_t \ --enable-cxx-flags=-fno-exceptions \ --enable-default-pie \ + --enable-initfini-array \ --enable-languages=c++ \ --enable-plugin \ --prefix=/opt/toolchain \ |
