Skip to content

RISC-V: add RISCV_ATTRIBUTE program segment#1166

Merged
marxin merged 1 commit intowild-linker:mainfrom
marxin:RISCV_ATTRIBUTE-program-segment
Oct 7, 2025
Merged

RISC-V: add RISCV_ATTRIBUTE program segment#1166
marxin merged 1 commit intowild-linker:mainfrom
marxin:RISCV_ATTRIBUTE-program-segment

Conversation

@marxin
Copy link
Copy Markdown
Collaborator

@marxin marxin commented Oct 7, 2025

The RISCV_ATTRIBUTES segments is little bit special as it includes a section that is non-ALLOC:

Program Headers:
  RISCV_ATTRIBUTES 0x00102a 0x0000000000000000 0x0000000000000000 0x000074 0x000000 R   0x1
...
Section Headers:
[25] .riscv.attributes    RISCV_ATTRIBUTES 0000000000000000 0000102a 00000074  0        0   0  1

In case of Wild, for simplicity, we assign a MemSize to the segments, but it's hopefully an acceptable limitation.

The `RISCV_ATTRIBUTES` segments is little bit special as it includes
a section that is non-ALLOC:

```
Program Headers:
  RISCV_ATTRIBUTES 0x00102a 0x0000000000000000 0x0000000000000000 0x000074 0x000000 R   0x1
...
Section Headers:
[25] .riscv.attributes    RISCV_ATTRIBUTES 0000000000000000 0000102a 00000074  0        0   0  1
```

In case of Wild, for simplicity, we assign a MemSize to the segments,
but it's hopefully an acceptable limitation.
@marxin marxin merged commit 8460801 into wild-linker:main Oct 7, 2025
20 checks passed
@marxin marxin deleted the RISCV_ATTRIBUTE-program-segment branch October 14, 2025 12:03
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.

2 participants