aboutsummaryrefslogtreecommitdiff
path: root/gold/archive.h
AgeCommit message (Collapse)AuthorFilesLines
2008-04-02 * fileread.cc (File_read::find_view): Add byteshift and vshiftedIan Lance Taylor1-2/+7
parameters. Update for new key type to views_. Change all callers. (File_read::read): Adjust for byteshift in returned view. (File_read::add_view): New function, broken out of find_and_make_view. (File_read::make_view): New function, broken out of find_and_make_view. (File_read::find_or_make_view): Add offset and aligned parameters. Rewrite accordingly. Change all callers. (File_read::get_view): Add offset and aligned parameters. Adjust for byteshift in return value. (File_read::get_lasting_view): Likewise. * fileread.h (class File_read): Update declarations. (class File_read::View): Add byteshift_ field. Add byteshift to constructor. Add byteshift method. * archive.h (Archive::clear_uncached_views): New function. (Archive::get_view): Add aligned parameter. Change all callers. * object.h (Object::get_view): Add aligned parameter. Change all callers. (Object::get_lasting_view): Likewise. * fileread.cc (File_read::release): Don't call clear_views if there are multiple objects. * fileread.h (File_read::clear_uncached_views): New function. * archive.cc (Add_archive_symbols::run): Call clear_uncached_views on the archive.
2008-04-012008-03-31 Cary Coutant <ccoutant@google.com>Cary Coutant1-5/+24
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-01-02Reduce the number of system calls. Use readv instead of pread. DoIan Lance Taylor1-3/+4
better handling of cached views.
2007-12-18Add section_size_type and section_offset_type, use them to replace aIan Lance Taylor1-2/+2
lot of instances of off_t.
2007-12-14Rewrite workqueue. This version eliminates the master thread, andIan Lance Taylor1-11/+20
reduces the amount of locking required to find a new thread to run.
2007-11-22Add threading support.Ian Lance Taylor1-0/+8
2007-09-25Add cache parameter to get_view. Discard uncached views on unlock.Ian Lance Taylor1-7/+10
Fix bug this exposed in archive armap symbol name handling.
2007-09-25Remove get_view_and_size.Ian Lance Taylor1-4/+0
2007-09-25Break out default pbytes argument to read and get_view routines,Ian Lance Taylor1-2/+6
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/+8
2007-09-20Rework patch to check by both armap entry and archive offset. Also,Ian Lance Taylor1-0/+13
preserve information for --group.
2007-09-20From Craig Silverstein: rework seen handling to be based on archiveIan Lance Taylor1-3/+0
offsets rather than entries in archive symbol table.
2007-08-21Implement --whole-archive.Ian Lance Taylor1-2/+16
2006-11-06Split Object into Dynobj and Relobj, incorporate elfcpp swapping changes.Ian Lance Taylor1-8/+11
2006-11-03Can now do a full static link of hello, world in C or C++Ian Lance Taylor1-4/+16
2006-10-06Lay out object file sections when we add the symbols to the symbolIan Lance Taylor1-5/+9
table.
2006-09-29Snapshot. Now able to produce a minimal executable which actuallyIan Lance Taylor1-0/+143
runs.