Commit ff059dd96af6ba4daf7bc9ddf22d1d2dbf6a177b

vhankala 2021-06-10T18:41:02

Fix build on OpenBSD/mips64 (#638) The build fails on OpenBSD/mips64 because clang 11's integrated assembler expects read-only .eh_frame: ../src/mips/n32.S:585:9: error: changed section flags for .eh_frame, expected: 0x2 .section .eh_frame,"aw",@progbits ^ Use EH_FRAME_FLAGS to get matching flags for the section.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/mips/n32.S b/src/mips/n32.S
index 1a940b6..23b77fd 100644
--- a/src/mips/n32.S
+++ b/src/mips/n32.S
@@ -582,7 +582,7 @@ cls_epilogue:
 	.end	ffi_closure_N32
 
 #ifdef __GNUC__
-        .section        .eh_frame,"aw",@progbits
+        .section        .eh_frame,EH_FRAME_FLAGS,@progbits
 .Lframe1:
         .4byte  .LECIE1-.LSCIE1		# length
 .LSCIE1: