[Bug gas/10903] New: .fill regression

View: New views
4 Messages — Rating Filter:   Alert me  

[Bug gas/10903] New: .fill regression

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[hjl@gnu-26 tmp]$ cat x.s
                .text
                .org 0xf00
                .byte 8
_end:
                .fill   4096 - _end
_foo:
[hjl@gnu-26 tmp]$ /usr/bin/as -v --32 -o x.o x.s  
GNU assembler version 2.15.92.0.2 (x86_64-redhat-linux) using BFD version
2.15.92.0.2 20040927
[hjl@gnu-26 tmp]$ readelf -s x.o

Symbol table '.symtab' contains 6 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND
     1: 00000000     0 SECTION LOCAL  DEFAULT    1
     2: 00000000     0 SECTION LOCAL  DEFAULT    2
     3: 00000000     0 SECTION LOCAL  DEFAULT    3
     4: 00000f01     0 NOTYPE  LOCAL  DEFAULT    1 _end
     5: 00001000     0 NOTYPE  LOCAL  DEFAULT    1 _foo

[hjl@gnu-26 tmp]$ as -v --32 -o x.o x.s  
GNU assembler version 2.20.51.0.3 (x86_64-unknown-linux-gnu) using BFD version
(Linux/GNU Binutils) 2.20.51.0.3.20091021
x.s: Assembler messages:
x.s:5: Error: .space specifies non-absolute value
[hjl@gnu-26 tmp]$

--
           Summary: .fill regression
           Product: binutils
           Version: 2.21 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: hjl dot tools at gmail dot com
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10903

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug gas/10903] .fill regression

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From hjl dot tools at gmail dot com  2009-11-04 18:19 -------
It is caused by symbols.c change in

http://sourceware.org/ml/binutils-cvs/2005-05/msg00163.html

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10903

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug gas/10903] .fill regression

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From hjl dot tools at gmail dot com  2009-11-04 18:20 -------
The symbols.c patch is for PR 876.

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |876
              nThis|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=10903

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug gas/10903] .fill regression

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From hjl dot tools at gmail dot com  2009-11-04 19:25 -------
The code is wrong. It should be rewritten as

                .text
                .org 0xf00
org:
                .byte 8
_end:
                .fill  4096 - (_end - org + 0xf00)
_foo:

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=10903

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils