commit 38abc9a2afdbbac7dc6a0019212d71959d99fccd
parent 1542722ccdfba37389ccc09fb382df9f975e70e6
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 5 Mar 2024 09:46:13 +0100
libmach: Fix flags for coff read only
The section types STYP_LIT and STYP_RDATA are read only
and they should not have write attributes.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libmach/coff32/coff32getsec.c b/src/libmach/coff32/coff32getsec.c
@@ -56,7 +56,7 @@ coff32getsec(Obj *obj, int *idx, Section *sec)
case STYP_LIT:
case STYP_RDATA:
type = 'D';
- sflags = SALLOC | SRELOC | SLOAD | SWRITE | SREAD;
+ sflags = SALLOC | SRELOC | SLOAD | SREAD;
break;
case STYP_LIB:
case STYP_INFO: