[Mesa-dev] [PATCH 01/14] util: fix ElfW macro

Emil Velikov emil.l.velikov at gmail.com
Thu Jan 18 16:57:50 UTC 2018


On 31 December 2017 at 16:55, Greg V <greg at unrelenting.technology> wrote:
> Elf64_Nhdr exists, Elf_Nhdr does not.
>
This doesn't sound right. Having a look at FreeBSD [1] it seems that
it aliases Elf{32,64}_Nhdr to Elf_Note and not Elf_Nhdr?!
In practise the layout of Nhdr and Note is identical, although the
former has a n_ prefix for the struct members.

AFACIT OpenBSD, NetBSD and Linux have two distinction struct, so this
better be fixed in FreeBSD's implementation.
Diverging from others is going to add grief to everyone.

Can you please add a typedef in FreeBSD sources, pretty please?

Thanks
Emil

[1] https://github.com/freebsd/freebsd/search?utf8=%E2%9C%93&q=Elf32_Nhdr&type=


More information about the mesa-dev mailing list