Date: Sat, 5 Mar 2011 21:50:25 +1100 From: Peter Jeremy <peterjeremy@acm.org> To: Kostik Belousov <kostikbel@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: Linker set issues with ath(4) HALs Message-ID: <20110305105025.GB70142@server.vk2pj.dyndns.org> In-Reply-To: <20110305094854.GM78089@deviant.kiev.zoral.com.ua> References: <20110305085004.GA70142@server.vk2pj.dyndns.org> <20110305094854.GM78089@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <kostikbel@gmail.com> 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_<sectionname>, >and end to __stop_<sectionname>. 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110305105025.GB70142>