We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Aarch64. Using gcc 11.2.0 and mold, this example fails to link. It links with default linker.
% gcc -B/usr/local/libexec/mold main.c movzk-reloc.s mold: error: /tmp/ccN62dh9.o:(.text): unknown relocation: R_AARCH64_MOVW_UABS_G2 collect2: error: ld returned 1 exit status % cat main.c extern void movzk_reloc(void); int main() { movzk_reloc(); } % cat movzk-reloc.s .data .align 8 mydata: .space 1024, 0 .text movzk_reloc: stp x15, x16, [sp, #-16]! stp x17, x18, [sp, #-16]! movz x0, #:abs_g2:mydata movk x0, #:abs_g1_nc:mydata movk x0, #:abs_g0_nc:mydata ldp x17, x18, [sp], #16 ldp x15, x16, [sp], #16 ret .global movzk_reloc
Building mold from git. Tried with tag v1.1.1 and head of main (006b13a 2022-04-04)
Reference: https://sourceware.org/binutils/docs/as/AArch64_002dRelocations.html
The text was updated successfully, but these errors were encountered:
96a4a1b
thanks for the quick fix
Sorry, something went wrong.
No problem. Feel free to report other bugs if you find any.
No branches or pull requests
Aarch64. Using gcc 11.2.0 and mold, this example fails to link. It links with default linker.
Building mold from git. Tried with tag v1.1.1 and head of main (006b13a 2022-04-04)
Reference: https://sourceware.org/binutils/docs/as/AArch64_002dRelocations.html
The text was updated successfully, but these errors were encountered: