From owner-freebsd-arch@FreeBSD.ORG Thu Aug 14 17:04:54 2014 Return-Path: Delivered-To: arch@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 ESMTPS id 2E63D34F for ; Thu, 14 Aug 2014 17:04:54 +0000 (UTC) Received: from mail.xcllnt.net (mail.xcllnt.net [50.0.150.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DB53E21CF for ; Thu, 14 Aug 2014 17:04:53 +0000 (UTC) Received: from rcannon-sslvpn-nc.jnpr.net ([66.129.239.11]) (authenticated bits=0) by mail.xcllnt.net (8.14.9/8.14.9) with ESMTP id s7EH4gCt003857 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 14 Aug 2014 10:04:44 -0700 (PDT) (envelope-from marcel@xcllnt.net) Content-Type: multipart/signed; boundary="Apple-Mail=_3EF02EE7-3339-4832-ACFA-93F4CF617EF9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: XML Output: libxo - provide single API to output TXT, XML, JSON and HTML From: Marcel Moolenaar In-Reply-To: <20140814052648.GM2737@kib.kiev.ua> Date: Thu, 14 Aug 2014 10:04:36 -0700 Message-Id: <16CE0543-0616-415D-9E68-EEB053DE4254@xcllnt.net> References: <201408131936.s7DJaA1r089174@idle.juniper.net> <20140814052648.GM2737@kib.kiev.ua> To: Konstantin Belousov X-Mailer: Apple Mail (2.1878.6) Cc: Marcel Moolenaar , Phil Shafer , John-Mark Gurney , "Simon J. Gerraty" , arch@freebsd.org, Poul-Henning Kamp X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2014 17:04:54 -0000 --Apple-Mail=_3EF02EE7-3339-4832-ACFA-93F4CF617EF9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Aug 13, 2014, at 10:26 PM, Konstantin Belousov = wrote: >>=20 >> I know ELF "Note" elements can be used to carry vendor-specific >> data, but have no experience with them. Would it be reasonable to >> use them as a means of communicating this information to other bits >> of software? > No. Too extreme. >> Is FreeBSD using Notes for other information currently? > Yes, the notes are used to communicate the information required by > the dynamic linker to correctly activate the image. The mechanism has > nothing to do with application-specific features, and overloading it = for > that purpose is severe and pointless layering violation. Things should > not be done just because they could be done. Too extreme. Life is a lot more subtle. Standards are as well. There are many examples in the real world where standards are interpreted a little more liberal than others may want to. When such result in (gratuitous) incompatibilities, we all interpret it as bad. But when it adds real value, you tend to find it in the next update of the standard. > Using the static tagging for the dynamic application properties is = wrong > anyway. E.g., would you consider the mere fact that the binary is = linked > against your library, as the indication that your feature is supported = ? > If not, how does it differ from the presence of some additional note ? If we can eliminate static linking for libxo, than that is definitely easy. Easiest probably. The question becomes: is it acceptable to not support static linking for libxo? Or alternatively, is it acceptable to not be able to check for the feature on a static executable? For the first I'm inclined to say yes, but not for the second. --=20 Marcel Moolenaar marcel@xcllnt.net --Apple-Mail=_3EF02EE7-3339-4832-ACFA-93F4CF617EF9 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlPs7CQACgkQpgWlLWHuifYLbwCeLctj2ViFfNYa5pLIvwmgpqeE B4IAnAvxZQ3XPTT7KGd++1ID+MPv21ko =LXa8 -----END PGP SIGNATURE----- --Apple-Mail=_3EF02EE7-3339-4832-ACFA-93F4CF617EF9--