<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - the relocation type is changed to R_X86_64_32 for .gcc_except_table with -mcmodel=kernel"
   href="https://bugs.llvm.org/show_bug.cgi?id=37524">37524</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>the relocation type is changed to R_X86_64_32 for .gcc_except_table with -mcmodel=kernel
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>pangbw@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Use clang 6.0.0.1 to compile this simple code, the relocation for
.gcc_except_table is R_X86_64_32:
$ cat x.cpp

int main () {
    try
      {
        throw 20;
      }
    catch (int e)
      {

      }
    return 0;
}

$ clang --target=x86_64 -m64 -mcmodel=kernel -c x.cpp

$ $ objdump -Dr x.o|grep .gcc_except_table
Disassembly of section .gcc_except_table:
                        31: R_X86_64_32 .gcc_except_table


But if use clang 5.0.0.3 to compile the same code, the relocaction type is
R_X86_64_64 for .gcc_except_table.

Is the difference between 5.0.0.3 and 6.0.0.1 expected? or a problem we should
fix?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>