Recent versions of ld would complain:
ld: warning: ... missing .note.GNU-stack section implies executable stack
on object files pcc generated.
A simple solution is to append ".section\t.note.GNU-stack,\"\",@progbits" to assembly outputs targeting gas + ld.