I don't know much about GAS, but from its documentation, and for consistency, the patch looks like is make sense. I've picked some parts of it in [r15419]. I've left out the section stuff, since I'm less confident about it, and also removed some rarely-used directives.
Please have a look at [r15419] or later, and see if this is helpful to you.

P.S.: z88dk just has sdcc emit asxxxx syntax, then translates that to their desired one by custom peephole optimizer rules.

 

Related

Commit: [r15419]