Page MenuHomeFreeBSD

vdso: Pass along path prefix maps to the vdso-elf.so script
ClosedPublic

Authored by markj on Aug 22 2025, 7:47 PM.
Tags
None
Referenced Files
F147338197: D52129.id160845.diff
Tue, Mar 10, 3:00 AM
Unknown Object (File)
Fri, Mar 6, 9:53 PM
Unknown Object (File)
Thu, Feb 26, 11:19 AM
Unknown Object (File)
Feb 8 2026, 7:11 AM
Unknown Object (File)
Feb 8 2026, 4:38 AM
Unknown Object (File)
Feb 7 2026, 4:42 PM
Unknown Object (File)
Jan 31 2026, 12:24 PM
Unknown Object (File)
Jan 25 2026, 1:38 AM
Subscribers

Details

Summary

We build elf-vdso.so.o with -g, so the object file contains build
metadata. To ensure that kernel builds are reproducible, we need to pass
along the prefix map parameters added in commit eebadc7d8590
("sys/conf: Remap paths for reproducibility").

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66468
Build 63351: arc lint + arc unit

Event Timeline

markj requested review of this revision.Aug 22 2025, 7:47 PM

The space in the single shared page we use ATM is limited. I would prefer that we would strip unneeded stuff from vdso instead. Does this mean that we should remove '-g' from cc options?

In D52129#1190536, @kib wrote:

The space in the single shared page we use ATM is limited. I would prefer that we would strip unneeded stuff from vdso instead. Does this mean that we should remove '-g' from cc options?

I think it is enough to simply remove ${DEBUG}. I will test it and see.

Simply remove the debug flag instead

This revision is now accepted and ready to land.Aug 22 2025, 8:45 PM
This revision was automatically updated to reflect the committed changes.