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