Perhaps something like,
--- a/src/ext/x86/x86inc.asm
+++ b/src/ext/x86/x86inc.asm
@@ -85,7 +85,9 @@
%endif
%macro SECTION_RODATA 0-1 16
- %ifidn __OUTPUT_FORMAT__,win32
+ %ifidn __OUTPUT_FORMAT__,aout
+ SECTION .text
+ %elif __OUTPUT_FORMAT__,win32
SECTION .rdata align=%1
%elif WIN64
SECTION .rdata align=%1
Code still might need patching for alignment.