Module Name: src
Committed By: joerg
Date: Thu Sep 12 15:35:16 UTC 2013
Modified Files:
src/lib/libc/stdlib: jemalloc.c
Log Message:
NetBSD certainly supports TLS in static applications if it supports TLS
on the platform at all.
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/stdlib/jemalloc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/stdlib/jemalloc.c
diff -u src/lib/libc/stdlib/jemalloc.c:1.28 src/lib/libc/stdlib/jemalloc.c:1.29
--- src/lib/libc/stdlib/jemalloc.c:1.28 Wed Mar 21 14:32:22 2012
+++ src/lib/libc/stdlib/jemalloc.c Thu Sep 12 15:35:15 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: jemalloc.c,v 1.28 2012/03/21 14:32:22 christos Exp $ */
+/* $NetBSD: jemalloc.c,v 1.29 2013/09/12 15:35:15 joerg Exp $ */
/*-
* Copyright (C) 2006,2007 Jason Evans <[email protected]>.
@@ -118,7 +118,7 @@
#include <sys/cdefs.h>
/* __FBSDID("$FreeBSD: src/lib/libc/stdlib/malloc.c,v 1.147 2007/06/15 22:00:16 jasone Exp $"); */
-__RCSID("$NetBSD: jemalloc.c,v 1.28 2012/03/21 14:32:22 christos Exp $");
+__RCSID("$NetBSD: jemalloc.c,v 1.29 2013/09/12 15:35:15 joerg Exp $");
#ifdef __FreeBSD__
#include "libc_private.h"
@@ -288,11 +288,6 @@ __strerror_r(int e, char *s, size_t l)
# define SIZEOF_INT_2POW 2
#endif
-/* We can't use TLS in non-PIC programs, since TLS relies on loader magic. */
-#if (!defined(PIC) && !defined(NO_TLS))
-# define NO_TLS
-#endif
-
/*
* Size and alignment of memory chunks that are allocated by the OS's virtual
* memory system.