From a7dede2fe5fb2e7dc9c05510c7c550a655653e02 Mon Sep 17 00:00:00 2001 From: Domagoj Stolfa Date: Mon, 18 Mar 2024 18:03:51 +0000 Subject: [PATCH] libgcc_s: Add new rtld-c18n symbols and flags to libunwind. --- lib/libgcc_s/Makefile | 3 +++ lib/libgcc_s/Symbol-c18n.map | 7 +++++++ lib/libgcc_s/Versions.def | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 lib/libgcc_s/Symbol-c18n.map diff --git a/lib/libgcc_s/Makefile b/lib/libgcc_s/Makefile index fdf5a67d8045..d1f96c21b822 100644 --- a/lib/libgcc_s/Makefile +++ b/lib/libgcc_s/Makefile @@ -53,4 +53,7 @@ SRCS+= s_logbl.c SRCS+= s_scalbnl.c .endif +SYMBOL_MAPS+= ${.CURDIR}/Symbol-c18n.map +CFLAGS+= -D_LIBUNWIND_SANDBOX_OTYPES -D_LIBUNWIND_SANDBOX_HARDENED + .include diff --git a/lib/libgcc_s/Symbol-c18n.map b/lib/libgcc_s/Symbol-c18n.map new file mode 100644 index 000000000000..7b817e2f56ef --- /dev/null +++ b/lib/libgcc_s/Symbol-c18n.map @@ -0,0 +1,7 @@ +FBSDprivate_1.0 { + _rtld_unw_getcontext; + _rtld_unw_setcontext; + _rtld_unw_getcontext_unsealed; + _rtld_unw_setcontext_unsealed; + _rtld_unw_getsealer; +}; diff --git a/lib/libgcc_s/Versions.def b/lib/libgcc_s/Versions.def index d28e9042f744..706fc514451c 100644 --- a/lib/libgcc_s/Versions.def +++ b/lib/libgcc_s/Versions.def @@ -31,3 +31,6 @@ GCC_4.3.0 { GCC_4.6.0 { } GCC_4.3.0; + +FBSDprivate_1.0 { +} GCC_4.6.0;