public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] nscd fixes
@ 2004-09-16 15:10 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2004-09-16 15:10 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

Hi!

a) allow nscd to even compile on x86-64 (missing -fpie)
b) get rid of newly introduced munmap .plt slot

2004-09-16  Jakub Jelinek  <jakub@redhat.com>

	* nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
	instead of munmap.

	* nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.

--- libc/nscd/nscd_helper.c.jj	2004-09-14 00:32:54.000000000 +0200
+++ libc/nscd/nscd_helper.c	2004-09-16 17:07:23.384149635 +0200
@@ -72,7 +72,7 @@ void
 __nscd_unmap (struct mapped_database *mapped)
 {
   assert (mapped->counter == 0);
-  munmap ((void *) mapped->head, mapped->mapsize);
+  __munmap ((void *) mapped->head, mapped->mapsize);
   free (mapped);
 }
 
@@ -180,7 +180,7 @@ get_mapping (request_type type, const ch
       if (newp == NULL)
 	{
 	  /* Ugh, after all we went through the memory allocation failed.  */
-	  munmap (result, size);
+	  __munmap (result, size);
 	  goto out_close;
 	}
 
--- libc/nscd/Makefile.jj	2004-09-16 11:38:00.000000000 +0200
+++ libc/nscd/Makefile	2004-09-16 17:03:40.685497693 +0200
@@ -82,6 +82,7 @@ CFLAGS-xmalloc.c = -fpie
 CFLAGS-xstrdup.c = -fpie
 CFLAGS-mem.c = -fpie
 CFLAGS-nscd_setup_thread.c = -fpie
+CFLAGS-aicache.c = -fpie
 
 $(objpfx)nscd: $(addprefix $(objpfx),$(nscd-modules:=.o))
 	$(LINK.o) -pie -Wl,-O1 \

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-16 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-16 15:10 [PATCH] nscd fixes Jakub Jelinek

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).