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.
master
seyko 2016-04-22 18:25:40 +03:00
parent 8db7a0f7af
commit edcb15c31f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}