Home
libmach: Fix flags for coff read only - scc - simple c99 compiler HTML git clone git://git.simple-cc.org/scc DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- DIR commit 38abc9a2afdbbac7dc6a0019212d71959d99fccd DIR parent 1542722ccdfba37389ccc09fb382df9f975e70e6 HTML 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: M src/libmach/coff32/coff32getsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR 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: