http://sourceware.org/bugzilla/show_bug.cgi?id=14017
Bug #: 14017
Summary: Bug in symbol arithmetic
Product: binutils
Version: 2.23 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 6364
--> http://sourceware.org/bugzilla/attachment.cgi?id=6364
Patch to fix this bug
I got error on this code:
.text
NULL:
PS_8K = 0x40
OFFSET = (System1 - NULL)
SSSSS = (OFFSET + PS_8K)
movl $2,SSSSS
.org 0x2000
System1:
SSSSS will be equal 0x40. But actual value should be 0x2040.
The reason is as follows:
* gas/read.c (pseudo_set): Fixed x=undef+const case (expr_sections is undefined
at this time also)
Example and patch are attached.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils