Skip to content

v2.7.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 18:44
c3f6415

What's Changed

Full Changelog: v2.6.1...v2.7.0

Highlights

GNU as syntax (--syntax gas, #156): m68k-asm --syntax gas FILE.s [FILE.s ...] assembles what GCC (m68k, ELF target, -S) emits into one flat binary image, without a linker:

  • GAS operand and directive syntax as GCC writes it (% registers, (d,%An), MIT %pc@(2,%d0:w) switch tables, movem #mask, jXX/jra/jbsr, .section .rodata*, .comm, inline-asm #APP blocks); debug and CFI directives are skipped, anything else is an error naming file and line
  • .globl symbols are global, all others are local to their file
  • text, read-only data and data are merged at the origin, BSS follows the stored image; __image_end, __bss_start and __bss_end are defined
  • .reloc_table emits the TOS fixup table of every 32-bit field holding an image address, so start-up code can relocate the image itself
  • branch relaxation and PC-relative selection follow GNU as; checked byte for byte against GNU as + ld on a 34-file C code base at all optimisation levels

Limits in this release: 68000/68010 only, no FPU, binary output only (--sym, --map, --listing refused), several .comm symbols placed in order of appearance (ld uses hash order).

EQU and relaxation (#157): an EQU of the location counter or of a label (here EQU *, buf EQU end, the label on a macro call's line) is evaluated again in every relaxation round, so it follows an instruction above it that changes size. Before, it could be off by two bytes after a forward tab(PC,Dn) beyond address 128.

Dependencies: clap 4.6.8, softprops/action-gh-release v3.0.4.