Skip to content

Commit d7f9166

Browse files
committed
Fix last commit.
1 parent 5a467dd commit d7f9166

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tccelf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,8 +2527,6 @@ static int tcc_output_elf(TCCState *s1, FILE *f, int phnum, ElfW(Phdr) *phdr)
25272527
ElfW(Ehdr) ehdr;
25282528
ElfW(Shdr) shdr, *sh;
25292529

2530-
sort_syms(s1, s1->symtab);
2531-
25322530
file_type = s1->output_type;
25332531
shnum = s1->nb_sections;
25342532

@@ -2578,6 +2576,8 @@ static int tcc_output_elf(TCCState *s1, FILE *f, int phnum, ElfW(Phdr) *phdr)
25782576
return -1;
25792577
}
25802578

2579+
sort_syms(s1, s1->symtab);
2580+
25812581
ehdr.e_machine = EM_TCC_TARGET;
25822582
ehdr.e_version = EV_CURRENT;
25832583
ehdr.e_shoff = (sizeof(ElfW(Ehdr)) + phnum * sizeof(ElfW(Phdr)) + 3) & -4;

0 commit comments

Comments
 (0)