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
[-- Attachment #1 --] On Sun, 29 Apr 2012 12:25:22 -0400 Richard Yao <ryao@cs.stonybrook.edu> wrote: > Dear Everyone, > > I tried compiling zfsloader from the FreeBSD 9.0-RELEASE tree on > Gentoo Linux, but I encountered issues due to missing symbols: > > /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' > > 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? > > Yours truly, > Richard Yao > Hi, please look at sys/elf_generic.c and macros it defines, namely __elfN. -- Alexander Kabaev [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iD8DBQFPnXmeQ6z1jMm+XZYRAhjEAJwK1C3BcROE/aLN/Q8Ni471x9UuwACgz4+g By60neC56qhl1PFvVdZ0tUI= =weOG -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120429132545.071d4cc6>
