summaryrefslogtreecommitdiff
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-11-23 14:22:24 -0800
committerFangrui Song <i@maskray.me>2024-11-23 14:22:24 -0800
commit43e3871a327b8e2ff57e16b46d5bc44beb430d91 (patch)
tree7b8958c5a8bc69f26aec7310810e1f7bff89b5f3 /lld/ELF/OutputSections.cpp
parent3cecf17065919da0a7fa9b38f37592e5462c2f85 (diff)
[ELF] Make section member orders consistent
SectionBase, InputSectionBase, InputSection, MergeInputSection, and OutputSection have different member orders. Make them consistent and adopt the order similar to the raw Elf64_Shdr.
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r--lld/ELF/OutputSections.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 9bcbea250e7d..31d14df9be71 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -67,9 +67,8 @@ void OutputSection::writeHeaderTo(typename ELFT::Shdr *shdr) {
OutputSection::OutputSection(Ctx &ctx, StringRef name, uint32_t type,
uint64_t flags)
- : SectionBase(Output, ctx.internalFile, name, flags, /*entsize=*/0,
- /*addralign=*/1, type,
- /*info=*/0, /*link=*/0),
+ : SectionBase(Output, ctx.internalFile, name, type, flags, /*link=*/0,
+ /*info=*/0, /*addralign=*/1, /*entsize=*/0),
ctx(ctx) {}
uint64_t OutputSection::getLMA() const {