Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[c86 libc] Ensure no data has address zero #2168

Merged
merged 1 commit into from
Jan 1, 2025
Merged

[c86 libc] Ensure no data has address zero #2168

merged 1 commit into from
Jan 1, 2025

Conversation

ghaerr
Copy link
Owner

@ghaerr ghaerr commented Jan 1, 2025

Uses AS86 pseudo op change in ghaerr/8086-toolchain#27.

In startup code, ".sect 1" is used to force 4 bytes of zeroes to be allocated by LD86 before the normal .data segment. This in turn allows for C86-generated static data to never be assigned address zero.

Removes previous vprintf null pointer display hack for C86.

@ghaerr ghaerr merged commit 69768f6 into master Jan 1, 2025
2 checks passed
@ghaerr ghaerr deleted the as86 branch January 1, 2025 01:50
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