aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1992-04-27 20:17:02 +0000
committerK. Richard Pixley <rich@cygnus>1992-04-27 20:17:02 +0000
commite6498b10d7b48d63217c6ab0f04c70b5194b609a (patch)
treee419736a54b62ce228e6beabc2ff41f5e78edb94
parent95a3881d303614ff1b9a982350e2c9e4f4d9df84 (diff)
downloadgdb-e6498b10d7b48d63217c6ab0f04c70b5194b609a.zip
gdb-e6498b10d7b48d63217c6ab0f04c70b5194b609a.tar.gz
gdb-e6498b10d7b48d63217c6ab0f04c70b5194b609a.tar.bz2
use -K for broken word option rather than -k which means pic to sun as
-rw-r--r--gas/as.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/gas/as.c b/gas/as.c
index 9c89bf2..eb9941b 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -95,7 +95,7 @@ char **argv;
signal(sig[a], got_sig);
myname=argv[0];
- bzero (flagseen, sizeof(flagseen)); /* aint seen nothing yet */
+ memset(flagseen, '\0', sizeof(flagseen)); /* aint seen nothing yet */
#ifndef OBJ_DEFAULT_OUTPUT_FILE_NAME
#define OBJ_DEFAULT_OUTPUT_FILE_NAME "a.out"
#endif /* OBJ_DEFAULT_OUTPUT_FILE_NAME */
@@ -223,7 +223,7 @@ char **argv;
}
#ifndef WORKING_DOT_WORD
- case 'k':
+ case 'K':
break;
#endif
@@ -336,10 +336,11 @@ int argc;
char **argv;
{
int saw_a_file = 0;
+ unsigned int i;
need_pass_2 = 0;
#ifdef MANY_SEGMENTS
- unsigned int i;
+
for (i= SEG_E0; i < SEG_UNKNOWN; i++)
{
@@ -354,12 +355,14 @@ char **argv;
strcpy(segment_info[SEG_E2].scnhdr.s_name,".bss");
subseg_new (SEG_E0, 0);
-#else
+#else /* not MANY_SEGMENTS */
text_fix_root = NULL;
data_fix_root = NULL;
+ bss_fix_root = NULL;
subseg_new (SEG_TEXT, 0);
-#endif
+#endif /* not MANY_SEGMENTS */
+
argv++; /* skip argv[0] */
argc--; /* skip argv[0] */
while (argc--) {