public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Tiny PLT reduction
@ 2005-07-28 14:20 Jakub Jelinek
  2005-07-28 14:51 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2005-07-28 14:20 UTC (permalink / raw)
  To: Ulrich Drepper, Roland McGrath; +Cc: Glibc hackers

Hi!

Following patch kills the unwanted:
0000000000232000  000000cb00000007 R_X86_64_JUMP_SLOT     000000000004a140 snprintf + 0
0000000000232030  000006ec00000007 R_X86_64_JUMP_SLOT     00000000000414f0 _IO_vfprintf + 0

2005-07-28  Jakub Jelinek  <jakub@redhat.com>

	* stdio-common/fxprintf.c (__fxprintf): Add INTUSE to _IO_vfprintf
	call.
	* gmon/gmon.c (write_gmon): Use __snprintf rather than snprintf.

--- libc/stdio-common/fxprintf.c.jj	2005-07-28 15:59:16.000000000 +0200
+++ libc/stdio-common/fxprintf.c	2005-07-28 16:16:38.000000000 +0200
@@ -47,7 +47,7 @@ __fxprintf (FILE *fp, const char *fmt, .
       res = __vfwprintf (fp, wfmt, ap);
     }
   else
-    res = _IO_vfprintf (fp, fmt, ap);
+    res = INTUSE(_IO_vfprintf) (fp, fmt, ap);
 
   va_end (ap);
 
--- libc/gmon/gmon.c.jj	2005-07-28 15:56:59.000000000 +0200
+++ libc/gmon/gmon.c	2005-07-28 16:16:06.000000000 +0200
@@ -331,7 +331,7 @@ write_gmon (void)
       {
 	size_t len = strlen (env);
 	char buf[len + 20];
-	snprintf (buf, sizeof (buf), "%s.%u", env, __getpid ());
+	__snprintf (buf, sizeof (buf), "%s.%u", env, __getpid ());
 	fd = open_not_cancel (buf, O_CREAT|O_TRUNC|O_WRONLY|O_NOFOLLOW, 0666);
       }
 

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Tiny PLT reduction
  2005-07-28 14:20 [PATCH] Tiny PLT reduction Jakub Jelinek
@ 2005-07-28 14:51 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2005-07-28 14:51 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Glibc hackers

[-- Attachment #1: Type: text/plain, Size: 101 bytes --]

Applied.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-28 14:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-28 14:20 [PATCH] Tiny PLT reduction Jakub Jelinek
2005-07-28 14:51 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).