[XviD-devel] Mach-O and SECTON .rotext

David DeHaven dave at sagetv.com
Fri Dec 5 05:11:54 CET 2008

> 1) It still requires section name as ".text", not ".rotext"
> Requires rename section for Mach-O binary; ifdef macro would be better
> though
> vi ../../src/nasm.inc
> %macro TEXT 0
> -      SECTION .rotext align=SECTION_ALIGN
> +      SECTION .text align=SECTION_ALIGN
> %endmacro

I had my own patch that basically did:
-SECTION .rodata
-SECTION .rodata align=16

Then declared:

%ifidn __OUTPUT_FORMAT__,macho
     %define SECT_RODATA .text align=16
     %ifdef FORMAT_COFF
         %define SECT_RODATA .rodata
         %define SECT_RODATA .rodata align=16

in a global macro file.

Works on:
NASM version 0.98.40 (Apple Computer, Inc. build 11) compiled on Feb  
19 2008
yasm (darwin)
yasm (mingw32 and linux)


More information about the Xvid-devel mailing list