Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Intel mach-o




On Jan 25, 2006, at 12:12 AM, Eric Albert wrote:

I am running into a problem building a mach-o on the new Intel. Currently "mach-o/ppc/reloc.h" is included and I noticed that there is not a "mach-o/386/reloc.h" header and in turn when I comment it out, I am getting the following errors.

test.c:90: error: 'PPC_RELOC_PAIR' undeclared (first use in this function)
test.c:90: error: (Each undeclared identifier is reported only once
test.c:90: error: for each function it appears in.)
test.c: In function 'test_name':
test.c:103: error: 'PPC_RELOC_BR24' undeclared (first use in this function)
test.c: In function 'gen_test':
test.c:202: error: 'struct relocation_info' has no member named 'r_offset'
test.c:203: error: 'struct relocation_info' has no member named 'r_offset'
test.c:215: error: 'struct relocation_info' has no member named 'r_offset'
test.c:220: error: 'struct relocation_info' has no member named 'r_offset'

Is there an equivalent 'PPC_RELOC_PAIR' and 'PPC_RELOC_BR24' for Intel? Or do you use the ppc header on Intel?

Mac OS X's ABI for Intel uses "generic" relocation entry types, which are defined in <mach-o/reloc.h>. You can see this by running 'otool -arch i386 -rv /path/to/binary', where the binary is universal or Intel-only.


Greetings,

Anyone out there feel qualified to help me get this going? Its a bit beyond my ability at this time and I would be happy to compensate for time.

Please email me off list if you are interested.


Thanks,

Jeshua Lacock ___________________________
Programmer/Owner		Phone:	877.240.1364
http://OpenOSX.com		Fax:		415.462.6211
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Intel mach-o (From: Jeshua Lacock <email@hidden>)
 >Re: Intel mach-o (From: Eric Albert <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.