From: Ian Lance Taylor Date: Thu, 10 Jun 1999 21:26:10 +0000 (+0000) Subject: * symbols.c (resolve_symbol_value): Don't permit subtraction of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b4d630bb93fd309537c0decab6cd84d89760c03;p=binutils-gdb.git * symbols.c (resolve_symbol_value): Don't permit subtraction of undefined symbols. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index f36693c0bf1..087bcf8d63b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +1999-06-11 Ian Lance Taylor + + * symbols.c (resolve_symbol_value): Don't permit subtraction of + undefined symbols. + 1999-06-10 Jakub Jelinek * config/tc-sparc.c (sparc_ip): Don't use side-effect expression diff --git a/gas/symbols.c b/gas/symbols.c index 71b8df69410..d47371ed67a 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -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;