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)
Sat, Feb 22, 11:03 PM
Unknown Object (File)
Fri, Feb 21, 10:27 PM
Unknown Object (File)
Thu, Feb 20, 5:07 AM
Unknown Object (File)
Wed, Feb 19, 5:07 PM
Unknown Object (File)
Sat, Feb 15, 7:48 AM
Unknown Object (File)
Jan 17 2025, 1:01 PM
Unknown Object (File)
Jan 10 2025, 10:43 AM
Unknown Object (File)
Dec 24 2024, 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 Not Applicable
Unit
Tests Not Applicable

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.