understanding -PIE

Open
#369 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c

Research direction

Start by reviewing the referenced commit 2fe7528c81453a713c6b946551e2d6f08df2d2d6 and tracing where -PIE is added to the build flags. Confirm the intended bare-metal build behavior and whether the option should be configurable; done means a bare-metal build can be created without -PIE while the existing default remains supported.

Written by the indexing model from the issue text.

Description

just want to understand why -PIE is hard coded.

if a bare metal build should be created, then this option prevents it.

thus shouldnt the -PIE option be optional?

hints:

currently I always have to apply this patch: https://github.com/riscv-software-src/opensbi/commit/2fe7528c81453a713c6b946551e2d6f08df2d2d6

Dominant language
C
Stars
1.6k
Forks
734
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from riscv-software-src/opensbi

All issues in riscv-software-src/opensbi

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.