mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
* tc-arm.c (md_longopts): On targets that aren't bi-endian, support
the -EL/-EB option that matches the target's endianness. (md_parse_option): Likewise.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2002-01-14 Richard Earnshaw <rearnsha@arm.com>
|
||||||
|
|
||||||
|
* tc-arm.c (md_longopts): On targets that aren't bi-endian, support
|
||||||
|
the -EL/-EB option that matches the target's endianness.
|
||||||
|
(md_parse_option): Likewise.
|
||||||
|
|
||||||
2002-01-14 Richard Earnshaw <rearnsha@arm.com>
|
2002-01-14 Richard Earnshaw <rearnsha@arm.com>
|
||||||
|
|
||||||
* tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
|
* tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
|
||||||
|
@ -9293,6 +9293,16 @@ struct option md_longopts[] =
|
|||||||
{"EB", no_argument, NULL, OPTION_EB},
|
{"EB", no_argument, NULL, OPTION_EB},
|
||||||
#define OPTION_EL (OPTION_MD_BASE + 1)
|
#define OPTION_EL (OPTION_MD_BASE + 1)
|
||||||
{"EL", no_argument, NULL, OPTION_EL},
|
{"EL", no_argument, NULL, OPTION_EL},
|
||||||
|
#else
|
||||||
|
/* If the build isn't bi-endian, just support the flag that we are anyway.
|
||||||
|
This makes things more portable. */
|
||||||
|
#if TARGET_BYTES_BIG_ENDIAN
|
||||||
|
#define OPTION_EB (OPTION_MD_BASE + 0)
|
||||||
|
{"EB", no_argument, NULL, OPTION_EB},
|
||||||
|
#else
|
||||||
|
#define OPTION_EL (OPTION_MD_BASE + 1)
|
||||||
|
{"EL", no_argument, NULL, OPTION_EL},
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef OBJ_ELF
|
#ifdef OBJ_ELF
|
||||||
#define OPTION_OABI (OPTION_MD_BASE +2)
|
#define OPTION_OABI (OPTION_MD_BASE +2)
|
||||||
@ -9312,10 +9322,13 @@ md_parse_option (c, arg)
|
|||||||
|
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
#ifdef ARM_BI_ENDIAN
|
#ifdef OPTION_EB
|
||||||
case OPTION_EB:
|
case OPTION_EB:
|
||||||
target_big_endian = 1;
|
target_big_endian = 1;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef OPTION_EL
|
||||||
case OPTION_EL:
|
case OPTION_EL:
|
||||||
target_big_endian = 0;
|
target_big_endian = 0;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user