diff options
Diffstat (limited to 'recipes-devtools/binutils/files/Add-mlittle-endian-and-mbig-endian.patch')
-rw-r--r-- | recipes-devtools/binutils/files/Add-mlittle-endian-and-mbig-endian.patch | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/recipes-devtools/binutils/files/Add-mlittle-endian-and-mbig-endian.patch b/recipes-devtools/binutils/files/Add-mlittle-endian-and-mbig-endian.patch new file mode 100644 index 00000000..984fda3f --- /dev/null +++ b/recipes-devtools/binutils/files/Add-mlittle-endian-and-mbig-endian.patch | |||
@@ -0,0 +1,64 @@ | |||
1 | From: nagaraju <nmekala@xilix.com> | ||
2 | Date: Tue, 19 Mar 2013 17:18:23 +0530 | ||
3 | Subject: Add mlittle-endian and mbig-endian flags | ||
4 | |||
5 | Added support in gas for mlittle-endian and mbig-endian flags | ||
6 | as options. | ||
7 | |||
8 | Updated show usage for MicroBlaze specific assembler options | ||
9 | to include new entries. | ||
10 | |||
11 | Signed-off-by:nagaraju <nmekala@xilix.com> | ||
12 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | ||
13 | Upstream-Status: Pending | ||
14 | --- | ||
15 | gas/config/tc-microblaze.c | 9 +++++++++ | ||
16 | 1 file changed, 9 insertions(+) | ||
17 | |||
18 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | ||
19 | index 872737b..b241743 100644 | ||
20 | --- a/gas/config/tc-microblaze.c | ||
21 | +++ b/gas/config/tc-microblaze.c | ||
22 | @@ -37,6 +37,8 @@ | ||
23 | |||
24 | #define OPTION_EB (OPTION_MD_BASE + 0) | ||
25 | #define OPTION_EL (OPTION_MD_BASE + 1) | ||
26 | +#define OPTION_LITTLE (OPTION_MD_BASE + 2) | ||
27 | +#define OPTION_BIG (OPTION_MD_BASE + 3) | ||
28 | |||
29 | void microblaze_generate_symbol (char *sym); | ||
30 | static bfd_boolean check_spl_reg (unsigned *); | ||
31 | @@ -1824,6 +1826,8 @@ struct option md_longopts[] = | ||
32 | { | ||
33 | {"EB", no_argument, NULL, OPTION_EB}, | ||
34 | {"EL", no_argument, NULL, OPTION_EL}, | ||
35 | + {"mlittle-endian", no_argument, NULL, OPTION_LITTLE}, | ||
36 | + {"mbig-endian", no_argument, NULL, OPTION_BIG}, | ||
37 | { NULL, no_argument, NULL, 0} | ||
38 | }; | ||
39 | |||
40 | @@ -2457,9 +2461,11 @@ md_parse_option (int c, char * arg ATTRIBUTE_UNUSED) | ||
41 | switch (c) | ||
42 | { | ||
43 | case OPTION_EB: | ||
44 | + case OPTION_BIG: | ||
45 | target_big_endian = 1; | ||
46 | break; | ||
47 | case OPTION_EL: | ||
48 | + case OPTION_LITTLE: | ||
49 | target_big_endian = 0; | ||
50 | break; | ||
51 | default: | ||
52 | @@ -2474,6 +2480,9 @@ md_show_usage (FILE * stream ATTRIBUTE_UNUSED) | ||
53 | /* fprintf(stream, _("\ | ||
54 | MicroBlaze options:\n\ | ||
55 | -noSmall Data in the comm and data sections do not go into the small data section\n")); */ | ||
56 | + fprintf (stream, _(" MicroBlaze specific assembler options:\n")); | ||
57 | + fprintf (stream, " -%-23s%s\n", "mbig-endian", N_("assemble for a big endian cpu")); | ||
58 | + fprintf (stream, " -%-23s%s\n", "mlittle-endian", N_("assemble for a little endian cpu")); | ||
59 | } | ||
60 | |||
61 | |||
62 | -- | ||
63 | 1.7.9.5 | ||
64 | |||