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

Use external stack if stack section wasn't specified #21

Open
cesarus777 opened this issue Apr 14, 2024 · 0 comments
Open

Use external stack if stack section wasn't specified #21

cesarus777 opened this issue Apr 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cesarus777
Copy link

Reproduced on 1.0

I want just to generate a simple snippet and link it with a simple wrapper. To do this I created config file:

options:
  march: riscv64
  model-plugin: None
  seed: 0
  honor-target-abi: on

sections:
  - name: text
    VMA: 0x1000
    LMA: 0x1000
    SIZE: 0x1000
    ACCESS: rx
  - name: data
    VMA: 0x2000
    LMA: 0x2000
    SIZE: 0x1000
    ACCESS: rw

histogram:
  - [ADD, 1]

and called snippy:

llvm-snippy layout.yaml

Output:

error: LLVM ERROR: Cannot spill requested registers: no stack space allocated.

Expected behavior: use external stack if no stack section were specified.

@kv-sc kv-sc added the bug Something isn't working label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants