Skip to content

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

Merged
ghaerr merged 1 commit intomasterfrom
as86
Jan 1, 2025
Merged

[c86 libc] Ensure no data has address zero#2168
ghaerr merged 1 commit intomasterfrom
as86

Conversation

@ghaerr
Copy link
Copy Markdown
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
@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