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

2025-06-08 Thread Yang Kun
Hi, > .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. The patch in itself probably is right, but can you explain your usecase a bit more? LNK4254 is a link.exe error; linking mingw object

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

2025-05-26 Thread Martin Storsjö
Hi, On Sat, 17 May 2025, Yang Kun wrote: .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. The patch in itself probably is right, but can you explain your usecase a bit more? LNK4254 is a li

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

2025-05-25 Thread LIU Hao
在 2025-5-17 16:16, 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

[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 | 93 +