diff options
author | Michael J. Eager <eager@eagercon.com> | 2023-09-28 13:08:49 -0700 |
---|---|---|
committer | Michael J. Eager <eager@eagercon.com> | 2023-09-28 13:14:37 -0700 |
commit | 1a64c35996054f06a951edc1d22a85ee20ddda07 (patch) | |
tree | 710e312a63d2bb1a0c310f98ae270324c5c4d5be /gas/config | |
parent | 72535eb14bda8ea61d801f007c4d38533c727832 (diff) | |
download | gdb-1a64c35996054f06a951edc1d22a85ee20ddda07.zip gdb-1a64c35996054f06a951edc1d22a85ee20ddda07.tar.gz gdb-1a64c35996054f06a951edc1d22a85ee20ddda07.tar.bz2 |
Added support in gas for mlittle-endian and mbig-endian flags as options.
Updated show usage for MicroBlaze specific assembler options
to include new entries.
This patch has been tested for years of AMD Xilinx Yocto
releases as part of the following patch set:
https://github.com/Xilinx/meta-xilinx/tree/master/meta-microblaze/recipes-devtools/binutils/binutils
Signed-off-by: nagaraju <nagaraju.mekala@amd.com>
Signed-off-by: Neal Frager <neal.frager@amd.com>
---
V1->V2:
- removed new options which were unnecessary
- added documentation for MicroBlaze specific options
Signed-off-by: Michael J. Eager <eager@eagercon.com>
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-microblaze.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c index 564e0b7..aa85174 100644 --- a/gas/config/tc-microblaze.c +++ b/gas/config/tc-microblaze.c @@ -1854,6 +1854,8 @@ struct option md_longopts[] = { {"EB", no_argument, NULL, OPTION_EB}, {"EL", no_argument, NULL, OPTION_EL}, + {"mlittle-endian", no_argument, NULL, OPTION_EL}, + {"mbig-endian", no_argument, NULL, OPTION_EB}, { NULL, no_argument, NULL, 0} }; @@ -2524,6 +2526,9 @@ md_show_usage (FILE * stream ATTRIBUTE_UNUSED) /* fprintf(stream, _("\ MicroBlaze options:\n\ -noSmall Data in the comm and data sections do not go into the small data section\n")); */ + fprintf (stream, _(" MicroBlaze specific assembler options:\n")); + fprintf (stream, " -%-23s%s\n", "mbig-endian", N_("assemble for a big endian cpu")); + fprintf (stream, " -%-23s%s\n", "mlittle-endian", N_("assemble for a little endian cpu")); } |