Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLD fails to link objects from binutils upcoming 2.41 on RISCV #64102

Open
kraj opened this issue Jul 25, 2023 · 7 comments
Open

LLD fails to link objects from binutils upcoming 2.41 on RISCV #64102

kraj opened this issue Jul 25, 2023 · 7 comments

Comments

@kraj
Copy link
Contributor

kraj commented Jul 25, 2023

I have seeing the below error with lld ( trunk and 16.0.0 release )on riscv in combination with GAS from binutils 2.41 ( upcoming ) release built objects e.g. from glibc .a files.

riscv64-yoe-linux-ld.lld: error: TOPDIR/build/tmp/work/riscv64-yoe-linux/libcap-ng/0.8.3-r0/recipe-sysroot/usr/lib/libc_nonshared.a(pthread_atfork.oS):(.debug_loclists+0xd): unknown relocation (60) against symbol .LVL0

riscv64-yoe-linux-ld.lld: error: TOPDIR/build/tmp/work/riscv64-yoe-linux/libcap-ng/0.8.3-r0/recipe-sysroot/usr/lib/libc_nonshared.a(pthread_atfork.oS):(.debug_loclists+0xd): unknown relocation (61) against symbol .Ltext0

These are R_RISCV_SET_ULEB128 and R_RISCV_SUB_ULEB128 relocations.

@kraj
Copy link
Contributor Author

kraj commented Jul 25, 2023

@MaskRay FYI

@llvmbot
Copy link
Collaborator

llvmbot commented Jul 25, 2023

@llvm/issue-subscribers-backend-risc-v

@llvmbot
Copy link
Collaborator

llvmbot commented Jul 25, 2023

@llvm/issue-subscribers-lld-elf

@jrtc27
Copy link
Collaborator

jrtc27 commented Jul 25, 2023

@asb
Copy link
Contributor

asb commented Jul 26, 2023

Thanks for reporting - we were aware of needing this to land but really should have made an issue to track that.

@kraj
Copy link
Contributor Author

kraj commented Jul 27, 2023

@MaskRay
Copy link
Member

MaskRay commented Sep 1, 2023

The first step is my assembler change: https://reviews.llvm.org/D157657
Then we need to change lld.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants