mescc: Produce object files in hex2 format, remove hex3.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 25 Jun 2017 07:33:55 +0000 (09:33 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 25 Jun 2017 07:33:55 +0000 (09:33 +0200)
commit1de0f33020cd3541a0efd5a44fcf44b1de522746
tree8a33180bd8c524d9f56032c451db2ada03d887b3
parentbb0f82d5aa47d120e6d8a2fa6c2d59ab6034a20c
mescc: Produce object files in hex2 format, remove hex3.

* GNUmakefile (HEX2_FLAGS): New variable.
* make/mescc-guile.make ($(OUT)/$(TARGET)): Use HEX2 for linking.
* make/mescc-mes.make ($(OUT)/$(TARGET)): Likewise.
* guile/mescc.scm (main): Remove hex3 support.
* scripts/mescc.mes (main): Likewise.
* stage0/elf32-0header.hex2: New file, merging of elf32.hex and elf32-header.hex2.
* stage0/elf-0footer.hex2: New file.
* stage0/elf32-header.hex2: Rename from elf32-header-exit-42.hex2,
  repurpose as generic debug heder.
* stage0/elf32-footer-single-main.hex2: Rename from elf32-footer-exit-42.hex2,
  repurpose as generic debug footer for single-main source.
* stage0/exit-42.c: New file.
* stage0/stage0.make ($(OUT)/0exit-42): Test 0header, 0footer.
  ($(OUT)/exit-42.guile): Test generic debug header, footer.
* stage0/elf32.hex2: Remove.
18 files changed:
GNUmakefile
guile/mescc.scm
make/mescc-guile.make
make/mescc-mes.make
module/language/c99/compiler.mes
module/mes/as-i386.mes
module/mes/hex2.mes
module/mes/hex2.scm
scripts/mescc.mes
stage0/elf-0footer.hex2 [new file with mode: 0644]
stage0/elf32-0header.hex2 [new file with mode: 0644]
stage0/elf32-footer-exit-42.hex2 [deleted file]
stage0/elf32-footer-single-main.hex2 [new file with mode: 0644]
stage0/elf32-header-exit-42.hex2 [deleted file]
stage0/elf32-header.hex2 [new file with mode: 0644]
stage0/elf32.hex2 [deleted file]
stage0/exit-42.c [new file with mode: 0644]
stage0/stage0.make