rebase(1) BSD General Commands Manual rebase(1)NAME
rebase -- Changes base address of dylibs and bundles
rebase [-low_address addr] [-high_address addr] [-arch arch] [-v] file(s)
The base address of an image (dylib or bundle) is the preferred address for it to be loaded. By default all images are built with a base
address of zero. At runtime, if the preferred memory range is already occupied, dyld will "slide" the image to a new address range. There
is a small cost to the slide, as dyld must do some fix ups. The rebase tool takes a list of images and adjust their base address to be non-
overlapping. If no low or high address is specified, the a suitable address range is choosen for the architecture.
The options are as follows:
Force the base address for the first image to be addr (specified in hex). Each subsequent file gets the next available base address.
Force the base address for the last image to be such that when that image is loaded it occupies memory up to addr (specified in hex).
Each preceeding file gets the previous available base address.
Only rebase the specified architecture. Other architectures in a universal image are left as is.
-v Verbose. Print information about rebasing done.
SEE ALSO ld(1)Darwin June 6, 2006 Darwin
Check Out this Related Man Page
DLADDR(3) BSD Library Functions Manual DLADDR(3)NAME
dladdr -- find the image containing a given address
dladdr(const void* addr, Dl_info* info);
The dladdr() function queries dyld (the dynamic linker) for information about the image containing the address addr. The information is
returned in the structure specified by info. The structure contains at least the following members:
const char* dli_fname The pathname of the shared object containing the address.
void* dli_fbase The base address (mach_header) at which the image is mapped into the address space of the calling process.
const char* dli_sname The name of the nearest run-time symbol with a value less than or equal to addr.
void* dli_saddr The value of the symbol returned in dli_sname.
The dladdr() function is available only in dynamically linked programs.
If an image containing addr cannot be found, dladdr() returns 0. On success, a non-zero value is returned.
If the image containing addr is found, but no nearest symbol was found, the dli_sname and dli_saddr fields are set to NULL.
SEE ALSO dyld(3), dlopen(3)HISTORY
The dladdr() function first appeared in the Solaris operating system.
Mac OS X 10.3 incorporated the dlcompat package written by Jorge Acereda <firstname.lastname@example.org> and Peter O'Gorman <ogor-
In Mac OS X 10.4, dlopen was rewritten to be a native part of dyld.
This man page was borrowed from FreeBSD and modified.
This implementation is almost bug-compatible with the Solaris implementation. The following bugs are present:
o Returning 0 as an indication of failure goes against long-standing Unix tradition.
BSD September 24, 2004 BSD
I have a number of files
I would like a simple method for moving/renaming them
Note the only thing that changes is the PROD to TEST, in... (1 Reply)
Hi, I have problem:
I installed office 2000 and I have an error in file: WINWORD.EXE :instruction base "0x0224145c" appeal to memory below address "0x00000000". Memory haven't 'written'.
I have Athlon 1100 mHz, 256 mb ram and I don't know what is it.
kezzol (3 Replies)
Trying to run an X11 executable under Darwin, I keep getting:
dyld: Library not loaded: /sw/lib/libglib-1.2.0.dylib
Referenced from: /usr/X11R6/bin/wav2rsomac
Reason: image not found
I can't figure out if this is an error in the way the program is running, or if the... (0 Replies)
I am trying to install a scientific program onto my mac and when i try and execute it this error comes up and i cant find any literature on the net to fix it...
dyld: Library not loaded: /usr/local/lib/libgfortran.2.dylib
Referenced from:... (4 Replies)
This is a small snippet that I am using to validate the format of IP address.This is working fine.
Since this is not elegant, please let me know if anyone has a better working code than the one below.
Also I am planning to ping the ip address given by the user and check the $?... (3 Replies)
Hi I want to incremental add hex decimal number to a particula field in file
eg: addr =123 dept1=0
addr = 345 dept2 =1
addr2 = 124 dept3 =2
addr3 =567 dept15 =f
Is there any command which add... (8 Replies)
I would like to know if anyone has faced this problem. Whenever there is a duplicate IP address, HACMP goes down infact HACMP ( PowerHA ) takes the whole system down.
Does anyone know how to solve this problem ? (3 Replies)
Hi all, my first post here. I'm trying to load hypermail on my Mac (Tiger 10.4.11). It seemed to install just fine, but when I run the test build I get this error:
dyld: Library not loaded: /usr/local/lib/libpcre.0.dylib
Referenced from: /Users/sstark/Desktop/hypermail/tests/../src/hypermail... (4 Replies)
I am administering an Xserver v10.6.8 and I updated the ports using Macports self update. I received this error when calling the program R
dyld: Library not loaded: /opt/local/lib/libicuuc.48.dylib
Referenced from: /opt/local/lib/R/lib/x86_64/libR.dylib
Reason: image not found
Trace/BPT... (2 Replies)