When ".set" is used to create the same symbol twice, we get
[EMAIL PROTECTED] tmp]$ cat t.s
.text
call bar
.section .text1,"ax"
.globl moo
moo:
ret
.globl bar
.set bar,moo
.text
call bar
.section .text1,"ax"
.globl foo
foo:
nop
.globl bar
.set bar,foo
[EMAIL PROTECTED] tmp]$ as -o t.o t.s
as: t.o: symbol `bar' required but not present
t.s: Assembler messages:
t.s:16: Fatal error: can't close t.o: No symbols
[EMAIL PROTECTED] tmp]$
A better error message will be more helpful.
--
Summary: Strange assembler error message on .set
Product: binutils
Version: 2.19 (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=6848
------- 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
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils