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.

使 用 分 散 加 载 描 述 文 件修 改 后 的 rwpi 示 例 版 本这 与 使 用 --rw-base 的 类 型 2 映 像 相 似 ,RW 执 行 区 与 RO 执 行 区 是 分 开 的 。 但是 ,--rwpi 将 包 含 RW 输 出 节 的 执 行 区 标 记 为 与 位 置 无 关 。示 例 5-26 说 明 了 与 使 用 --ro-base 0x010000 --rw-base 0x018000 --rwpi 等 效 的 分 散加 载 描 述 。示 例 5-26 与 位 置 无 关 的 数 据LR_1 0x010000 ; The first load region is at 0x010000.{ER_RO +0; Default ABSOLUTE attribute is inherited from parent. The execution address; is 0x010000. The code and ro data cannot be moved.{* (+RO) ; All the RO sections go here.}ER_RW 0x018000 PI ; PI attribute overrides ABSOLUTE{* (+RW) ; The RW sections are placed at 0x018000 and they can be moved.}ER_ZI +0; ER_ZI region placed after ER_RW region.{* (+ZI) ; All the ZI sections are placed consecutively here.}}RO 执 行 区 ER_RO 从 加 载 区 LR_1 继 承 ABSOLUTE 属 性 。 下 一 个 执 行 区 ER_RW 被 标 记为 PI。 另 外 , 由 于 ER_ZI 区 的 偏 移 为 +0, 因 此 它 从 ER_RW 区 继 承 PI 属 性 。还 可 以 编 写 类 似 的 分 散 加 载 描 述 , 以 对 应 于 --ropi 和 --rwpi 与 类 型 2 和 类 型 3 映像 的 其 他 组 合 用 法 。5.4.3 类 型 3, 两 个 加 载 区 和 几 个 不 连 续 的 执 行 区类 型 3 映 像 由 加 载 视 图 中 的 两 个 加 载 区 以 及 执 行 视 图 中 的 三 个 执 行 区 组 成 。 它们 与 类 型 2 映 像 相 似 , 但 类 型 2 映 像 中 的 单 个 加 载 区 现 在 拆 分 为 两 个 加 载 区 。可 以 使 用 以 下 链 接 器 选 项 重 定 位 并 拆 分 加 载 区 :--reloc--reloc --split 组 合 生 成 的 映 像 类 似 于 简 单 类 型 3, 但 两 个 加 载 区现 在 具 有 RELOC 属 性 。<strong>ARM</strong> DUI 0349AC 版 权 所 有 © 2007 <strong>ARM</strong> 公 司 。 保 留 所 有 权 利 。 5-49

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

Saved successfully!

Ooh no, something went wrong!