Page MenuHomeFreeBSD

Disable PIE for MIPS u-boot-loader.
ClosedPublic

Authored by dgr_semihalf.com on Jan 27 2021, 11:36 AM.
Tags
Referenced Files
Unknown Object (File)
Sun, Jun 1, 11:56 AM
Unknown Object (File)
Tue, May 27, 1:29 AM
Unknown Object (File)
Sun, May 18, 10:37 AM
Unknown Object (File)
Wed, May 14, 9:11 AM
Unknown Object (File)
Mon, May 12, 10:25 AM
Unknown Object (File)
Sun, May 11, 10:25 AM
Unknown Object (File)
Sat, May 10, 12:36 PM
Unknown Object (File)
Apr 23 2025, 5:02 PM
Subscribers

Details

Summary

When performing buildworld for MIPS with PIE enabled, the build fails
with "position-independent code requires '-mabicalls'" message.
-mno-abicalls and -fno-pic flags are explicitly set in MIPS ubldr
makefile, so to work around this problem, set MK_PIE=no for MIPS
ubldr. This change was only build tested.

Problem was found when testing D28328.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

stand/mips/uboot/Makefile
47

I think a comment here would be useful (a short version of the review description above indicating that PIE is incompatible with`-mno-abicalls`)

Added a comment indicating that PIE is incompatible with -mno-abicalls. Thanks, @emaste.

This revision is now accepted and ready to land.Feb 24 2021, 6:50 PM
This revision was automatically updated to reflect the committed changes.