This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Re: dl-close broken...


On Wed, Feb 13, 2002 at 01:11:43PM +0100, Andreas Jaeger wrote:
> 
> I get on i686:
> dl-close.c: In function `free_slotinfo':
> dl-close.c:341: dereferencing pointer to incomplete type
> dl-close.c:341: dereferencing pointer to incomplete type
> dl-close.c:346: dereferencing pointer to incomplete type
> dl-close.c:348: dereferencing pointer to incomplete type
> dl-close.c:349: dereferencing pointer to incomplete type

That's not too hard to fix:

2002-02-13  Jakub Jelinek  <jakub@redhat.com>

	* elf/dl-close.c (free_slotinfo): Only define if TLS supported.

--- libc/elf/dl-close.c.jj	Wed Feb 13 13:29:10 2002
+++ libc/elf/dl-close.c	Wed Feb 13 13:29:58 2002
@@ -332,7 +332,7 @@ _dl_close (void *_map)
   __libc_lock_unlock_recursive (GL(dl_load_lock));
 }
 
-
+#ifdef USE_TLS
 static bool
 free_slotinfo (struct dtv_slotinfo_list *elemp)
 {
@@ -355,7 +355,7 @@ free_slotinfo (struct dtv_slotinfo_list 
 
   return true;
 }
-
+#endif
 
 static void
 free_mem (void)

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]