Page MenuHomeFreeBSD

Define a ifunc-noplt linker feature.
AbandonedPublic

Authored by markj on Sep 21 2018, 10:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 7, 4:01 AM
Unknown Object (File)
Mar 4 2024, 9:49 AM
Unknown Object (File)
Jan 8 2024, 3:35 PM
Unknown Object (File)
Jan 8 2024, 3:35 PM
Unknown Object (File)
Jan 8 2024, 3:23 PM
Unknown Object (File)
Dec 28 2023, 11:52 PM
Unknown Object (File)
Dec 22 2023, 11:07 PM
Unknown Object (File)
Dec 21 2023, 11:11 AM

Details

Reviewers
emaste
bdrewery
Summary

Also enable -zifunc-noplt on i386, now that we have some uses of ifuncs
there.

Test Plan

Booted an i386 kernel that uses ifuncs.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19738
Build 19299: arc lint + arc unit

Event Timeline

markj added a reviewer: emaste.
imp added inline comments.
share/mk/bsd.linker.mk
89

Is the linker version the HOST linker or the TARGET linker?
Wouldn't this create bootstrapping issues?

sys/conf/kern.pre.mk
126

Do we need to restrict this only to building targets? Installing should be fine, and any tree-traversal should be fine. And they are often done before we've bootstrapped.

markj added inline comments.
share/mk/bsd.linker.mk
89

It should be whichever linker is used during the build.

sys/conf/kern.pre.mk
126

Right, we only need this seatbelt for builds, not for installing. That's orthogonal to my diff though.

This revision is now accepted and ready to land.Oct 1 2018, 7:20 PM

mmm, I need to test -zifunc-noplt with arm64 now.

Doesn't seem to be useful after all.