[CDG5] MPW code mysteries
Max Poliakovski
maximumspatium at googlemail.com
Sat Dec 29 05:48:24 AWST 2018
Daniel, thanks a lot! I could try that out although I'm afraid it won't
work as expected. To my understanding, every object module produced by
whatever tool contains its own TOC. PPCLink will finally merge all TOCs
from all objects in a way we have no control over. The question is how to
put a symbol at the start of the data section to ensure that it will end up
at the start of the data section of the linked object?
Am Fr., 28. Dez. 2018 um 22:35 Uhr schrieb daniel B-J <
danielbj314 at verizon.net>:
> > PPCAsm says that neither Data_Start nor Data_Base_Address are known so
> I'm stuck for now.
>
> I guess I wasn’t clear enough. Those symbols don’t exist. I meant that you
> should stick a symbol at the start of the data section and use that in your
> calculations. Call it whatever you want. Data_Base_Address should probably
> just be the constant 0x00100000.
>
> DC.L TOC[TC0] - <insert name of symbol you put at start of data section
> here> + 0x00100000
>
> The ‘<‘ and ‘>’ are just part of the insert here message, not actual
> PPCASM syntax.
>
> _______________________________________________
> cdg5 mailing list
> cdg5 at ucc.asn.au
> https://lists.ucc.gu.uwa.edu.au/mailman/listinfo/cdg5
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ucc.gu.uwa.edu.au/pipermail/cdg5/attachments/20181228/3be102f9/attachment.htm
More information about the cdg5
mailing list