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

ld.lld broken #5

Open
XniceCraft opened this issue Nov 30, 2023 · 1 comment
Open

ld.lld broken #5

XniceCraft opened this issue Nov 30, 2023 · 1 comment

Comments

@XniceCraft
Copy link
Owner

XniceCraft commented Nov 30, 2023

Linking with ld.ldd give so many errors.

ld.lld: error: /system/lib64/libdl.so: invalid local symbol '_bss_end__' in global part of symbol table
ld.lld: error: /system/lib64/libdl.so: invalid local symbol '__bss_start__' in global part of symbol table
ld.lld: error: /system/lib64/libdl.so: invalid local symbol '__bss_end__' in global part of symbol table
ld.lld: error: /system/lib64/libdl.so: invalid local symbol '__bss_start' in global part of symbol table
ld.lld: error: /system/lib64/libdl.so: invalid local symbol '__end__' in global part of symbol table
ld.lld: error: /system/lib64/libdl.so: invalid local symbol '_edata' in global part of symbol table
ld.lld: error: /system/lib64/libdl.so: invalid local symbol '_end' in global part of symbol table
ld.lld: error: /system/lib64/libm.so: invalid local symbol '_bss_end__' in global part of symbol table
ld.lld: error: /system/lib64/libm.so: invalid local symbol '__bss_start__' in global part of symbol table
ld.lld: error: /system/lib64/libm.so: invalid local symbol '__bss_end__' in global part of symbol table
ld.lld: error: /system/lib64/libm.so: invalid local symbol '__bss_start' in global part of symbol table
ld.lld: error: /system/lib64/libm.so: invalid local symbol '__end__' in global part of symbol table
ld.lld: error: /system/lib64/libm.so: invalid local symbol '_edata' in global part of symbol table
ld.lld: error: /system/lib64/libm.so: invalid local symbol '_end' in global part of symbol table
ld.lld: error: /system/lib64/libc.so: invalid local symbol '_bss_end__' in global part of symbol table
ld.lld: error: /system/lib64/libc.so: invalid local symbol '__bss_start__' in global part of symbol table
ld.lld: error: /system/lib64/libc.so: invalid local symbol '__bss_end__' in global part of symbol table
ld.lld: error: /system/lib64/libc.so: invalid local symbol '__bss_start' in global part of symbol table
ld.lld: error: /system/lib64/libc.so: invalid local symbol '__end__' in global part of symbol table
ld.lld: error: /system/lib64/libc.so: invalid local symbol '_edata' in global part of symbol table
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
g++: error: linker command failed with exit code 1 (use -v to see invocation)

Workaround : Use binutils linker. Pass -fuse-ld=gold to CXXFLAGS and CFLAGS

@XniceCraft
Copy link
Owner Author

Clang is being recompiled to use gnu ld as default linker.

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

No branches or pull requests

1 participant