diff options
author | peter <peter@FreeBSD.org> | 1996-10-01 00:25:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-10-01 00:25:32 +0000 |
commit | 1c0a68465ce4299b095809def157040f1dd26ff6 (patch) | |
tree | 672512c2b6339b2a0f55f8f9efa9f65b283d96da /include/link.h | |
parent | b3c93bb2d8dfe04ea238bdbad7d20487f734140e (diff) | |
download | FreeBSD-src-1c0a68465ce4299b095809def157040f1dd26ff6.zip FreeBSD-src-1c0a68465ce4299b095809def157040f1dd26ff6.tar.gz |
Add support for storing a -R path in ld in the section dispatch table,
support LD_HINTS_VERSION_2 that has the ldconfig pathname stored in the
ld.so.hints file (ie: a new library can be installed and used without
needing to run ldconfig -m first)
Reviewed by: nate, jdp
Obtained from: NetBSD (mostly)
Diffstat (limited to 'include/link.h')
-rw-r--r-- | include/link.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/link.h b/include/link.h index 4d4376e..7d35e02 100644 --- a/include/link.h +++ b/include/link.h @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: link.h,v 1.5 1995/06/27 09:52:59 dfr Exp $ + * $Id: link.h,v 1.6 1996/01/30 23:30:20 mpp Exp $ */ /* @@ -111,7 +111,7 @@ struct nzlist { struct section_dispatch_table { struct so_map *sdt_loaded; /* List of loaded objects */ long sdt_sods; /* List of shared objects descriptors */ - long sdt_filler1; /* Unused (was: search rules) */ + long sdt_paths; /* Library search paths */ long sdt_got; /* Global offset table */ long sdt_plt; /* Procedure linkage table */ long sdt_rel; /* Relocation table */ @@ -223,6 +223,7 @@ struct _dynamic { #define LD_STRINGS(x) ((x)->d_un.d_sdt->sdt_strings) #define LD_NEED(x) ((x)->d_un.d_sdt->sdt_sods) #define LD_BUCKETS(x) ((x)->d_un.d_sdt->sdt_buckets) +#define LD_PATHS(x) ((x)->d_un.d_sdt->sdt_paths) #define LD_GOTSZ(x) ((x)->d_un.d_sdt->sdt_plt - (x)->d_un.d_sdt->sdt_got) #define LD_RELSZ(x) ((x)->d_un.d_sdt->sdt_hash - (x)->d_un.d_sdt->sdt_rel) @@ -268,11 +269,13 @@ struct hints_header { #define HH_MAGIC 011421044151 long hh_version; /* Interface version number */ #define LD_HINTS_VERSION_1 1 +#define LD_HINTS_VERSION_2 2 long hh_hashtab; /* Location of hash table */ long hh_nbucket; /* Number of buckets in hashtab */ long hh_strtab; /* Location of strings */ long hh_strtab_sz; /* Size of strings */ long hh_ehints; /* End of hints (max offset in file) */ + long hh_dirlist; /* Colon-separated list of srch dirs */ }; #define HH_BADMAG(hdr) ((hdr).hh_magic != HH_MAGIC) |