Page MenuHomeFreeBSD

Fixes and cleanups to implement md_exec_hook().
AbandonedPublic

Authored by imp on May 8 2015, 9:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 3 2024, 10:02 PM
Unknown Object (File)
Sep 21 2024, 10:28 AM
Unknown Object (File)
Sep 8 2024, 9:12 PM
Unknown Object (File)
Sep 8 2024, 2:43 AM
Unknown Object (File)
Jul 8 2024, 7:28 AM
Unknown Object (File)
Apr 22 2024, 9:57 AM
Unknown Object (File)
Apr 22 2024, 9:27 AM
Unknown Object (File)
Apr 20 2024, 5:40 PM
Subscribers

Details

Reviewers
kib
Summary

Move all the paths into a new path.h to centralize them.

Use a macro to create the names for the library path names. This will
allow later substitution at run time instead of compile time of the
environment variable name prefix.

Rather than using the #define for path names, indirect through a char *
variable that could change for different executable types detected.

Create a generalized exec hook that different architectures can hook
into if they need to, but default to no action.

NOTE: These are individual commits in my tree...

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

imp retitled this revision from to Fixes and cleanups to implement md_exec_hook()..
imp updated this object.
imp edited the test plan for this revision. (Show Details)
libexec/rtld-elf/paths.h
1

We have include/paths.h, I think we can get very weird build failure modes with duplicated includes. IMO, rtld_paths.h is the better name.

But, I do like very much the move of the hardcoded paths strings into the header, regardless of any other changes.

5

You can safely drop me and marino from the (c) list. I think kan also did not touch the lines you copied.

62

'extern const char *' might be ?

libexec/rtld-elf/rtld.c
208

I tried to avoid such things, please add empty md_exec_hook() to corresponding md rtld_machdep.h.

This has been replaced by something else.