Page MenuHomeFreeBSD

arm64: Tweaks to compile with FORTIFY_SOURCE
AbandonedPublic

Authored by dsl on Jun 25 2025, 8:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 10:39 PM
Unknown Object (File)
Sun, Oct 12, 10:39 PM
Unknown Object (File)
Sun, Oct 12, 1:38 PM
Unknown Object (File)
Sun, Oct 12, 11:10 AM
Unknown Object (File)
Sat, Oct 4, 9:54 AM
Unknown Object (File)
Fri, Oct 3, 2:35 PM
Unknown Object (File)
Tue, Sep 30, 9:23 PM
Unknown Object (File)
Tue, Sep 30, 8:22 AM
Subscribers

Details

Reviewers
kevans
Summary

I had to patch those files in order to build world:

$ nice make -s -j16 buildworld TARGET="arm64"

with:

$ cat /etc/src-env.conf 
FORTIFY_SOURCE=2
$ cat /etc/src.conf 
WITH_RETPOLINE=yes
WITH_KERNEL_RETPOLINE=yes
WITH_BIND_NOW=yes
OPT_INIT_ALL=zero

I'm pretty sure that I didn't have to patch contributed code directly. Moreover, building world for amd64 went well. Any idea how to fix buildworld for arm64 with those parameters above?

Test Plan

N/A

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dsl requested review of this revision.Jun 25 2025, 8:13 PM
kevans added a subscriber: kevans.

I'll provide some feedback here within a few hours, but yeah, we'll want to do this a little bit differently.... Can you extract where you ran into the ZFS problem at specifically, please?

World for arm64 can be built with 905541dd6ba4 without my changes. I'll abandon this review then.