This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cross compiled GCC wrongly builds dynamic executables


On 20/08/16 08:46, Alastair Hughes wrote:

> No, there is no dynamic linker on the target - your suggestion
> works, thanks.
> 
> I'm a bit surprised that the ld creates dynamically linked
> executables in the first place, since they cannot ever run at
> runtime (missing the dynamic loader) and there is no dynamic
> libraries to link against. What is the use case for that? Is there
> some way to stop ld from ever creating dynamically linked
> executables?

I'm surprised too.  ld will usually only link against dynamic
libraries which it finds at link time.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]