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

Linker script improvements #2

Open
kpgriesser opened this issue Sep 16, 2024 · 0 comments
Open

Linker script improvements #2

kpgriesser opened this issue Sep 16, 2024 · 0 comments

Comments

@kpgriesser
Copy link
Collaborator

kpgriesser commented Sep 16, 2024

The linker script, test/pim/rev-test-src/pim.lds, is initially provided to allow defining memory ranges that are decoded as MMIO by the memory controller. It needs to be enhanced for several reasons including:

  1. Link to standard libraries. OK for now for basic demonstrations but we will need to build more sophisticated applications.

  2. The REV loader is initializing the regions defined by MMIO space. Probably a simple directive will fix this. The initial writes to MMIO spaced are currently just being dropped with a warning message (verbose=3 for the PIM memory controller)

It would be nice if the MMIO symbols for dram, sram, and function space could be provided at the command line for g++ and avoid the LD step altogether.

There are probably more reasons to have a more sophisticated linker script.

@kpgriesser kpgriesser changed the title Linker script supports stdlib Linker script support for RISCV standard libs Sep 16, 2024
@kpgriesser kpgriesser changed the title Linker script support for RISCV standard libs Linker script improvements Sep 23, 2024
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

No branches or pull requests

1 participant