This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
comparing undefined symbols with constants
- From: "Jan Beulich" <JBeulich at suse dot com>
- To: <binutils at sourceware dot org>
- Date: Thu, 25 Jan 2018 03:17:40 -0700
- Subject: comparing undefined symbols with constants
- Authentication-results: sourceware.org; auth=none
All,
as the documentation doesn't clarify this, I'd like to understand
whether "<undefined> == <constant>" being always false, and
"<undefined> != <constant>" being always true is really intended
to be that way. I think it is quite obvious that this isn't entirely
correct - the undefined symbol could in the end turn out to be a
constant symbol as well.
The anomaly became apparent with clang's integrated assembler
refusing such, demanding an absolute expression.
Thanks, Jan