This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [patch] ldfile.c: Fix the search path ordering for a linker script.


On Thu, Apr 02, 2009 at 01:42:26PM -0400, Kazu Hirata wrote:
> If -T is explicitly specified anywhere in the command line:
>   we search:
>     current directory
>     search -L directories
>     what find_scripts_dir finds
> else
>   we search
>     current directory
>     what find_scripts_dir finds
>     search -L directories

I would be happy with your current patch if you changed the existing
call to ldfile_open_command_file after ldemul_get_script in ldmain.c
to call a new function that only searched find_scripts_dir directory.

-- 
Alan Modra
Australia Development Lab, IBM


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