Displaying 2 results from an estimated 2 matches for "main_alt".
2017 Mar 07
2
[BUG Report] -dead_strip, strips prefix data unconditionally on macOS
...er the prologue data.
>
> Right now we have.
>
> .- - - - -. <- main.dsp
> | Prefix |
> |- - - - -| <- main
> | Body |
> '- - - - -'
>
> with Prologue, I believe:
>
> .- - - - - -. <- main
> | Prologue |
> |- - - - - -| <- alt_entry main_alt
> | Body |
> '- - - - - -'
>
> This could probably work today. However prologue data says it needs a
> special
> format. Do you happen to know, if that format is important as well, if we
> would never ever go through main, but only through main_alt?
>
> Chee...
2017 Mar 07
4
[BUG Report] -dead_strip, strips prefix data unconditionally on macOS
Firstly, do you need "main.dsp" defined as an external symbol, or can all
external references go via "main"? If the answer is the latter, that will
make the solution simpler.
If only the latter, you will need to make a change to LLVM here:
http://llvm-cs.pcc.me.uk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp#650
Basically you would need to add a hook to the TargetLoweringObjectFile