Re: [Mingw-msys] mSYS Bash 3.0
- Date: Wed, 18 Jul 2007 11:56:04 +0200
- From: Michael DOUBEZ <michael.doubez@xxxxxxx>
- Subject: Re: [Mingw-msys] Assemble problem in Mingw32 (binutils-2.17.50-20070129-1.tar.gz)
haibin zhang a écrit :
> Hi All :
> I test cpu id using as in
> binutils-2.17.50-20070129-1.tar.gz, but it can't
> compile pass, I have tested this in linux, it's ok.
>
> I have two file :cpuidfunc.s stringtest.c
> I use compile command :
> gcc -o test.exe cpuidfunc.s stringtest.c
>
> It print error :
> $ gcc -o test.exe cpuidfunc.s stringtest.c
> cpuidfunc.s: Assembler messages:
> cpuidfunc.s:5: Warning: .type pseudo-op used outside
> of .def/.endef ignored.
> cpuidfunc.s:5: Error: junk at end of line, first
> unrecognized character is `c'
[snip]
> ------------------------------------------------------------------------
>
> # cpuidfunc.s - An example of returning a string value
> .section .bss
> .comm output, 13
> .section .text
> .type cpuidfunc, @function
> .globl cpuidfunc
> cpuidfunc:
[snip]
From Gnu Assembler:
http://tigcc.ticalc.org/doc/gnuasm.html#SEC133
.type
Syntax: .type int
This directive, permitted only within .def/.endef pairs, records the
integer int as the type attribute of a symbol table entry.
The line should be.
.globl cpuidfunc
.def .type cpuidfunc, @function; .endef
Michael
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mingw-msys mailing list
Mingw-msys@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/mingw-msys