Re: fixing "libtool -module" for C++

Martin Husemann <[email protected]> Sat, 22 Mar 2025 13:31:17 +0100
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
On Sat, Mar 22, 2025 at 01:18:31PM +0100, Anthony Mallet wrote:
> For instance, using your fixunsdfdi example (x86_64):
> $ nm /usr/lib/libgcc_s.so  | grep fixunsdfdi
> 000000000000b8c4 T __fixunsdfdi

Indeed:

0000bea0 t 00008000.got2.plt_pic32.__fixunsdfdi
0000b78c T __fixunsdfdi

> Unrelated question : do we still have non-ELF platforms?

We don't have any where new binaries can be created (but we can
still execute old ones).

> Can this test still trigger nowadays?
>   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then

All of our toolchains pre-define __ELF__ as 1 (AFAICT).

Martin