diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1996-10-01 00:13:54 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1996-10-01 00:13:54 +0000 |
| commit | 75f88ba495d81b9fdb9d065a7abe2135bb28198c (patch) | |
| tree | dc0e009bb6e8abfe1b3c14a635917c59c168246b /gnu/usr.bin/as/write.c | |
| parent | 8bd55788306b15f1b4d145a261dd7a2b21bae648 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/as/write.c')
| -rw-r--r-- | gnu/usr.bin/as/write.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/usr.bin/as/write.c b/gnu/usr.bin/as/write.c index 66906b0d09d24..7510d2d5db6d0 100644 --- a/gnu/usr.bin/as/write.c +++ b/gnu/usr.bin/as/write.c @@ -21,7 +21,7 @@ /* This thing should be set up to do byteordering correctly. But... */ #ifndef lint -static char rcsid[] = "$Id: write.c,v 1.6 1994/12/23 22:36:22 nate Exp $"; +static char rcsid[] = "$Id: write.c,v 1.7 1995/05/30 04:46:40 rgrimes Exp $"; #endif #include "as.h" @@ -726,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++; @@ -1005,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"); } @@ -1080,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 |
