From owner-freebsd-stable@FreeBSD.ORG Sat Mar 5 10:50:30 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E3FC106566B for ; Sat, 5 Mar 2011 10:50:30 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail12.syd.optusnet.com.au (mail12.syd.optusnet.com.au [211.29.132.193]) by mx1.freebsd.org (Postfix) with ESMTP id 02C668FC0A for ; Sat, 5 Mar 2011 10:50:29 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c220-239-116-103.belrs4.nsw.optusnet.com.au [220.239.116.103]) by mail12.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p25AoRs7011373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 5 Mar 2011 21:50:27 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.4/8.14.4) with ESMTP id p25AoP20015963; Sat, 5 Mar 2011 21:50:25 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.4/8.14.4/Submit) id p25AoPgn015962; Sat, 5 Mar 2011 21:50:25 +1100 (EST) (envelope-from peter) Date: Sat, 5 Mar 2011 21:50:25 +1100 From: Peter Jeremy To: Kostik Belousov Message-ID: <20110305105025.GB70142@server.vk2pj.dyndns.org> References: <20110305085004.GA70142@server.vk2pj.dyndns.org> <20110305094854.GM78089@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rJwd6BRFiFCcLxzm" Content-Disposition: inline In-Reply-To: <20110305094854.GM78089@deviant.kiev.zoral.com.ua> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-stable@freebsd.org Subject: Re: Linker set issues with ath(4) HALs X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2011 10:50:30 -0000 --rJwd6BRFiFCcLxzm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2011-Mar-05 11:48:54 +0200, Kostik Belousov wrote: >On Sat, Mar 05, 2011 at 07:50:05PM +1100, Peter Jeremy wrote: >> I have a Atheros AR5424 and so, based on the 8.2-STABLE i386 NOTES >> and some rummaging in the sources, I tried to build a kernel with: >>=20 >> device ath # Atheros pci/cardbus NIC's >> device ath_ar5212 # HAL for Atheros AR5212 and derived chips >> device ath_rate_sample # SampleRate tx rate control for ath =2E.. >> These symbols do not appear in any other .o files, though there are a >> variety of other __{start,stop}_set_* symbols - all of which show up >> as 'A' (absolule) values in the final kernel. >>=20 >> My questions are: >> How are these linker set references resolved? I can't find anything >> that defines these symbols - either in .o files or in ldscript files. =2E.. >Linker synthesizes the symbols assuming the following two conditions are >met: >- the symbols are referenced; >- there exists an ELF section named `set_ah_rfs'. >It assigns the (relocated) start of the section to __start_, >and end to __stop_. Thank you for that. Looking through the output of 'objdump -h' showed that it was user error: When using "device ath_arXXXX", it looks like you need to include a "device ath_rfYYYY" as well. After a closer look at my dmesg and available options, I've add "device ath_rf2425" and things seem much happier. --=20 Peter Jeremy --rJwd6BRFiFCcLxzm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAk1yFXEACgkQ/opHv/APuId4hQCgndggXp++puDl9IBx3564mdF5 nlwAn1ePKNJ1AjcBrDZCSbbfptcn0/Dm =c6JK -----END PGP SIGNATURE----- --rJwd6BRFiFCcLxzm--