<div dir="ltr"><div>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?</div><div><br></div><br><div class="gmail_quote"><div dir="ltr">Am Fr., 28. Dez. 2018 um 22:35 Uhr schrieb daniel B-J <<a href="mailto:danielbj314@verizon.net">danielbj314@verizon.net</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">> PPCAsm says that neither Data_Start nor Data_Base_Address are known so I'm stuck for now.<br>
<br>
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.<br>
<br>
DC.L TOC[TC0] - <insert name of symbol you put at start of data section here> + 0x00100000<br>
<br>
The ‘<‘ and ‘>’ are just part of the insert here message, not actual PPCASM syntax.<br>
<br>
_______________________________________________<br>
cdg5 mailing list<br>
<a href="mailto:cdg5@ucc.asn.au" target="_blank">cdg5@ucc.asn.au</a><br>
<a href="https://lists.ucc.gu.uwa.edu.au/mailman/listinfo/cdg5" rel="noreferrer" target="_blank">https://lists.ucc.gu.uwa.edu.au/mailman/listinfo/cdg5</a><br>
</blockquote></div></div>