This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

Re: cross-compiling & debugging embedded-linux apps


dony wrote:
> 
> > > Kai Ruottu wrote:
> > >
> > > > 1. Using 'strings' to see the 'hard-wired' name of the dynamic linker in
> > > >    the executable:
> > > >
> > > >         E:\usr\local\samples>strings tst_ppc-linux.x | more
> > > >         /lib/ld.so.1    <------- !!!
> > > >         __gmon_start__
> > > >         libc.so.6
> 
> Now I have a similar problem with the dynamic linker "ld.so.1". Can you tell me
> how can I remove the "--dynamic-linker XXXX" and set the default dynamic-linker to other
> directories ,ie, /syslib/ld.so.1, instead of /lib/ld.so.1?

 Just change the '--dynamic-linker /lib/ld.so.1' into '--dynamic-linker /syslib/ld.so.1'
in your 'specs' file. The place where GCC finds the 'specs' now will be get by 'gcc -v':

  C:\users\default>gcc-ppc-linux -v
  Reading specs from E:\usr\local\lib\gcc-lib\ppc-linux-gnu\2_95.2\specs
  gcc version 2.95.2 19991024 (release)

and the '--dynamic-linker /lib/ld.so.1' is in the '*link:'-spec.

Cheers, Kai

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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