summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-08-02 16:26:39 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-08-02 16:26:39 -0700
commit790f7b5c583c81d7a1a2a9ae15418c277b540b8e (patch)
tree60761cbe42b18102f07fcf34134de528b2b7b0b5
parent8b129029f619a2b764f511bfc01ac85f4c22c279 (diff)
downloadbinutils-hpa/seg16.tar.gz
binutils-hpa/seg16.tar.xz
binutils-hpa/seg16.zip
gas/tc-i386.c: don't complain on overflow for a subtractive relochpa/seg16
If we are going to generate a subtractive relocation, we must not complain on overflow in the assembler, as we have no way of knowing what the true final result it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--gas/config/tc-i386.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 6744fb6092..72c400180b 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -12299,6 +12299,10 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp)
if (fixp->fx_subsy)
{
+ /* We can obviously not know the final result in this case,
+ so we don't want to complain on overflow. */
+ fixp->fx_no_overflow = 1;
+
switch (fixp->fx_size)
{
default: