Avoiding RO data can save you lots of headaches but it's actually not entirely impossible. I have a prototype in the virus framework that allows it, but requires a linker script to arrange text section right next to ro_data so they can be extracted as a whole binary blob. github.com/yundddd/vf/blob/master/common/extract_text_section.py#L35 this tool hooks into the build system here github.com/yundddd/vf/blob/master/nostdlib/nostdlib.bzl#L52
No more fancy ASCII banners I guess?
Avoiding RO data can save you lots of headaches but it's actually not entirely impossible. I have a prototype in the virus framework that allows it, but requires a linker script to arrange text section right next to ro_data so they can be extracted as a whole binary blob. github.com/yundddd/vf/blob/master/common/extract_text_section.py#L35 this tool hooks into the build system here github.com/yundddd/vf/blob/master/nostdlib/nostdlib.bzl#L52