Date: Thu, 2 Jun 2016 09:29:57 -0500 From: Justin Hibbits <jrh29@alumni.cwru.edu> To: Bryan Drewery <bdrewery@freebsd.org> Cc: Mark Millard <markmi@dsl-only.net>, FreeBSD Current <freebsd-current@freebsd.org>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64] Message-ID: <CAHSQbTDz6G5bH=JWiF7g=uv=-B-HUs0=KqwySXgpigot=MVrJQ@mail.gmail.com> In-Reply-To: <0165aee5-cf6f-8f01-1690-fc51995e2109@FreeBSD.org> References: <FE82CBAD-ED55-41A3-9413-34948A9CBC0F@dsl-only.net> <7748cc71-3788-22ae-fcb2-699eae529310@FreeBSD.org> <9A1A624D-9286-4C0F-A435-D590E07C1149@dsl-only.net> <0165aee5-cf6f-8f01-1690-fc51995e2109@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 1, 2016 at 8:59 PM, Bryan Drewery <bdrewery@freebsd.org> wrote: > On 6/1/2016 6:39 PM, Mark Millard wrote: >> while filemon.ko now exists: >>> # ls -l /boot/*/filemon* >>> -r-xr-xr-x 1 root wheel 32064 Jun 1 17:59 /boot/kernel/filemon.ko >> it does not load: >>> # kldload -n filemon >>> kldload: can't load filemon: No such file or directory >>> # dmesg | grep link_elf >>> link_elf: symbol elf64_freebsd_sysvec undefined > > There's 2 different ABI formats for powerpc64? > >> sys/powerpc/powerpc/elf64_machdep.c:INIT_SYSENTVEC(elf64_sysvec_v1, &elf64_freebsd_sysvec_v1); >> sys/powerpc/powerpc/elf64_machdep.c:INIT_SYSENTVEC(elf64_sysvec_v2, &elf64_freebsd_sysvec_v2); > > What's up with that? > > -- > Regards, > Bryan Drewery > Yes, powerpc64 has two ABIs now. ELFv1 is traditional ABI. ELFv2 was created IBM for their little-endian (POWER8 ppc64le) target. Nathan added support to use it in FreeBSD. It cleans up some of the silliness that's in ELFv1, such as function descriptors. - Justin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTDz6G5bH=JWiF7g=uv=-B-HUs0=KqwySXgpigot=MVrJQ>