This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Labels in Instruction and data directives
- From: "santosh" <santosh at acmet dot com>
- To: <binutils at sourceware dot org>
- Date: Sat, 30 Sep 2006 16:08:24 +0530
- Subject: Labels in Instruction and data directives
Hi
I have a query in labels present in code and data sections
Query 1:
--------
In code section when a label is followed by a data directive or $list
control instruction then whether we have to issue error? Is data
directive or $list control instruction can be preceded by label in code
section? Or they can be allowed only in data sections.
For example:
--------------------- Snip --------------
.code ;; Code section
label:
.data 10 <<< Whether error to be issued ?
lui r3, 12
---------------------- End snip ------------
Regards
I Santhosh