tinygo/compileopts
Ayke van Laethem 9e599bac49 nintendoswitch: support outputting .nro files directly
By modifying the linker script a bit and adding the NRO0 header directly
in the assembly, it's possible to craft an ELF file that can be
converted straight to a binary (using objcopy or similar) that is a NRO
file. This avoids custom code for NRO files or an extra build step.

With another change, .nro files are recognized by TinyGo so that this
will create a ready-to-run NRO file:

    tinygo build -o test.nro -target=nintendoswitch examples/serial
2020-09-12 18:37:58 +02:00
..
config.go nintendoswitch: support outputting .nro files directly 2020-09-12 18:37:58 +02:00
options.go builder: try to determine stack size information at compile time 2020-07-11 14:47:43 +02:00
options_test.go compileopts: improve error reporting of unsupported flags 2020-05-16 23:29:47 +02:00
target.go compileopts: add support for custom binary formats 2020-08-31 13:59:32 +02:00
target_test.go main: move target specification into a separate package 2019-11-04 11:45:35 +01:00