<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ramen26</author_name>
  <author_url>https://blog.hatena.ne.jp/ramen26/</author_url>
  <blog_title>元気よく。</blog_title>
  <blog_url>https://ramen26.hatenadiary.org/</blog_url>
  <categories>
    <anon>embedded</anon>
  </categories>
  <description>リンカスクリプトでメモリのアドレス定義を指定しますが、 このとき、リンカスクリプト内で、特定のアドレスに目印(シンボル)をつけておくことが出来ます。 こんな感じ。 MEMORY { ... ram(rwx) : o = 0xffc020, l = 0x003f00 ... } SECTIONS { ... .sample : { _sample = .; // ←コレ } &gt; ram ... } このシンボルを C のソース中で参照することが出来ます。 extern char sample; char *p = &amp;sample; // これでリンカスクリプト中の _sample のアドレスがと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Framen26.hatenadiary.org%2Fentry%2F20110224%2F1298558025&quot; title=&quot;リンカスクリプトで定義されたシンボルを C のソース内で参照 - 元気よく。&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-02-24 23:33:45</published>
  <title>リンカスクリプトで定義されたシンボルを C のソース内で参照</title>
  <type>rich</type>
  <url>https://ramen26.hatenadiary.org/entry/20110224/1298558025</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
