2008年10月16日 星期四

RPATH and $ORIGIN

HPUX:
HP-UX Linker and Libraries User's Guide

Linker Tools for Itanium-Based Systems, chatr

Determining How to Link Programs or Libraries (Linker Tasks)

For HPUX/PA-RISC 32-bits, it uses SOM file format. (very similiar to aout format)
Others, ELF is used.

Linux:
ld.so, ld-linux.so* — dynamic linker/loader

UsingOrigin - SCons Wiki

ELF is used.

Solaris:
C. Recording Dependencies with $ORIGIN (Linker and Libraries Guide) - Sun Microsystems

ELF is used.

AIX:
There is no such thing. AIX uses XCOFF for their executable/shared library file format.
It is possible to write a program to modify these setting.

links for ELF

LibElf and GElf - A Library to Manipulate ELf Files - from Sun Developer Network.

elfedit — examine or edit ELF files - can be used to edit the rpath in Solaris' ELF file.

Executable and Linkable Format - Wikipedia, the free encyclopedia

SourceForge.net: elftoolchain » home

ELF 之 Program Loading 教學文件, #2: Program Header Table

Understanding ELF using readelf and objdump - Linux Forums

[藍森林-自由軟件] - 問一個elf動態連接的問題--
UNIX/LINUX 平台可執行文件格式分析

如何修改動態庫符號表

Working with the ELF Program Format



Intel平台下Linux中ELF文件動態鏈接的加載,解析及實例分析(一):加載
Intel平台下Linux中ELF文件動態鏈接的加載,解析及實例分析(二):函數解析與卸載