mirror of
https://github.com/rui314/mold.git
synced 2024-12-28 10:54:56 +03:00
temporary
This commit is contained in:
parent
5f58683412
commit
b1d3e1a97a
23
main.cc
23
main.cc
@ -469,11 +469,22 @@ int main(int argc, char **argv) {
|
||||
bin_sections(files);
|
||||
}
|
||||
|
||||
// Assign offsets within an output section to input sections.
|
||||
{
|
||||
MyTimer t("isec_offsets", before_copy);
|
||||
set_isec_offsets();
|
||||
}
|
||||
|
||||
// Create linker-synthesized sections.
|
||||
out::ehdr = new OutputEhdr;
|
||||
out::phdr = new OutputPhdr;
|
||||
out::shdr = new OutputShdr;
|
||||
// out::interp = new InterpSection;
|
||||
out::got = new GotSection;
|
||||
out::shstrtab = new ShstrtabSection;
|
||||
out::symtab = new SymtabSection;
|
||||
out::strtab = new StrtabSection;
|
||||
|
||||
// Scan relocations to fix the sizes of .got, .plt, .got.plt, .dynstr,
|
||||
// .rela.dyn, .rela.plt.
|
||||
{
|
||||
@ -487,17 +498,9 @@ int main(int argc, char **argv) {
|
||||
num_got += got;
|
||||
num_plt += plt;
|
||||
});
|
||||
}
|
||||
|
||||
// Create linker-synthesized sections.
|
||||
out::ehdr = new OutputEhdr;
|
||||
out::phdr = new OutputPhdr;
|
||||
out::shdr = new OutputShdr;
|
||||
// out::interp = new InterpSection;
|
||||
out::got = new GotSection;
|
||||
out::shstrtab = new ShstrtabSection;
|
||||
out::symtab = new SymtabSection;
|
||||
out::strtab = new StrtabSection;
|
||||
out::got->size = num_got * 8;
|
||||
}
|
||||
|
||||
// Compute .symtab and .strtab sizes
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user