[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/288] New: expression resolved too early
From: |
amodra at bigpond dot net dot au |
Subject: |
[Bug gas/288] New: expression resolved too early |
Date: |
26 Jul 2004 02:46:38 -0000 |
See http://sources.redhat.com/ml/binutils/2004-07/msg00230.html
gas/expr.c around line 1278 says
/* If we have an absolute symbol or a reg, then we know its
value now. */
This is *not* true. A symbol equated to an expression may have an absolute
value, but not be resolvable immediately, such as when the expression involves
the subtraction of two symbols in the same segment but in different frags.
A simplified testcase is:
.text
_start:
.set x,0
.long x
.set x,.-_start
.long x
.balign 4
.set x,.-_start
.long x
--
Summary: expression resolved too early
Product: binutils
Version: 2.15
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: amodra at bigpond dot net dot au
CC: bug-binutils at gnu dot org
http://sources.redhat.com/bugzilla/show_bug.cgi?id=288
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gas/288] New: expression resolved too early,
amodra at bigpond dot net dot au <=