Re: : provide ElfW() macro

2021-12-18 Thread Theo de Raadt
Klemens Nanni wrote: > On Sat, Dec 18, 2021 at 04:37:17PM +0300, Andrew Krasavin wrote: > > On Fri, Dec 17, 2021 at 01:04:35PM +, Klemens Nanni wrote: > > > An upcoming port uses ElfW(). I first patched the port, but looking > > > around shows that both NetBSD and FreeBSD adopted the macro:

Re: : provide ElfW() macro

2021-12-18 Thread Klemens Nanni
On Sat, Dec 18, 2021 at 04:37:17PM +0300, Andrew Krasavin wrote: > On Fri, Dec 17, 2021 at 01:04:35PM +, Klemens Nanni wrote: > > An upcoming port uses ElfW(). I first patched the port, but looking > > around shows that both NetBSD and FreeBSD adopted the macro: > > > >

Re: : provide ElfW() macro

2021-12-18 Thread Andrew Krasavin
On Fri, Dec 17, 2021 at 01:04:35PM +, Klemens Nanni wrote: An upcoming port uses ElfW(). I first patched the port, but looking around shows that both NetBSD and FreeBSD adopted the macro: https://mail-index.netbsd.org/source-changes-hg/2018/07/31/msg027523.html +#defineElfW(x)

Re: : provide ElfW() macro

2021-12-17 Thread Mark Kettenis
> Date: Fri, 17 Dec 2021 13:04:35 + > From: Klemens Nanni > > An upcoming port uses ElfW(). I first patched the port, but looking > around shows that both NetBSD and FreeBSD adopted the macro: > > https://mail-index.netbsd.org/source-changes-hg/2018/07/31/msg027523.html > +#define

: provide ElfW() macro

2021-12-17 Thread Klemens Nanni
An upcoming port uses ElfW(). I first patched the port, but looking around shows that both NetBSD and FreeBSD adopted the macro: https://mail-index.netbsd.org/source-changes-hg/2018/07/31/msg027523.html +#defineElfW(x) CONCAT(Elf,CONCAT(ELFSIZE,CONCAT(_,x)))