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

[LLD] Provide meaningful default linker script #529

Open
atrosinenko opened this issue May 7, 2024 · 1 comment
Open

[LLD] Provide meaningful default linker script #529

atrosinenko opened this issue May 7, 2024 · 1 comment
Labels

Comments

@atrosinenko
Copy link
Collaborator

Make LLD use more appropriate defaults for EraVM target, so that the support introduced in #510 could be used without custom linker script.

With the existing semantics of relocations, this likely assumes using overlays because code[...] and stack[...] operands both use addresses from the [0, 2^16) range but from different address spaces. Another possibility is permitting some truncation when processing relocation or further splitting R_ERAVM_16_SCALE_32 into "code" and "stack" forms, so code and stack pages of EraVM could be assigned to different VMA ranges in ELF.

@asl
Copy link
Collaborator

asl commented May 7, 2024

Tagging @PavelKopyl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants