From edcb15c31fd9182d8aa2185d8da6d5faf081863d Mon Sep 17 00:00:00 2001 From: seyko Date: Fri, 22 Apr 2016 18:25:40 +0300 Subject: [PATCH] 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. --- libtcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtcc.c b/libtcc.c index 32b2e74..75a37c3 100644 --- a/libtcc.c +++ b/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; }