0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-28 15:53:46 +02:00

ircd::mods: Eliminate RTLD_DEEPBIND by linking modules -Bsymbolic.

This commit is contained in:
Jason Volk 2022-07-27 15:43:22 -07:00
parent de60a632fb
commit 69dcd7acd9
3 changed files with 9 additions and 2 deletions

View file

@ -909,8 +909,13 @@ try
{
static const load_mode::type flags
{
load_mode::rtld_global |
load_mode::rtld_deepbind
load_mode::rtld_global
// Use deepbind if modules can't be linked with -Bsymbolic
// Note: deepbind is trouble on alpine.
#if 0
| load_mode::rtld_deepbind
#endif
};
// Search for loaded module and increment the reference counter for this handle if loaded.

View file

@ -17,6 +17,7 @@ AM_LDFLAGS += -Wl,--sort-section=name
AM_LDFLAGS += -Wl,--no-undefined-version
AM_LDFLAGS += -Wl,--allow-shlib-undefined
AM_LDFLAGS += -Wl,--unresolved-symbols=ignore-in-shared-libs
AM_LDFLAGS += -Wl,-Bsymbolic
AM_LDFLAGS += -Wl,-z,lazy
AM_LDFLAGS += -L$(top_srcdir)/ircd
AM_LDFLAGS += $(PLATFORM_LDFLAGS)

View file

@ -13,6 +13,7 @@ AM_LDFLAGS =#
AM_LDFLAGS += -module
AM_LDFLAGS += -avoid-version
AM_LDFLAGS += -Wl,--allow-shlib-undefined
AM_LDFLAGS += -Wl,-Bsymbolic
AM_LDFLAGS += -Wl,-z,lazy
AM_LDFLAGS += -L$(top_srcdir)/ircd
AM_LDFLAGS += -L$(top_srcdir)/matrix