Repository navigation
Releases
v2.11.0
What's Changed
- Release 2.11.0 by @Attackwave in #164
Full Changelog: v2.10.0...v2.11.0
Highlights
--syntax gas now links C++ compiled with g++ -fno-exceptions, with or without RTTI.
New
- COMDAT groups (
"axG"): the first file's copy of a template or inline function is kept, later copies are dropped, as ld does; before, every copy was stored .init_array/.fini_array(also C__attribute__((constructor))), sorted by priority, between read-only data and data; the link defines__init_array_start/_endand__fini_array_start/_end- string merging for 2- and 4-byte characters (
wchar_t,char16_tliterals)
Fixed
- a pointer to an undefined weak symbol (
__cxa_pure_virtualin a vtable) stays 0 without a fixup
Exceptions remain refused (.gcc_except_table, .uleb128); .cfi_* is read and dropped.
Checked against GNU as + ld, whole image: pugixml, tinyxml2 and a multi-file template test at -O0/-O2/-Os on 68000 to 68060 (36 builds); Doom, Lua, musl and SQLite unchanged.
v2.10.0
What's Changed
- Release 2.10.0 by @Attackwave in #163
Full Changelog: v2.9.1...v2.10.0
Highlights
--syntax gas now links musl libc and SQLite as compiled by GCC, in addition to Doom and Lua.
New
.weak: a strong definition replaces a weak one, an undefined weak symbol resolves to 0 (ajbsrto it becomesjsr 0.l).set,.equandname = expr, including aliases of labels (identical-code folding emitssame = helper)- broken words: a
.word a-bthat overflows 16 bits is redirected through a jump stub placed before the next label, as in GNU as (bra.lon 68020+,jmp abs.lwith a fixup on 68000) cas;movas an alias ofmove
Fixed
- a bitfield width of 0 (
{#0:#0}) means 32 - a branch to a local alias of a label was sized against the wrong item
- an alignment of 32 KiB or coarser panicked while looking for the fixups
Checked against GNU as + ld, whole image: musl on 68000 to 68060 at -O0/-O2/-O3/-Os, SQLite at -O0 on all CPUs and -Os on 68000. The other SQLite builds differ only where GNU as over-grows branches; with GNU's branch sizes pinned they are byte-identical.
v2.9.1
What's Changed
- Release 2.9.1 by @Attackwave in #162
Full Changelog: v2.9.0...v2.9.1
Highlights
Robustness pass over --syntax gas, with a new fuzz target for it.
Fixed: wrong code without an error
- an index register without a size (
(%a0,%d1)) is long, as in GNU as; it was encoded as a word index - a displacement whose labels only partly cancel (
(a-b+c-b)(%a0)) was dropped - a numeric
d(%pc)behind a leading extension word (mulu.l,divs.l, FPU, bitfield,chk2/cmp2) was 2 bytes short - a byte branch displacement of -1 (
$FF, the 32-bit form on a 68020) is refused movem/fmovemmasks wider than 16/8 bits are refused instead of truncated- adjacent strings (
.ascii "ab" "cd") are joined;>>is unsigned, as in GNU as .previous/.pushsectionin a dropped debug section are refused instead of skipped together with the code after them
Fixed: crashes and unbounded memory
- the stored image is limited to 16 MiB and the program must end 256 bytes below 4 GiB; sizes beyond that panicked, wrapped
__bss_endor allocated up to 4 GB - checked arithmetic in expressions, at most 256 operators per expression
- long chains of branches that grow one after another no longer hit the relaxation limit
C compiler output is unaffected: whole-image parity with GNU as + ld is unchanged on the test code bases (68000 to 68060).
v2.9.0
What's Changed
- Release 2.9.0 by @Attackwave in #161
Full Changelog: v2.8.0...v2.9.0
Highlights
FPU instructions in GNU as syntax (--syntax gas --cpu 68020…68060), so GCC hard-float code (-m68020/-m68040/-m68060 without -msoft-float) links into one image:
%fp0–%fp7,%fpcr/%fpsr/%fpiarand register lists, sizes.s/.d/.x/.p- floating-point immediates as the hex bit patterns GCC writes (
#0x…, up to 96 bits for.x) fmovemwith a register list or a raw maskfjXXrelaxes from word tofbcc.l(always.lto another file);fbXXstays word and reports an out-of-range target instead of truncating it
Fixes in the shared encoder and disassembler:
fsabs,fdabs,fsneg,fdnegwere missing; thefsxxx/fdxxxforms are now limited to 68040+ftsthas no destination:ftst fp3encodes asf200 0c3a(was0dba),ftst <ea>is accepted, and the disassembler no longer prints a destination
Hard-float code needs a 68881/68882 on a 68020/68030; the FPSP emulates fintrz and fmovecr on the 68040, and fmovecr, fscc, fdbcc and ftrapcc on the 68060.
v2.8.0
What's Changed
- Release 2.8.0 by @Attackwave in #160
Full Changelog: v2.7.0...v2.8.0
Highlights
--syntax gas for 68020 to 68060 (before: 68000 and 68010), following GNU as, so GCC -m68020…-m68060 code links into one image:
jbsr/jra/jXXto another file or beyond the word range become 32-bit branches (bsr.l,bra.l,bcc.l); a DBcc out of reach skips over abra.l;bra.l/bsr.l/bcc.lmay be written- index and
d16displacements that do not fit, and addresses in them, use the full-format extension word;(bd,%dn.l*4)without a base register is accepted %dh:%dlregister pairs (64-bitmuls.l/mulu.l/divsl.l/divul.l) andea{offset:width}bitfield operands- an unknown CPU name is refused
FPU instructions are still refused in this release (added in 2.9.0); -msoft-float code is complete.
--sym and --map in GAS mode:
--sym: the program's symbols at their addresses in the linked image, in the Motorola-mode format; GCC's.L…labels are left out, a file-local name that occurs more than once is writtenfile:name--map: every non-empty input section with its start, end and size, the global commons as one block, image and BSS bounds
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.
v2.6.1
What's Changed
- Accept (Dn), ZPC and FMOVEM of one control register via Dn/An by @Attackwave in #144
- Pass --optimize and --origin through to the language server's assembly by @Attackwave in #146
- Close every macro and conditional block the source opens by @Attackwave in #147
- Fix S0 header, PRG data length, labelled empty hunks and listing bytes by @Attackwave in #149
- Model UNLK, RTD, FPU branches and word immediates in the analyses by @Attackwave in #150
- Decode only encodings the PRM allows; fix FPU SNE/ST and sized PC bd by @Attackwave in #151
- Resolve local labels in the scope of their routine by @Attackwave in #148
- Release 2.6.1 by @Attackwave in #152
Full Changelog: v2.6.0...v2.6.1
Note on ADF bootblocks
Since 2.6.0 (#131), m68k-floppy --format leaves the checksum of an empty bootblock at 0, so the disk is not marked bootable while it holds no boot code. To get a valid checksum over bootblock code, run --fix-bootblock after writing the code; this behaviour is unchanged.
v2.6.0
What's Changed
- Remove unreferenced code by @Attackwave in #127
- Harden file, image and protocol inputs against crashes and data loss by @Attackwave in #128
- Fix silently wrong assembler output and missing operand checks by @Attackwave in #129
- Make disassembler source output reassemble byte for byte by @Attackwave in #130
- Fix floppy format handling and tooling edge cases by @Attackwave in #131
- Read real SPS/CAPS IPF images by @Attackwave in #132
- Give SET symbols their value in source order by @Attackwave in #133
- Convert DC.X and FPU .x literals exactly by @Attackwave in #134
- Honour displacement sizes and report malformed displacements by @Attackwave in #135
- Accept rarer valid FPU, MMU, CMPI and PC memory-indirect forms by @Attackwave in #136
- Time ANDI.L #,Dn at 14 cycles by @Attackwave in #137
- Size special forms identically in both passes; converge source round-trips by @Attackwave in #139
- Bound expression nesting and IPF track decoding work by @Attackwave in #140
- Fix silently wrong MMU, memory-indirect, range and TAS encodings by @Attackwave in #141
- Reject sizes and redefinitions the source cannot mean; accept sized bd/od by @Attackwave in #142
- Fix LSP format range and label colons; keep quick constants numeric by @Attackwave in #143
- Release 2.6.0 by @Attackwave in #138
Full Changelog: v2.5.9...v2.6.0
v2.5.9
What's Changed
- disasm: --project notes file and --trace-only mode by @Attackwave in #122
- disasm: seed entry points from word-offset jump tables under --scan-tables by @Attackwave in #123
- Release 2.5.9 by @Attackwave in #124
Full Changelog: v2.5.8...v2.5.9
v2.5.8
What's Changed
- asm, disasm: write and read the DRI symbol table of TOS programs by @Attackwave in #108
- floppy: format and write FAT12 images (.st) by @Attackwave in #112
- disasm: name addresses from symbol files and equates files by @Attackwave in #109
- disasm: explain immediates written to the Mega Drive VDP control port by @Attackwave in #110
- fpu: reject arithmetic with an fp register source and a memory destination by @Attackwave in #111
- ci: weekly fuzzing campaign with a persistent corpus by @Attackwave in #113
- disasm: keep string pointer tables and unpadded strings out of the code by @Attackwave in #114
- disasm: LVO tables for gadtools, utility, asl, layers and diskfont by @Attackwave in #115
- disasm: stop string runs at known labels; document a Hatari PC trace recipe by @Attackwave in #116
- disasm: reject encodings no assembler emits; --source output that reassembles byte for byte by @Attackwave in #117
- disasm: MOVEA accepts an address register source by @Attackwave in #118
- asm: fail when the program runs past the end of the address space by @Attackwave in #119
- asm: Amiga example run as a Hunk executable under vamos by @Attackwave in #120
- Release 2.5.8 by @Attackwave in #121
Full Changelog: v2.5.7...v2.5.8