On Wed Jun 21 17:08:45 2023 +0000, Alex Henrie wrote:
Interesting, thanks for the explanation. However, `i686-w64-mingw32-clang -mcmodel=small` still emits the refptr symbols, at least on Clang 15.
Interesting, I actually had no idea MinGW defaulted to -mcmodel=medium. How do you even get auto-exported symbols in PE with MinGW? I never knew that was a thing.
(for the record, I'm asking because I want to avoid it. I really hate auto exported symbols in general even in ELF, I think manually exporting them serves not just clean design because you explicitly lay out the external API, but also serves as implicit documentation)