For relative paths in INPUT() and GROUP(), search the directory of the current linker...
authorFangrui Song <maskray@google.com>
Wed, 22 Apr 2020 15:20:02 +0000 (16:20 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 22 Apr 2020 15:20:02 +0000 (16:20 +0100)
commit161719466ac9ea5f186514312f6bce842181804f
tree8f5243eadc4f7266ca8362b1da384e9a9aa057c6
parent31c89d6038f2658f5e06a762aa9e20e78e74651f
For relative paths in INPUT() and GROUP(), search the directory of the current linker script before searching other paths.

PR ld/25806
* ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
* ldlang.c (current_input_file): New.
(ldirname): New.
(new_afile): Add from_filename parameter. Set extra_search_path.
(lang_add_input_file): Pass current_input_file to new_afile.
(load_symbols): Set current_input_file.
ld/ChangeLog
ld/NEWS
ld/ld.texi
ld/ldfile.c
ld/ldlang.c
ld/ldlang.h
This page took 0.024424 seconds and 4 git commands to generate.