fix -section-alignment smaller than ELF header size
This commit is contained in:
parent
d9f1836124
commit
50cfe1141b
1 changed files with 1 additions and 1 deletions
2
tccelf.c
2
tccelf.c
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue