summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gas/write.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-04-23 00:16:12 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-04-23 00:16:12 +0000
commit48f0216494efd6a916518c31e551b9a416ba191f (patch)
tree85fa8f606f06465ae26f7ebd1033edfc597f7ec0 /gnu/usr.bin/gas/write.c
parentd0a03bf14a2903828ffaf6d0fbcf845f33f3df0c (diff)
Merge of NetBSD 960418
Diffstat (limited to 'gnu/usr.bin/gas/write.c')
-rw-r--r--gnu/usr.bin/gas/write.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gnu/usr.bin/gas/write.c b/gnu/usr.bin/gas/write.c
index 6b241efa10e..81be2a859d6 100644
--- a/gnu/usr.bin/gas/write.c
+++ b/gnu/usr.bin/gas/write.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: write.c,v 1.2 1996/04/23 00:15:55 niklas Exp $ */
+
/* write.c - emit .o file
Copyright (C) 1986, 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
@@ -21,7 +23,7 @@
/* This thing should be set up to do byteordering correctly. But... */
#ifndef lint
-static char rcsid[] = "$Id: write.c,v 1.1 1995/10/18 08:39:00 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: write.c,v 1.2 1996/04/23 00:15:55 niklas Exp $";
#endif
#include "as.h"
@@ -724,11 +726,13 @@ segT segment; /* SEG_DATA or SEG_TEXT */
offset = lie->add->sy_frag->fr_address+ S_GET_VALUE(lie->add) + lie->addnum -
(lie->sub->sy_frag->fr_address+ S_GET_VALUE(lie->sub));
if (offset <= -32768 || offset >= 32767) {
+#if 0
if (flagseen['K'])
as_warn(".word %s-%s+%ld didn't fit",
S_GET_NAME(lie->add),
S_GET_NAME(lie->sub),
lie->addnum);
+#endif
lie->added=1;
if (fragP->fr_subtype == 0) {
fragP->fr_subtype++;
@@ -1003,7 +1007,7 @@ segT this_segment_type; /* N_TYPE bits for segment. */
}
#endif /* TC_I960 */
#ifdef PIC
- if (flagseen['k'] &&
+ if (picmode &&
S_IS_EXTERNAL(add_symbolP)) {
as_bad("Can't reduce difference of external symbols in PIC code");
}
@@ -1078,7 +1082,7 @@ segT this_segment_type; /* N_TYPE bits for segment. */
* Do not fixup refs to global data
* even if defined here.
*/
- if (!flagseen['k'] ||
+ if (!picmode ||
#ifdef TC_NS32K
fixP->fx_pcrel ||
#endif