Re: A project without a library or executable issues.
Re: A project without a library or executable issues.
- Subject: Re: A project without a library or executable issues.
- From: Wim Lewis <email@hidden>
- Date: Wed, 14 Dec 2005 12:26:05 -0800
On 14 Dec, 2005, at 11:57 AM, Rush Manbert wrote:
If you find your test.o file and execute "otool -d" on it, you can
get a hex dump of the data segment contents, which you could then
clean up with an editor (it has offsets in the left column, plus
trailing zeros if the number of bytes in your array isn't a
multiple of 4), but I suspect that's not what you want.
An easier way to do that would be to use the "segedit" tool --- you
can just extract the (__DATA,__data) section from the object file.
(If you want, you can also use gcc's __attribute__((section("...")))
extension to place each array in a different (segment,section) for
later extraction.)
How about turning this into a program that walks through the
testDATA array and writes all of the byte values out to a binary file?
This does seem like the easier way to do it. Have one target in the
project compile the tool, and another target can consist of a shell
script phase which invokes the tool.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden