Page MenuHomeFreeBSD

rtld: unconditionally generate map file during build
ClosedPublic

Authored by kib on Feb 28 2024, 1:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 1:40 PM
Unknown Object (File)
Thu, Nov 21, 1:40 PM
Unknown Object (File)
Thu, Nov 21, 1:39 PM
Unknown Object (File)
Thu, Nov 21, 1:39 PM
Unknown Object (File)
Thu, Nov 21, 1:15 PM
Unknown Object (File)
Sat, Nov 16, 12:12 PM
Unknown Object (File)
Oct 18 2024, 8:22 PM
Unknown Object (File)
Oct 7 2024, 2:52 PM
Subscribers

Details

Summary
It is needed at least to ensure that undesirable code is not linked into
rtld from libsys/libc, and adding the map file option each time is not
productive.

Diff Detail

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

Event Timeline

kib requested review of this revision.Feb 28 2024, 1:15 AM

No objection but I would suggest changing the commit message slightly -- right now it seems to imply that the mere presence of the map file prevents undesired libc/libsys code into rtld, rather than just always having the map file available for the developer to inspect. Or just a comment before the LDFLAGS entry, something like

# Always produce the map file so that may be inspected to confirm undesired
# code is not linked from libsys/libc.
This revision is now accepted and ready to land.Feb 28 2024, 1:54 PM

Incorporate suggested comment.
Automate some checks I intended to have.

This revision now requires review to proceed.Feb 28 2024, 11:43 PM
This revision is now accepted and ready to land.Feb 29 2024, 12:24 AM

Thanks, this makes it more clear why we do this.

You may want to redirect error messages to stderr.