mirror of https://github.com/acidanthera/audk.git
When building with -mbranch-protection=bti, which affects the compiler codegen only, ensure that the assembler based codegen is aligned with this, by emitting the BTI C opcode at the start of each exported function. While most exported functions are not in fact ever called indirectly, whether or not this is the case is a property of the caller so annotating every exported function is a reasonable default. While at it, fix two occurrences in ArmPkg of exported functions that did not use the ASM_FUNC() macro. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com> Reviewed-by: Oliver Smith-Denny <osd@smith-denny.com> |
||
---|---|---|
.. | ||
ArmArchTimerLib | ||
ArmCacheMaintenanceLib | ||
ArmDisassemblerLib | ||
ArmExceptionLib | ||
ArmGenericTimerPhyCounterLib | ||
ArmGenericTimerVirtCounterLib | ||
ArmGicArchLib | ||
ArmGicArchSecLib | ||
ArmHvcLib | ||
ArmHvcLibNull | ||
ArmLib | ||
ArmMmuLib | ||
ArmMonitorLib | ||
ArmMtlNullLib | ||
ArmPsciResetSystemLib | ||
ArmSmcLib | ||
ArmSmcLibNull | ||
ArmSmcPsciResetSystemLib | ||
ArmSoftFloatLib | ||
ArmSvcLib | ||
ArmTrngLib | ||
CompilerIntrinsicsLib | ||
DebugAgentSymbolsBaseLib | ||
DebugPeCoffExtraActionLib | ||
DefaultExceptionHandlerLib | ||
GccLto | ||
LinuxBootBootManagerLib | ||
OpteeLib | ||
PeiServicesTablePointerLib | ||
PlatformBootManagerLib | ||
SemiHostingDebugLib | ||
SemiHostingSerialPortLib | ||
SemihostLib | ||
StandaloneMmMmuLib |