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:
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;
|
sec->sh_addralign = 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
sec->sh_addralign = 32; /* default conservative alignment */
|
sec->sh_addralign = PTR_SIZE; /* gcc/pcc default aligment */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user