search for: archivelibraryfile

Displaying 4 results from an estimated 4 matches for "archivelibraryfile".

2012 Oct 23
1
[LLVMdev] LLD archive library design
Hi Nick, Here is my understanding, 1) lld-core creates a ReaderOptionsArchive class with the (Reader, CommandLine options flag) 2) lld-core creates an object of type ReaderArchive(ReaderOptions), that users would subclass (off ArchiveLibraryFile) a) GNUArchiveLibrary b) BSDArchiveLibrary b) MachOArchiveLibrary c) COFFArchiveLibrary 3) ReaderArchive has two functions a) parseFile that returns a vector of file objects, if the force load option is set b) parseFile (overloaded) that returns the ArchiveLibraryFi...
2012 Oct 19
0
[LLVMdev] LLD archive library design
...erArchive ::parseFile() method will check the force-load option, if true it will parse up all the members and return an vector<> of File* objects, one for each member. If force-load is not specified, ReaderArchive ::parseFile() will just return one FileArchive object which is a subclass of ArchiveLibraryFile. The find() method of that class will search the table of contents and return a File* object for the member defining the requested symbol, or nullptr if nothing in the archive defines that symbol. > > I think the first set of features that lld needs to support is > > 1) Read the a...
2012 Oct 23
0
[LLVMdev] LLD archive library design
...2, at 1:01 PM, Shankar Easwaran wrote: > Hi Nick, > > Here is my understanding, > > 1) lld-core creates a ReaderOptionsArchive class with the (Reader, CommandLine options flag) > 2) lld-core creates an object of type ReaderArchive(ReaderOptions), that users would subclass (off ArchiveLibraryFile) > a) GNUArchiveLibrary > b) BSDArchiveLibrary > b) MachOArchiveLibrary > c) COFFArchiveLibrary > 3) ReaderArchive has two functions > a) parseFile that returns a vector of file objects, if the force load option is set > b) parseFile (overloaded) that...
2012 Oct 19
2
[LLVMdev] LLD archive library design
Hi, I have started to work on support for Reading archive libraries in lld and thought of using the llvm/lib/ArchiveReader for this. The ArchiveReader doesnot fully support GNU archive libraries (thin archives), do you think we should continue using llvm/lib/ArchiveReader ? I was chatting with Michael and looks like there have been discussions and small sketches done on reading archive