[RFC - Gold Patch] Implement INCLUDE directive
Sterling Augustine
saugustine@google.com
Thu Nov 17 00:45:00 GMT 2011
Hi,
Enclosed please find a first pass at implementing the INCLUDE
directive, bringing Gold to parity with ld.bfd, at least regarding
this feature.
A lot of setup isn't quite done when script_include_directive is
called, so the note in the old FIXME is quite right--using a standard
dirsearch structure in read_script_file is hard for reasons similar to
the need to create a fake Task there.
I wasn't sure about the best place to put the more primitive directory
search logic needed here, so I included it as a static member of
Dirsearch. Is there a better place?
Sterling
011-11-16 Sterling Augustine <saugustine@google.com>
* script.cc (script_include_directive): Implement.
(read_script_file): New local variables name and search_path. Update
comment. Call IS_ABSOLUTE_PATH and Dirsearch::find_file_in_dir_list.
* dirsearch.h (Dirsearch::find_file_in_dir_list): Declare new method.
* dirsearch.cc (Dirsearch::find_file_in_dir_list): Implement it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: include_directive.patch
Type: text/x-patch
Size: 4702 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20111117/8e771f9a/attachment.bin>
More information about the Binutils
mailing list