* symbols.c (resolve_symbol_value): Don't permit subtraction of
authorIan Lance Taylor <ian@airs.com>
Thu, 10 Jun 1999 21:26:10 +0000 (21:26 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 10 Jun 1999 21:26:10 +0000 (21:26 +0000)
undefined symbols.

gas/ChangeLog
gas/symbols.c

index f36693c0bf1f8e2db2bec997297f60c0150a5a3a..087bcf8d63b26ed73d17a20f4a188906b0d9ea25 100644 (file)
@@ -1,3 +1,8 @@
+1999-06-11  Ian Lance Taylor  <ian@zembu.com>
+
+       * symbols.c (resolve_symbol_value): Don't permit subtraction of
+       undefined symbols.
+
 1999-06-10  Jakub Jelinek  <jj@ultra.linux.cz>
 
         * config/tc-sparc.c (sparc_ip): Don't use side-effect expression
index 71b8df694100337e3dcda29a6fb6bf2ac3ae4360..d47371ed67abbc7045db972f4368b5c503895a72 100644 (file)
@@ -1040,8 +1040,11 @@ resolve_symbol_value (symp, finalize)
             expressions, such as IEEE-695.  */
          /* Don't emit messages unless we're finalizing the symbol value,
             otherwise we may get the same message multiple times.  */
-         if ((seg_left != absolute_section || seg_right != absolute_section)
-             && (op != O_subtract || seg_left != seg_right)
+         if ((seg_left != absolute_section
+              || seg_right != absolute_section)
+             && (op != O_subtract
+                 || seg_left != seg_right
+                 || seg_left == undefined_section)
              && finalize)
            {
              char *file;