How to embed a file in a mach-o lib?
How to embed a file in a mach-o lib?
- Subject: How to embed a file in a mach-o lib?
- From: "Jason Watts" <email@hidden>
- Date: Wed, 21 Mar 2007 18:46:52 -0700
- Thread-topic: How to embed a file in a mach-o lib?
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.
Any suggestions?
Thanks,
¿.) Jason Watts
Senior Software Engineer
Digidesign
|
_______________________________________________
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