Re: How to embed a file in a mach-o lib?
Re: How to embed a file in a mach-o lib?
- Subject: Re: How to embed a file in a mach-o lib?
- From: Eric Albert <email@hidden>
- Date: Wed, 21 Mar 2007 23:22:34 -0700
On Mar 21, 2007, at 6:46 PM, Jason Watts wrote: Hi, I’m trying to embed a plist file as data in a Mach-O dylib. I can do this on x86 with the nasm assembler. I just use the INCBIN directive, like so: SECTION .rodata GLOBAL _MyEmbeddedFile _MyEmbeddedFile: INCBIN "MyFile.plist" Is there is anything similar on PPC? The situation I’m having on PPC is this: - The Xcode assembler doesn’t have the usual gnu .incbin directive. - I don’t see any way to supply a linker script to embed my file. - Running nasm on PPC doesn’t help. It generates an x86 object file, which the PPC linker ignores because the file is for x86. The -sectcreate linker flag should do this for you for all architectures.
Hope this helps, Eric
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden