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
Linking any program with mold-1.10.1 on ppc64 BE fails with: cannot find a symbol in .opd for R_PPC64_REL24 at offset 0x0 #987
Comments
Can you upload |
Sure! |
Your
|
Portage (default package manager in Gentoo) strips files by default. |
After a hint from Arfrever on IRC (#gentoo-powerpc) I rebuilt gcc-12 with FEATURES="nostrip" and the resulting
|
As to stripping the object files, your object files' Let me take a look at the |
It seems that relevant part of behavior of
(And then you can compare |
Stripping final executable files is fine, but stripping intermediate object files doesn't make much sense. If a compiler emits a symbol, it's there for a reason. |
Building mold-1.10.1 works fine on Gentoo ppc64 Big Endian but using it as system-wide-linker via
LDFLAGS="-fuse-ld=mold -Wl,-O1 -Wl,--as-needed"
won't work.E.g. emerge less fails at config stage:
config errors out with
mold: fatal: /usr/lib/gcc/powerpc64-unknown-linux-gnu/12/crtbeginS.o:(.text): cannot find a symbol in .opd for R_PPC64_REL24 at offset 0x0
.config.log
The text was updated successfully, but these errors were encountered: