<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 - lld fails to link kernel modules on FreeBSD/arm: can't create dynamic relocation R_ARM_ABS32 against local symbol in readonly segment"
href="https://bugs.llvm.org/show_bug.cgi?id=33423">33423</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld fails to link kernel modules on FreeBSD/arm: can't create dynamic relocation R_ARM_ABS32 against local symbol in readonly segment
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>emaste@freebsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Blocks</th>
<td>23214
</td>
</tr></table>
<p>
<div>
<pre>Bug created for tracking - reproduction tarball will be added.
While linking the FreeBSD/arm kernel modules the linking fails with errors of
the form:
ld -m armelf_fbsd -Bshareable -d -warn-common -o accf_data.ko.full
accf_data.kld
ld: error: can't create dynamic relocation R_ARM_ABS32 against local symbol in
readonly segment
<span class="quote">>>> defined in accf_data.kld
>>> referenced by accf_data.kld:(__set_modmetadata_set_sym__mod_metadata_md_accf_data_on_kernel)</span >
ld: error: can't create dynamic relocation R_ARM_ABS32 against local symbol in
readonly segment
<span class="quote">>>> defined in accf_data.kld
>>> referenced by accf_data.kld:(__set_modmetadata_set_sym__mod_metadata_md_accf_data)</span >
ld: error: can't create dynamic relocation R_ARM_ABS32 against local symbol in
readonly segment
<span class="quote">>>> defined in accf_data.kld
>>> referenced by accf_data.kld:(__set_sysinit_set_sym_accf_datamodule_sys_init)*** [accf_data.ko.full] Error code 1</span ></pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [META] Using LLD as FreeBSD's system linker"
href="https://bugs.llvm.org/show_bug.cgi?id=23214">Bug 23214</a>] [META] Using LLD as FreeBSD's system linker
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>