https://bugs.llvm.org/show_bug.cgi?id=33423

            Bug ID: 33423
           Summary: lld fails to link kernel modules on FreeBSD/arm: can't
                    create dynamic relocation R_ARM_ABS32 against local
                    symbol in readonly segment
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: ema...@freebsd.org
                CC: llvm-bugs@lists.llvm.org
            Blocks: 23214

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
>>> defined in accf_data.kld
>>> referenced by 
>>> accf_data.kld:(__set_modmetadata_set_sym__mod_metadata_md_accf_data_on_kernel)

ld: error: can't create dynamic relocation R_ARM_ABS32 against local symbol in
readonly segment
>>> defined in accf_data.kld
>>> referenced by 
>>> accf_data.kld:(__set_modmetadata_set_sym__mod_metadata_md_accf_data)

ld: error: can't create dynamic relocation R_ARM_ABS32 against local symbol in
readonly segment
>>> 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


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=23214
[Bug 23214] [META] Using LLD as FreeBSD's system linker
-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to