Previous: , Up: OS image format   [Contents][Index]


3.1.13 Relocatable header tag

        +-------------------+
u16     | type = 10         |
u16     | flags             |
u32     | size = 24         |
u32     | min_addr          |
u32     | max_addr          |
u32     | align             |
u32     | preference        |
        +-------------------+

This tag indicates that image is relocatable.

The meaning of each field is as follows:

min_addr

Lowest possible physical address at which image should be loaded. The bootloader cannot load any part of image below this address.

max_addr

Highest possible physical address at which loaded image should end. The bootloader cannot load any part of image above this address.

align

Image alignment in memory, e.g. 4096.

preference

It contains load address placement suggestion for boot loader. Boot loader should follow it. ‘0’ means none, ‘1’ means load image at lowest possible address but not lower than min_addr and ‘2’ means load image at highest possible address but not higher than max_addr.