[COMMITTED] elf: Fix e6fd79f379 build with --enable-tunables=no

Message ID 20211021202838.3707560-1-adhemerval.zanella@linaro.org
State Committed
Commit 927246e1882e4aa0ac3abac1fc795be494c38141
Series [COMMITTED] elf: Fix e6fd79f379 build with --enable-tunables=no |

Commit Message

Adhemerval Zanella Netto Oct. 21, 2021, 8:28 p.m. UTC
  The _dl_sort_maps_init() is not defined when tunables is not enabled.

Checked on x86_64-linux-gnu.
 sysdeps/generic/ldsodefs.h | 9 +++++++++
 1 file changed, 9 insertions(+)


diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 65a6a51633..1318c36dce 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -1245,7 +1245,16 @@  extern struct link_map * _dl_get_dl_main_map (void)
 /* Initialize the DSO sort algorithm to use.  */
+static inline void
+_dl_sort_maps_init (void)
+  /* This is optimized out if tunables are not enabled.  */
 extern void _dl_sort_maps_init (void) attribute_hidden;
 /* Initialization of libpthread for statically linked applications.
    If libpthread is not linked in, this is an empty function.  */