HomeFreeBSD

Rtld links with the specially built pic static libc library to get some
rS225152Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Rtld links with the specially built pic static libc library to get some
C runtime services, like printf(). Unfortunately, the multithread-safeness
measures in the libc do not work in rtld environment.

Rip the kernel printf() implementation and use it in the rtld instead of
libc version. This printf does not require any shared global data and thus
is mt-safe. Systematically use rtld_printf() and related functions, remove
the calls to err(3).

Note that stdio is still pulled from libc due to libmap implementaion using
fopen(). This is safe but unoptimal, and can be changed later.

Reported and tested by: pgj
Diagnosed and reviewed by: kan (previous version)
Approved by: re (bz)

Details

Provenance
kibAuthored on
Parents
rS225151: Add ip6.rfc6204w3 to support accepting the default router lists from RAs even
Branches
Unknown
Tags
Unknown

Event Timeline