summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-22 06:13:35 +0000
committermidipix <writeonce@midipix.org>2024-02-22 06:17:19 +0000
commit279932401cb1e799f2e8bdae7eae47b788c3001d (patch)
tree19b4beceec3e7a96f1235dd06a3772f5f84d74e3 /src/internal
parentb7eee903624f0208c70bc1ea928dce965db8deba (diff)
downloadslibtool-279932401cb1e799f2e8bdae7eae47b788c3001d.tar.bz2
slibtool-279932401cb1e799f2e8bdae7eae47b788c3001d.tar.xz
internals: slbt_is_strong_coff_symbol(): from _static_ to a _hidden_ function.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/slibtool_pecoff_impl.c16
-rw-r--r--src/internal/slibtool_pecoff_impl.h6
2 files changed, 22 insertions, 0 deletions
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 <string.h>
+
+#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);
+}
diff --git a/src/internal/slibtool_pecoff_impl.h b/src/internal/slibtool_pecoff_impl.h
new file mode 100644
index 0000000..e18b5af
--- /dev/null
+++ b/src/internal/slibtool_pecoff_impl.h
@@ -0,0 +1,6 @@
+#ifndef SLIBTOOL_PECOFF_IMPL_H
+#define SLIBTOOL_PECOFF_IMPL_H
+
+int slbt_is_strong_coff_symbol(const char *);
+
+#endif