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
F155234731: D16530.id46173.diff
Sat, May 2, 11:55 AM
F155176121: D16530.id.diff
Fri, May 1, 11:27 PM
Unknown Object (File)
Fri, May 1, 10:00 AM
Unknown Object (File)
Thu, Apr 30, 3:32 PM
Unknown Object (File)
Thu, Apr 30, 9:09 AM
Unknown Object (File)
Wed, Apr 29, 1:42 PM
Unknown Object (File)
Wed, Apr 29, 1:32 PM
Unknown Object (File)
Tue, Apr 28, 10:22 PM
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.