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] CANNOT LINK EXECUTABLE "clang": unknown reloc type 16 @ 0x7b4a4f523ba0 (1273) on x86_64-linux-android30 #115103

Open
trcrsired opened this issue Nov 6, 2024 · 4 comments
Labels
clang Clang issues not falling into any other category lld

Comments

@trcrsired
Copy link

image
Why?

@github-actions github-actions bot added clang Clang issues not falling into any other category lld labels Nov 6, 2024
@trcrsired
Copy link
Author

@MaskRay

@trcrsired
Copy link
Author

I have checked the bionic and glibc code:
bionic does not support R_X86_64_DTPMOD64??

https://github.com/aosp-mirror/platform_bionic/blob/3da2fec061833d3445990b4b891628dd4e757038/linker/linker_relocate.cpp#L477

glibc:

https://github.com/aosp-mirror/platform_bionic/blob/3da2fec061833d3445990b4b891628dd4e757038/linker/linker_relocate.cpp#L477

#define R_X86_64_NONE		0	/* No reloc */
#define R_X86_64_64		1	/* Direct 64 bit  */
#define R_X86_64_PC32		2	/* PC relative 32 bit signed */
#define R_X86_64_GOT32		3	/* 32 bit GOT entry */
#define R_X86_64_PLT32		4	/* 32 bit PLT address */
#define R_X86_64_COPY		5	/* Copy symbol at runtime */
#define R_X86_64_GLOB_DAT	6	/* Create GOT entry */
#define R_X86_64_JUMP_SLOT	7	/* Create PLT entry */
#define R_X86_64_RELATIVE	8	/* Adjust by program base */
#define R_X86_64_GOTPCREL	9	/* 32 bit signed PC relative
					   offset to GOT */
#define R_X86_64_32		10	/* Direct 32 bit zero extended */
#define R_X86_64_32S		11	/* Direct 32 bit sign extended */
#define R_X86_64_16		12	/* Direct 16 bit zero extended */
#define R_X86_64_PC16		13	/* 16 bit sign extended pc relative */
#define R_X86_64_8		14	/* Direct 8 bit sign extended  */
#define R_X86_64_PC8		15	/* 8 bit sign extended pc relative */
#define R_X86_64_DTPMOD64	16	/* ID of module containing symbol */

@trcrsired
Copy link
Author

image

@trcrsired
Copy link
Author

binaries are here:
https://github.com/trcrsired/llvm-releases/releases/tag/20241105

x86_64-linux-android30.tar.xz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category lld
Projects
None yet
Development

No branches or pull requests

1 participant