From 279932401cb1e799f2e8bdae7eae47b788c3001d Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 22 Feb 2024 06:13:35 +0000 Subject: internals: slbt_is_strong_coff_symbol(): from _static_ to a _hidden_ function. --- src/internal/slibtool_pecoff_impl.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/internal/slibtool_pecoff_impl.c (limited to 'src/internal/slibtool_pecoff_impl.c') diff --git a/src/internal/slibtool_pecoff_impl.c b/src/internal/slibtool_pecoff_impl.c new file mode 100644 index 0000000..3ce2d0e --- /dev/null +++ b/src/internal/slibtool_pecoff_impl.c @@ -0,0 +1,16 @@ +/*******************************************************************/ +/* slibtool: a skinny libtool implementation, written in C */ +/* Copyright (C) 2016--2024 SysDeer Technologies, LLC */ +/* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ +/*******************************************************************/ + +#include + +#include "slibtool_visibility_impl.h" + +slbt_hidden int slbt_is_strong_coff_symbol(const char * sym) +{ + return strncmp(sym,"__imp_",6) + && strncmp(sym,".weak.",6) + && strncmp(sym,".refptr.",8); +} -- cgit v1.2.3