Ian Lance Taylor
18e6b24e63
* symtab.cc (Symbol_table::add_from_object): Handle saw_undefined_
...
and commons_ correctly when NAME/VERSION does not override
NAME/NULL.
* testsuite/ver_test_6.c: New file.
* testsuite/Makefile.am (check_PROGRAMS): Add ver_test_6
(ver_test_6_SOURCES, ver_test_6_DEPENDENCIES): New variables.
(ver_test_6_LDFLAGS, ver_test_6_LDADD): New variables.
2008-03-27 18:19:09 +00:00
Ian Lance Taylor
5871526fc2
* symtab.cc (Symbol_table::add_from_relobj): Don't set the version
...
of an undefined symbol from a version script.
* testsuite/Makefile.am (ver_test_5.so): New target.
(ver_test_5.o): New target.
(check_SCRIPTS): Add ver_test_5.sh.
(check_DATA): Add ver_test_5.syms.
(ver_test_5.syms): New target.
* testsuite/ver_test_5.cc: New file.
* testsuite/ver_test_5.script: New file.
* testsuite/ver_test_5.sh: New file.
* Makefile.in, testsuite/Makefile.in: Rebuild.
2008-03-27 06:11:57 +00:00
Ian Lance Taylor
be3e620119
Don't get confused about whether a symbol is the default version if we
...
see a later reference to it. Add tests for this case.
2008-03-14 05:57:19 +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
6a74a71947
Initial -r support.
2008-02-06 08:13:50 +00:00
Ian Lance Taylor
1c4f3631bd
Implement PHDRS.
2008-02-04 22:54:31 +00:00
Ian Lance Taylor
a445fddf82
Fully implement the SECTIONS clause.
2008-02-04 05:43:05 +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
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
494e05f440
Parse a SECTIONS clause in a linker script.
2008-01-23 01:31:13 +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
99f8facac9
From Cary Coutant: Fix handling of versioned symbols, add some tests.
2007-12-21 23:31:19 +00:00
Ian Lance Taylor
0e470e5c90
Add some missing dependencies for the new linker.
2007-12-14 05:27:45 +00:00
Ian Lance Taylor
c03c769248
From Cary Coutant: Test TLS initial-exec model.
2007-12-11 23:33:11 +00:00
Ian Lance Taylor
351a80002a
From Craig Silverstein: Reorganize testsuite Makefile.am.
2007-12-06 17:07:24 +00:00
Ian Lance Taylor
7bf1f8020f
From Cary Coutant: More support for generating shared libraries.
2007-12-06 05:55:50 +00:00
Ian Lance Taylor
43771f7638
From Craig Silverstein: Test some flags.
2007-12-05 01:10:16 +00:00
Ian Lance Taylor
be00d4e7ff
More -fPIC options.
2007-12-01 06:53:32 +00:00
Ian Lance Taylor
763277c3c4
Add missing space.
2007-12-01 06:51:45 +00:00
Ian Lance Taylor
c92003e082
Compile shared library code with -fPIC. Also, alphabetize.
2007-12-01 06:50:09 +00:00
Ian Lance Taylor
79e052eafd
From Craig Silverstein: Better handling of ODR violations which are
...
not in a function.
2007-11-28 18:01:06 +00:00
Ian Lance Taylor
eb01e199fd
If generating a .err file fails, remove it.
2007-11-14 18:37:00 +00:00
Ian Lance Taylor
9a2d698415
Add heuristics for undefined symbol warnings.
2007-11-14 16:53:25 +00:00
Ian Lance Taylor
3e6fe5ae73
Comment out undef_symbol.err for now.
2007-11-14 15:24:08 +00:00
Ian Lance Taylor
1ce71f59c7
Default to --allow-shlib-undefined for now.
2007-11-14 09:39:13 +00:00
Ian Lance Taylor
e2827e5f52
Warn about undefined references in shared libraries if we have seen
...
all the DT_NEEDED entries for that library.
2007-11-14 07:34:53 +00:00
Ian Lance Taylor
a55ce7febf
From Craig Silverstein: Rework debug info code a bit, add option for
...
ODR violations, add test case.
2007-11-14 01:03:01 +00:00
Ian Lance Taylor
386c048c7a
Correct handling of GOT references in a regular object.
2007-11-12 17:51:55 +00:00
Ian Lance Taylor
d12348b848
From Craig Silverstein: Clean up make rules for debug_msg.
2007-11-09 23:35:19 +00:00
Ian Lance Taylor
f0323c2f68
From Craig Silverstein: Add test for debug messages.
2007-11-09 23:19:11 +00:00
Ian Lance Taylor
fa99aa0984
Use AC_GNU_SOURCE.
2007-10-24 18:11:23 +00:00
Ian Lance Taylor
fe9a4c1201
Add infrastructure for threading support.
2007-10-17 06:24:50 +00:00
Ian Lance Taylor
a360aedd0f
From Craig Silverstein: check that we get environ right.
2007-10-16 23:09:45 +00:00
Ian Lance Taylor
097ec620e1
Only run static TLS tests on glibc 2.4 or later.
2007-10-14 03:57:22 +00:00
Ian Lance Taylor
e03748586c
From Craig Silverstein: expand the TLS test to a second file, to test
...
IE to LE conversion.
2007-10-12 17:32:20 +00:00
Ian Lance Taylor
f958d5fc53
Test merging of string constants.
2007-10-07 17:20:18 +00:00
Ian Lance Taylor
6eee141ff6
Add a TLS test case.
2007-10-07 17:10:10 +00:00
Ian Lance Taylor
ad2d6943a4
Full support for --sysroot.
2007-10-04 05:49:04 +00:00
Ian Lance Taylor
63402fe413
From Craig Silverstein: don't run function pointer non-PIC tests when
...
they won't work.
2007-10-02 22:45:07 +00:00
Ian Lance Taylor
3151305a47
Add basic exception frame header, plus test.
2007-09-26 05:44:38 +00:00
Ian Lance Taylor
3bd52c2885
Add two file test.
2007-09-23 05:35:51 +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
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
537b5f51e5
Add bootstrap test.
2007-09-22 20:11:12 +00:00
Ian Lance Taylor
5a6f7e2db5
Added a testsuite. More support for COPY relocations.
2006-11-30 23:52:50 +00:00