From 1839d45f45f6b601e7d03926173714e19fb5c2d9 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 9 Oct 2023 07:11:23 +0000 Subject: [PATCH] eclass/flag-o-matic: Sync with Gentoo It's from Gentoo commit cc7061ee5e3bfd1a7a1bcbdc44f1bd1d69fda495. --- .../third_party/portage-stable/eclass/flag-o-matic.eclass | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sdk_container/src/third_party/portage-stable/eclass/flag-o-matic.eclass b/sdk_container/src/third_party/portage-stable/eclass/flag-o-matic.eclass index b4c27bf89d..c0b042d534 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/flag-o-matic.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/flag-o-matic.eclass @@ -61,6 +61,7 @@ _setup-allowed-flags() { -mindirect-branch-register '-mfunction-return=*' -mretpoline + '-mbranch-protection=*' # Misc -fno-unit-at-a-time -fno-strict-overflow @@ -95,6 +96,7 @@ _setup-allowed-flags() { '-fno-stack-protector*' '-fabi-version=*' -fno-strict-aliasing -fno-bounds-check -fno-bounds-checking -fstrict-overflow -fno-omit-frame-pointer '-fno-builtin*' + -mno-omit-leaf-frame-pointer ) ALLOWED_FLAGS+=( '-mregparm=*' -mno-app-regs -mapp-regs -mno-mmx -mno-sse @@ -132,6 +134,12 @@ _setup-allowed-flags() { # binaries: bug #677852 -mstackrealign ) + ALLOWED_FLAGS+=( + # Clang-only + '--unwindlib=*' + '--rtlib=*' + '--stdlib=*' + ) } # @FUNCTION: _filter-hardened