|
From: | makhaloff at gmail dot com |
Subject: | [Bug gas/14017] New: Bug in symbol arithmetic |
Date: | Tue, 24 Apr 2012 22:26:09 +0000 |
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: address@hidden ReportedBy: address@hidden 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.
[Prev in Thread] | Current Thread | [Next in Thread] |