https://github.com/ksherlock/elf2omf
OMF Linker for ELF object files
https://github.com/ksherlock/elf2omf
apple-iigs appleiigs elf iigs omf
Last synced: 8 months ago
JSON representation
OMF Linker for ELF object files
- Host: GitHub
- URL: https://github.com/ksherlock/elf2omf
- Owner: ksherlock
- Created: 2025-02-16T21:10:47.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-18T20:37:16.000Z (over 1 year ago)
- Last Synced: 2025-10-04T19:49:50.872Z (8 months ago)
- Topics: apple-iigs, appleiigs, elf, iigs, omf
- Language: C
- Homepage:
- Size: 59.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ELF2OMF
An omf linker for [Calypsi](https://www.calypsi.cc/) [65816 compiler](https://github.com/hth313/Calypsi-tool-chains/releases).
Links the 65816 elf object files into an OMF executable. You'll need to review the calypsi manual and review the generated assembly if you want to actually build a IIgs application.
```
usage elf2omf [flags] file...
Flags:
-h show usage
-v be verbose
-X inhibit ExpressLoad segment
-C inhibit SUPER records
-S size specify stack segment size
-1 generate version 1 OMF File
-o file specify outfile name
-t xx[:xxxx] specify file type
```
## stack
You can specify the stack size with the `-S` flag or a bss section named "stack". Any direct page components (registers, tiny, ztiny) will be stored at the start and `.sectionStart stack`, `.sectionSize stack` will be adjusted to compensate.