diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2018-06-30 03:35:49 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2018-07-04 15:35:22 +0200 |
commit | e73825ea4b12cc62caa95faa902bfc9ebb48f58a (patch) | |
tree | 03ba42e9a903644e064a0b7e3a83801aedb63157 /solenv/gbuild | |
parent | f0d007b7b70e2845df082d11f023e4fca9ac947f (diff) |
drop usage of --dynamic-list-cpp-new/typeinfo
First of all, lld doesn't have these options, but there doesn't seem
to be any point in using them anyway. They are supposed to block
the effect of -Bsymbolic-functions, but:
- --dynamic-list-cpp-new matters only if we'd create our own global
operator new/delete, which we don't
- --dynamic-list-cpp-typeinfo affects only the typeinfo (_ZTI*)
and typeinfo name (_ZTS*) symbols, which are not functions, and
so -Bsymbolic-functions shouldn't do anything with them. According
to https://sourceware.org/bugzilla/show_bug.cgi?id=3831
my understanding is that --dynamic-list-cpp-typeinfo actually
predates -Bsymbolic-functions and it was an attempt to do the same
from the other direction ('bind locally everything except for this'
instead of 'bind locally only functions').
Change-Id: Iadad2d78f32a2adfb9c2100fb4eb5abe75725545
Reviewed-on: https://gerrit.libreoffice.org/56739
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Tested-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/platform/solaris.mk | 6 | ||||
-rw-r--r-- | solenv/gbuild/platform/unxgcc.mk | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/solenv/gbuild/platform/solaris.mk b/solenv/gbuild/platform/solaris.mk index 2210d4f972d1..88fa9413f726 100644 --- a/solenv/gbuild/platform/solaris.mk +++ b/solenv/gbuild/platform/solaris.mk @@ -81,11 +81,7 @@ gb_LinkTarget_LDFLAGS += \ endif ifneq ($(HAVE_LD_BSYMBOLIC_FUNCTIONS),) -gb_LinkTarget_LDFLAGS += \ - -Wl,--dynamic-list-cpp-new \ - -Wl,--dynamic-list-cpp-typeinfo \ - -Wl,-Bsymbolic-functions \ - +gb_LinkTarget_LDFLAGS += -Wl,-Bsymbolic-functions endif # sun ld doesn't understand -O1 optimize flag diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk index 8505f9638a19..79144b19763b 100644 --- a/solenv/gbuild/platform/unxgcc.mk +++ b/solenv/gbuild/platform/unxgcc.mk @@ -75,11 +75,7 @@ gb_LinkTarget_LDFLAGS += \ endif ifneq ($(HAVE_LD_BSYMBOLIC_FUNCTIONS),) -gb_LinkTarget_LDFLAGS += \ - -Wl,--dynamic-list-cpp-new \ - -Wl,--dynamic-list-cpp-typeinfo \ - -Wl,-Bsymbolic-functions \ - +gb_LinkTarget_LDFLAGS += -Wl,-Bsymbolic-functions endif ifneq ($(gb_DEBUGLEVEL),0) |