aboutsummaryrefslogtreecommitdiff
path: root/gold/archive.cc
AgeCommit message (Collapse)AuthorFilesLines
2008-04-23 * readsyms.cc (Read_symbols::do_read_symbols): Use get_view ratherIan Lance Taylor1-7/+4
than read for file header. * archive.cc (Archive::include_member): Likewise.
2008-04-02 * fileread.cc (File_read::find_view): Add byteshift and vshiftedIan Lance Taylor1-3/+5
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-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.