Skip to content

Commit

Permalink
Fix PIE support for baremetal RISC-V
Browse files Browse the repository at this point in the history
Related to #345

Override the `GCCPIE` flag to an empty string in `conf/machine/baremetal-riscv64.conf`.

* Add a comment explaining the reason for the override to support PIE with the elf toolchain.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/riscv/meta-riscv/issues/345?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
vishwamartur authored and kraj committed Dec 3, 2024
1 parent 4b77965 commit 39572d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/machine/baremetal-riscv64.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@

require include/baremetal-riscv.inc
DEFAULTTUNE = "riscv64"

# Override the GCCPIE flag to an empty string to support PIE with the elf toolchain
GCCPIE = ""

0 comments on commit 39572d0

Please sign in to comment.