Skip to content

Commit

Permalink
fix -section-alignment smaller than ELF header size
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxcrafting committed Oct 24, 2024
1 parent d9f1836 commit 50cfe11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tccelf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2305,7 +2305,7 @@ static int layout_sections(TCCState *s1, int *sec_order, struct dyn_inf *d)
}
base = addr;
/* compute address after headers */
addr = addr + (file_offset & (s_align - 1));
addr += file_offset;

n = 0;
for(i = 1; i < s1->nb_sections; i++) {
Expand Down

0 comments on commit 50cfe11

Please sign in to comment.