Page MenuHomeFreeBSD

Link efi programs with -pie rather than -shared
ClosedPublic

Authored by arichardson on May 9 2020, 5:55 PM.
Tags
None
Referenced Files
F169571719: D24787.id78129.diff
Tue, Sep 1, 11:09 PM
F169532669: D24787.id.diff
Tue, Sep 1, 8:24 PM
Unknown Object (File)
Mon, Aug 31, 11:15 AM
Unknown Object (File)
Mon, Aug 31, 11:11 AM
Unknown Object (File)
Sun, Aug 30, 11:11 PM
Unknown Object (File)
Sun, Aug 30, 7:50 PM
Unknown Object (File)
Sat, Aug 29, 7:06 AM
Unknown Object (File)
Fri, Aug 28, 9:29 AM

Details

Summary

This was causing build failures in CheriBSD where we were passing -pie
already by default.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31007
Build 28713: arc lint + arc unit

Event Timeline

Looks like this breaks aarch64, I got a "Synchronous exception" after the loader detects filesystems. Rebuilding after reverting the change fixed it.

In D24787#550414, @greg_unrelenting.technology wrote:

Looks like this breaks aarch64, I got a "Synchronous exception" after the loader detects filesystems. Rebuilding after reverting the change fixed it.

Does this fix it? https://github.com/CTSRD-CHERI/cheribsd/commit/ef7b5749427620d6ee1c9834ea6a264f816e99ea

In D24787#550414, @greg_unrelenting.technology wrote:

Looks like this breaks aarch64, I got a "Synchronous exception" after the loader detects filesystems. Rebuilding after reverting the change fixed it.

Does this fix it? https://github.com/CTSRD-CHERI/cheribsd/commit/ef7b5749427620d6ee1c9834ea6a264f816e99ea

Yes.

This revision was not accepted when it landed; it landed in state Needs Review.Oct 12 2020, 11:27 AM
This revision was automatically updated to reflect the committed changes.