[CDG5] MPW code mysteries
daniel B-J
danielbj314 at verizon.net
Sat Dec 29 06:07:43 AWST 2018
> On Dec 28, 2018, at 4:48 PM, Max Poliakovski <maximumspatium at googlemail.com> wrote:
>
> 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?
No clue. I note that Apple’s entire point of putting that pointer to the TOC there is because ELF files don’t initialize the TOC for you. If you were to compile for XCOFF, you could just leave that code snippet out entirely. Maybe the TOC was put there by some late-stage tool that converts the XCOFF to ELF?
More information about the cdg5
mailing list