<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masami256</author_name>
  <author_url>https://blog.hatena.ne.jp/masami256/</author_url>
  <blog_title>φ(・・*)ゞ ｳｰﾝ　カーネルとか弄ったりのメモ</blog_title>
  <blog_url>https://kernhack.hatenablog.com/</blog_url>
  <categories>
    <anon>OS</anon>
  </categories>
  <description>テスト用のプログラムはこんな感じです。単にシステムコール呼ぶだけです。 #define UNUSED __attribute__((unused)) int main(UNUSED int argc, UNUSED char **argv) { __asm__(&quot;mov $1, %eax\n\t&quot; &quot;int $0x80\n\t&quot; ); return 0; } 自作カーネルは32bit用なので、gccとかldに32bitのオプションをつけてます。 libcとかは当然無いので、ldにはオプションとして-Bstaticをつけてスタティックなバイナリにしてます。 CC = gcc LD = ld ta…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkernhack.hatenablog.com%2Fentry%2F20100513%2F1273764126&quot; title=&quot;ELFを自作カーネルで実行させたいので、とりあえずテストプログラムの準備から。 - φ(・・*)ゞ ｳｰﾝ　カーネルとか弄ったりのメモ&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>2010-05-13 00:22:06</published>
  <title>ELFを自作カーネルで実行させたいので、とりあえずテストプログラムの準備から。</title>
  <type>rich</type>
  <url>https://kernhack.hatenablog.com/entry/20100513/1273764126</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
