audk/MdePkg/Library/BaseMemoryLibOptDxe
Ard Biesheuvel decaac5d0d MdePkg/BaseMemoryLibOptDxe ARM: add missing function annotations
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>
2018-12-13 12:45:49 +01:00
..
AArch64 MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Arm MdePkg/BaseMemoryLibOptDxe ARM: add missing function annotations 2018-12-13 12:45:49 +01:00
Ia32 MdePkg: Remove X86 ASM and S files 2018-06-07 15:26:27 +08:00
X64 MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
BaseMemoryLibOptDxe.inf MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
BaseMemoryLibOptDxe.uni
CompareMemWrapper.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
CopyMemWrapper.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
IsZeroBufferWrapper.c MdePkg BaseMemoryLib: Add assembly implementation of API IsZeroBuffer() 2016-08-22 18:54:31 +08:00
MemLibGuid.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
MemLibInternals.h MdePkg BaseMemoryLib: Add assembly implementation of API IsZeroBuffer() 2016-08-22 18:54:31 +08:00
ScanMem8Wrapper.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
ScanMem16Wrapper.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
ScanMem32Wrapper.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
ScanMem64Wrapper.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
SetMem16Wrapper.c
SetMem32Wrapper.c
SetMem64Wrapper.c
SetMemWrapper.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
ZeroMemWrapper.c MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00