Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rebase(1) [osx man page]

rebase(1)						    BSD General Commands Manual 						 rebase(1)

rebase -- Changes base address of dylibs and bundles SYNOPSIS
rebase [-low_address addr] [-high_address addr] [-arch arch] [-v] file(s) DESCRIPTION
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: -low_address addr Force the base address for the first image to be addr (specified in hex). Each subsequent file gets the next available base address. -high_address addr 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. -arch arch 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)

dladdr -- find the image containing a given address SYNOPSIS
#include <dlfcn.h> int dladdr(const void* addr, Dl_info* info); DESCRIPTION
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. ERRORS
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. AUTHORS
Mac OS X 10.3 incorporated the dlcompat package written by Jorge Acereda <> 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. BUGS
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
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Rename Multiple Files

I have a number of files /u01/PROD/arch.PROD.1_1 /u01/PROD/arch.PROD.1_2 /u01/PROD/arch.PROD.1_3 I would like a simple method for moving/renaming them /u01/TEST/arch.TEST.1_1 /u01/TEST/arch.TEST.1_2 /u01/TEST/arch.TEST.1_3 Note the only thing that changes is the PROD to TEST, in... (1 Reply)
Discussion started by: molonede
1 Replies

2. Windows & DOS: Issues & Discussions


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. any help? thanks. regards. kezzol (3 Replies)
Discussion started by: kezzol
3 Replies

3. UNIX for Dummies Questions & Answers

Library won't load

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 Trace/BPT trap I can't figure out if this is an error in the way the program is running, or if the... (0 Replies)
Discussion started by: sansan
0 Replies

4. UNIX for Advanced & Expert Users

Library not loaded?

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)
Discussion started by: olifu02
4 Replies

5. Shell Programming and Scripting

Validating IP address.

Hi All, 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)
Discussion started by: nua7
3 Replies

6. Shell Programming and Scripting

incremental addition of hex decimal number in one field

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)
Discussion started by: diddi_linux
8 Replies

7. AIX

Duplicate IP address makes PowerHA ( HACMP ) down

Hello, 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)
Discussion started by: filosophizer
3 Replies

8. UNIX for Dummies Questions & Answers

Macintosh build error: dyld: Library not loaded: /usr/local/lib/libpcre.0.dylib

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)
Discussion started by: slugger415
4 Replies

9. UNIX for Advanced & Expert Users

Xserver shared library link is gone

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)
Discussion started by: godzilla07
2 Replies