Browse Source

Set read/write segment flags for bss and shared segments

Signed-off-by: Graham MacDonald <grahamamacdonald@gmail.com>
Graham MacDonald 5 months ago
parent
commit
00b171ead1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      util/src/harvey/cmd/build/codegen.go

+ 2 - 2
util/src/harvey/cmd/build/codegen.go

@@ -124,12 +124,12 @@ VGAcur* vgacur[] = {
 
 Physseg physseg[8] = {
 	{
-		.attr = SG_SHARED,
+		.attr = SG_SHARED|SG_READ|SG_WRITE,
 		.name = "shared",
 		.size = SEGMAXPG,
 	},
 	{
-		.attr = SG_BSS,
+		.attr = SG_BSS|SG_READ|SG_WRITE,
 		.name = "memory",
 		.size = SEGMAXPG,
 	},