* grub-core/lib/reed_solomon.c: Use section _text, _text rather than
.text when compiling for Apple.
This commit is contained in:
parent
971dbee521
commit
e77c81f6f8
2 changed files with 22 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/lib/reed_solomon.c: Use section _text, _text rather than
|
||||||
|
.text when compiling for Apple.
|
||||||
|
|
||||||
2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/term/arc/console.c: Add missing cast to silence warning.
|
* grub-core/term/arc/console.c: Add missing cast to silence warning.
|
||||||
|
|
|
@ -69,16 +69,23 @@ typedef grub_uint8_t gf_single_t;
|
||||||
#define GF_POLYNOMIAL 0x1d
|
#define GF_POLYNOMIAL 0x1d
|
||||||
#define GF_INVERT2 0x8e
|
#define GF_INVERT2 0x8e
|
||||||
#if defined (STANDALONE) && !defined (TEST)
|
#if defined (STANDALONE) && !defined (TEST)
|
||||||
static gf_single_t * const gf_powx __attribute__ ((section(".text"))) = (void *) 0x100000;
|
|
||||||
static gf_single_t * const gf_powx_inv __attribute__ ((section(".text"))) = (void *) 0x100200;
|
#ifdef __APPLE__
|
||||||
static int *const chosenstat __attribute__ ((section(".text"))) = (void *) 0x100300;
|
#define ATTRIBUTE_TEXT __attribute__ ((section("_text,_text")))
|
||||||
static gf_single_t *const sigma __attribute__ ((section(".text"))) = (void *) 0x100700;
|
#else
|
||||||
static gf_single_t *const errpot __attribute__ ((section(".text"))) = (void *) 0x100800;
|
#define ATTRIBUTE_TEXT __attribute__ ((section(".text")))
|
||||||
static int *const errpos __attribute__ ((section(".text"))) = (void *) 0x100900;
|
#endif
|
||||||
static gf_single_t *const sy __attribute__ ((section(".text"))) = (void *) 0x100d00;
|
|
||||||
static gf_single_t *const mstat __attribute__ ((section(".text"))) = (void *) 0x100e00;
|
static gf_single_t * const gf_powx ATTRIBUTE_TEXT = (void *) 0x100000;
|
||||||
static gf_single_t *const errvals __attribute__ ((section(".text"))) = (void *) 0x100f00;
|
static gf_single_t * const gf_powx_inv ATTRIBUTE_TEXT = (void *) 0x100200;
|
||||||
static gf_single_t *const eqstat __attribute__ ((section(".text"))) = (void *) 0x101000;
|
static int *const chosenstat ATTRIBUTE_TEXT = (void *) 0x100300;
|
||||||
|
static gf_single_t *const sigma ATTRIBUTE_TEXT = (void *) 0x100700;
|
||||||
|
static gf_single_t *const errpot ATTRIBUTE_TEXT = (void *) 0x100800;
|
||||||
|
static int *const errpos ATTRIBUTE_TEXT = (void *) 0x100900;
|
||||||
|
static gf_single_t *const sy ATTRIBUTE_TEXT = (void *) 0x100d00;
|
||||||
|
static gf_single_t *const mstat ATTRIBUTE_TEXT = (void *) 0x100e00;
|
||||||
|
static gf_single_t *const errvals ATTRIBUTE_TEXT = (void *) 0x100f00;
|
||||||
|
static gf_single_t *const eqstat ATTRIBUTE_TEXT = (void *) 0x101000;
|
||||||
/* Next available address: (void *) 0x112000. */
|
/* Next available address: (void *) 0x112000. */
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue