[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNU as and --gstabs
From: |
Ulrich Hobelmann |
Subject: |
GNU as and --gstabs |
Date: |
Fri, 30 Mar 2001 14:03:34 +0200 |
i just compiled the new binutils, but still as chunks out the same error
message:
$ as --gstabs -o bar.o bar.s
bar.s: Assembler messages:
bar.s:7: Error: local label "0" (instance number 0 of a dollar label) is
not defined
where bar.s =
----------------------------------------------------------------
.text
.align 4
.global _start
_start:
xorl %eax,%eax
call exit
----------------------------------------------------------------
The same happens with an empty file, or with a simple
'int main (void) { return 0; }'
precompiled by 'gcc -O2 -S foo.c'. A file that works for some reason is:
----------------------------------------------------------------.text
.align 4
.global exit
exit: /* eax = exit-code */
movl %eax,%ebx
movl $1,%eax /* _exit */
int $0x80
----------------------------------------------------------------
The line number mentioned by as is always the last number in the file...
regards, Ulrich.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- GNU as and --gstabs,
Ulrich Hobelmann <=