Commit graph

323 commits

Author SHA1 Message Date
Ian Lance Taylor
516cb3d01e Support --oformat binary. 2008-02-07 07:33:46 +00:00
Ian Lance Taylor
1ef1f3d387 Ignore version scripts for relocatable links. 2008-02-07 05:45:07 +00:00
Ian Lance Taylor
5fe2a0f55b Even when stripping all symbols, we need to write out the dynamic
symbol table.
2008-02-07 04:35:41 +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
fbfba50887 Support creating empty output when there are no input objects. 2008-02-06 20:32:10 +00:00
Ian Lance Taylor
755ab8af10 Fix group signature handling for relocatable link, add bootstrap
relocatable test.
2008-02-06 19:32:32 +00:00
Ian Lance Taylor
6a74a71947 Initial -r support. 2008-02-06 08:13:50 +00:00
Ian Lance Taylor
56fd6e75db From Ollie Wild: add missing backquote to install-exec-local. 2008-02-05 22:22:09 +00:00
Ian Lance Taylor
7d26c6cc60 Print PHDRS clause for debugging. 2008-02-04 23:53:15 +00:00
Ian Lance Taylor
1c4f3631bd Implement PHDRS. 2008-02-04 22:54:31 +00:00
Ian Lance Taylor
15893b88b0 Treat an empty directory argument as the current directory. 2008-02-04 22:44:35 +00:00
Ian Lance Taylor
fc955173bb From Craig Silverstein: support @file expansion. 2008-02-04 17:26:12 +00:00
Ian Lance Taylor
3802b2dd6b Implement SIZEOF_HEADERS, section constraints, other minor linker
script items.
2008-02-04 06:45:50 +00:00
Ian Lance Taylor
7cc77b5a09 Fully implement SECTIONS clause. 2008-02-04 05:46:12 +00:00
Ian Lance Taylor
a445fddf82 Fully implement the SECTIONS clause. 2008-02-04 05:43:05 +00:00
Ian Lance Taylor
1cac254c18 Don't record file offset for CIEs. 2008-02-02 06:50:45 +00:00
Ian Lance Taylor
65778909ad From Cary Coutant: Ignore hidden symbols in a dynamic object. 2008-02-01 00:42:24 +00:00
Ian Lance Taylor
03e8f2b225 From Cary Coutant: Fix a case in which code takes the address of a
function and also calls it directly.
2008-02-01 00:39:10 +00:00
Ian Lance Taylor
8bc7a1c115 Permit ordinary object files in groups. 2008-01-26 01:35:10 +00:00
Ian Lance Taylor
9b07f471e3 Don't pass around the target in order to define symbols; get it from
the parameters instead.
2008-01-26 01:17:45 +00:00
Ian Lance Taylor
1dd940af63 From Craig Silverstein: Simplify Version_script_info::symbol_is_local
interface.
2008-01-24 22:35:39 +00:00
Ian Lance Taylor
5240d12aa0 From Cary Coutant: Fix last patch. 2008-01-24 00:51:57 +00:00
Ian Lance Taylor
55a934330a Originally from Craig Silverstein, with changes: support using a
version script to force symbols to be local.
2008-01-24 00:15:00 +00:00
Ian Lance Taylor
e4967d85cb Use string instead of STRING, so that we handled QUOTED_STRING. 2008-01-23 19:31:56 +00:00
Ian Lance Taylor
0700cf329e From Cary Coutant: Fix mixing PIC and non-PIC relocs in the same
shared library.
2008-01-23 07:15:59 +00:00
Ian Lance Taylor
7d32031390 Add explicit dependencies on yyscript.h to make sure that it is
built.
2008-01-23 02:13:38 +00:00
Ian Lance Taylor
494e05f440 Parse a SECTIONS clause in a linker script. 2008-01-23 01:31:13 +00:00
Ian Lance Taylor
0c0a741125 Include <vector>. 2008-01-22 22:50:31 +00:00
Ian Lance Taylor
cbcc4140e2 From Craig Silverstein: Optionally print command line for easier
debugging.
2008-01-18 23:41:31 +00:00
Ian Lance Taylor
106002249a From Craig Silverstein: Handle quoted strings differently in version
scripts, and handle extern "C++" in the middle of a block.
2008-01-18 23:35:09 +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
091244672e From Andrew Chatham and Craig Silverstein: Add support for version
scripts.
2008-01-15 23:41:28 +00:00
Ian Lance Taylor
e5756efb6d Support assignments and expressions in linker scripts. 2008-01-09 19:57:45 +00:00
Ian Lance Taylor
2dd3e587bd Report linker script errors with line numbers. Ignore OUTPUT_FORMAT
with three arguments, and ignore OUTPUT_ARCH.
2008-01-07 05:19:02 +00:00
Ian Lance Taylor
d391083d3c Add support for -e and for ENTRY in linker scripts. 2008-01-06 00:47:10 +00:00
Ian Lance Taylor
fced7afdce Add -h/-soname option. 2008-01-04 05:35:24 +00:00
Ian Lance Taylor
1bedcac52a Don't create the postprocessing buffer if it already exists. 2008-01-04 05:04:56 +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
cf88803ada Use a simpler hash function. 2007-12-22 01:53:39 +00:00
Ian Lance Taylor
06a9731e8a Correct contributor name on new tests, remove #if 0 code. 2007-12-22 00:50:43 +00:00
Ian Lance Taylor
99f8facac9 From Cary Coutant: Fix handling of versioned symbols, add some tests. 2007-12-21 23:31:19 +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
a9a60db689 Speed up relocations against local symbols in merged sections. 2007-12-21 21:19:45 +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
1e9836570f Update comments about output offsets and merged input sections. 2007-12-20 16:27:34 +00:00
Ian Lance Taylor
4106a0814a Remove one inline. 2007-12-20 01:32:10 +00:00
Ian Lance Taylor
8f00aeb8a6 Make functions on hot path inline. Remove a mistaken virtual
declaration.
2007-12-20 01:29:04 +00:00
Ian Lance Taylor
2030fba084 Move Stringpool offsets into a chunked_vector indexed by keys. 2007-12-19 01:23:46 +00:00