[Bug gas/879] gas fails to assemble valid code

2005-04-27 Thread jneuheisel at gmail dot com

--- Additional Comments From jneuheisel at gmail dot com  2005-04-27 14:13 
---
Actually, this is probably not a bug with gas at all.  It turns out that the
inline assembly code in the kernel was using movl to access the 16 bit fs and gs
registers.  The old gas was silently changing the movl to movw, whereas the new
gas was throwing an error.  I don't know what the intended behavior is, but
either way the code can be fixed in the kernel.

Summary: it seems to be a kernel issue, not a gas issue.

-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=879

--- 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@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/879] New: gas fails to assemble valid code

2005-04-27 Thread jneuheisel at gmail dot com
I am using the latest CVS HEAD version of the gcc 3.4.4 branch, as well as the
CVS HEAD version of binutils.

gcc failed to compile the process.c file in the 2.6.11.7 version of the Linux
kernel.  It turns out that gcc was able to produce valid assembly code, but gas
was not able to create an object file.

I asked gcc to produce an assembly file called capture.s.  I then tried to use
gas to create the object file.

0:$ /home/joshua/local/bin/as --version
GNU assembler 2.16.90 20050426
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i686-pc-linux-gnu'.

0:$ /home/joshua/local/bin/as capture.s -o capture.o
capture.s: Assembler messages:
capture.s:862: Error: suffix or operands invalid for `mov'
capture.s:863: Error: suffix or operands invalid for `mov'
capture.s:1056: Error: suffix or operands invalid for `mov'
capture.s:1057: Error: suffix or operands invalid for `mov'
capture.s:1123: Error: suffix or operands invalid for `mov'
capture.s:1124: Error: suffix or operands invalid for `mov'
capture.s:1191: Error: suffix or operands invalid for `mov'
capture.s:1192: Error: suffix or operands invalid for `mov'
capture.s:1301: Error: suffix or operands invalid for `mov'
capture.s:1313: Error: suffix or operands invalid for `mov'

0:$ /usr/bin/as --version
GNU assembler 2.15.92.0.2 20040927
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i386-redhat-linux'.

0:$ /usr/bin/as capture.s -o capture.o

Note that the earlier version of gas was able to produce the object file without
error.

The file capture.s is quite long, so I'll put it on my webserver for a while
instead of pasting it in this report:
http://www.neuheisel.us/tmp/capture.s

If I can furnish any additional information that would be useful, please let me
know.

-- 
   Summary: gas fails to assemble valid code
   Product: binutils
   Version: 2.17 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: jneuheisel at gmail dot com
CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=879

--- 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@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils