From 401f6c2b8c84076a683d72e29f1db57c121c3d74 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 12 Oct 2016 11:16:20 +0200 Subject: [PATCH] iface-helper/build: add linker version script --- Makefile.am | 1 + linker-script-binary.ver | 6 ++++++ src/Makefile.am | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 linker-script-binary.ver diff --git a/Makefile.am b/Makefile.am index 0d52b008a..dd818fa81 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,6 +34,7 @@ EXTRA_DIST = \ intltool-extract.in \ intltool-merge.in \ intltool-update.in \ + linker-script-binary.ver \ linker-script-settings.ver \ Makefile.glib \ autogen.sh \ diff --git a/linker-script-binary.ver b/linker-script-binary.ver new file mode 100644 index 000000000..a2780c090 --- /dev/null +++ b/linker-script-binary.ver @@ -0,0 +1,6 @@ +{ +global: + _IO_stdin_used; +local: + *; +}; diff --git a/src/Makefile.am b/src/Makefile.am index e1a051034..e0633d4c2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -595,7 +595,8 @@ nm_iface_helper_LDADD = \ $(LIBM) nm_iface_helper_LDFLAGS = \ - -rdynamic + -rdynamic \ + -Wl,--version-script="$(top_srcdir)/linker-script-binary.ver" ###############################################################################