ldconfig

package module
v0.0.0-...-d787202 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

README

ldconfig

A portable implementation of ldconfig.

Updating the dynamic linker cache (ld.so.cache) in a Linux rootfs, particularly from a non-Linux host, requires booting the image in a VM.

This implementation of ldconfig bypasses that by operating directly on the target filesystem.

Usage

// `rootfsDir` is a path to a root filesystem that contains Linux libraries
// and an `/etc/ld.so.conf` file

err := ldconfig.MakeCache(rootfsDir)

// On success, `/etc/ld.so.cache` is created within `rootfsDir`.

Copyright Onboard, Inc.

Licensed under Apache 2.0 license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCache

func MakeCache(rootDir string) error

MakeCache produces /etc/ld.so.cache in the given rootfs in a glibc-compatible format

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL