Page MenuHomeFreeBSD

[PowerPC] Add .iplt to powerpc linker scripts
AcceptedPublic

Authored by bdragon on Dec 14 2019, 11:53 PM.
Referenced Files
Unknown Object (File)
Thu, May 30, 8:20 PM
Unknown Object (File)
Wed, May 8, 1:48 PM
Unknown Object (File)
Apr 27 2024, 11:37 AM
Unknown Object (File)
Apr 26 2024, 10:16 AM
Unknown Object (File)
Apr 23 2024, 3:11 AM
Unknown Object (File)
Apr 10 2024, 4:12 AM
Unknown Object (File)
Dec 20 2023, 6:23 AM
Unknown Object (File)
Nov 27 2023, 2:02 AM

Details

Summary

In some situations, the link editor needs to generate a secondary PLT table for ifuncs, which is initialized by .rela.dyn R_PPC_IRELATIVE relocs instead of .rela.plt R_PPC_JMP_SLOT relocs.

Ensure the .iplt section is emitted to prevent future confusion when we start using ifuncs in powerpc kernels.

Noticed while discussing https://reviews.llvm.org/D71509 with meowray in IRC.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This revision is now accepted and ready to land.Jan 22 2020, 5:56 PM

Is this still needed? We've had ifuncs for a year now, with no problems.

It ended up being not entirely necessary due to the linker behavior of forcing required sections into whatever segment is a natural fit for them, unless we explicitly break it with /DISCARD/.