aboutsummaryrefslogtreecommitdiff
path: root/gold/archive.cc
AgeCommit message (Collapse)AuthorFilesLines
2008-04-012008-03-31 Cary Coutant <ccoutant@google.com>Cary Coutant1-22/+114
Add thin archive support. * archive.cc (Archive::armagt): New const. (Archive::setup): Remove task parameter and calls to unlock. (Archive::unlock_nested_archives): New function. (Archive::read_header): Add nested_off parameter. Change all callers. (Archive::interpret_header): Likewise. (Archive::include_all_members): Change to handle thin archives. (Archive::include_member): Likewise. * archive.h (Archive::Archive): Add new parameters and initializers. (Archive::armagt): New const. (Archive::setup): Remove task parameter. (Archive::unlock_nested_archives): New function. (Archive::read_header): Add nested_off parameter. (Archive::interpret_header): Likewise. (Archive::Nested_archive_table): New typedef. (Archive::is_thin_archive_): New field. (Archive::nested_archives_): New field. (Archive::options_): New field. (Archive::dirpath_): New field. (Archive::task_): New field. * readsyms.cc (Read_symbols::do_read_symbols): Add check for thin archives. Pass additional parameters to Archive::Archive. Unlock the archive file after calling Archive::setup.
2008-03-13Update copyright years. Update language files.Ian Lance Taylor1-1/+1
2008-02-26From Craig Silverstein: rename option functions for future optionIan Lance Taylor1-2/+2
handling rewrite.
2008-01-02Reduce the number of system calls. Use readv instead of pread. DoIan Lance Taylor1-7/+11
better handling of cached views.
2007-12-18Add section_size_type and section_offset_type, use them to replace aIan Lance Taylor1-5/+7
lot of instances of off_t.
2007-12-14Rewrite workqueue. This version eliminates the master thread, andIan Lance Taylor1-25/+13
reduces the amount of locking required to find a new thread to run.
2007-11-22Add threading support.Ian Lance Taylor1-0/+1
2007-11-16Ignore empty archives.Ian Lance Taylor1-0/+7
2007-11-07From Craig Silverstein: Don't crash if we see a file we don't recognize.Ian Lance Taylor1-5/+12
2007-10-14Remove extraneous newlines.Ian Lance Taylor1-1/+1
2007-10-14Run all error handling through an Errors object. Delete output fileIan Lance Taylor1-48/+28
on error.
2007-10-02From Craig Silverstein: avoid some signed/unsigned warnings from gcc 4.2.Ian Lance Taylor1-2/+2
2007-09-25Add cache parameter to get_view. Discard uncached views on unlock.Ian Lance Taylor1-11/+16
Fix bug this exposed in archive armap symbol name handling.
2007-09-25Rework File_read interface. Get file size. Use pread whenIan Lance Taylor1-13/+18
available.
2007-09-25Remove get_view_and_size.Ian Lance Taylor1-8/+10
2007-09-25Break out default pbytes argument to read and get_view routines,Ian Lance Taylor1-5/+5
adding new routines.
2007-09-22Add licensing text to every source file.Ian Lance Taylor1-0/+20
2007-09-21Add global parameters.Ian Lance Taylor1-13/+12
2007-09-20Fix comment.Ian Lance Taylor1-2/+2
2007-09-20Rework patch to check by both armap entry and archive offset. Also,Ian Lance Taylor1-21/+24
preserve information for --group.
2007-09-20From Craig Silverstein: rework seen handling to be based on archiveIan Lance Taylor1-12/+25
offsets rather than entries in archive symbol table.
2007-08-21Implement --whole-archive.Ian Lance Taylor1-22/+94
2006-11-06Split Object into Dynobj and Relobj, incorporate elfcpp swapping changes.Ian Lance Taylor1-9/+10
2006-11-03Can now do a full static link of hello, world in C or C++Ian Lance Taylor1-20/+23
2006-10-20Framework for relocation scanning. Implement simple static TLSIan Lance Taylor1-1/+1
relocations.
2006-10-06Lay out object file sections when we add the symbols to the symbolIan Lance Taylor1-7/+11
table.
2006-09-29Snapshot. Now able to produce a minimal executable which actuallyIan Lance Taylor1-0/+360
runs.