]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Remove inline _dl_dprintf
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 7 Mar 2022 13:43:41 +0000 (10:43 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 23 Mar 2022 13:42:01 +0000 (10:42 -0300)
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.

sysdeps/generic/ldsodefs.h

index 9878e7e87eb97c0fdaaae50bcb6119422a38984f..44750461a9414e2328121d7d1f0d1ea4a6fbd69e 100644 (file)
@@ -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