From e800127a467f860bf413d1414ad2e1d9cdf55b2d Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 27 Sep 2017 14:22:16 -0700 Subject: [PATCH] BR3392439: make sure to update globalbits if appropriate For some output types, the bit size, globalbits, follow the section (segment); make sure we actually update it! Signed-off-by: H. Peter Anvin --- asm/directiv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asm/directiv.c b/asm/directiv.c index d6dfed85..354b591a 100644 --- a/asm/directiv.c +++ b/asm/directiv.c @@ -229,7 +229,7 @@ bool process_directives(char *directive) case D_SEGMENT: /* [SEGMENT n] */ case D_SECTION: { - int sb; + int sb = globalbits; int32_t seg = ofmt->section(value, pass2, &sb); if (seg == NO_SEG) { @@ -238,6 +238,7 @@ bool process_directives(char *directive) } else { in_absolute = false; location.segment = seg; + globalbits = sb; } break; } -- 2.11.4.GIT