6 .Nd "Changes base address of dylibs and bundles"
9 .Op Fl low_address Ar addr
10 .Op Fl high_address Ar addr
15 The base address of an image (dylib or bundle) is the preferred address for it to be loaded. By
16 default all images are built with a base address of zero. At runtime, if the
17 preferred memory range is already occupied, dyld will "slide" the image to a new address range.
18 There is a small cost to the slide, as dyld must do some fix ups.
19 The rebase tool takes a list of images and adjust their base address to be non-overlapping. If no
20 low or high address is specified, the a suitable address range is choosen for the architecture.
22 The options are as follows:
23 .Bl -tag -width indent
24 .It Fl low_address Ar addr
25 Force the base address for the first image to be
27 (specified in hex). Each subsequent file gets the next available base address.
28 .It Fl high_address Ar addr
29 Force the base address for the last image to be such that when that image is loaded it occupies
32 (specified in hex). Each preceeding file gets the previous available base address.
34 Only rebase the specified architecture. Other architectures in a universal image are left as is.
36 Verbose. Print information about rebasing done.