Skip to content

Commit

Permalink
libgcc_s: Add new rtld-c18n symbols and flags to libunwind.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstolfa committed Mar 4, 2024
1 parent cb88616 commit e08934f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/libgcc_s/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <bsd.lib.mk>
7 changes: 7 additions & 0 deletions lib/libgcc_s/Symbol-c18n.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FBSDprivate_1.0 {
_rtld_unw_getcontext;
_rtld_unw_setcontext;
_rtld_unw_getcontext_unsealed;
_rtld_unw_setcontext_unsealed;
_rtld_unw_getsealer;
};
3 changes: 3 additions & 0 deletions lib/libgcc_s/Versions.def
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ GCC_4.3.0 {

GCC_4.6.0 {
} GCC_4.3.0;

FBSDprivate_1.0 {
} GCC_4.6.0;

0 comments on commit e08934f

Please sign in to comment.