]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/symbols.c
Error: attempt to get value of unresolved symbol `L0'
[thirdparty/binutils-gdb.git] / gas / symbols.c
index d4c0dff7ad67e60826d8d3f8377c0531ebc950a1..0aac3a434f22839939dfd9ea0b4c3776b8d9f0b8 100644 (file)
@@ -2236,8 +2236,13 @@ S_GET_VALUE (symbolS *s)
       if (! s->flags.resolved
          || s->x->value.X_op != O_symbol
          || (S_IS_DEFINED (s) && ! S_IS_COMMON (s)))
-       as_bad (_("attempt to get value of unresolved symbol `%s'"),
-               S_GET_NAME (s));
+       {
+         if (strcmp (S_GET_NAME (s), FAKE_LABEL_NAME) == 0)
+           as_bad (_("expression is too complex to be resolved"));
+         else
+           as_bad (_("attempt to get value of unresolved symbol `%s'"),
+                   S_GET_NAME (s));
+       }
     }
   return (valueT) s->x->value.X_add_number;
 }