This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]