12.07.2015 Views

RealView - ARM Information Center

RealView - ARM Information Center

RealView - ARM Information Center

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

使 用 分 散 加 载 描 述 文 件5.4 简 单 映 像 的 等 效 分 散 加 载 描 述第 3-24 页 的 使 用 命 令 行 选 项 创 建 简 单 映 像 中 介 绍 了 如 何 使 用 以 下 命 令 行 选 项 创建 简 单 映 像 类 型 :--reloc、--ro-base、--rw-base、--ropi、--rwpi 和 --split。 通 过使 用 --scatter 命 令 行 选 项 以 及 包 含 相 应 分 散 加 载 描 述 之 一 的 文 件 , 可 以 创 建 相同 的 映 像 类 型 。5.4.1 类 型 1, 一 个 加 载 区 和 几 个 连 续 执 行 区此 类 映 像 由 加 载 视 图 中 的 单 个 加 载 区 以 及 执 行 视 图 中 的 三 个 执 行 区 组 成 。 执 行区 是 在 内 存 映 射 中 连 续 放 置 的 。--ro-base address 指 定 包 含 RO 输 出 节 的 区 的 加 载 和 执 行 地 址 。 示 例 5-23 说 明 了与 使 用 --ro-base 0x040000 等 效 的 分 散 加 载 描 述 。示 例 5-23 单 个 加 载 区 和 几 个 连 续 执 行 区LR_1 0x040000 ; Define the load region name as LR_1, the region starts at 0x040000.{ER_RO +0 ; First execution region is called ER_RO, region starts at end of previous region.; However, since there is no previous region, the address is 0x040000.{* (+RO) ; All RO sections go into this region, they are placed consecutively.}ER_RW +0 ; Second execution region is called ER_RW, the region starts at the end of the; previous region. The address is 0x040000 + size of ER_RO region.{* (+RW) ; All RW sections go into this region, they are placed consecutively.}}ER_ZI +0{}; Last execution region is called ER_ZI, the region starts at the end of the; previous region at 0x040000 + the size of the ER_RO regions + the size of; the ER_RW regions.* (+ZI) ; All ZI sections are placed consecutively here.示 例 5-23 中 所 示 的 描 述 创 建 一 个 映 像 , 其 中 包 含 一 个 名 为 LR_1 的 加 载 区 , 其 加载 地 址 为 0x040000。5-46 版 权 所 有 © 2007 <strong>ARM</strong> 公 司 。 保 留 所 有 权 利 。 <strong>ARM</strong> DUI 0349AC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!