3 ms·
> The actual semantics of when the combination of gcc, ld, and glibc will try to turn CET on are not documented, as far as I can tell. Yes. And a complicating
by mlyle 6y ago
> The actual semantics of when the combination of gcc, ld, and glibc will try to turn CET on are not documented, as far as I can tell.
Yes. And a complicating thing is here there's no loader or normal initialization code, because PXE is freestanding and invoked directly by the BIOS/EFI. CET is -probably- off...
And yes, are there any dependencies between the init code changes and GCC enabling CET and GCC builtins?
- amluto 6y agoAny CET init code ought to be confined to glibc and/or the kernel or whatever code is untimely loading your program. I hope glibc isn’t involved in iPXE :). CET had better be off for UEFI programs when they’re loaded unless that program has a special header, based on spec that I doubt exists, telling the loader to enable CET.