The _dl_sort_maps_init() is not defined when tunables is not enabled.
Checked on x86_64-linux-gnu.
#endif
/* Initialize the DSO sort algorithm to use. */
+#if !HAVE_TUNABLES
+static inline void
+__always_inline
+_dl_sort_maps_init (void)
+{
+ /* This is optimized out if tunables are not enabled. */
+}
+#else
extern void _dl_sort_maps_init (void) attribute_hidden;
+#endif
/* Initialization of libpthread for statically linked applications.
If libpthread is not linked in, this is an empty function. */