mirror of
https://github.com/ziglang/zig.git
synced 2026-01-19 05:45:12 +00:00
elf: shuffle some stages to make it clear what needs what
This commit is contained in:
parent
d32af9ea2a
commit
8f1ce3c85b
@ -1049,14 +1049,16 @@ pub fn flushModule(self: *Elf, arena: Allocator, tid: Zcu.PerThread.Id, prog_nod
|
||||
try self.initSyntheticSections();
|
||||
try self.initSpecialPhdrs();
|
||||
try self.sortShdrs();
|
||||
for (self.objects.items) |index| {
|
||||
try self.file(index).?.object.addAtomsToOutputSections(self);
|
||||
}
|
||||
try self.sortInitFini();
|
||||
|
||||
try self.setDynamicSection(rpath_table.keys());
|
||||
self.sortDynamicSymtab();
|
||||
try self.setHashSections();
|
||||
try self.setVersionSymtab();
|
||||
|
||||
for (self.objects.items) |index| {
|
||||
try self.file(index).?.object.addAtomsToOutputSections(self);
|
||||
}
|
||||
try self.sortInitFini();
|
||||
try self.updateMergeSectionSizes();
|
||||
try self.updateSectionSizes();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user