aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-04-18 15:56:03 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-04-18 15:56:03 +0000
commit47d12b2ce049c22bd4549c96f7a4cce5cf35a914 (patch)
tree07e5e1a6092922f4f4e6ba417ba4ed30d5ee409e /gas
parente1b4f28735716c002118c092bf6eeff95ad36966 (diff)
downloadgdb-47d12b2ce049c22bd4549c96f7a4cce5cf35a914.zip
gdb-47d12b2ce049c22bd4549c96f7a4cce5cf35a914.tar.gz
gdb-47d12b2ce049c22bd4549c96f7a4cce5cf35a914.tar.bz2
Add -le/-be/-s from Solaris.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ppc.c37
2 files changed, 41 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b042d87..5a66794 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+Thu Apr 18 11:53:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
+
+ * config/tc-ppc.c (md_parse_option): Add support for Solaris's -le
+ and -s options. Add -be for good measure.
+
Wed Apr 17 12:31:01 1996 Ian Lance Taylor <ian@cygnus.com>
* read.c (s_space): Support non-constant fill value. Handle fill
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 56724d4..4a6b3cc 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -597,7 +597,7 @@ const int md_long_jump_size = 4;
#endif
#ifdef OBJ_ELF
-CONST char *md_shortopts = "um:VQ:";
+CONST char *md_shortopts = "b:l:usm:VQ:";
#else
CONST char *md_shortopts = "um:";
#endif
@@ -618,6 +618,32 @@ md_parse_option (c, arg)
external, which is the default for gas anyhow. */
break;
+#ifdef OBJ_ELF
+ case 'l':
+ /* Solaris as takes -le (presumably for little endian). For completeness
+ sake, recognize -be also. */
+ if (strcmp (arg, "e") == 0)
+ {
+ target_big_endian = 0;
+ set_target_endian = 1;
+ }
+ else
+ return 0;
+
+ break;
+
+ case 'b':
+ if (strcmp (arg, "e") == 0)
+ {
+ target_big_endian = 1;
+ set_target_endian = 1;
+ }
+ else
+ return 0;
+
+ break;
+#endif
+
case 'm':
/* -mpwrx and -mpwr2 mean to assemble for the IBM POWER/2
(RIOS2). */
@@ -708,6 +734,15 @@ md_parse_option (c, arg)
should be emitted or not. FIXME: Not implemented. */
case 'Q':
break;
+
+ /* Solaris takes -s to specify that .stabs go in a .stabs section,
+ rather than .stabs.excl, which is ignored by the linker.
+ FIXME: Not implemented. */
+ case 's':
+ if (arg)
+ return 0;
+
+ break;
#endif
default: