On Fri Jun 23 18:40:00 2023 +0000, Gabriel Ivăncescu wrote:
@rbernon Not sure if it's just my setup or MinGW (I built it manually), but I also had to pass -Wl,--exclude-all-symbols to the linker to prevent the extern symbols from showing up in the (stripped) DLL. Otherwise they are in the export table, but strangely not actually exported and aren't referenced, just extra junk past the end of the valid export table data. So you won't see them with objdump, but you'll see them if you view them in hex viewer, or with `strings` or something. If you can reproduce this, would you mind sending a patch to add it? (I'm too afraid of touching configure) Ideally those symbols shouldn't show up at all, just like static symbols, IMO.
Yes, it looks like we should use `-Wl,--exclude-all-symbols`, I will take a look.