Skip to content

Commit

Permalink
try dropping hidden symbol workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Oct 16, 2024
1 parent 8f79259 commit 4ff0f6d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions libressl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,11 @@ _VER="$1"
CPPFLAGS+=' -DS2N_BN_HIDE_SYMBOLS'

if [ "${_OS}" = 'mac' ]; then
CPPFLAGS+=' -Dglobl=private_extern' # make assembly symbols hidden

# Workaround for mis-detecting 'strtonum' successfully despite targeting
# older OS version, then using it.
if [ "${_OSVER}" -lt '1100' ]; then
options+=' -DHAVE_STRTONUM=0'
fi
elif [ "${_OS}" = 'linux' ] && [ "${_CPU}" = 'x64' ]; then
# Add a `.hidden <func>` next to each `.globl <func>` one:
find . -name '*-elf-x86_64.S' | sort | while read -r f; do
awk '/^\.globl\t/ {s=$0; sub("^.globl", ".hidden", s); print s}; {print}' < "${f}" > "${f}.tmp"
mv "${f}.tmp" "${f}"
done
fi

if [ "${CW_DEV_CMAKE_PREFILL:-}" = '1' ] && [ "${_OS}" = 'win' ]; then
Expand Down

0 comments on commit 4ff0f6d

Please sign in to comment.