Page MenuHomeFreeBSD

Make sure the rtld(1) error messages go to stderr, not stdout.
ClosedPublic

Authored by trasz on Jul 31 2018, 4:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 1, 2:57 AM
Unknown Object (File)
Sat, May 31, 5:30 PM
Unknown Object (File)
Wed, May 28, 3:31 PM
Unknown Object (File)
Fri, May 16, 6:21 PM
Unknown Object (File)
Apr 27 2025, 2:01 PM
Unknown Object (File)
Apr 18 2025, 12:02 AM
Unknown Object (File)
Mar 20 2025, 8:33 PM
Unknown Object (File)
Mar 17 2025, 4:48 AM
Subscribers

Details

Summary

Make sure the rtld(1) error messages go to stderr, not stdout.
While fix capitalization of a few nearby strings, add "rtld: " prefix
so it's obvious where the message come from, and return zero
when "-h" is used.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18459
Build 18164: arc lint + arc unit

Event Timeline

trasz added a reviewer: kib.

rtld is an informal name. Officially it is ld-elf.so.1 for native, and ld-elf32.so.1 for compat32.

Add _BASENAME_RTLD and use it in error messages.

Ok, how about now? I"m not sure about the _BASENAME, tbh.

kib added inline comments.
libexec/rtld-elf/paths.h
50 ↗(On Diff #46087)

Do these ifdefs around BASENAME and PATH still make sense ? Before your change, it was a mechanism to get '32' defines not overridden.

You can change it in the followup commit.

This revision is now accepted and ready to land.Aug 1 2018, 5:26 PM
This revision was automatically updated to reflect the committed changes.