Relocate an executable
ldrel [options] infile outfile
- -a hex_align
- Change segment alignments (default to original alignment).
- -b hex_addr
- Program base address (default to page aligned base address).
- -d hex_addr
- Data segment address (default to just after text segment).
- -f name
- Filename holding debug information (default to infile).
- -L
- The specified stacksize can be lazy.
- -l
- ("el") Output LOAD segments only.
- -o hex_off
- Assume this file will be copied to another file at this offset.
- -p
- Pad segments so they don't share address file data.
- -r
- Keep relocation information in target.
- -S stacksize [K|M]
- Note the minimum stacksize in bytes, kilobytes (suffix K),
or megabytes (suffix M) as a suggestion to the loader.
A stacksize of 0 removes the note.
- -s pattern=filename
-s [!]*
-s pattern[*]
- Copy sections matching pattern, from the file (if given).
The section must not overlay segments.
- -t hex_addr
- Text segment address (default to just after headers).
- -v
- Be verbose.
- -x
- Expand segments with zeros to make the file size equal to memory size.
- -Z
- Load the whole input file into memory.
The ldrel utility relocates executables.