aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.cc
AgeCommit message (Collapse)AuthorFilesLines
2008-04-02 * fileread.cc (File_read::find_view): Add byteshift and vshiftedIan Lance Taylor1-58/+151
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-03-13Update copyright years. Update language files.Ian Lance Taylor1-1/+1
2008-03-13From Craig Silverstein: Implement --debug=files to track file opens,Ian Lance Taylor1-0/+3
and implement --verbose as a synonym.
2008-03-04From Craig Silverstein: rename some option functions in preparationIan Lance Taylor1-2/+2
for reworking option handling.
2008-02-28From Craig Silverstein: Have Parameters point to General_options.Ian Lance Taylor1-5/+5
2008-02-26From Craig Silverstein: rename option functions for future optionIan Lance Taylor1-2/+2
handling rewrite.
2008-02-13Support selecting target by name.Ian Lance Taylor1-19/+12
2008-02-08Add support for --format binary for input files.Ian Lance Taylor1-2/+49
2008-02-07Implement --just-symbols, including -R FILE. Fix symbol values whenIan Lance Taylor1-2/+13
doing a relocatable link.
2008-01-18Don't include options.h in fileread.h. Remove General_optionsIan Lance Taylor1-0/+14
reference from Output_file class.
2008-01-02Add cast to avoid signed/unsigned warning.Ian Lance Taylor1-2/+5
2008-01-02Reduce the number of system calls. Use readv instead of pread. DoIan Lance Taylor1-25/+187
better handling of cached views.
2007-12-21Correct handling of non-section symbol in merged section. Avoid someIan Lance Taylor1-1/+1
64-bit signed/unsigned warnings.
2007-12-20Fix buglet in last patch.Ian Lance Taylor1-7/+7
2007-12-20Convert more instances of off_t to be 32-bit types.Ian Lance Taylor1-10/+10
2007-12-19Avoid some warnings which showed up in 64-bit mode.Ian Lance Taylor1-1/+1
2007-12-18Add section_size_type and section_offset_type, use them to replace aIan Lance Taylor1-4/+4
lot of instances of off_t.
2007-12-14Rewrite workqueue. This version eliminates the master thread, andIan Lance Taylor1-34/+53
reduces the amount of locking required to find a new thread to run.
2007-12-14Add const to Object::read and Object::sized_target.Ian Lance Taylor1-3/+1
2007-12-14Make some File_read methods const.Ian Lance Taylor1-6/+4
2007-12-10Keep views on views_ list so that they can be found again.Ian Lance Taylor1-13/+19
2007-10-22Implement -Bstatic/-Bdynamic.Ian Lance Taylor1-1/+2
2007-10-14Remove extraneous newlines.Ian Lance Taylor1-3/+3
2007-10-14Run all error handling through an Errors object. Delete output fileIan Lance Taylor1-37/+30
on error.
2007-10-12Add --stats option to print runtime and memory usage statistics.Ian Lance Taylor1-1/+29
2007-10-09Fix soname for library found in search path.Ian Lance Taylor1-3/+9
2007-10-04Full support for --sysroot.Ian Lance Taylor1-3/+4
2007-10-02From Craig Silverstein: add support for searching for input filesIan Lance Taylor1-3/+46
named in linker scripts.
2007-09-25Use mmap to read from input files.Ian Lance Taylor1-4/+33
2007-09-25Add cache parameter to get_view. Discard uncached views on unlock.Ian Lance Taylor1-48/+46
Fix bug this exposed in archive armap symbol name handling.
2007-09-25Rework File_read interface. Get file size. Use pread whenIan Lance Taylor1-69/+56
available.
2007-09-25Remove get_view_and_size.Ian Lance Taylor1-27/+5
2007-09-25Break out default pbytes argument to read and get_view routines,Ian Lance Taylor1-4/+29
adding new routines.
2007-09-22Add licensing text to every source file.Ian Lance Taylor1-0/+20
2006-11-30Added a testsuite. More support for COPY relocations.Ian Lance Taylor1-21/+60
2006-11-29Hash tables, dynamic section, i386 PLT, gold_assert.Ian Lance Taylor1-17/+16
2006-11-06Split Object into Dynobj and Relobj, incorporate elfcpp swapping changes.Ian Lance Taylor1-3/+7
2006-11-03Can now do a full static link of hello, world in C or C++Ian Lance Taylor1-24/+80
2006-09-29Snapshot. Now able to produce a minimal executable which actuallyIan Lance Taylor1-5/+5
runs.
2006-08-04Initial CVS checkin of goldIan Lance Taylor1-0/+281