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)
Apr 30 2024, 5:34 PM
Unknown Object (File)
Mar 13 2024, 6:13 AM
Unknown Object (File)
Mar 7 2024, 11:49 PM
Unknown Object (File)
Jan 21 2024, 2:27 PM
Unknown Object (File)
Dec 20 2023, 3:32 AM
Unknown Object (File)
Dec 17 2023, 4:19 AM
Unknown Object (File)
Nov 10 2023, 3:25 AM
Unknown Object (File)
Nov 8 2023, 3:15 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.