[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:
-%ifdef FORMAT_COFF
-SECTION .rodata
-%else
-SECTION .rodata align=16
-%endif
+SECTION SECT_RODATA
Then declared:
%ifidn __OUTPUT_FORMAT__,macho
%define SECT_RODATA .text align=16
%else
%ifdef FORMAT_COFF
%define SECT_RODATA .rodata
%else
%define SECT_RODATA .rodata align=16
%endif
%endif
in a global macro file.
Works on:
NASM version 0.98.40 (Apple Computer, Inc. build 11) compiled on Feb
19 2008
yasm 0.7.1.2093 (darwin)
yasm 0.7.2.2153 (mingw32 and linux)
-DrD-
More information about the Xvid-devel
mailing list