From owner-freebsd-current@FreeBSD.ORG Fri Jun 8 12:51:18 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90CEE1065680 for ; Fri, 8 Jun 2012 12:51:18 +0000 (UTC) (envelope-from jps@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id 42E678FC0A for ; Fri, 8 Jun 2012 12:51:18 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id C4FF3C3CCB; Fri, 8 Jun 2012 14:51:10 +0200 (CEST) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id XLJsfolMIxp2; Fri, 8 Jun 2012 14:51:10 +0200 (CEST) Received: from [10.0.0.3] (cardhu.semihalf.com [213.17.239.108]) by smtp.semihalf.com (Postfix) with ESMTPSA id 442B8C3842; Fri, 8 Jun 2012 14:51:10 +0200 (CEST) Message-ID: <4FD1F53D.4030409@semihalf.com> Date: Fri, 08 Jun 2012 14:51:09 +0200 From: Jan Sieka User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120506 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Ian Lepore , Rafal Jaworowski , gjb@semihalf.com Subject: How to add symbol to be exported in lib/libc/arm/Symbol.map X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2012 12:51:18 -0000 Hello group! I have a few questions regarding adding symbols to lib/libc//Symbol.map, so that function signatures are exported: - what are the conventions regarding putting symbols in FBSD_X.Y or FBSDprivate_X.Y sections of the aforementioned files? - when it is necessary to bump X.Y numbers? - what is the difference between FBSD_X.Y and FBSDprivate_X.Y sections? The above questions arose from the discussion on freebsd-arm@ (http://lists.freebsd.org/pipermail/freebsd-arm/2012-June/003555.html) which concerns fixing Perl on ARM. The fix is to add __flt_rounds function signature to lib/libc/arm/Symbols.map. Regarding this fix it appears (after Symbols.map files analysis and checking their SVN history) that adding this symbol is just a bug fix and should be put to FBSD_1.0 section without incrementing numbers. But I don't have more in-depth explanation so sending this email. Anyone can comment on the above questions or point to some documentation (I've searched Developer's Handbook and Internet but found nothing)? Regards, Jan Sieka