Skip to content

Commit

Permalink
WIP: Add a libgcc_s linker script
Browse files Browse the repository at this point in the history
This seems to fix outline atomics

Sponsored by:	Arm Ltd
  • Loading branch information
zxombie committed May 16, 2024
1 parent cdf9840 commit 947dd83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/googletest/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GTEST_DIR= ${SRCTOP}/contrib/googletest
GOOGLEMOCK_SRCROOT= ${GTEST_DIR}/googlemock
GOOGLETEST_SRCROOT= ${GTEST_DIR}/googletest

CXXFLAGS+= ${GTESTS_FLAGS} -mno-outline-atomics
CXXFLAGS+= ${GTESTS_FLAGS}

# Silence warnings about usage of deprecated implicit copy constructors
CXXWARNFLAGS+= -Wno-deprecated-copy
2 changes: 2 additions & 0 deletions lib/libgcc_s/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ PACKAGE= clibs
SHLIB_NAME= libgcc_s.so.1
SHLIBDIR?= /lib

SHLIB_LDSCRIPT=libgcc_s.ldscript

# Enabling UBSan triggers "undefined reference to vtable for __cxxabiv1::__function_type_info"
MK_UBSAN:= no

Expand Down
1 change: 1 addition & 0 deletions lib/libgcc_s/libgcc_s.ldscript
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GROUP ( @@SHLIB@@ -lgcc )

0 comments on commit 947dd83

Please sign in to comment.