[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] tcc as compiler for tccboot
From: |
Sergey Korshunoff |
Subject: |
Re: [Tinycc-devel] tcc as compiler for tccboot |
Date: |
Wed, 20 Apr 2016 18:49:13 +0300 |
> Just checked. I used a hex editor to replace a 0x20 bytes in mem-2.o with
> 0x04.
> This helped.
diff --git a/libtcc.c b/libtcc.c
index 5aebd32..a8e109c 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -514,7 +514,11 @@ ST_FUNC Section *new_section(TCCState *s1, const
char *name, int sh_type, int sh
sec->sh_addralign = 1;
break;
default:
+ #ifdef TCC_TARGET_I386
+ sec->sh_addralign = 4; /* gcc/pcc default alignment for i386 */
+ #else
sec->sh_addralign = 32; /* default conservative alignment */
+ #endif
break;
}
- [Tinycc-devel] tcc as compiler for tccboot, Sergey Korshunoff, 2016/04/20
- Re: [Tinycc-devel] tcc as compiler for tccboot, Sergey Korshunoff, 2016/04/20
- Re: [Tinycc-devel] tcc as compiler for tccboot, Sergey Korshunoff, 2016/04/20
- Re: [Tinycc-devel] tcc as compiler for tccboot,
Sergey Korshunoff <=
- Re: [Tinycc-devel] tcc as compiler for tccboot, David Mertens, 2016/04/20
- Re: [Tinycc-devel] tcc as compiler for tccboot, Sergey Korshunoff, 2016/04/21
- Re: [Tinycc-devel] tcc as compiler for tccboot, Sergey Korshunoff, 2016/04/21
- Re: [Tinycc-devel] tcc as compiler for tccboot, David Mertens, 2016/04/21
- Re: [Tinycc-devel] tcc as compiler for tccboot, Sergey Korshunoff, 2016/04/22
- Re: [Tinycc-devel] tcc as compiler for tccboot, Michael Matz, 2016/04/22