This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: crosstool switching to /lib + /usr/lib ?


On Wed, 14 Jan 2004, Kai Ruottu wrote:

>  The new symlink didn't help and when looking at the linking phase with the
> '-verbose' option (giving '-Wl,-verbose' on compile command line), it told
> what the reason is:
> 
> ---------------------- clip --------------------------------------
> GNU ld version 2.14.90.0.7 20031029
>   Supported emulations:
>    elf_x86_64
>    elf_i386
>    i386linux
> using internal linker script:
> ==================================================
> /* Script for -z combreloc: combine and sort reloc sections */
> OUTPUT_FORMAT("elf32-i386", "elf32-i386",
>               "elf32-i386")
> OUTPUT_ARCH(i386)
> ENTRY(_start)
> SEARCH_DIR("/usr/local/i386-linux-gnu/lib");
> ---------------------- clip --------------------------------------
> 
> ie. there is this wrong SEARCH_DIR("..."), so 'ld' has this bug...

Be careful there. Some of those SEARCH_DIRs might be bogus - for instance
if --nostdlib is set (and maybe if you are cross-compiling, IIRC) , then
ld will print some dirs which it does not search.

--
Charlie


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


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