[PATCH] The behavior of gas .subsection/.previous does not confirm descriptions in document
Lee Duhem
lee.duhem@gmail.com
Mon Oct 8 14:31:00 GMT 2007
2007/10/8, Nick Clifton <nickc@redhat.com>:
>
> Possibly, but I think that it would be a bad idea to change the behaviour of
> the .previous pseudo-op now. There are bound to be assembler source files that
> rely upon the current behaviour.
>
Yep, it's a bad idea.
> > But if the behavior of .subsection/.previous is intended, add some examples
> > in documents maybe helpful.
>
> Agreed. What do you think of this patch ?
>
It's nice, but add some comments(just like amodra did) in example two
maybe helpful, like this:
.section A
.subsection 1
.word 0x1234
.section B
.subsection 0
.word 0x5678
# Here we are in section B, subsection 0
.subsection 1
.word 0x9abc
# Now we are in section B, subsection 1
.previous
.word 0xdef0
# So .previous takes you back to section B, subsection 0
Does the comments make this nice example a mass?
lee
More information about the Binutils
mailing list