PR ld/20828: Fix linker script symbols wrongly forced local with section GC
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
2
3 PR ld/20828
4 * testsuite/ld-elf/pr20828-1.sd: New test.
5 * testsuite/ld-elf/pr20828-2a.sd: New test.
6 * testsuite/ld-elf/pr20828-2b.sd: New test.
7 * testsuite/ld-elf/pr20828.ld: New test linker script.
8 * testsuite/ld-elf/pr20828.ver: New test version script.
9 * testsuite/ld-elf/pr20828.s: New test source.
10 * testsuite/ld-elf/shared.exp: Run the new test.
11
12 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
13
14 PR gas/20649
15 * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
16 relocation pairing link test.
17
18 2017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
19
20 * testsuite/ld-unique/unique.exp: Filter shared lib cases in
21 uniqeue.exp, as not all targets have such support.
22
23 2017-01-16 Nick Clifton <nickc@redhat.com>
24
25 * po/sv.po: Updated Swedish translation.
26
27 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
28
29 PR ld/21038
30 * testsuite/ld-x86-64/pr21038b.d: Updated.
31 * testsuite/ld-x86-64/pr21038c.d: New file.
32 * testsuite/ld-x86-64/pr21038c.s: Likewise.
33 * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
34
35 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR ld/21038
38 * testsuite/ld-x86-64/pr21038a.d: New file.
39 * testsuite/ld-x86-64/pr21038a.s: Likewise.
40 * testsuite/ld-x86-64/pr21038b.d: Likewise.
41 * testsuite/ld-x86-64/pr21038b.s: Likewise.
42 * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
43
44 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
45
46 * configure.tgt: Add entries for x86-redox and x86_64-redox.
47
48 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
49
50 * testsuite/ld-x86-64/pr20830b.d: Updated.
51
52 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
53
54 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
55 * testsuite/ld-x86-64/pr20830.d: Renamed to ...
56 * testsuite/ld-x86-64/pr20830a.d: This. Updated.
57 * testsuite/ld-x86-64/pr20830b.d: New file.
58 * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
59 Run pr20830b.
60
61 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
62
63 PR ld/20830
64 * testsuite/ld-i386/i386.exp: Run pr20830.
65 * testsuite/ld-x86-64/x86-64.exp: Likewise.
66 * testsuite/ld-i386/pr20830.d: New file.
67 * testsuite/ld-i386/pr20830.s: Likewise.
68 * testsuite/ld-x86-64/pr20830.d: Likewise.
69 * testsuite/ld-x86-64/pr20830.s: Likewise.
70
71 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
72
73 * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
74 -Wl,--as-needed to $CC.
75 * testsuite/ld-i386/tls.exp: Likewise.
76
77 2017-01-10 Nick Clifton <nickc@redhat.com>
78
79 * po/sv.po: Updated Swedish translation.
80
81 2016-12-09 Graham Markall <graham.markall@embecosm.com>
82 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * Makefile.am: Add earclinux_nps.c target and add to
85 ALL_EMULATION_SOURCES.
86 * Makefile.in: Likewise, regenerated.
87 * configure.tgt: Add arclinux_nps as an extra emulation for
88 arc*-*-elf* and arc*-*-linux*.
89 * emulparams/arc-nps.sh: New file.
90 * emulparams/arclinux_nps.sh: New file.
91 * testsuite/ld-arc/arclinux-nps.d,
92 * testsuite/ld-arc/arclinux-nps.s: New test.
93
94 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
95
96 PR 20958
97 * ldlex.l (option): Add noyywrap
98 (yywrap): Delete.
99 * ldlex.h (yywrap): Delete prototype.
100
101 2017-01-04 Alan Modra <amodra@gmail.com>
102
103 * testsuite/ld-elf/audit.exp: Check for shared lib support.
104 * testsuite/ld-elf/compress.exp: Likewise.
105 * testsuite/ld-elf/dwarf.exp: Likewise.
106 * testsuite/ld-elf/shared.exp: Likewise.
107 * testsuite/ld-elf/wrap.exp: Likewise.
108 * testsuite/ld-ifunc/ifunc.exp: Likewise.
109 * testsuite/ld-plugin/lto.exp: Check $CXX exists.
110
111 2017-01-03 Alan Modra <amodra@gmail.com>
112
113 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
114 allow test to continue after compilation errors.
115 (run_cc_link_tests): Likewise.
116
117 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
118
119 * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
120 (epruelf.c): Remove unneeded dependencies.
121 * Makefile.in: Regenerate
122
123 2017-01-03 Alan Modra <amodra@gmail.com>
124
125 * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
126 to various tests.
127 * testsuite/ld-elfweak/elfweak.exp: Likewise.
128 * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
129
130 2017-01-03 Alan Modra <amodra@gmail.com>
131
132 * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
133 * testsuite/ld-pie/pie.exp: Likewise.
134 * testsuite/ld-plugin/lto.exp: Likewise.
135
136 2017-01-02 Alan Modra <amodra@gmail.com>
137
138 * Makefile.am (bootstrap): Delete rule.
139 (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
140 (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
141 (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
142 * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
143 (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
144 * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
145 * Makefile.in: Regenerate.
146 * configure: Regenerate.
147 * testsuite/config/default.exp (get_link_files): Delete.
148 (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
149 define.
150 (ld_simple_link): Delete.
151 * testsuite/lib/ld-lib.exp (default_ld_link): Delete
152 (default_ld_simple_link): Rename to default_ld_link.
153 (ld_simple_link_defsyms): Rename to ld_link_defsyms.
154 (run_ld_link_tests): Use ld_link, not ld_simple_link.
155 (run_cc_link_tests): Likewise.
156 (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
157 Don't run exe when not native, and return unsupported.
158 * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
159 Link ld1 etc. using $CC.
160 * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
161 * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
162 * testsuite/ld-cygwin/exe-export.exp: Likewise.
163 * testsuite/ld-elf/binutils.exp: Likewise.
164 * testsuite/ld-elf/eh-group.exp: Likewise.
165 * testsuite/ld-elf/exclude.exp: Likewise.
166 * testsuite/ld-elf/frame.exp: Likewise.
167 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
168 * testsuite/ld-elf/tls_common.exp: Likewise.
169 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
170 * testsuite/ld-fastcall/fastcall.exp: Likewise.
171 * testsuite/ld-gc/gc.exp: Likewise.
172 * testsuite/ld-ifunc/binutils.exp: Likewise.
173 * testsuite/ld-mep/mep.exp: Likewise.
174 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
175 * testsuite/ld-mn10300/mn10300.exp: Likewise.
176 * testsuite/ld-nios2/nios2.exp: Likewise.
177 * testsuite/ld-pe/pe-compile.exp: Likewise.
178 * testsuite/ld-pe/pe-run.exp: Likewise.
179 * testsuite/ld-pe/pe-run2.exp: Likewise.
180 * testsuite/ld-plugin/plugin.exp: Likewise.
181 * testsuite/ld-scripts/align.exp: Likewise.
182 * testsuite/ld-scripts/alignof.exp: Likewise.
183 * testsuite/ld-scripts/assert.exp: Likewise.
184 * testsuite/ld-scripts/defined.exp: Likewise.
185 * testsuite/ld-scripts/extern.exp: Likewise.
186 * testsuite/ld-scripts/log2.exp: Likewise.
187 * testsuite/ld-scripts/map-address.exp: Likewise.
188 * testsuite/ld-scripts/phdrs.exp: Likewise.
189 * testsuite/ld-scripts/phdrs2.exp: Likewise.
190 * testsuite/ld-scripts/script.exp: Likewise.
191 * testsuite/ld-scripts/section-flags.exp: Likewise.
192 * testsuite/ld-scripts/sizeof.exp: Likewise.
193 * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
194 * testsuite/ld-scripts/weak.exp: Likewise.
195 * testsuite/ld-selective/selective.exp: Likewise.
196 * testsuite/ld-sh/sh.exp: Likewise.
197 * testsuite/ld-sh/sh64/relax.exp: Likewise.
198 * testsuite/ld-sh/sh64/relfail.exp: Likewise.
199 * testsuite/ld-srec/srec.exp: Likewise.
200 * testsuite/ld-tic6x/tic6x.exp: Likewise.
201 * testsuite/ld-undefined/weak-undef.exp: Likewise.
202 * testsuite/ld-versados/versados.exp: Likewise.
203 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
204 * testsuite/ld-xtensa/coalesce.exp: Likewise.
205 * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
206 * testsuite/ld-xtensa/lcall.exp: Likewise.
207 * testsuite/ld-elf/audit.exp: Run non-native too.
208 * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
209 gcc -Wl, options.
210 * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
211 not ld_simple_link. Add -Wl,--no-as-needed to some tests.
212 * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
213 * testsuite/ld-elf/indirect.exp: Run non-native too. Add
214 -Wl,--no-as-needed to most tests.
215 * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
216 to simplify quoting. Set run_tests using [list] rather than
217 brace assignment to expand $extralibs. Add -Wl,--no-as-needed
218 to many test. Prefix ld options with -Wl,.
219 (mix_pic_and_non_pic): Don't run exe if not native.
220 * testsuite/ld-elf/wrap.exp: Run non-native too. Add
221 -Wl,--no-as-needed and prefix ld options with -Wl,.
222 * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
223 not ld_simple_link.
224 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
225 (visibility_test): Don't run exe if not native.
226 * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
227 not ld_simple_link.
228 (build_exec): Don't run exe if not native.
229 * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
230 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
231 to some tests and prefix ld options with -Wl,. Expect GNU
232 for hppa-linux even when no ifuncs. Delete cleanup.
233 * testsuite/ld-pie/pie.exp: Run non-native too.
234 * testsuite/ld-plugin/lto.exp: Likewise.
235 * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
236 not ld_simple_link.
237 (shared_test): Don't run exe if not native.
238 * testsuite/ld-size/size.exp: Run non-native too. Add
239 -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
240 * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
241 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
242 to some tests and prefix ld options with -Wl,. Expect GNU
243 for hppa-linux even when no unique syms. Delete cleanup.
244 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
245 tests and prefix ld options with -Wl,.
246 * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
247 Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
248
249 2017-01-02 Alan Modra <amodra@gmail.com>
250
251 * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
252
253 2017-01-02 Alan Modra <amodra@gmail.com>
254
255 PR ld/21000
256 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
257 (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
258 * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
259 is already defined.
260
261 2017-01-02 Alan Modra <amodra@gmail.com>
262
263 Update year range in copyright notice of all files.
264
265 For older changes see ChangeLog-2016
266 \f
267 Copyright (C) 2017 Free Software Foundation, Inc.
268
269 Copying and distribution of this file, with or without modification,
270 are permitted in any medium without royalty provided the copyright
271 notice and this notice are preserved.
272
273 Local Variables:
274 mode: change-log
275 left-margin: 8
276 fill-column: 74
277 version-control: never
278 End:
This page took 0.036232 seconds and 4 git commands to generate.