gas: missing (re-)initialization of local variable in fixup_segment()
authorJan Beulich <jbeulich@suse.com>
Tue, 6 Apr 2021 08:56:30 +0000 (10:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 6 Apr 2021 08:56:30 +0000 (10:56 +0200)
commitda0835aebea71232f6b4fb4dea3ee18bdef0c139
tree2313316a06212ece07aa8c89e12311528315519d
parentbd3d1480a80effbbf3eedf1bd51368730ec9078d
gas: missing (re-)initialization of local variable in fixup_segment()

At the very least this has been causing bogus diagnostics, e.g.

.text
.data
.long .bss - .
.long -.text
.bss

yielding

Error: can't resolve `0' {.bss section} - `.text' {.text section}

instead of

Error: can't resolve `0' {*ABS* section} - `.text' {.text section}

In particular for targets overriding any of TC_FORCE_RELOCATION_* & Co
or for ones setting md_register_arithmetic to true the problems may be
worse.
gas/ChangeLog
gas/write.c