<div dir="ltr">May I suggest that the .const section be used for read-only data instead of the .text section?<div>Apple's convention is that the .text section contains pure instructions.</div><div><br></div><font class="Apple-style-span" face="'courier new', monospace">diff --git a/common/x86/x86inc.asm b/common/x86/x86inc.asm<br>
index 7265a0c..18105f5 100644<br>--- a/common/x86/x86inc.asm<br>+++ b/common/x86/x86inc.asm<br>@@ -65,9 +65,9 @@<br> ; so use a different read-only section.<br> %macro SECTION_RODATA 0-1 16<br> %ifidn __OUTPUT_FORMAT__,macho64<br>
- SECTION .text align=%1<br>+ SECTION .const align=%1<br> %elifidn __OUTPUT_FORMAT__,macho<br>- SECTION .text align=%1<br>+ SECTION .const align=%1<br> fakegot:<br> %elifidn __OUTPUT_FORMAT__,aout<br>
section .text</font></div>