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 <hpa@linux.intel.com>
This commit is contained in:
parent
5e03c443e4
commit
e800127a46
1 changed files with 2 additions and 1 deletions
|
@ -229,7 +229,7 @@ bool process_directives(char *directive)
|
||||||
case D_SEGMENT: /* [SEGMENT n] */
|
case D_SEGMENT: /* [SEGMENT n] */
|
||||||
case D_SECTION:
|
case D_SECTION:
|
||||||
{
|
{
|
||||||
int sb;
|
int sb = globalbits;
|
||||||
int32_t seg = ofmt->section(value, pass2, &sb);
|
int32_t seg = ofmt->section(value, pass2, &sb);
|
||||||
|
|
||||||
if (seg == NO_SEG) {
|
if (seg == NO_SEG) {
|
||||||
|
@ -238,6 +238,7 @@ bool process_directives(char *directive)
|
||||||
} else {
|
} else {
|
||||||
in_absolute = false;
|
in_absolute = false;
|
||||||
location.segment = seg;
|
location.segment = seg;
|
||||||
|
globalbits = sb;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue