title: Which sections in memory are writable?
body: <p>I am running some C code, compiled to 32bit x86 on Linux. And I am trying to access some memory. Apperently I can write to <code>.bss</code> and <code>.data</code> and to the stack. Some time ago, the <a href="https://unix.stackexchange.com/questions/8062/dtors-looks-writable-but-attempts-to-write-segfault">.ctors and .dtors segments used to be writable</a>, but it seems they are gone.</p>
  
  <p>Without trial-and-error, how can I found out to which sections in memory the segments are mapped? How can I find out which addresses are mapped to writable memory and which are executable?</p>