Skip to content

Commit

Permalink
BaseTools/Scripts: Do not discard COMMON sections for CLANG
Browse files Browse the repository at this point in the history
Align CLANG and GCC linker scripts to not discard COMMON
sections for CLANG builds. If COMMON sections are discarded,
then global variables from optimized OpensslLib assembly
source files are removed and results in symbol not found
errors.

Signed-off-by: Michael D Kinney <[email protected]>
  • Loading branch information
mdkinney committed Jan 21, 2025
1 parent 76e4d24 commit 93f4874
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion BaseTools/Scripts/ClangBase.lds
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,5 @@ SECTIONS {
*(.dynstr)
*(.hash .gnu.hash)
*(.comment)
*(COMMON)
}
}

0 comments on commit 93f4874

Please sign in to comment.