Skip to content

Fix host-quit's entry point and release 2.8 - #24

Merged
midwan merged 2 commits into
masterfrom
fix/host-quit-entry
Oct 26, 2026
Merged

midwan merged 2 commits into
masterfrom
fix/host-quit-entry

Conversation

@midwan

@midwan midwan commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Host-Tools 2.8 fixes host-quit from the 2.7 package, which crashed when run.

host-quit has no startup code, so AmigaDOS runs its first code byte. The toolchain the release workflow uses (sacredbanana/amiga-compiler) placed the "dos.library" string ahead of the entry function, so the 2.7 binary's first code bytes are 64 6f ("do"). My local gcc10 builds happened to put the function first, which is why testing didn't catch it.

  • The source now opens with a top-level jra _start, kept first by -fno-toplevel-reorder. The first instruction is that branch whatever the compiler emits first.
  • tests/test_package_layout.sh finds the first HUNK_CODE and fails unless its first bytes are a branch (60xx) or a jmp (4ef9). It rejects the published 2.7 binary.
  • Release metadata for 2.8: version.mk, the guide's $VER and the changelog.

It's 2.8 rather than 2.7.1 because Amiga version strings compare only version and revision. The installer (P_CopyVersionedFile) would see 2.7.1 as 2.7 and, in Expert mode, default to skipping the fixed host-quit.

Verification

  • The CI image build now starts with bra.s _start (6046); a gcc10 build starts with bra.w _start.
  • In Amiberry v8.4.2, the CI-image build closes Amiberry on an A500 with Kickstart 1.3 (exit code 0 after 7 s).
  • In the CI image, make all and make package (including the new check) pass.

host-quit has no startup code, so AmigaDOS runs its first code byte. The
release toolchain placed the "dos.library" string ahead of the entry
function, and the 2.7 binary crashed when run. The file now opens with a
branch to the entry point, whatever the compiler emits first, and the
package check fails if host-quit's first code is not a branch.
@midwan

midwan commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T22:01:40.336410Z 50683b4 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: f5bc110c8d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f5bc110c8d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread version.mk Resolved
Amiga version strings compare only version and revision, so the
installer saw 2.7.1 as 2.7 and defaulted to keeping the broken host-quit
in Expert mode.
@midwan midwan changed the title Fix host-quit's entry point and release 2.7.1 Fix host-quit's entry point and release 2.8 Oct 26, 2026
@midwan

midwan commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

1 similar comment
@midwan

midwan commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 50683b4b84

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@midwan
midwan merged commit 116c6e2 into master Oct 26, 2026
2 checks passed
@midwan
midwan deleted the fix/host-quit-entry branch October 26, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant