[llvm] Reland "[ObjectYAML][ELF] Take alignment into account when generating notes" (PR #118434)
Igor Kudrin via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 12:44:20 PST 2024
================
@@ -1799,6 +1799,21 @@ void ELFState<ELFT>::writeSectionContent(Elf_Shdr &SHeader,
if (!Section.Notes)
return;
+ unsigned Align;
+ switch (SHeader.sh_addralign) {
----------------
igorkudrin wrote:
Thanks, I've changed it to `Section.AddressAlign`.
https://github.com/llvm/llvm-project/pull/118434
More information about the llvm-commits
mailing list