Skip to contentSkip to conversation

ELF .note BSD_SYMTAB

DISCUSSION Ryan O'Neill 3 participants 3 messages Aug 6, 2014 – Aug 7, 2014

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello. After reading through some of the libelf-loader.c and libelf-dominfo.c code, it appears that Xen expects BSD guest kernels to have an ELF .note auxillary entry of type XEN_ELFNOTE_BSD_SYMTAB that gets parsed in so that Xen knows to allocate room for the kernels symbol table. I do not see this Note (Or any note segment/section) in my freebsd guest kernel image (readelf -n). Can someone explain to me if this Note is still used? If so, then in what case?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJT4oDeAAoJEBKyrGQNkDKcPpUIAL2KI7Y5LcJTnNk+q+C9jVjG 2wddVrMKAe7JHy/xMu01diC8gfAD3iprPYAN+AtUdBlHlKFPodM5JN6R1RONZNM7 dFegRuIYoFTelJNj58gdTTyQlZz616vomPq5ctayYl1JIilMibrNq/hlnZwFSSFx PwBZYjxKRbCahfgfXLSEb6/N7cIOn9W1XK58WNpE4q7bczIkzCelgAfSRdTqOmla jIXiIypiVkqj5fcC/GX1Ar26qfLEfQvLMXl/bFJrKyRTei71nYJrRe9U2v+8VG+y iVu9qKWqW95qtbGcpL1wdaFmw36jY+uuuW/grQ8dpYtKNKKcVsOwVFOrDG+yEsk= =FXiC
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 8 lines · Ryan O'Neill

Hello. After reading through some of the libelf-loader.c and libelf-dominfo.c code, it appears that Xen expects BSD guest kernels to have an ELF .note auxillary entry of type XEN_ELFNOTE_BSD_SYMTAB that gets parsed in so that Xen knows to allocate room for the kernels symbol table. I do not see this Note (Or any note segment/section) in my freebsd guest kernel image (readelf -n). Can someone explain to me if this Note is still used? If so, then in what case?

There is no expectation persay. Merely alternative actions taken if found.

I seem to recall (or I might be completely confused), it is a somewhat legacy NetBSDism, so I would not be at all surprised if modern FreeBSD doesn't use it.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 10 lines · Andrew Cooper
Quoted 8 lines · Ryan O'Neill

Hello. After reading through some of the libelf-loader.c and libelf-dominfo.c code, it appears that Xen expects BSD guest kernels to have an ELF .note auxillary entry of type XEN_ELFNOTE_BSD_SYMTAB that gets parsed in so that Xen knows to allocate room for the kernels symbol table. I do not see this Note (Or any note segment/section) in my freebsd guest kernel image (readelf -n). Can someone explain to me if this Note is still used? If so, then in what case?

Quoted 5 lines

There is no expectation persay. Merely alternative actions taken if found.

I seem to recall (or I might be completely confused), it is a somewhat legacy NetBSDism, so I would not be at all surprised if modern FreeBSD doesn't use it.

I recommend to add [email protected] to this thread to get NetBSD people in.

Christoph