section alignment
Alignment of unknown sections changed from 32 to PTR_SIZE This is gcc/pcc default value. This helps to use tcc as linux kernel compiler.
This commit is contained in:
parent
8db7a0f7af
commit
edcb15c31f
1 changed files with 1 additions and 1 deletions
2
libtcc.c
2
libtcc.c
|
@ -511,7 +511,7 @@ ST_FUNC Section *new_section(TCCState *s1, const char *name, int sh_type, int sh
|
|||
sec->sh_addralign = 1;
|
||||
break;
|
||||
default:
|
||||
sec->sh_addralign = 32; /* default conservative alignment */
|
||||
sec->sh_addralign = PTR_SIZE; /* gcc/pcc default aligment */
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue