aboutsummaryrefslogtreecommitdiffstats
path: root/asm/assemble.c
diff options
context:
space:
mode:
Diffstat (limited to 'asm/assemble.c')
-rw-r--r--asm/assemble.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/asm/assemble.c b/asm/assemble.c
index e24ebdb5..2394e765 100644
--- a/asm/assemble.c
+++ b/asm/assemble.c
@@ -376,7 +376,8 @@ static void out(struct out_data *data)
amax = ofmt->maxbits >> 3; /* Maximum address size in bytes */
if ((ofmt->flags & OFMT_KEEP_ADDR) == 0 && data->tsegment == fixseg &&
data->twrt == NO_SEG) {
- warn_overflow_out(addrval, asize, data->sign);
+ if (asize < (data->bits >> 3))
+ warn_overflow_out(addrval, asize, data->sign);
xdata.q = cpu_to_le64(addrval);
data->data = xdata.b;
data->type = OUT_RAWDATA;