better usage of .sys section

This commit is contained in:
NIIBE Yutaka
2012-05-28 11:46:49 +09:00
parent cb1dc21b61
commit f072de436b
2 changed files with 7 additions and 4 deletions

View File

@@ -1,5 +1,8 @@
2012-05-28 Niibe Yutaka <gniibe@fsij.org> 2012-05-28 Niibe Yutaka <gniibe@fsij.org>
* polarssl-0.14.0/library/aes.c (FT0, FT1, FT2): Specify the
section ".sys", so that we will have more room for flash ROM.
* tool/gnuk_upgrade.py (main): First 4096-byte of Gnuk is system * tool/gnuk_upgrade.py (main): First 4096-byte of Gnuk is system
block. Don't send it to reGNUal. block. Don't send it to reGNUal.

View File

@@ -172,15 +172,15 @@ static const unsigned char FSb[256] =
V(CB,B0,B0,7B), V(FC,54,54,A8), V(D6,BB,BB,6D), V(3A,16,16,2C) V(CB,B0,B0,7B), V(FC,54,54,A8), V(D6,BB,BB,6D), V(3A,16,16,2C)
#define V(a,b,c,d) 0x##a##b##c##d #define V(a,b,c,d) 0x##a##b##c##d
static const unsigned long FT0[256] = { FT }; static const unsigned long FT0[256] __attribute__((section(".sys"))) = { FT };
#undef V #undef V
#define V(a,b,c,d) 0x##b##c##d##a #define V(a,b,c,d) 0x##b##c##d##a
static const unsigned long FT1[256] = { FT }; static const unsigned long FT1[256] __attribute__((section(".sys"))) = { FT };
#undef V #undef V
#define V(a,b,c,d) 0x##c##d##a##b #define V(a,b,c,d) 0x##c##d##a##b
static const unsigned long FT2[256] = { FT }; static const unsigned long FT2[256] __attribute__((section(".sys"))) = { FT };
#undef V #undef V
#define V(a,b,c,d) 0x##d##a##b##c #define V(a,b,c,d) 0x##d##a##b##c