Repository navigation
v2.7.0
What's Changed
- build(deps): bump actions/upload-artifact from 6.0.0 to 7.0.2 by @dependabot[bot] in #125
- build(deps): bump actions/setup-node from 7.0.0 to 7.1.0 by @dependabot[bot] in #126
- Record analysis data only when an analysis is requested by @Attackwave in #153
- GNU as syntax: several GCC output files assembled into one flat image by @Attackwave in #156
- Re-evaluate EQU during branch relaxation by @Attackwave in #157
- Release 2.7.0 by @Attackwave in #159
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#APPblocks); debug and CFI directives are skipped, anything else is an error naming file and line .globlsymbols 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_startand__bss_endare defined .reloc_tableemits 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.