Re: Help with Xcode i386 Link problems
Re: Help with Xcode i386 Link problems
- Subject: Re: Help with Xcode i386 Link problems
- From: Mark Thomas <email@hidden>
- Date: Tue, 28 Mar 2006 20:33:15 +0100
- Organization: Coderus Ltd
void func()
{
asm {
opcode 0x12345678
}
}
All this should do is put 0x12345678 into code fragment/text. I've entered
a rdar://4493569 for this. Being 'asm', this came from CodeWarrior world so
there might be something not quite right maybe on i386 side as the PPC side
everything resolves correctly.
Thanks
Mark.
> I'm not familiar with an 'opcode' instruction. What's the actual code
> here?
>
> -Eric
>
> On Mar 28, 2006, at 9:27 AM, Mark Thomas wrote:
>
>> Hi,
>> Thanks for that it seems for some reason that doing
>>
>> asm {
>> opcode 0x12345678
>> }
>>
>> Is bad news using the gcc i386 for some reason, as all it should be
>> doing
>> is marking that area as defined. This worked fine on the ppc side.
>>
>> Thanks
>> Mark.
>>
>>> If you set "Other Linker Flags" to "-Wl,-Y,100", the linker will at
>>> least print out the object files that are referencing those symbols.
>>> From there you can disassemble the object file(s) in question with
>>> otool -tV and see where those symbols are referenced.
>>>
>>> Hope this helps,
>>> Eric
>>>
>>> On Mar 27, 2006, at 1:38 PM, Mark Thomas wrote:
>>>
>>>> Hi,
>>>> got no reply, really stuck any thoughts as I really don't want to
>>>> rebuild
>>>> this huge application piece meal. Was my idea of looking at the .o
>>>> for
>>>> clues
>>>> any good.
>>>>
>>>> Thanks in advance,
>>>>
>>>> Mark.
>>>>
>>>> ----------------------------------------
>>>>
>>>> Was wondering if anybody might have some ideas on this, as I'm little
>>>> stuck
>>>> on what to do in resolving this, and pulling everything apart and
>>>> rebuilding
>>>> in small parts isn't really an option as its very large project. Is
>>>> there a
>>>> way to find where these so call symbols came from maybe, by
>>>> inspecting
>>>> the
>>>> object file and then I could work back from there ?
>>>>
>>>> Thanks
>>>> Mark.
>>>>
>>>> ----------------------------------------
>>>>
>>>> Hi,
>>>> I¹m building a Universal binary of my app but I see to get this
>>>> link
>>>> error
>>>> only on i386 side but not on ppc side which is weird, and the message
>>>> I get
>>>> back is very crypt anybody have any ideas ?
>>>>
>>>> /usr/bin/ld: Undefined symbols:
>>>> $1298228036
>>>> $1478514546
>>>> $1668244581
>>>> $1668246825
>>>> $1769239653
>>>> $1797280872
>>>> $1847607929
>>>> $1868850546
>>>> $1869439347
>>>> $1920299822
>>>> $1952718888
>>>> $1970479180
>>>> $2004317998
>>>> $541942130
>>>> $547954755
>>>>
>>>> I don't have any symbols in my code named in this fashion, so its
>>>> little
>>>> weird :-(.
>>>>
>>>> Thanks
>>>> Mark.
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Xcode-users mailing list (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>> email@hidden
>>>>
>>>> This email sent to email@hidden
>>>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> email@hidden
>>
>> This email sent to email@hidden
>>
_______________________________________________
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