x86-64: have value properly checked when resolving fixup
authorJan Beulich <jbeulich@suse.com>
Mon, 26 Apr 2021 08:35:51 +0000 (10:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 26 Apr 2021 08:35:51 +0000 (10:35 +0200)
commitb818855549013ba43e730e07f790e5cbfd16a757
treeae5d65b7fb1359fbceeca9d6f44dab75065d27ab
parentc290cb01face96fa9c2a4f96f7d57083da3c99f1
x86-64: have value properly checked when resolving fixup

Constants not known at the time an individual insn gets assembled and
going into a sign-extended field still shouldn't be silently truncated
at the time the respective fixup gets resolved.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/x86-64-addr32-bad.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-addr32-bad.s [new file with mode: 0644]