title: Do patchelf modify lib's section offset?
body: <p>I'm trying to check the following issue</p>
  <p>mylib.so don't have SONAME.</p>
  <p>So, I added SONAME by using patchelf like below command</p>
  <pre><code>patchelf --set-soname &quot;libmylib.so&quot; libmylib.so
  </code></pre>
  <p>And i checked elf info by using readelf -a</p>
  <p>Next, I used 'prelink' for reducing boot time.</p>
  <p>but error occurred with below log</p>
  <pre><code>root@:~# prelink -aRm
  prelink: /usr/lib/libmylib.so: section file offsets not monotonically increasing
  </code></pre>
  <p>Maybe... I think that patchelf have effects on mylib's elf info, structure</p>
  <p>Do patchelf modify lib section offset?</p>
  <p>I wonder how patchelf affects elf info.</p>
  <p>+) readelf output compare
  left is patchelf not applied output and another is which patchelf applied.</p>
  <p><a href="https://i.stack.imgur.com/1AH5r.png" rel="nofollow noreferrer">enter image description here</a></p>