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.2.4 执 行 区 描 述执 行 区 具 有 :• 名 称• 基 址 ( 绝 对 或 相 对 地 址 )• 指 定 的 最 大 大 小 ( 可 选 )• 指 定 执 行 区 特 性 的 属 性• 一 个 或 多 个 输 入 节 描 述 ( 放 在 此 执 行 区 中 的 模 块 )。图 5-7 显 示 了 典 型 执 行 区 描 述 组 件 。EXEC_ROM_1 0x0000{program1.o (+RO)}Execution region descriptionAn execution region description containsone or more input section descriptions图 5-7 执 行 区 描 述 组 件BNF 语 法 为 :execution_region_description ::=exec_region_name (base_address | "+" offset) [attribute_list] [max_size | "-" length]"{"input_section_description*"}"其 中 :exec_region_name 命 名 执 行 区 。base_address 指 定 链 接 区 中 对 象 的 地 址 。base_address 必 须 是 字 对 齐 的 。+offset 描 述 一 个 基 址 , 它 超 出 前 一 个 执 行 区 末 尾 offset 个 字 节 。offset 的 值 必 须 能 被 4 整 除 。如 果 前 面 没 有 执 行 区 ( 即 , 这 是 加 载 区 中 的 第 一 个 执 行 区 ),则 +offset 表 示 基 址 从 它 所 在 的 加 载 区 的 基 址 后 面 offset 个字 节 开 始 。如 果 使 用 +offset 格 式 , 并 且 所 在 的 加 载 区 具 有 RELOC 属 性 ,则 执 行 区 继 承 RELOC 属 性 。 但 是 , 如 果 使 用 固 定base_address, 则 以 后 出 现 的 offset 不 继 承 RELOC 属 性 。<strong>ARM</strong> DUI 0349AC 版 权 所 有 © 2007 <strong>ARM</strong> 公 司 。 保 留 所 有 权 利 。 5-15

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

Saved successfully!

Ooh no, something went wrong!