title: Relocatable symbols in ELF format (assembly language)
body: <p>We are developing a port of the GNU Assembler for a client architecture.
  Now the problem being faced is that:</p>
  
  <p>If an immediate operand to an instruction is an expression involving more than one relocatable symbols, how is it handled in output file in elf format. What will be the relocation information produced in such a case?</p>
  
  <p>For example:</p>
  
  <pre><code>j label1 + label2
  </code></pre>
  
  <p>where label1 and label2 are defined in relocatable sections, they might be the same sections or different relocatable sections.</p>