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 16, 2025
1 parent 009b051 commit 7ce026c
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 7ce026c

Please sign in to comment.