public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Cross-compile on Linux for Solaris x86
@ 2022-05-12 19:13 Paul Lucas
  2022-05-12 20:37 ` H.J. Lu
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Lucas @ 2022-05-12 19:13 UTC (permalink / raw)
  To: binutils

Hello -

I’m building a cross-compiled gcc and binutils on Linux x86_64 for Solaris x86_64.  The problem is that the executables produced hard-code the wrong path for the dynamic linker and get killed immediately upon launch.  In elfxx-x86.c, the path for ELF64_DYNAMIC_INTERPRETER is defined as "/lib/ld64.so.1", but should be "/lib/amd64/ld.so.1" on a Solaris x86_64 system.

I came across this exact problem here:

https://binutils.sourceware.narkive.com/hNh1UFx2/building-a-cross-for-solaris-x86-target#post2

That thread is 15 years (!) old and implies this issue has beed addressed in the binutils 2.17/2.18 timeframe.  I’m building binutils 2.32 and still hitting this same problem.

What’s the fix?

Thanks.

- Paul


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-13  0:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12 19:13 Cross-compile on Linux for Solaris x86 Paul Lucas
2022-05-12 20:37 ` H.J. Lu
2022-05-12 23:32   ` Paul Lucas
2022-05-13  0:05     ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).