<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakts</author_name>
  <author_url>https://blog.hatena.ne.jp/kakts/</author_url>
  <blog_title>kakts-log</blog_title>
  <blog_url>https://kakts.dev/</blog_url>
  <categories>
    <anon>gcc</anon>
  </categories>
  <description>概要 GCCのインラインアセンブラを利用して Cで書かれたコード内でアセンブリ言語のプログラムを埋め込み、コンパイルした場合に下記のエラーがでました gcc実行時に、内部でldコマンドが実行された時のエラーのようです。 $ gcc -fno-pic -fomit-frame-pointer inline.c -o inline /usr/bin/ld: /tmp/ccEEoJFV.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakts.dev%2Fentry%2F2022%2F08%2F19%2F011217&quot; title=&quot;Cでインラインアセンブラコードをgccでコンパイルする際に &amp;quot;relocation R_X86_64_32 against `.rodata&amp;#39; can not be used when making a PIE object;&amp;quot; というエラーが出た時の対処法 - kakts-log&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>2022-08-19 01:12:17</published>
  <title>Cでインラインアセンブラコードをgccでコンパイルする際に &quot;relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object;&quot; というエラーが出た時の対処法</title>
  <type>rich</type>
  <url>https://kakts.dev/entry/2022/08/19/011217</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
