about summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-07 10:43:41 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-23 10:42:01 -0300
commitf60e45ba10f0ca2794318de95720cdbdb6ff20d0 (patch)
tree83d64c113d22f7e3cc5b2c0e68a3ba24e66da58e /sysdeps/generic
parentcb7b1c9014945cb79cdd0b375e65724d6c574a8c (diff)
downloadglibc-f60e45ba10f0ca2794318de95720cdbdb6ff20d0.tar.gz
glibc-f60e45ba10f0ca2794318de95720cdbdb6ff20d0.tar.xz
glibc-f60e45ba10f0ca2794318de95720cdbdb6ff20d0.zip
elf: Remove inline _dl_dprintf
It is not used on rtld and ldsodef interfaces are meant to be used
solely on loader.  It also removes the only usage of gcc extension
__builtin_va_arg_pack.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/ldsodefs.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 9878e7e87e..44750461a9 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -816,20 +816,9 @@ extern void _dl_debug_printf_c (const char *fmt, ...)
 
 /* Write a message on the specified descriptor FD.  The parameters are
    interpreted as for a `printf' call.  */
-#if IS_IN (rtld) || !defined (SHARED)
 extern void _dl_dprintf (int fd, const char *fmt, ...)
      __attribute__ ((__format__ (__printf__, 2, 3)))
      attribute_hidden;
-#else
-__attribute__ ((always_inline, __format__ (__printf__, 2, 3)))
-static inline void
-_dl_dprintf (int fd, const char *fmt, ...)
-{
-  /* Use local declaration to avoid includign <stdio.h>.  */
-  extern int __dprintf(int fd, const char *format, ...) attribute_hidden;
-  __dprintf (fd, fmt, __builtin_va_arg_pack ());
-}
-#endif
 
 /* Write LENGTH bytes at BUFFER to FD, like write.  Returns the number
    of bytes written on success, or a negative error constant on