Date: Sun, 29 Apr 2012 13:25:45 -0400 From: Alexander Kabaev <kabaev@gmail.com> To: Richard Yao <ryao@cs.stonybrook.edu> Cc: hackers@FreeBSD.org Subject: Re: Where do the elf32_obj_loadfile, elf32_loadfile, elf64_obj_loadfile and elf64_loadfile symbols live? Message-ID: <20120429132545.071d4cc6@kan.dyndns.org> In-Reply-To: <4F9D6B72.50408@cs.stonybrook.edu> References: <4F9D6B72.50408@cs.stonybrook.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <ryao@cs.stonybrook.edu> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120429132545.071d4cc6>