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.
Unified · Split
| @@ -511,7 +511,7 @@ ST_FUNC Section *new_section(TCCState *s1, const char *name, int sh_type, int sh · 510 unmodified lines | ||
| 511 | 511 | sec->sh_addralign = 1; |
| 512 | 512 | break; |
| 513 | 513 | default: |
| 514 | − sec->sh_addralign = 32; /* default conservative alignment */ | |
| 514 | + sec->sh_addralign = PTR_SIZE; /* gcc/pcc default aligment */ | |
| 515 | 515 | break; |
| 516 | 516 | } |
| 517 | 517 | |