Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: aca75d3c08674dfa85f00100edf85c67476e333d https://github.com/tianocore/edk2/commit/aca75d3c08674dfa85f00100edf85c67476e333d Author: Dhaval <dha...@rivosinc.com> Date: 2024-12-11 (Wed, 11 Dec 2024)
Changed paths: M BaseTools/Conf/tools_def.template M BaseTools/Scripts/ClangBase.lds Log Message: ----------- BaseTools: Update alignment for entry seg for Clang It does 3 things: 1. Use separate linker file for clang vs GCC for RISCV64. 2. Use common page size instead of max page to ensure -z option align values are properly applied. 3. Enforce alignment for .entry segment as per -z option. When we want to have -z option aligned images, clang while alignes .text and .data segments correctly, .entry segment is by default not aligned unless explicitly specified. This patch makes it explicit to clang that entry seg should also be aligned to requirements. Somehow GCC does not require such explicit entry. Hence detachiong both ld files. Signed-off-by: Dhaval Sharma <dha...@rivosinc.com> To unsubscribe from these emails, change your notification settings at https://github.com/tianocore/edk2/settings/notifications _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits