Commit Graph

100 Commits

Author SHA1 Message Date
Ian Lance Taylor
5b3463d9ee Add Signed_valtype and use it for sign extension. Fix names of rela8. 2007-10-01 21:25:23 +00:00
Ian Lance Taylor
d830e0e0c9 Add RELA versions of the relocation routines. Original patch from
Craig Silverstein, with Symbol_value<> versions added.
2007-10-01 00:05:08 +00:00
Ian Lance Taylor
6df6da4a61 Clean up target handling--only build required files, warn about
unsupported targets.
2007-09-30 23:41:32 +00:00
Ian Lance Taylor
b3b74ddc6e Use parameters to track whether we are doing a static link. Fix up
final_value_is_known for weak undefined symbols.  Pointed out by Cary
Coutant.
2007-09-28 06:36:25 +00:00
Ian Lance Taylor
dfbba8f432 From Andrew Chatham: add signedrel<>, rel32s and friends. 2007-09-28 06:00:26 +00:00
Ian Lance Taylor
9025d29d14 Put size and endianness in parameters. 2007-09-26 07:01:35 +00:00
Ian Lance Taylor
3151305a47 Add basic exception frame header, plus test. 2007-09-26 05:44:38 +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
e5851e4e66 From Craig Silverstein: Fix bug when reading large script files. 2007-09-24 17:09:50 +00:00
Ian Lance Taylor
a0fa0c0798 Fix typo in comment. 2007-09-23 19:50:33 +00:00
Ian Lance Taylor
3bd52c2885 Add two file test. 2007-09-23 05:35:51 +00:00
Ian Lance Taylor
ab5c9e90a6 Use special value when we refer a function symbol in some way other
than calling it.
2007-09-23 05:31:48 +00:00
Ian Lance Taylor
cb615bc189 Add static version of constructor test. 2007-09-23 03:25:29 +00:00
Ian Lance Taylor
d50266522c Add constructor test. 2007-09-23 03:18:42 +00:00
Ian Lance Taylor
9d7094e840 Check section index as well as object when looking for input section. 2007-09-23 03:17:38 +00:00
Ian Lance Taylor
c077629be8 Avoid dereferencing map->end(). 2007-09-23 03:16:47 +00:00
Ian Lance Taylor
d98a37563c Correct comment. 2007-09-22 23:37:35 +00:00
Ian Lance Taylor
56ba9a23db Rename t1 to basic_test, add static tests. 2007-09-22 23:36:01 +00:00
Ian Lance Taylor
22dc1b094d Add standalone test case. 2007-09-22 22:44:33 +00:00
Ian Lance Taylor
4991e922ef Change YFLAGS to AM_YFLAGS. 2007-09-22 22:44:04 +00:00
Ian Lance Taylor
6cb15b7f89 Add licensing text to every source file. 2007-09-22 21:02:10 +00:00
Ian Lance Taylor
537b5f51e5 Add bootstrap test. 2007-09-22 20:11:12 +00:00
Ian Lance Taylor
d4f5281bde It's OK to have a version if we have an existing symbol. 2007-09-22 20:08:16 +00:00
Ian Lance Taylor
42e3fe0dd9 We don't need a hash table mapping input locations to strings. 2007-09-22 05:38:12 +00:00
Ian Lance Taylor
e214a02b9b From Andrew Chatham: Make File_read::View::data_ a const pointer. 2007-09-22 05:03:56 +00:00
Ian Lance Taylor
bfd58944a6 Define __start and __stop symbols. 2007-09-22 04:42:09 +00:00
Ian Lance Taylor
306d9ef048 Canonicalize name and version when working with special symbols. 2007-09-22 04:40:13 +00:00
Ian Lance Taylor
cddcc9d6b0 Update. 2007-09-22 04:38:33 +00:00
Ian Lance Taylor
04df9a5751 Fix some errors in symbol placement. 2007-09-22 04:38:13 +00:00
Ian Lance Taylor
377caf49a5 From Craig Silverstein: Only sort for suffixes with -O2. 2007-09-21 15:54:07 +00:00
Ian Lance Taylor
80576242ab Initialize count_ field, tweak parameters testing. 2007-09-21 07:34:51 +00:00
Ian Lance Taylor
7e1edb9089 Add global parameters. 2007-09-21 07:20:01 +00:00
Ian Lance Taylor
be9d5a933e Update for have_code_fill field. 2007-09-21 06:25:35 +00:00
Ian Lance Taylor
6724bacc98 Actually define GOLD_GOLD_H multiple inclusion macro. 2007-09-21 06:25:19 +00:00
Ian Lance Taylor
a8b2552e07 Set Stringpool zero_null option via a call, not a default constructor
argument.
2007-09-21 06:12:32 +00:00
Ian Lance Taylor
ca3a67a5cf From Craig Silverstein: Add -O option. 2007-09-21 05:43:33 +00:00
Ian Lance Taylor
c51e6221b8 Use nops when doing alignment padding between code sections. 2007-09-21 05:31:19 +00:00
Ian Lance Taylor
8c838dbd52 Fix comment. 2007-09-20 19:31:54 +00:00
Ian Lance Taylor
cba134d613 From Cary Coutant: only check for a linkonce section if the SHF_GROUP
flag is clear.
2007-09-20 06:02:06 +00:00
Ian Lance Taylor
a93d6d0708 Rework patch to check by both armap entry and archive offset. Also,
preserve information for --group.
2007-09-20 05:56:14 +00:00
Ian Lance Taylor
e243ffc667 From Craig Silverstein: rework seen handling to be based on archive
offsets rather than entries in archive symbol table.
2007-09-20 05:43:14 +00:00
Ian Lance Taylor
192f9b8501 Fix handling of --eh-frame-hdr option. 2007-09-19 23:50:56 +00:00
Ian Lance Taylor
bc56b3fb3a Note that a Stringpool keeps a copy of a string. 2007-09-19 20:44:15 +00:00
Ian Lance Taylor
835965e646 Better comments for Stringpool. 2007-09-19 17:38:00 +00:00
Ian Lance Taylor
86f2e68346 Let special symbols override existing symbols rather than
reinitializing them.
2007-09-19 06:02:29 +00:00
Ian Lance Taylor
8ae3da9046 Add control over template specialization. 2007-09-19 06:01:35 +00:00