Cary Coutant
3f2e6a2da5
2008-06-25 Cary Coutant <ccoutant@google.com>
...
* 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.
2008-06-25 17:10:08 +00:00
Ian Lance Taylor
39d0cb0e83
* fileread.cc (File_read::find_view): Add byteshift and vshifted
...
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-02 20:58:21 +00:00
Ian Lance Taylor
ebdbb4583d
Update copyright years. Update language files.
2008-03-13 21:04:21 +00:00
Ian Lance Taylor
2285a61069
From Craig Silverstein: Implement --debug=files to track file opens,
...
and implement --verbose as a synonym.
2008-03-13 01:46:17 +00:00
Ian Lance Taylor
7cc619c3b1
From Craig Silverstein: rename some option functions in preparation
...
for reworking option handling.
2008-03-04 18:21:43 +00:00
Ian Lance Taylor
8851eccaec
From Craig Silverstein: Have Parameters point to General_options.
2008-02-28 00:18:24 +00:00
Ian Lance Taylor
45aa233bdc
From Craig Silverstein: rename option functions for future option
...
handling rewrite.
2008-02-26 21:45:30 +00:00
Ian Lance Taylor
0daa6f62c8
Support selecting target by name.
2008-02-13 02:44:50 +00:00
Ian Lance Taylor
bc644c6cfc
Add support for --format binary for input files.
2008-02-08 07:06:58 +00:00
Ian Lance Taylor
88dd47ac00
Implement --just-symbols, including -R FILE. Fix symbol values when
...
doing a relocatable link.
2008-02-07 01:51:25 +00:00
Ian Lance Taylor
14144f39e4
Don't include options.h in fileread.h. Remove General_options
...
reference from Output_file class.
2008-01-18 23:26:48 +00:00
Ian Lance Taylor
be2f3dec43
Add cast to avoid signed/unsigned warning.
2008-01-02 23:55:37 +00:00
Ian Lance Taylor
cb29561284
Reduce the number of system calls. Use readv instead of pread. Do
...
better handling of cached views.
2008-01-02 23:48:49 +00:00
Ian Lance Taylor
8d32f93595
Correct handling of non-section symbol in merged section. Avoid some
...
64-bit signed/unsigned warnings.
2007-12-21 23:08:25 +00:00
Ian Lance Taylor
8cce671843
Fix buglet in last patch.
2007-12-20 21:26:17 +00:00
Ian Lance Taylor
fe8718a463
Convert more instances of off_t to be 32-bit types.
2007-12-20 21:21:24 +00:00
Ian Lance Taylor
9bb53bf8b8
Avoid some warnings which showed up in 64-bit mode.
2007-12-19 01:18:41 +00:00
Ian Lance Taylor
8383303e0a
Add section_size_type and section_offset_type, use them to replace a
...
lot of instances of off_t.
2007-12-18 00:48:04 +00:00
Ian Lance Taylor
17a1d0a9b2
Rewrite workqueue. This version eliminates the master thread, and
...
reduces the amount of locking required to find a new thread to run.
2007-12-14 19:00:21 +00:00
Ian Lance Taylor
7004837e8d
Add const to Object::read and Object::sized_target.
2007-12-14 18:50:01 +00:00
Ian Lance Taylor
c71c6f566c
Make some File_read methods const.
2007-12-14 18:22:06 +00:00
Ian Lance Taylor
fcf29b2415
Keep views on views_ list so that they can be found again.
2007-12-10 22:55:31 +00:00
Ian Lance Taylor
6161122258
Implement -Bstatic/-Bdynamic.
2007-10-22 18:04:43 +00:00
Ian Lance Taylor
a0c4fb0ac6
Remove extraneous newlines.
2007-10-14 06:57:58 +00:00
Ian Lance Taylor
75f2446ec3
Run all error handling through an Errors object. Delete output file
...
on error.
2007-10-14 06:49:14 +00:00
Ian Lance Taylor
e44fcf3bcf
Add --stats option to print runtime and memory usage statistics.
2007-10-12 05:51:25 +00:00
Ian Lance Taylor
e2aacd2c75
Fix soname for library found in search path.
2007-10-09 17:46:15 +00:00
Ian Lance Taylor
ad2d6943a4
Full support for --sysroot.
2007-10-04 05:49:04 +00:00
Ian Lance Taylor
51dee2fec3
From Craig Silverstein: add support for searching for input files
...
named in linker scripts.
2007-10-02 21:24:41 +00:00
Ian Lance Taylor
d1038c216f
Use mmap to read from input files.
2007-09-25 23:08:30 +00:00
Ian Lance Taylor
9eb9fa57c2
Add cache parameter to get_view. Discard uncached views on unlock.
...
Fix bug this exposed in archive armap symbol name handling.
2007-09-25 17:50:26 +00:00
Ian Lance Taylor
82dcae9de0
Rework File_read interface. Get file size. Use pread when
...
available.
2007-09-25 06:43:17 +00:00
Ian Lance Taylor
bae3688d8f
Remove get_view_and_size.
2007-09-25 05:16:35 +00:00
Ian Lance Taylor
ba45d2478b
Break out default pbytes argument to read and get_view routines,
...
adding new routines.
2007-09-25 00:27:29 +00:00
Ian Lance Taylor
6cb15b7f89
Add licensing text to every source file.
2007-09-22 21:02:10 +00:00
Ian Lance Taylor
5a6f7e2db5
Added a testsuite. More support for COPY relocations.
2006-11-30 23:52:50 +00:00
Ian Lance Taylor
a3ad94edd4
Hash tables, dynamic section, i386 PLT, gold_assert.
2006-11-29 17:56:40 +00:00
Ian Lance Taylor
f6ce93d6e9
Split Object into Dynobj and Relobj, incorporate elfcpp swapping changes.
2006-11-06 22:46:08 +00:00
Ian Lance Taylor
ead1e4244a
Can now do a full static link of hello, world in C or C++
2006-11-03 18:26:11 +00:00
Ian Lance Taylor
61ba1cf936
Snapshot. Now able to produce a minimal executable which actually
...
runs.
2006-09-29 19:58:17 +00:00
Ian Lance Taylor
bae7f79e03
Initial CVS checkin of gold
2006-08-04 23:10:59 +00:00