Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

[Feature Request] no-mangle decorator #3339

Closed
1 task done
david-ragazzi opened this issue Jul 31, 2024 · 5 comments
Closed
1 task done

[Feature Request] no-mangle decorator #3339

david-ragazzi opened this issue Jul 31, 2024 · 5 comments
Labels
enhancement New feature or request mojo-repo Tag all issues with this label

Comments

@david-ragazzi
Copy link

david-ragazzi commented Jul 31, 2024

Review Mojo's priorities

What is your request?

A decorator to disable the obfuscation of a function name (@no-mangle, or another name), so that a boot binary written in assembly calls the main kernel function (k_main, for example) by the original name that was written.

What is your motivation for this change?

Create a tiny operating system in Mojo as described here.

Any other details?

No response

@david-ragazzi david-ragazzi added enhancement New feature or request mojo-repo Tag all issues with this label labels Jul 31, 2024
Copy link
Collaborator

Mogball commented Aug 7, 2024

@export does what you want

@Mogball Mogball closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2024
@david-ragazzi
Copy link
Author

david-ragazzi commented Aug 7, 2024

No matters the name. The important is the function name doesn't change in order to linked objets call it by its unchanged original name. Do you understand?

@Mogball
Copy link
Collaborator

Mogball commented Aug 8, 2024

I do understand. @export does exactly what you want here!

@david-ragazzi
Copy link
Author

I do understand. @export does exactly what you want here!

Ok. Are you working on this? Where I can follow?

@Mogball
Copy link
Collaborator

Mogball commented Aug 8, 2024

It exists already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

2 participants