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)
Mon, Oct 20, 12:29 AM
Unknown Object (File)
Sat, Oct 18, 11:25 AM
Unknown Object (File)
Sat, Oct 18, 1:09 AM
Unknown Object (File)
Fri, Oct 10, 6:23 AM
Unknown Object (File)
Sep 20 2025, 8:33 AM
Unknown Object (File)
Sep 13 2025, 2:08 AM
Unknown Object (File)
Sep 3 2025, 8:34 AM
Unknown Object (File)
Sep 3 2025, 1:18 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 18465
Build 18170: 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

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.