From owner-freebsd-questions@FreeBSD.ORG Thu Aug 29 12:31:44 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 440C231B for ; Thu, 29 Aug 2013 12:31:44 +0000 (UTC) (envelope-from sumitraja@gmail.com) Received: from mail-ob0-x234.google.com (mail-ob0-x234.google.com [IPv6:2607:f8b0:4003:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 122D52320 for ; Thu, 29 Aug 2013 12:31:44 +0000 (UTC) Received: by mail-ob0-f180.google.com with SMTP id v19so371895obq.25 for ; Thu, 29 Aug 2013 05:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=cLGG8o0TvOXTJs8C1O6jz/T1Z4ZLeoM/IzKfXRpKDeU=; b=VfiXR7vPunapxGNEJebbFdDcDXUNgYLjJT2go2h9J7NpHnmINxX/BF/YyrzyPDaLHl U+ineVSs/A+fxsXClj8mRmLxBQhOACM6lKVr8PdDC/gFNs1Ci0BADIrj0hMS1Niut8HM 1fXlorDJj+WG5DGCr4f2QELgbOKOVCzLYMdZR/dJb2vpcp/SED2371uDsRfk0tS91gWZ gZPDEZzFIKmZM1RVOT9eViKyeglrrj/3/UDcANTBqTggcDya1f4aXsLprdid4gxLcr8w b+ZOLF2HkqQWnGOHRq/VZbGq1lQjG0KZjIJPuVbYBneJr9HEZDAvmg7OuCu0MtY+WHpi VhmA== MIME-Version: 1.0 X-Received: by 10.182.199.74 with SMTP id ji10mr2270699obc.69.1377779503065; Thu, 29 Aug 2013 05:31:43 -0700 (PDT) Received: by 10.60.17.10 with HTTP; Thu, 29 Aug 2013 05:31:43 -0700 (PDT) Date: Thu, 29 Aug 2013 22:31:43 +1000 Message-ID: Subject: TLS Range on current thread From: Sumit Raja To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 12:31:44 -0000 Hi, I want to add support to the LDC D compiler for FreeBSD, the current version of D has moved to TLS by default. The__tls_get_addr method links correctly but this crashes at runtime on garbage collection as the address range could wrong. What is the best way to determine the address range for the TLS segment for the current thread? Thanks Sumit