On 16 July 2016 at 19:25, Ard Biesheuvel <[email protected]> wrote:
>
>
>> On 16 jul. 2016, at 17:10, Shi, Steven <[email protected]> wrote:
>>
>> You clone and can try the GCC LTO build on my below branch, and welcome 
>> directly debug on it.
>> https://github.com/shijunjing/edk2/tree/llvm_v2
>>
>
> Thanks, I will try it on monday
>

I just tried it, and indeed, it turns out that 'hidden' visibility
interacts poorly with LTO, and we should use 'protected' visibility
instead, which achieves the same thing, i.e., that the compiler is
allowed to assume that symbols are not subject to preemption, and so
it can refer to them relatively rather than indirectly via an absolute
address in the GOT.

I will update this in my v3 series.

Thanks,
Ard.
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to