Skip to content

Conversation

@saiintbrisson
Copy link
Contributor

Closes #219 by switching to the manual _start function. It is required to compile the binary targeting a none-linux triple to avoid having it codegen the original _start function, which then requires __libc_start_main.

Copy link
Contributor

Choose a reason for hiding this comment

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

This makefile doesn't seem to be used? Can we remove it?

0

use core::arch::asm;
unsafe {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a comment that this inline assembly makes a syscall exit(0)?

Copy link
Contributor

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

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

Lovely, thanks for fixing this

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.

ci: fix broken no_std job

2 participants