Home · All Classes · Grouped Classes · Annotated · Functions

Tutorial: Using prelink

Introduction

This document details the process required to use prelink on an ARM root filesystem.

Process

The process for using prelink on an ARM root filesystem is as follows:

  1. Build Qtopia package using the -fPIC flag
  2. Copy prelink.conf to the etc directory of the root filesystem
  3. Copy prelink and prelink-rtld binaries to /usr/bin directory of the root filesystem
  4. Install Qtopia files to /opt/Qtopia.

In console of the device run:

    prelink -amR

This will take some time to run so be patient! Once it has completed check that /etc/prelink.cache exists and contains information.

The prelink command should be rerun each time files are updated.

Example Configuration File

The following is an example prelink.conf file:

    # This config file contains a list of directories both with binaries
    # and libraries prelink should consider by default.
    # If a directory name is prefixed with `-l ', the directory hierarchy
    # will be walked as long as filesystem boundaries are not crossed.
    # If a directory name is prefixed with `-h ', symbolic links in a
    # directory hierarchy are followed.
    -l /lib
    -l /usr/lib
    -l /opt/Qtopia/lib
    -l /opt/Qtopia/plugins
    -l /opt/Qtopia/bin


Copyright © 2007 Trolltech Trademarks
Qtopia 4.2.5