[lld] [LLD][COFF][NFC] Always align null chunks (PR #116677)

Jacek Caban via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 11:02:00 PST 2024


cjacek wrote:

This change is similar to #80014 and #84697. Currently, null chunks always follow other aligned chunks, so this patch is NFC. However, it will become observable once support for ARM64X imports is added. The import tables are shared between the native and EC views. They are usually very similar, but in cases where they differ, ARM64X relocations handle the discrepancies. If a DLL is only imported by EC code, the native view will see it as importing zero functions from this DLL (with ARM64X relocations replacing those null chunks with actual imports). In this scenario, the null chunks may appear as the very first chunks, meaning there is nothing else forcing their alignment.

https://github.com/llvm/llvm-project/pull/116677


More information about the llvm-commits mailing list