Sponsored Content
Full Discussion: LD_PRELOAD on HP UX?
Operating Systems HP-UX LD_PRELOAD on HP UX? Post 302256528 by jim mcnamara on Monday 10th of November 2008 04:30:35 AM
Old 11-10-2008
LD_PRELOAD is meant to load interposing libraries at runtime, and it does work in HPUX.
What you are doing makes no sense to me....

Read the ld man page look for these two options: +interposer +noenvvar
 

5 More Discussions You Might Find Interesting

1. Linux

LD_PRELOAD on x86_64 gives error from ld.so

I have implemented an interposer for open() and open64() system call. This interposer is implemented in interposer.c and I have compiled it in a shared library (libinterposer.so) using the following commands: gcc -g -fPIC -s -o interposer.o -c interposer.c gcc -s -g -shared -nostartfiles ... (0 Replies)
Discussion started by: Manish Mukherje
0 Replies

2. UNIX for Advanced & Expert Users

What does LD_PRELOAD signify?

Hi, What does LD_PRELOAD variable signify on HP-UX? thanks in advance, -Ashish (4 Replies)
Discussion started by: shriashishpatil
4 Replies

3. UNIX for Advanced & Expert Users

Preloading libraries.. LD_PRELOAD

well i know what LD_PRELOAD is. Now suppose i have hooked a function XDrawString in the my library (Mylib.so.1) and then used the command export LD_PRELOAD=/path/mylib.so.1 Now suppose i open Xeditor by typing 'xeditor' in the console, my library is geting used, so i knw that this applilcation is... (3 Replies)
Discussion started by: manchester
3 Replies

4. UNIX for Advanced & Expert Users

Declaring LD_PRELOAD system wide for dynamic loading

Dear Fellows; As being new to linux, i have tried to synamically load a custom library which overrides some system calls like conncet(), socket() etc.... for custom purposes. It works well, if declaring the environment path LD_PRELOAD and execution of the application to be override... (0 Replies)
Discussion started by: mzeeshan
0 Replies

5. Programming

LD_PRELOAD getting ignored .. can anyone tell me why ?

I had it working but i screwed up something and now i get me@mymachine:~$ LD_PRELOAD=/home/me/libf1.o ldd FCaller ERROR: ld.so: object '/home/me/libf1.o' from LD_PRELOAD cannot be preloaded: ignored. ERROR: ld.so: object '/home/me/libf1.o' from LD_PRELOAD cannot be preloaded: ignored. ERROR:... (3 Replies)
Discussion started by: NetworkLearning
3 Replies
LDBASH(1)							  libbash Manual							 LDBASH(1)

NAME
ldbash -- Dynamic loader for libbash(7) libraries. SYNOPSIS
ldbash [-h | --help] ldbash [-l | --list] ldbash [-L | --load lib,[lib] ...] ldbash [-U | --unload lib,[lib] ...] ldbash [-e | --externlist lib,[lib] ...] ldbash [--externlist-all] ldbash [--i | --internlista lib,[lib] ...] ldbash [--internlist-all] DESCRIPTION
ldbash is used to manipulate libbash(7) libraries. Its main function is to load specific library. It can also print list of available libraries, list functions each library exports, unload functions, etc. In case of --load and --unload ,the output is intended to be passed to bash eval command. Options -h | --help Print options summary -l | --list Display list of available libraries. The libraries names listed, may be passed as parameters to other invocations of ldbash. I.e. first you run ldbash --list to see what is available and then you may load it. -L | --load lib,[lib] ... Load given libraries - i.e. print string that should be passed to eval command. Usually the string contains various source commands. Libraries that given libraries depend on are also loaded. Libraries only loaded if their dependencies are satisfied. Dependencies are resolved using ldbash.cache file, which is created by ldbashconfig(8). -U | --unload lib,[lib] ... Unload given libraries, but not their dependencies. The output should be passed to eval command (in the same manner as with --load ). -e | --externlist lib,[lib] ... List all symbols that are exported by given libraries. Symbols are usually functions that given libraries implement. --externlist-all List all exported symbols of all available libraries. Symbols are usually functions that library implement. -i | --internlist lib,[lib] ... List all internal symbols (i.e. global variables/functions) of given libraries. This is intended mostly for developers that want to develop library of their own, and want to be sure that they don't override any already defined symbol. --internlist-all List all internal symbols of all available libraries. This is intended mostly for developers that want to develop library of their own, and want to be sure that they don't override any already defined symbol. FILES
/etc/ldbash.cache Cache file that contains information about libraries dependencies and list of exported symbols. See ldbashconfig((8)) for further details. BUGS
The script can't load libraries if their file name starts with '-'. (If someone uses file names that start with a '-' he/she deserves it!) AUTHORS
Hai Zaar <haizaar@gmail.com> Gil Ran <gil@ran4.net> SEE ALSO
libbash(7), ldbashconfig(8) Linux Epoch Linux
All times are GMT -4. The time now is 01:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy