From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 29 17:26:00 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FA1F106566B for ; Sun, 29 Apr 2012 17:26:00 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id 0D9308FC08 for ; Sun, 29 Apr 2012 17:25:59 +0000 (UTC) Received: by qabg1 with SMTP id g1so1262714qab.13 for ; Sun, 29 Apr 2012 10:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; bh=3UiakuX1zc9u1wpqn2qx3d8NvH9EzcqxV/O5z/uDiwE=; b=p/lboz2mZ/EjxUrbBK7g9GAJNEfhEAGgDXA/UuvuVj7wh+qnfDtPGdd/3nFdB+SG3L HdfUSmuFBI7ggNEWq1u/bA8L0m24RDUFWnXs6UMRrQhYn1Skf0Mclm3HmyhynuJKKsjP n7dVdKGCSBh32loeeyMvtidKDGNLRapZ0TOr/HDp5rRFPKYDvJr6Ms5M95EOZzRw45UO Jk6pAeWOx85rYPgKDQ7HWU+yDHlEBbPLwFvj0TdjC2WU9WOdpbIS0oZMd3RG0Bg3j9aG UmrEKV6snKF4bAJLT25n1knxQtYh7KMMkuIBoH3MOl+qJx2h9vCxOz2e0Wtr740xs5Iw +hoA== Received: by 10.224.182.130 with SMTP id cc2mr11151543qab.27.1335720353390; Sun, 29 Apr 2012 10:25:53 -0700 (PDT) Received: from kan.dyndns.org (c-24-63-226-98.hsd1.ma.comcast.net. [24.63.226.98]) by mx.google.com with ESMTPS id gb7sm19605820qab.12.2012.04.29.10.25.51 (version=SSLv3 cipher=OTHER); Sun, 29 Apr 2012 10:25:52 -0700 (PDT) Date: Sun, 29 Apr 2012 13:25:45 -0400 From: Alexander Kabaev To: Richard Yao Message-ID: <20120429132545.071d4cc6@kan.dyndns.org> In-Reply-To: <4F9D6B72.50408@cs.stonybrook.edu> References: <4F9D6B72.50408@cs.stonybrook.edu> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/deSfTcEWX7c5ltBwSUd/e1Z"; protocol="application/pgp-signature" Cc: hackers@FreeBSD.org Subject: Re: Where do the elf32_obj_loadfile, elf32_loadfile, elf64_obj_loadfile and elf64_loadfile symbols live? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Apr 2012 17:26:00 -0000 --Sig_/deSfTcEWX7c5ltBwSUd/e1Z Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 29 Apr 2012 12:25:22 -0400 Richard Yao wrote: > Dear Everyone, >=20 > I tried compiling zfsloader from the FreeBSD 9.0-RELEASE tree on > Gentoo Linux, but I encountered issues due to missing symbols: >=20 > /var/tmp/portage/sys-boot/gptzfsloader-9.0/work/sys/boot/i386/zfsloader/.= ./libi386/libi386.a(elf32_freebsd.o):(.data+0x0): > undefined reference to `elf32_obj_loadfile' > /var/tmp/portage/sys-boot/gptzfsloader-9.0/work/sys/boot/i386/zfsloader/.= ./libi386/libi386.a(elf32_freebsd.o):(.data+0x8): > undefined reference to `elf32_loadfile' > /var/tmp/portage/sys-boot/gptzfsloader-9.0/work/sys/boot/i386/zfsloader/.= ./libi386/libi386.a(elf64_freebsd.o):(.data+0x0): > undefined reference to `elf64_obj_loadfile' > /var/tmp/portage/sys-boot/gptzfsloader-9.0/work/sys/boot/i386/zfsloader/.= ./libi386/libi386.a(elf64_freebsd.o):(.data+0x8): > undefined reference to `elf64_loadfile' >=20 > I searched the sources using grep, but I cannot find where the > functions implementing those symbols are declared. Does anyone know > where I can find them? >=20 > Yours truly, > Richard Yao >=20 Hi, please look at sys/elf_generic.c and macros it defines, namely=20 __elfN.=20 --=20 Alexander Kabaev --Sig_/deSfTcEWX7c5ltBwSUd/e1Z Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iD8DBQFPnXmeQ6z1jMm+XZYRAhjEAJwK1C3BcROE/aLN/Q8Ni471x9UuwACgz4+g By60neC56qhl1PFvVdZ0tUI= =weOG -----END PGP SIGNATURE----- --Sig_/deSfTcEWX7c5ltBwSUd/e1Z--