Re: [Mingw-w64-public] [PATCH] crt: Make .CRT section read only

2025-06-08 Thread Yang Kun
even a bit strange why the MSVC-specific extension appears here, I don't think it has a use case, it's just to avoid confusion as in this case. I also noticed https://github.com/reactos/reactos/commit/439126ffd669bde03c032216f9bf617c0a40ea8b. They made similar changes

[Mingw-w64-public] [PATCH] crt: Make .CRT section read only

2025-05-25 Thread Yang Kun
.CRT section is combined into .rdata which doesn't have shared attribute but read only. If we declare it with shared, it will causes LNK4254 warning. Also remove the read and write attribute in .tls as this is default. Signed-off-by: Yang Kun ---  mingw-w64-crt/include/sect_attribs.h