summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: