8000 We should report warning if different shared libraries have the same SO name · Issue #51 · qualcomm/eld · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

We should report warning if different shared libraries have the same SO name #51

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

Open
partaror opened this issue Apr 21, 2025 · 3 comments
Assignees
Labels

Comments

@partaror
Copy link

It would be nice if linker reports a warning if different shared libraries present in the link have the same SO name.

For example, we should report warning for the below example where lib1.so and lib2.so have the same SO name.

#!/usr/bin/env bash

cat >1.c <<\EOF
int foo() { return 1; }
EOF

cat >2.c <<\EOF
int bar() { return 3; }
EOF

clang -o 1.o 1.c -target arm -c -ffunction-sections
clang -o 2.o 2.c -target arm -c -ffunction-sections
ld.eld -o lib1.so 1.o -shared -soname=foo
ld.eld -o lib2.so 2.o -shared -soname=foo
ld.eld -o a.out /dev/null lib1.so lib2.so
@XueSongTap
Copy link

Can I work on this?

@quic-seaswara
Copy link
Contributor

Go for it. When do you think you can push a PR ?

@quic-seaswara
Copy link
Contributor

@XueSongTap are you planning to work on this ?

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

No branches or pull requests

3 participants
0