From f41c50af5beac81dec79c24ea83e1072eb9dc884 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 31 May 2018 13:00:58 -0700 Subject: [PATCH] Makefile: ld.gold arguments package. --- construct/Makefile.am | 10 +++++++++- ircd/Makefile.am | 9 ++++++--- modules/Makefile.am | 1 + 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/construct/Makefile.am b/construct/Makefile.am index 1c764c8fa..289da2a65 100644 --- a/construct/Makefile.am +++ b/construct/Makefile.am @@ -14,11 +14,19 @@ AM_CPPFLAGS = \ AM_LDFLAGS = \ -dlopen self \ -Wl,-fuse-ld=gold \ - -Wl,--no-gnu-unique \ + -Wl,--warn-execstack \ + -Wl,--warn-common \ + -Wl,--detect-odr-violations \ -Wl,--no-allow-shlib-undefined \ + -Wl,--no-gnu-unique \ -Wl,--no-undefined \ -Wl,--gc-sections \ + -Wl,--dynamic-list-data \ + -Wl,--dynamic-list-cpp-new\ + -Wl,--dynamic-list-cpp-typeinfo \ -Wl,--icf=all \ + -Wl,--rosegment \ + -Wl,-z -Wl,combreloc \ -Wl,-z -Wl,now \ -L$(top_srcdir)/ircd \ -L$(top_srcdir)/modules \ diff --git a/ircd/Makefile.am b/ircd/Makefile.am index 355f11dcf..8209686c6 100644 --- a/ircd/Makefile.am +++ b/ircd/Makefile.am @@ -29,15 +29,18 @@ endif AM_LDFLAGS = \ -version-info 3:1:0 \ -Wl,-fuse-ld=gold \ - -Wl,--no-allow-shlib-undefined \ + -Wl,--detect-odr-violations \ -Wl,--export-dynamic \ + -Wl,--no-undefined \ -Wl,--no-gnu-unique \ -Wl,--gc-sections \ - -Wl,--dynamic-list-data \ -Wl,--icf=all \ + -Wl,--rosegment \ + -Wl,-z -Wl,initfirst \ + -Wl,-z -Wl,nodelete \ + -Wl,-z -Wl,nodlopen \ -Wl,-z -Wl,now \ $(PLATFORM_LDFLAGS) \ - -Wl,--no-undefined \ ### libircd_LTLIBRARIES = libircd.la diff --git a/modules/Makefile.am b/modules/Makefile.am index 8087d35fa..2a6fc8a45 100644 --- a/modules/Makefile.am +++ b/modules/Makefile.am @@ -30,6 +30,7 @@ AM_LDFLAGS += \ -Wl,--no-allow-shlib-undefined \ -Wl,--gc-sections \ -Wl,--icf=all \ + -Wl,--rosegment \ $(PLATFORM_LDFLAGS) \ # -Wl,--no-undefined \ # -export-symbols-regex IRCD_MODULE* \