NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: Nobody_1707 on March 09, 2010, 09:51:25 AM

Title: Does NASM Support Mach-O Custom Sections?
Post by: Nobody_1707 on March 09, 2010, 09:51:25 AM
I'm currently writing a Forth interpreter for OS X 10.6.x and would like to keep my headers in it's own separate .section, does NASM support custom sections for 64-bit Mach-O files?
Title: Re: Does NASM Support Mach-O Custom Sections?
Post by: Keith Kanios on March 09, 2010, 06:47:43 PM
Based on the latest outmacho64.c source listing, I would have to say no.

The following are the currently valid section names:


Looks like you might be able to utilize the .rodata (read only data) section for what you want.
Title: Re: Does NASM Support Mach-O Custom Sections?
Post by: Nobody_1707 on March 10, 2010, 01:46:41 AM
That'll do for now, I just have to remember to have GCC set .rodata to be read/writable.

Thanks for the help.