mirror of https://github.com/acidanthera/audk.git
decaac5d0d
ARM uses the low order bit of a branch target address to decide in which execution mode (ARM or Thumb) a function needs to be called. In order for this to work across object files, ELF function symbols will have the low bit set if they were emitted in Thumb mode and cleared otherwise. This annotation is only emitted if the ELF symbols are annotated as function, since taking the address of some data symbol (e.g., a literal) should not produce a value with the low bit set, even if it appears in an object file containing Thumb code. This means that all functions coded in assembler must have this function annotation, or they may end up getting called in the wrong mode, crashing the program. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> |
||
---|---|---|
.. | ||
AArch64 | ||
Arm | ||
Ia32 | ||
X64 | ||
BaseMemoryLibOptDxe.inf | ||
BaseMemoryLibOptDxe.uni | ||
CompareMemWrapper.c | ||
CopyMemWrapper.c | ||
IsZeroBufferWrapper.c | ||
MemLibGuid.c | ||
MemLibInternals.h | ||
ScanMem8Wrapper.c | ||
ScanMem16Wrapper.c | ||
ScanMem32Wrapper.c | ||
ScanMem64Wrapper.c | ||
SetMem16Wrapper.c | ||
SetMem32Wrapper.c | ||
SetMem64Wrapper.c | ||
SetMemWrapper.c | ||
ZeroMemWrapper.c |