12.07.2015 Views

RealView - ARM Information Center

RealView - ARM Information Center

RealView - ARM Information Center

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

访 问 映 像 符 号4.2.3 导 入 链 接 器 定 义 的 符 号可 以 使 用 两 种 方 法 , 将 链 接 器 定 义 的 符 号 导 入 到 C 或 C++ 源 代 码 中 。 请 使 用 以下 方 法 之 一 :extern unsigned int symbol_name;或extern void *symbol_name;如 果 将 符 号 声 明 为 int, 则 必 须 使 用 取 址 运 算 符 获 取 正 确 的 值 , 如 示 例 4-2 中 所示 。示 例 4-2 导 入 链 接 器 定 义 的 符 号extern unsigned int Image$$ZI$$Limitconfig.heap_base = (unsigned int) &Image$$ZI$$Limit<strong>ARM</strong> DUI 0349AC 版 权 所 有 © 2007 <strong>ARM</strong> 公 司 。 保 留 所 有 权 利 。 4-7

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

Saved successfully!

Ooh no, something went wrong!