Skip to content

Commit

Permalink
UefiCpuPkg: SmmCpuExceptionHandlerLib: Extend reloc flag to GCC
Browse files Browse the repository at this point in the history
When building standalone MM core module, the relocation is also
disabled and this will introduce a linker break when this is done
with GCC.

Thus extending the flag to cover GCC builds as well.

cherry-pick from 57e8694

Signed-off-by: Kun Qin <[email protected]>
  • Loading branch information
kuqin12 authored and cfernald committed Jul 3, 2024
1 parent bcf6b9b commit 0d3dd14
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@

[BuildOptions]
XCODE:*_*_X64_NASM_FLAGS = -D NO_ABSOLUTE_RELOCS_IN_TEXT
# MU_CHANGE: Disable absolute relocations in text for GCC as well
GCC:*_*_X64_NASM_FLAGS = -D NO_ABSOLUTE_RELOCS_IN_TEXT

0 comments on commit 0d3dd14

Please sign in to comment.