From f072de436bac2f4b671fdf4388ba185b96898daa Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 28 May 2012 11:46:49 +0900 Subject: [PATCH] better usage of .sys section --- ChangeLog | 5 ++++- polarssl-0.14.0/library/aes.c | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index cfd1cfc..9b4460f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2012-05-28 Niibe Yutaka + * 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 block. Don't send it to reGNUal. @@ -22,7 +25,7 @@ * boards/OLIMEX_STM32_H103/board.c (USB_Cable_Config, set_led): Remove. - * boards/STM32_PRIMER2/board.h (SET_USB_CONDITION) + * boards/STM32_PRIMER2/board.h (SET_USB_CONDITION) (SET_LED_CONDITION, GPIO_LED, IOPORT_LED, FLASH_PAGE_SIZE): New. * boards/STM32_PRIMER2/board.c (USB_Cable_Config, set_led): Remove. diff --git a/polarssl-0.14.0/library/aes.c b/polarssl-0.14.0/library/aes.c index 45f74a6..4f87e88 100644 --- a/polarssl-0.14.0/library/aes.c +++ b/polarssl-0.14.0/library/aes.c @@ -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) #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 #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 #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 #define V(a,b,c,d) 0x##d##a##b##c