mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
elf: shuffle some stages to make it clear what needs what
This commit is contained in:
parent
d32af9ea2a
commit
8f1ce3c85b
1 changed files with 6 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue