bfd_error_handler bfd_vma and bfd_size_type args
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2017-07-12 Alan Modra <amodra@gmail.com>
2
3 * testsuite/ld-arc/nps-1b.err: Update.
4 * testsuite/ld-x86-64/ilp32-11.d: Update.
5
6 2017-07-11 H.J. Lu <hongjiu.lu@intel.com>
7
8 * testsuite/ld-selective/selective.exp: Support single digit
9 GCC version.
10
11 2017-07-11 Jiong Wang <jiong.wang@arm.com>
12
13 * testsuite/ld-aarch64/dt_textrel.d: Use "#pass" instead of ".*" to
14 filter out remaining lines.
15
16 2017-07-07 Maciej W. Rozycki <macro@imgtec.com>
17
18 * emultempl/mipself.em (mips_before_allocation): Avoid ELF
19 processing if not MIPS ELF.
20 * testsuite/ld-mips-elf/binary.d: New test.
21 * testsuite/ld-mips-elf/binary.ld: New test linker script.
22 * testsuite/ld-mips-elf/binary.s: New test source.
23 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
24
25 2017-07-07 Alan Modra <amodra@gmail.com>
26
27 * testsuite/ld-powerpc/ppc476-shared.lnk: Align .bss.
28 * testsuite/ld-powerpc/ppc476-shared.d: Adjust.
29 * testsuite/ld-powerpc/ppc476-shared2.d: Adjust.
30
31 2017-07-07 Alan Modra <amodra@gmail.com>
32
33 * Makefile.am (eelf64_s390.c): Depend on emultempl/s390.em.
34
35 2017-07-04 Tristan Gingold <gingold@adacore.com>
36
37 * configure: Regenerate.
38
39 2017-07-04 Tristan Gingold <gingold@adacore.com>
40
41 * NEWS: Add marker for 2.29.
42
43 2017-07-03 Tristan Gingold <gingold@adacore.com>
44
45 * po/ld.pot: Regenerate.
46
47 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
48
49 * testsuite/ld-mips-elf/relax-offset.dd: New test.
50 * testsuite/ld-mips-elf/relax-offset.gd: New test.
51 * testsuite/ld-mips-elf/relax-offset-umips.dd: New test.
52 * testsuite/ld-mips-elf/relax-offset-umips.gd: New test.
53 * testsuite/ld-mips-elf/relax-offset.ld: New test linker script.
54 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
55 (prune_warnings): New temporary procedure.
56
57 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
58
59 * testsuite/ld-mips-elf/mips-elf-flags.exp: Add interAptiv MR2
60 tests.
61
62 2017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
63
64 PR ld/13402
65 * testsuite/ld-avr/pr13402.d: New test.
66 * testsuite/ld-avr/pr13402.s: New test.
67
68 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
69
70 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
71 Add an `args' final argument and examination code for `readelf
72 -A' output. Update procedure description accordingly.
73
74 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
75
76 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
77 Use `remote_exec' to call `readelf'. Log the command issued.
78
79 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
80
81 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
82 Use `readelf -h' rather than `readelf --headers'.
83
84 2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
85
86 * testsuite/ld-mips-elf/lsi-4010-isa.d: New test.
87 * ld/testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
88
89 2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
90
91 * testsuite/ld-elf/sizeofa.d: Also accept the OBJECT type for
92 the symbols examined.
93 * testsuite/ld-elf/sizeofc.d: Likewise.
94 * testsuite/ld-elf/startofa.d: Likewise.
95 * testsuite/ld-elf/startofc.d: Likewise.
96
97 2017-06-26 Alan Modra <amodra@gmail.com>
98
99 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Skip
100 --just-syms bfds when looking for a place to attach .note.gnu.build-id
101 and .eh_frame_hdr sections. Delete dead code.
102
103 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
104
105 * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 11): New test.
106 (EABI attribute merging 12): Likewise.
107 * testsuite/ld-arm/attr-merge-11a.s: New file.
108 * testsuite/ld-arm/attr-merge-11b.s: New file.
109 * testsuite/ld-arm/attr-merge-11.attr: New file.
110 * testsuite/ld-arm/attr-merge-12a.s: New file.
111 * testsuite/ld-arm/attr-merge-12b.s: New file.
112 * testsuite/ld-arm/attr-merge-12.attr: New file.
113
114 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
115
116 * testsuite/ld-i386/i386.exp: Run weakundef1 tests.
117 * testsuite/ld-i386/weakundef1.c: New file.
118
119 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
120
121 PR ld/21090
122 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Pass
123 $NOPIE_CFLAGS if non-PIE is required.
124
125 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
126
127 PR ld/21090
128 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
129 $NOPIE_LDFLAGS to "Run pr19031".
130
131 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
132
133 PR ld/21090
134 * testsuite/ld-gc/gc.exp: Compile tmpdir/pr14265.o with
135 $NOPIE_CFLAGS.
136 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
137 $NOPIE_LDFLAGS if non-PIE is required.
138 * testsuite/ld-i386/no-plt.exp (NOPIE_CFLAGS): New.
139 (NOPIE_LDFLAGS): Likewise.
140 Pass $NOPIE_LDFLAGS if non-PIE is required.
141 * testsuite/ld-shared/shared.exp: Compile tmpdir/sh1np.o with
142 $NOPIE_CFLAGS.
143
144 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
145
146 * NEWS: Mention -z shstk and GNU_PROPERTY_X86_FEATURE_1_SHSTK.
147 * emulparams/cet.sh (PARSE_AND_LIST_OPTIONS_CET): Add "-z shstk".
148 (PARSE_AND_LIST_ARGS_CASE_Z_CET): Support "-z shstk".
149 * ld.texinfo: Document -z shstk.
150 * testsuite/ld-i386/i386.exp: Run SHSTK tests.
151 * testsuite/ld-x86-64/x86-64.exp: Likewise.
152 * testsuite/ld-i386/property-x86-shstk.s: New file.
153 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
154 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
155 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
156 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
157 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
158 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
159 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
160 * testsuite/ld-x86-64/property-x86-shstk.s: Likewise.
161 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
162 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
163 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
164 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
165 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
166 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
167 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
168 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
169 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
170 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
171 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
172 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
173 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
174 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
175
176 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
177
178 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emulparams/cet.sh.
179 * Makefile.in: Regenerated.
180 * NEWS: Mention GNU_PROPERTY_X86_FEATURE_1_IBT, -z ibtplt
181 and -z ibt.
182 * emulparams/cet.sh: New file.
183 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
184 * testsuite/ld-i386/ibt-plt-1.s: Likewise.
185 * testsuite/ld-i386/ibt-plt-2.s: Likewise.
186 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
187 * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
188 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
189 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
190 * testsuite/ld-i386/ibt-plt-3.s: Likewise.
191 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
192 * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
193 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
194 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
195 * testsuite/ld-i386/plt-main-ibt.dd: Likewise.
196 * testsuite/ld-i386/plt-pie-ibt.dd: Likewise.
197 * testsuite/ld-i386/property-x86-empty.s: Likewise.
198 * testsuite/ld-i386/property-x86-ibt.s: Likewise.
199 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
200 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
201 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
202 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
203 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
204 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
205 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
206 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
207 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
208 * testsuite/ld-x86-64/ibt-plt-1.s: Likewise.
209 * testsuite/ld-x86-64/ibt-plt-2.s: Likewise.
210 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
211 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
212 * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
213 * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
214 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
215 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
216 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
217 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
218 * testsuite/ld-x86-64/ibt-plt-3.s: Likewise.
219 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
220 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
221 * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
222 * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
223 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
224 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
225 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
226 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
227 * testsuite/ld-x86-64/plt-main-ibt-now.rd: Likewise.
228 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Likewise.
229 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
230 * testsuite/ld-x86-64/property-x86-empty.s: Likewise.
231 * testsuite/ld-x86-64/property-x86-ibt.s: Likewise.
232 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
233 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
234 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
235 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
236 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
237 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
238 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
239 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
240 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
241 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
242 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
243 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
244 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
245 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
246 * emulparams/elf32_x86_64.sh: Source emulparams/cet.sh.
247 (TINY_READONLY_SECTION): Add .plt.sec.
248 * emulparams/elf_i386.sh: Likewise.
249 * emulparams/elf_x86_64.sh: Source emulparams/cet.sh.
250 * ld.texinfo: Document -z ibtplt and -z ibt.
251 * testsuite/ld-i386/i386.exp: Run IBT and IBT PLT tests.
252 * testsuite/ld-x86-64/x86-64.exp: Likewise.
253 * testsuite/ld-x86-64/pr21481b.S (check): Updated for x32.
254
255 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
256
257 PR ld/21090
258 * testsuite/ld-elf/shared.exp: Pass $NOPIE_CFLAGS and
259 $NOPIE_LDFLAGS if non-PIE is required.
260
261 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
262
263 PR ld/21090
264 * testsuite/ld-scripts/crossref.exp: Also pass $NOPIE_CFLAGS
265 to CC.
266
267 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
268
269 PR ld/21090
270 * testsuite/ld-size/size.exp: Pass $NOPIE_LDFLAGS to size-4a,
271 size-4b, size-5a, size-5b, size-6 and size-8 tests.
272 * testsuite/ld-srec/srec.exp (NOPIE_CFLAGS): New.
273 (NOPIE_LDFLAGS): Likewise.
274 (CC): Add $NOPIE_CFLAGS $NOPIE_LDFLAGS.
275 (CXX): Likewise.
276 * testsuite/ld-x86-64/no-plt.exp (NOPIE_CFLAGS): New.
277 (NOPIE_LDFLAGS): Likewise.
278 Pass $NOPIE_LDFLAGS to "No PLT (dynamic 1a)",
279 "No PLT (dynamic 1c)" and "Run pr20253-2f".
280 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS to
281 "Build gotpcrel1" and "Run pr19031".
282
283 2017-06-21 Alan Modra <amodra@gmail.com>
284
285 * testsuite/ld-powerpc/powerpc.exp: Run TOCSAVE tests.
286 * testsuite/ld-powerpc/tocsave1.s,
287 * testsuite/ld-powerpc/tocsave1a.d,
288 * testsuite/ld-powerpc/tocsave1s.d,
289 * testsuite/ld-powerpc/tocsave2.s,
290 * testsuite/ld-powerpc/tocsave2a.d,
291 * testsuite/ld-powerpc/tocsave2s.d,
292 * testsuite/ld-powerpc/tocsavelib.s: New files.
293
294 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
295
296 * Makefile.in: Add s390.em as build dependency.
297 * emulparams/elf64_s390.sh (EXTRA_EM_FILE): Add s390.em.
298 * emultempl/s390.em: New file.
299 * gen-doc.texi: Add documentation for --s390-pgste option.
300 * ld.texinfo: Likewise.
301
302 2017-06-19 H.J. Lu <hongjiu.lu@intel.com>
303
304 PR ld/21626
305 * testsuite/ld-i386/i386.exp: Run ld/21626 tests.
306 * testsuite/ld-x86-64/x86-64.exp: Likewise.
307
308 2017-06-18 Alan Modra <amodra@gmail.com>
309
310 * testsuite/lib/ld-lib.exp (is_underscore_target): New.
311 * testsuite/ld-elf/elf.exp (ASFLAGS): Define UNDERSCORE.
312 * testsuite/ld-elf/pr21562a.s: If UNDERSCORE defined,
313 reference sym with prefix.
314 * testsuite/ld-elf/pr21562b.s: Likewise.
315 * testsuite/ld-elf/sizeof.s: Likewise.
316 * testsuite/ld-elf/startof.s: Likewise.
317 * testsuite/ld-elf/pr14156a.d: Adjust for extra symbols.
318 * testsuite/ld-elf/pr21562a.d: Remove underscore target from
319 xfails, and match prefixed symbol.
320 * testsuite/ld-elf/pr21562b.d: Likewise.
321 * testsuite/ld-elf/pr21562c.d: Likewise.
322 * testsuite/ld-elf/pr21562d.d: Likewise.
323 * testsuite/ld-elf/pr21562e.d: Likewise.
324 * testsuite/ld-elf/pr21562f.d: Likewise.
325 * testsuite/ld-elf/pr21562g.d: Likewise.
326 * testsuite/ld-elf/pr21562h.d: Likewise.
327 * testsuite/ld-elf/pr21562i.d: Likewise.
328 * testsuite/ld-elf/pr21562j.d: Likewise.
329 * testsuite/ld-elf/pr21562k.d: Likewise.
330 * testsuite/ld-elf/pr21562l.d: Likewise.
331 * testsuite/ld-elf/pr21562m.d: Likewise.
332 * testsuite/ld-elf/pr21562n.d: Likewise.
333 * testsuite/ld-elf/sizeofa.d: Likewise.
334 * testsuite/ld-elf/sizeofb.d: Likewise.
335 * testsuite/ld-elf/sizeofc.d: Likewise.
336 * testsuite/ld-elf/startofa.d: Likewise.
337 * testsuite/ld-elf/startofb.d: Likewise.
338 * testsuite/ld-elf/startofc.d: Likewise.
339
340 2017-06-16 Alan Modra <amodra@gmail.com>
341
342 PR ld/20022
343 PR ld/21557
344 PR ld/21562
345 PR ld/21571
346 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't set
347 __start/__stop syms here.
348 * ldlang.c (lang_set_startof): Delete.
349 (start_stop_syms, start_stop_count, start_stop_alloc): New vars.
350 (lang_define_start_stop, lang_init_start_stop, foreach_start_stop,
351 undef_start_stop, lang_undef_start_stop, lang_init_startof_sizeof,
352 set_start_stop, lang_finalize_start_stop): New functions.
353 (lang_process): Call _start_stop functions.
354 * testsuite/ld-elf/pr21562a.d: Use xfail rather than notarget.
355 Correct typos and list of xfail targets.
356 * testsuite/ld-elf/pr21562b.d: Likewise.
357 * testsuite/ld-elf/pr21562c.d: Likewise.
358 * testsuite/ld-elf/pr21562d.d: Likewise.
359 * testsuite/ld-elf/pr21562e.d: Likewise.
360 * testsuite/ld-elf/pr21562f.d: Likewise.
361 * testsuite/ld-elf/pr21562g.d: Likewise.
362 * testsuite/ld-elf/pr21562h.d: Likewise.
363 * testsuite/ld-elf/pr21562i.d: Likewise.
364 * testsuite/ld-elf/pr21562j.d: Likewise.
365 * testsuite/ld-elf/pr21562k.d: Likewise.
366 * testsuite/ld-elf/pr21562l.d: Likewise.
367 * testsuite/ld-elf/pr21562m.d: Likewise.
368 * testsuite/ld-elf/pr21562n.d: Likewise.
369 * testsuite/ld-elf/sizeofa.d: Likewise. Adjust to pass for generic ELF.
370 * testsuite/ld-elf/sizeofb.d: Likewise.
371 * testsuite/ld-elf/startofa.d: Likewise.
372 * testsuite/ld-elf/startofb.d: Likewise.
373
374 2017-06-16 Jiong Wang <jiong.wang@arm.com>
375
376 * testsuite/ld-aarch64/aarch64-elf.exp: Update test name
377 * testsuite/ld-aarch64/pcrel.s: Add new testcases.
378 * testsuite/ld-aarch64/pcrel_pic_undefined.d: Update the expected
379 warnings.
380 * testsuite/ld-aarch64/pcrel_pic_defined_local.d: Rename ...
381 * testsuite/ld-aarch64/pcrel_pic_defined.d: ... to this.
382 Update expected warnings.
383
384 2017-06-15 H.J. Lu <hongjiu.lu@intel.com>
385
386 * exsup.c (elf_shlib_list_options): Display "-z stack-size=SIZE"
387 instead of "-z stacksize=SIZE".
388
389 2017-06-15 Jiong Wang <jiong.wang@arm.com>
390
391 * testsuite/ld-aarch64/copy-reloc-exe-2.s: New test source file.
392 * testsuite/ld-aarch64/copy-reloc-2.d: New test.
393 * testsuite/ld-aarch64/copy-reloc-exe-eliminate.s: New test source file.
394 * testsuite/ld-aarch64/copy-reloc-eliminate.d: New test.
395 * testsuite/ld-aarch64/copy-reloc-so.s: Define new global objects.
396 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
397
398 2017-06-14 Nick Clifton <nickc@redhat.com>
399
400 PR binutils/21580
401 * testsuite/ld-nds32/diff.d: Adjust expected output.
402
403 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
404
405 PR ld/20022
406 * testsuite/ld-gc/pr20022.d: Skip on targets without dynamic
407 relocations in .text section.
408
409 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
410
411 * testsuite/ld-elf/pr21562a.d: Skip on targets with leading char
412 in in symbol name or without --gc-sections.
413 * testsuite/ld-elf/pr21562b.d: Likewise.
414 * testsuite/ld-elf/pr21562c.d: Likewise.
415 * testsuite/ld-elf/pr21562d.d: Likewise.
416 * testsuite/ld-elf/pr21562i.d: Likewise.
417 * testsuite/ld-elf/pr21562j.d: Likewise.
418 * testsuite/ld-elf/pr21562k.d: Likewise.
419 * testsuite/ld-elf/pr21562l.d: Likewise.
420 * testsuite/ld-elf/pr21562m.d: Likewise.
421 * testsuite/ld-elf/pr21562n.d: Likewise.
422 * testsuite/ld-elf/pr21562e.d: Skip on targets with leading char
423 in symbol name.
424 * testsuite/ld-elf/pr21562f.d: Likewise.
425 * testsuite/ld-elf/pr21562g.d: Likewise.
426 * testsuite/ld-elf/pr21562h.d: Likewise.
427
428 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
429
430 * testsuite/ld-gc/pr20022a.s: Add size to bar.
431
432 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
433
434 * testsuite/ld-elf/sizeofa.d: Skip on targets with leading char
435 in symbol name.
436 * testsuite/ld-elf/sizeofb.d: Likewise.
437 * testsuite/ld-elf/startofa.d: Likewise.
438 * testsuite/ld-elf/startofb.d: Likewise.
439
440 2017-06-14 Georg-Johann Lay <gjl@gcc.gnu.org>
441
442 PR ld/21583
443 * scripttempl/avr.sc (.jumptables): Move down in text section.
444 (.hightext): New in text.
445
446 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
447
448 * configure.tgt (epiphany-*-elf): Accept epiphany-*-*.
449
450 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
451
452 * ldlang.c (lang_set_startof): Skip if config.build_constructors
453 is FALSE.
454 * testsuite/ld-elf/sizeofc.d: New file.
455 * testsuite/ld-elf/startofc.d: Likewise.
456
457 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
458
459 * testsuite/ld-elf/sizeof.d: Renamed to ...
460 * testsuite/ld-elf/sizeofa.d: This. Updated.
461 * testsuite/ld-elf/startof.d: Renamed to ...
462 * testsuite/ld-elf/startofa.d: This. Updated.
463 * testsuite/ld-elf/sizeofb.d: New file.
464 * testsuite/ld-elf/startofb.d: Likewise.
465
466 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
467
468 PR ld/20022
469 PR ld/21557
470 PR ld/21562
471 PR ld/21571
472 * ld.texinfo: Update __start_SECNAME/__stop_SECNAME symbols.
473 * ldlang.c (lang_insert_orphan): Move handling of __start_SECNAME
474 and __stop_SECNAME symbols to ...
475 (lang_set_startof): Here. Also define __start_SECNAME and
476 __stop_SECNAME for -Ur.
477 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Mark
478 referenced __start_SECNAME and __stop_SECNAME symbols as hidden
479 and set start_stop for garbage collection.
480 * testsuite/ld-elf/pr21562a.d: New file.
481 * testsuite/ld-elf/pr21562a.s: Likewise.
482 * testsuite/ld-elf/pr21562a.t: Likewise.
483 * testsuite/ld-elf/pr21562b.d: Likewise.
484 * testsuite/ld-elf/pr21562b.s: Likewise.
485 * testsuite/ld-elf/pr21562b.t: Likewise.
486 * testsuite/ld-elf/pr21562c.d: Likewise.
487 * testsuite/ld-elf/pr21562c.t: Likewise.
488 * testsuite/ld-elf/pr21562d.d: Likewise.
489 * testsuite/ld-elf/pr21562d.t: Likewise.
490 * testsuite/ld-elf/pr21562e.d: Likewise.
491 * testsuite/ld-elf/pr21562f.d: Likewise.
492 * testsuite/ld-elf/pr21562g.d: Likewise.
493 * testsuite/ld-elf/pr21562h.d: Likewise.
494 * testsuite/ld-elf/pr21562i.d: Likewise.
495 * testsuite/ld-elf/pr21562j.d: Likewise.
496 * testsuite/ld-elf/pr21562k.d: Likewise.
497 * testsuite/ld-elf/pr21562l.d: Likewise.
498 * testsuite/ld-elf/pr21562m.d: Likewise.
499 * testsuite/ld-elf/pr21562n.d: Likewise.
500 * testsuite/ld-gc/pr20022.d: Likewise.
501 * testsuite/ld-gc/pr20022a.s: Likewise.
502 * testsuite/ld-gc/pr20022b.s: Likewise.
503 * testsuite/ld-gc/gc.exp: Run PR ld/20022 tests.
504 * testsuite/ld-gc/pr19161.d: Also accept local __start_SECNAME
505 symbol.
506 * testsuite/ld-gc/start.d: Likewise.
507 * testsuite/ld-x86-64/lea1a.d: Updated.
508 * testsuite/ld-x86-64/lea1b.d: Updated.
509 * testsuite/ld-x86-64/lea1d.d: Updated.
510 * testsuite/ld-x86-64/lea1e.d: Likewise.
511
512 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
513
514 * testsuite/ld-elf/sizeof.d: New file.
515 * testsuite/ld-elf/sizeof.s: Likewise.
516 * testsuite/ld-elf/startof.d: Likewise.
517 * testsuite/ld-elf/startof.s: Likewise.
518
519 2017-06-13 Renlin Li <renlin.li@arm.com>
520
521 * testsuite/ld-elf/shared.exp (build_tests): Add --no-dynamic-linker
522 option to rdynamic-1 and dynamic-1 tests.
523
524 2017-06-09 H.J. Lu <hongjiu.lu@intel.com>
525
526 * testsuite/ld-x86-64/property-x86-3-x32.d: New file.
527 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
528 * testsuite/ld-x86-64/property-x86-4b-x32.d: Likewise.
529 * testsuite/ld-x86-64/property-x86-3.d: Also pass
530 -defsym __64_bit__=1 to asssembler.
531 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
532 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
533 * testsuite/ld-x86-64/property-x86-3.s: Align to 4 bytes if
534 __64_bit__ isn't defined.
535 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
536 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
537 * testsuite/ld-x86-64/x86-64.exp: Run property-x86-3-x32,
538 property-x86-4a-x32 and property-x86-4b-x32.
539
540 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
541
542 * testsuite/ld-arc/tls_ie-01.d: Changed expected result.
543
544 2017-06-08 H.J. Lu <hongjiu.lu@intel.com>
545
546 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Pass
547 "-Map tmpdir/ifunc-1-local-x86.map" to ld and check
548 ifunc-1-local-x86.map.
549 * testsuite/ld-ifunc/ifunc-1-x86.d: Pass
550 "-Map tmpdir/ifunc-1-x86.map" to ld and check ifunc-1-x86.map.
551 * testsuite/ld-ifunc/ifunc-1-local-x86.map: New file.
552 * testsuite/ld-ifunc/ifunc-1-x86.map: Likewise.
553
554 2017-06-07 Alan Modra <amodra@gmail.com>
555
556 * testsuite/ld-unique/pr21529.d: xfail aarch64, arm, hppa, ia64,
557 nds32, and score. Match any output.
558
559 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
560
561 * ld.h (struct args_type): Fix typo in comment.
562
563 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
564
565 * ld.h (struct args_type): Add force_group_allocation field.
566 * ldgram.y: Add support for FORCE_GROUP_ALLOCATION.
567 * ldlex.h: Likewise.
568 * ldlex.l: Likewise.
569 * lexsup.c: Likewise.
570 * ldlang.c (unique_section_p): Check resolve_section_groups flag
571 not the relaxable link flag.
572 (lang_add_section): Discard section groups when we're resolving
573 groups. Clear the SEC_LINK_ONCE flag if we're resolving section
574 groups.
575 * ldmain.c (main): Initialise resolve_section_groups flag in
576 link_info based on command line flags.
577 * testsuite/ld-elf/group11.d: New file.
578 * testsuite/ld-elf/group12.d: New file.
579 * testsuite/ld-elf/group12.ld: New file.
580 * NEWS: Mention new features.
581 * ld.texinfo (Options): Document --force-group-allocation.
582 (Miscellaneous Commands): Document FORCE_GROUP_ALLOCATION.
583
584 2017-06-05 H.J. Lu <hongjiu.lu@intel.com>
585
586 PR ld/21529
587 * testsuite/ld-unique/pr21529.d: New file.
588 * testsuite/ld-unique/pr21529.s: Likewise.
589 * testsuite/ld-unique/unique.exp: Run *.d.
590
591 2017-06-05 Alan Modra <amodra@gmail.com>
592
593 * ldmain.c (main): Correct setting of link_indo.new_dtags.
594 * testsuite/ld-elf/now-3.d: Pass --disable-new-dtags to ld
595 * testsuite/ld-elf/now-4.d: Likewise.
596 * testsuite/ld-elf/rpath-1.d: Likewise.
597 * testsuite/ld-elf/rpath-2.d: Likewise.
598
599 2017-06-05 Slava Barinov <v.barinov@samsung.com>
600
601 * configure.ac: Add --enable-new-dtags option.
602 * ldmain.c (main): Set link_info.new_dtags to 1 if when
603 --enable-new-dtags is switched on.
604 * configure: Regenerate.
605 * config.in: Regenerate.
606
607 2017-06-02 H.J. Lu <hongjiu.lu@intel.com>
608
609 * emulparams/call_nop.sh: Remove -z prefix-nop.
610 * ld.texinfo: Likewise.
611 * testsuite/ld-i386/call3c.d: Check for linker error.
612 * testsuite/ld-x86-64/call1c.d: Likewise.
613
614 2017-06-01 Alan Modra <amodra@gmail.com>
615
616 * emultempl/ppc64elf.em (params): Init plt_localentry0 field.
617 (enum ppc64_opt): New, replacing OPTION_* defines. Add
618 OPTION_PLT_LOCALENTRY, and OPTION_NO_PLT_LOCALENTRY.
619 (PARSE_AND_LIST_*): Support --plt-localentry and --no-plt-localentry.
620 * testsuite/ld-powerpc/elfv2so.d: Update.
621 * testsuite/ld-powerpc/powerpc.exp (TLS opt 5): Use --no-plt-localentry.
622 * testsuite/ld-powerpc/tlsopt5.d: Update.
623
624 2017-05-31 Alan Modra <amodra@gmail.com>
625
626 * emultempl/ppc64elf.em (plt-static-chain help): Fix quoting.
627
628 2017-05-22 Jiong Wang <jiong.wang@arm.com>
629
630 * configure.tgt: Set "targ_emul" to "aarch64linux32b" for
631 aarch64_be-*-linux-gnu_ilp32. Set "targ_emul" to "aarch64linux32" for
632 aarch64-*-linux-gnu_ilp32.
633
634 2017-05-19 H.J. Lu <hongjiu.lu@intel.com>
635
636 * testsuite/ld-i386/i386.exp: Run property-x86-4a and
637 property-x86-4b.
638 * testsuite/ld-x86-64/x86-64.exp: Likewise.
639 * testsuite/ld-i386/property-x86-4a.d: New file.
640 * testsuite/ld-i386/property-x86-4a.s: Likewise.
641 * testsuite/ld-i386/property-x86-4b.d: Likewise.
642 * testsuite/ld-i386/property-x86-4b.s: Likewise.
643 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
644 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
645 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
646 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
647
648 2017-05-19 Georg-Johann Lay <avr@gjlay.de>
649
650 PR ld/21472
651 * emulparams/avrxmega3.sh (RODATA_PM_OFFSET): Set to 0x8000.
652 * scripttempl/avr.sc (__RODATA_PM_OFFSET__) [RODATA_PM_OFFSET]:
653 Use RODATA_PM_OFFSET as default if not already defined.
654 (.data) [!RODATA_PM_OFFSET]: Don't include .rodata and friends.
655 (.rodata) [RODATA_PM_OFFSET]: Put at an offset of
656 __RODATA_PM_OFFSET__.
657
658 2017-05-18 Nick Clifton <nickc@redhat.com>
659
660 PR ld/21251
661 * ldfile.c (ldfile_add_library_path): If the path starts with
662 $SYSROOT then use the sysroot as the real prefix.
663 * ldlang.c (lang_add_input_file): Treat $SYSROOT in the same
664 way as =.
665 * ldlex.l: Add $SYSROOT as allow prefix for a filename.
666 * ld.texinfo (-L): Document that $SYSROOT acts like = when
667 prefixing a library search path.
668 (INPUT): Likewise.
669 * testsuite/ld-scripts/sysroot-prefix.exp: Add $SYSROOT prefix
670 tests.
671
672 2017-05-18 Alan Modra <amodra@gmail.com>
673
674 * emultempl/elf32.em: Don't compare boolean values against TRUE or FALSE.
675 * emultempl/pe.em: Likewise.
676 * emultempl/pep.em: Likewise.
677 * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
678 Don't compare enum against TRUE.
679
680 2017-05-18 Alan Modra <amodra@gmail.com>
681
682 PR ld/20882
683 * testsuite/ld-gc/pr20882.d: Don't pass -gdwarf-sections to gas.
684 Allow for 16-bit address targets and match expected data fully.
685 * testsuite/ld-gc/pr20882a.s: Delete .debug_line section.
686 * testsuite/ld-gc/pr20882b.s: Likewise.
687 * testsuite/ld-gc/pr20882c.s: Likewise.
688
689 2017-05-17 H.J. Lu <hongjiu.lu@intel.com>
690
691 PR ld/20882
692 * testsuite/ld-gc/gc.exp: Run pr20882.
693 * testsuite/ld-gc/pr20882.d: New file.
694 * testsuite/ld-gc/pr20882a.s: Likewise.
695 * testsuite/ld-gc/pr20882b.s: Likewise.
696 * testsuite/ld-gc/pr20882c.s: Likewise.
697
698 2017-05-16 H.J. Lu <hongjiu.lu@intel.com>
699
700 PR ld/21481
701 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only
702 if IFUNC is supported by run-time.
703
704 2017-05-16 Alan Modra <amodra@gmail.com>
705
706 * plugin.c: Rename occurrences of non_ir_ref.
707
708 2017-05-16 Alan Modra <amodra@gmail.com>
709
710 * plugin.c (is_visible_from_outside): Use non_ir_ref_dynamic.
711 (plugin_notice): Set non_ir_ref for references from regular
712 objects, non_ir_ref_dynamic for references from dynamic objects.
713
714 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
715
716 * testsuite/ld-mips-elf/mips16e2-pcrel-0.d: New test.
717 * testsuite/ld-mips-elf/mips16e2-pcrel-1.d: New test.
718 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d: New test.
719 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d: New test.
720 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d: New test.
721 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d: New test.
722 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d: New test.
723 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d: New test.
724 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
725
726 2017-05-15 Nick Clifton <nickc@redhat.com>
727
728 PR ld/21459
729 * scripttempl/pe.sc: Add .debug_gdb_scripts section.
730 * scripttempl/pep.sc: Likewise.
731
732 2017-05-12 H.J. Lu <hongjiu.lu@intel.com>
733
734 * testsuite/ld-i386/i386.exp: Run property-x86-3.
735 * testsuite/ld-x86-64/x86-64.exp: Likewise.
736 * testsuite/ld-i386/property-x86-3.d: New file.
737 * testsuite/ld-i386/property-x86-3.s: Likewise.
738 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
739 * testsuite/ld-x86-64/property-x86-3.s: Likewise.
740
741 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
742
743 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): Replace
744 .plt.bnd with .plt.sec.
745 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
746 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
747 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
748 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
749 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
750 * testsuite/ld-x86-64/mpx3.dd: Likewise.
751 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
752 * testsuite/ld-x86-64/mpx4.dd: Likewise.
753 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
754 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
755 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
756 * testsuite/ld-x86-64/pr21038b.d: Likewise.
757 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
758 * testsuite/ld-x86-64/pr21038c.d: Likewise.
759
760 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
761
762 * testsuite/ld-i386/plt-pic2.dd: Updated.
763 * testsuite/ld-i386/plt2.dd: Likewise.
764 * testsuite/ld-i386/plt2.rd: Likewise.
765 * testsuite/ld-i386/pr17689now.rd: Likewise.
766 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
767 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
768 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
769 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
770 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
771 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
772 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
773 * testsuite/ld-x86-64/plt2.dd: Likewise.
774 * testsuite/ld-x86-64/plt2.rd: Likewise.
775 * testsuite/ld-x86-64/pr17689now.rd: Likewise.
776 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
777 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
778
779 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
780
781 * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Set
782 to yes.
783 * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
784 Likewise.
785 * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Likewise.
786
787 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
788
789 PR ld/21481
790 * testsuite/ld-x86-64/pr21481a.c: New file.
791 * testsuite/ld-x86-64/pr21481b.S: Likewise.
792 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests.
793
794 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
795
796 * testsuite/ld-arc/attr-merge-0.d: New file.
797 * testsuite/ld-arc/attr-merge-0.s: Likewise.
798 * testsuite/ld-arc/attr-merge-0e.s: Likewise.
799 * testsuite/ld-arc/attr-merge-1.d: Likewise.
800 * testsuite/ld-arc/attr-merge-1.s: Likewise.
801 * testsuite/ld-arc/attr-merge-1e.s: Likewise.
802 * testsuite/ld-arc/attr-merge-2.d: Likewise.
803 * testsuite/ld-arc/attr-merge-2.s: Likewise.
804 * testsuite/ld-arc/attr-merge-3.d: Likewise.
805 * testsuite/ld-arc/attr-merge-3.s: Likewise.
806 * testsuite/ld-arc/attr-merge-3e.s: Likewise.
807 * testsuite/ld-arc/attr-merge-4.s: Likewise.
808 * testsuite/ld-arc/attr-merge-5.d: Likewise.
809 * testsuite/ld-arc/attr-merge-5a.s: Likewise.
810 * testsuite/ld-arc/attr-merge-5b.s: Likewise.
811 * testsuite/ld-arc/attr-merge-conflict-isa.d: Likewise.
812 * testsuite/ld-arc/attr-merge-err-isa.d: Likewise.
813 * testsuite/ld-arc/attr-merge-incompatible-cpu.d: Likewise.
814 * testsuite/ld-arc/got-01.d: Update test.
815 * testsuite/ld-arc/attr-merge-err-quarkse.d: New file.
816 * testsuite/ld-arc/attr-quarkse.s: Likewise.
817 * testsuite/ld-arc/attr-quarkse2.s: Likewise.
818
819 2017-05-09 Awson <kyrab@mail.ru>
820
821 PR ld/21471
822 * pe-dll.c (pe_detail_list): Add entry for pe-bigobj-x86-64.
823
824 2017-05-09 Benjamin Peterson <bp@benjamin.pe>
825
826 * ld.texinfo (orphan sections): Grammar fix.
827
828 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
829
830 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: New file.
831 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
832 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
833 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
834 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
835 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
836 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
837 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
838 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
839 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
840 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
841 * testsuite/ld-x86-64/plt2.dd: Likewise.
842 * testsuite/ld-x86-64/plt2.rd: Likewise.
843 * testsuite/ld-x86-64/plt2.s: Likewise.
844 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
845 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
846 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
847 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
848 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
849 * testsuite/ld-x86-64/load1b-nacl.d: Updated.
850 * testsuite/ld-x86-64/load1b.d: Likewise.
851 * testsuite/ld-x86-64/plt-main-bnd.dd: Likewise.
852 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
853 * testsuite/ld-x86-64/pr20830a.d: Update the .plt.got section
854 with func@plt.
855 * testsuite/ld-x86-64/pr20830b.d: Likewise.
856 * testsuite/ld-x86-64/pr21038a.d: Likewise.
857 * testsuite/ld-x86-64/pr21038c.d: Likewise.
858 * testsuite/ld-x86-64/mpx.exp: Add some -z now tests.
859 * testsuite/ld-x86-64/x86-64.exp: Likewise.
860
861 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
862
863 * testsuite/ld-i386/i386.exp: Add some -z now tests.
864 * testsuite/ld-i386/plt-pic2.dd: New file.
865 * testsuite/ld-i386/plt2.dd: Likewise.
866 * testsuite/ld-i386/plt2.rd: Likewise.
867 * testsuite/ld-i386/plt2.s: Likewise.
868 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
869 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
870 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
871 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
872 * testsuite/ld-i386/pr20830.d: Update the .plt.got section
873 with func@plt.
874
875 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
876
877 * testsuite/ld-arm/arm-elf.exp
878 (Secure gateway import library generation): Check e_type field
879 of import library and executable produced.
880 * testsuite/ld-arm/cmse-implib.type: Expectations for e_type field.
881
882 2017-04-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
883
884 PR ld/21404
885 * testsuite/ld-avr/pr21404-1.d: New test.
886 * testsuite/ld-avr/pr21404-1.s: New test.
887 * testsuite/ld-avr/pr21404-2.d: New test.
888 * testsuite/ld-avr/pr21404-2.s: New test.
889 * testsuite/ld-avr/pr21404-3.d: New test.
890 * testsuite/ld-avr/pr21404-3.s: New test.
891 * testsuite/ld-avr/pr21404-4.d: New test.
892 * testsuite/ld-avr/pr21404-4.s: New test.
893 * testsuite/ld-avr/pr21404-5.d: New test.
894 * testsuite/ld-avr/pr21404-5.s: New test.
895 * testsuite/ld-avr/pr21404-6.d: New test.
896 * testsuite/ld-avr/pr21404-6.s: New test.
897 * testsuite/ld-avr/pr21404-7.d: New test.
898 * testsuite/ld-avr/pr21404-7.s: New test.
899 * testsuite/ld-avr/pr21404-8.d: New test.
900 * testsuite/ld-avr/pr21404-8.s: New test.
901
902 2017-05-03 Maciej W. Rozycki <macro@imgtec.com>
903
904 * testsuite/ld-mips-elf/mips16-pcrel-0.d: New test.
905 * testsuite/ld-mips-elf/mips16-pcrel-1.d: New test.
906 * testsuite/ld-mips-elf/mips16-pcrel-addend-2.d: New test.
907 * testsuite/ld-mips-elf/mips16-pcrel-addend-6.d: New test.
908 * testsuite/ld-mips-elf/mips16-pcrel-n32-0.d: New test.
909 * testsuite/ld-mips-elf/mips16-pcrel-n32-1.d: New test.
910 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d: New test.
911 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d: New test.
912 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
913
914 2017-05-03 H.J. Lu <hongjiu.lu@intel.com>
915
916 * testsuite/ld-elf/pr21384.d: Adjusted to accommodate
917 additional dynamic symbols on some targets.
918
919 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
920
921 * testsuite/ld-mips-elf/mips16-branch-absolute-1.d: New test.
922 * testsuite/ld-mips-elf/mips16-branch-absolute-2.d: New test.
923 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d: New
924 test.
925 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d: New
926 test.
927 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d: New
928 test.
929 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d:
930 New test.
931 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d: New
932 test.
933 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d: New
934 test.
935 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d:
936 New test.
937 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
938
939 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
940
941 * testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to
942 "TLS without PLT (1)" and "TLS without PLT (3)".
943 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to
944 to "TLS without PLT (3)".
945
946 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
947
948 PR ld/21384
949 * testsuite/ld-elf/pr21384.d: New file.
950 * testsuite/ld-elf/pr21384.dl: Likewise.
951 * testsuite/ld-elf/pr21384.ld: Likewise.
952 * testsuite/ld-elf/pr21384.s: Likewise.
953
954 2017-05-01 H.J. Lu <hongjiu.lu@intel.com>
955
956 * testsuite/ld-i386/tls.exp: Run GNU2 TLS tests only if there
957 is working GNU2 TLS support.
958 * testsuite/ld-x86-64/tls.exp: Likewise.
959 * testsuite/lib/ld-lib.exp (check_gnu2_tls_available): New proc.
960
961 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
962
963 * testsuite/config/default.exp (GNU2_CFLAGS): New. Set
964 to -mtls-dialect=gnu2 if target compiler supports it.
965 * testsuite/ld-i386/tls.exp: Run -mtls-dialect=gnu2 tests.
966 * testsuite/ld-x86-64/tls.exp: Likewise.
967 * testsuite/ld-i386/tlsdesc1a.c: New file.
968 * testsuite/ld-i386/tlsdesc1b.c: Likewise.
969 * testsuite/ld-x86-64/tlsdesc1a.c: Likewise.
970 * testsuite/ld-x86-64/tlsdesc1b.c: Likewise.
971
972 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
973
974 * testsuite/ld-elf/shared.exp: Add run-time tests for -z now.
975 * testsuite/ld-i386/tls.exp: Likewise.
976 * testsuite/ld-ifunc/ifunc.exp: Likewise.
977 * testsuite/ld-x86-64/tls.exp: Likewise.
978
979 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
980
981 * testsuite/ld-x86-64/pr21038a.d: Update DW_CFA_nop paddings
982 in .eh_frame section.
983 * testsuite/ld-x86-64/pr21038c.d: Update .eh_frame order.
984
985 2017-04-26 H.J. Lu <hongjiu.lu@intel.com>
986
987 * testsuite/ld-i386/tlsdesc2.d: New test.
988 * testsuite/ld-x86-64/tlsdesc2.d: Likewise.
989
990 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
991
992 PR ld/21334
993 * testsuite/ld-mips-elf/pr21334.dd: New test.
994 * testsuite/ld-mips-elf/pr21334.gd: New test.
995 * testsuite/ld-mips-elf/pr21334.ld: New test linker script.
996 * testsuite/ld-mips-elf/pr21334.s: New test source.
997 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
998
999 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1000
1001 * testsuite/ld-x86-64/no-plt.exp: Also check no-plt-1e.nd.
1002 * testsuite/ld-x86-64/no-plt-1e.nd: New file.
1003
1004 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1005
1006 * testsuite/ld-i386/pr12570a.d: Skip for nacl targets.
1007 * testsuite/ld-i386/pr12570b.d: Likewise.
1008
1009 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1010
1011 PR ld/20815
1012 * testsuite/ld-i386/vxworks2.sd: Add space for program headers.
1013
1014 2017-04-24 Jose E. Marchesi <jose.marchesi@oracle.com>
1015
1016 * testsuite/ld-sparc/tlssunbin64.dd: Expect `return' instructions
1017 instead of `rett' in V9.
1018 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1019 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1020
1021 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
1022
1023 PR ld/21402
1024 * testsuite/ld-elf/indirect.exp: Don't skip PIE indirect5 and
1025 indirect6 tests on i386.
1026
1027 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
1028
1029 PR ld/19617
1030 PR ld/21086
1031 * testsuite/ld-elf/pr19617a.d: Pass --no-dynamic-linker to ld.
1032 * testsuite/ld-elf/pr19617b.d: Likewise.
1033 * testsuite/ld-elf/pr19617c.d: Likewise.
1034 *testsuite/ld-i386/pr19636-4d.d: Likewise.
1035 * testsuite/ld-elf/readelf.exp: Pass --no-dynamic-linker to ld
1036 with --export-dynamic.
1037 * testsuite/ld-elf/shared.exp: Pass --no-dynamic-linker to ld
1038 with -E.
1039
1040 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
1041
1042 PR ld/21402
1043 * testsuite/ld-elf/indirect.exp: Pass $NOPIE_LDFLAGS and
1044 $NOPIE_CFLAGS to non-PIE indirect5 and indirect6 tests. Skip
1045 PIE indirect5 and indirect6 tests on i386.
1046
1047 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
1048
1049 * testsuite/ld-mips-elf/mips-elf.exp: Join `__ehdr_start' tests.
1050
1051 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
1052
1053 PR ld/21382
1054 * plugin.c (is_visible_from_outside): Symbol may be visible
1055 from outside if dynamic_ref_after_ir_def is set.
1056 (plugin_notice): Set dynamic_ref_after_ir_def if the symbol is
1057 defined in an IR object and referenced in a dynamic object.
1058 * testsuite/ld-plugin/lto.exp: Run PR ld/21382 tests.
1059 * testsuite/ld-plugin/pr21382a.c: New file.
1060 * testsuite/ld-plugin/pr21382b.c: Likewise.
1061
1062 2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
1063
1064 PR ld/21401
1065 * testsuite/ld-ifunc/ifunc.exp: Add a libtest-2-now.so test with
1066 -z now.
1067
1068 2017-04-19 Alan Modra <amodra@gmail.com>
1069
1070 * ld.texinfo (dynamic-undefined-weak): Document.
1071 (nodynamic-undefined-weak): Document that this option now can
1072 be used with shared libs.
1073 * emulparams/dynamic_undefined_weak.sh: Support -z
1074 dynamic-undefined-weak.
1075 * emulparams/elf32ppccommon.sh: Include dynamic_undefined_weak.sh.
1076 * testsuite/ld-undefined/weak-undef.exp (undef_weak_so),
1077 (undef_weak_exe): New. Use them. Add -z dynamic-undefined-weak
1078 and -z nodynamic-undefined-weak tests.
1079 * Makefile.am: Update powerpc dependencies.
1080 * Makefile.in: Regenerate.
1081
1082 2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
1083
1084 PR ld/21389
1085 * testsuite/ld-elf/pr21389.map: New file.
1086 * testsuite/ld-elf/pr21389.s: Likewise.
1087 * testsuite/ld-elf/pr21389a.d: Likewise.
1088 * testsuite/ld-elf/pr21389b.d: Likewise.
1089 * testsuite/ld-elf/pr21389c.d: Likewise.
1090
1091 2017-04-17 Alan Modra <amodra@gmail.com>
1092
1093 * testsuite/ld-elf/indirect5a.c,
1094 * testsuite/ld-elf/indirect5b.c,
1095 * testsuite/ld-elf/indirect5.map,
1096 * testsuite/ld-elf/indirect5.out: New test.
1097 * testsuite/ld-elf/indirect6a.c: Likewise.
1098 * testsuite/ld-elf/indirect.exp (check_dynamic_syms): New proc.
1099 Run new tests and check dynsyms.
1100
1101 2017-04-11 Alan Modra <amodra@gmail.com>
1102
1103 PR 21274
1104 PR 18466
1105 * emultempl/pe.em (pe_find_data_imports): Don't use fixed size
1106 symbol buffer. Instead, xmalloc max size needed with space for
1107 prefix. Wrap overlong lines. Formatting. Pass symbol buffer
1108 copy of name to pe_walk_relocs_of_symbol.
1109 (make_inport_fixup): Add "name" param, pass to pe_create_import_fixup.
1110 * emultempl/pe.em (pep_find_data_imports): As for pe_find_data_imports.
1111 (make_import_fixup): Add "name" param, pass to pep_create_import_fixup.
1112 Use bfd_get_signed_* and remove unnecessary casts. Formatting.
1113 * pe-dll.c (pe_walk_relocs_of_symbol): Add "name" param. Pass to
1114 callback.
1115 (make_import_fixup_mark): Add "name" param. Make use of prefix
1116 space rather than xmalloc here.
1117 (pe_create_import_fixup): Likewise.
1118 * pe-dll.h (pe_walk_relocs_of_symbol): Update prototype.
1119 (pe_create_import_fixup): Likewise.
1120 * pep-dll.h (pep_walk_relocs_of_symbol): Likewise.
1121 (pep_create_import_fixup): Likewise.
1122
1123 2017-04-10 Nick Clifton <nickc@redhat.com>
1124
1125 * ld.texinfo (--strip-discarded): Document.
1126 (--embedded-relocs): Document.
1127 (--spare-dynamic-tags): Document.
1128 (--task-link): Document.
1129
1130 2017-04-10 Alan Modra <amodra@gmail.com>
1131
1132 PR 21287
1133 * testsuite/ld-elf/init-fini-arrays.d: Match INIT_ARRAY and FINI_ARRAY.
1134 * testsuite/ld-elf/init-fini-arrays.s: Use %init_array and %fini_array
1135 section types.
1136 * testsuite/lib/ld-lib.exp (default_ld_compile): Trim assembler
1137 warnings about "ignoring incorrect section type".
1138 (run_ld_link_exec_tests, run_cc_link_tests): Delete old comment.
1139
1140 2017-04-10 Alan Modra <amodra@gmail.com>
1141
1142 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Delete
1143 sh1p.o, sh2p.o, sh1np.o and sh2np.o before compiling. Use
1144 remote_file host exists rather than file exists.
1145
1146 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
1147
1148 PR ld/21090
1149 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Use
1150 NOPIE_CFLAGS and NOPIE_LDFLAGS to disable PIE for the non-pie
1151 version of the test.
1152
1153 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
1154
1155 PR ld/19579
1156 PR ld/21306
1157 * testsuite/ld-elf/pr19579a.c (main): Updated.
1158
1159 2017-04-07 Nick Clifton <nickc@redhat.com>
1160
1161 PR 21090
1162 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
1163 disable PIE for the non-pie version of the test.
1164
1165 2017-04-07 Alan Modra <amodra@gmail.com>
1166
1167 * testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.
1168
1169 2017-04-07 gingold <gingold@gingold-Precision-7510>
1170
1171 * testsuite/ld-pe/pe.exp: New test.
1172 * testsuite/ld-pe/weakdef-1.s: New test source.
1173 * testsuite/ld-pe/weakdef-1.d: New test.
1174
1175 2017-04-07 Alan Modra <amodra@gmail.com>
1176
1177 * testsuite/ld-elf/mbind1a.d: Remove matches for PT_LOAD segments.
1178 * testsuite/ld-elf/mbind1b.d: Likewise.
1179 * testsuite/ld-elf/mbind1c.d: Likewise.
1180
1181 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
1182
1183 PR ld/21233
1184 * testsuite/ld-elf/shared.exp: Change xfails to kfails and fix
1185 indentation issue introduced with last commit.
1186
1187 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
1188
1189 PR ld/21233
1190 * testsuite/ld-elf/shared.exp: Xfail all PR21233 tests but the
1191 first test for cris*-*-*.
1192
1193 2017-04-04 Maciej W. Rozycki <macro@imgtec.com>
1194
1195 PR ld/21233
1196 * ldlang.c (insert_undefined): Set `mark' for ELF symbols.
1197 * testsuite/ld-elf/pr21233.sd: New test.
1198 * testsuite/ld-elf/pr21233-l.sd: New test.
1199 * testsuite/ld-elf/pr21233.ld: New test linker script.
1200 * testsuite/ld-elf/pr21233-e.ld: New test linker script.
1201 * testsuite/ld-elf/pr21233.s: New test source.
1202 * testsuite/ld-elf/pr21233-l.s: New test source.
1203 * testsuite/ld-elf/shared.exp: Run the new tests.
1204
1205 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
1206
1207 * NEWS: Mention support for ELF SHF_GNU_MBIND and
1208 PT_GNU_MBIND_XXX.
1209 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1210 input GNU_MBIND sections with the same type, attributes and
1211 sh_info field into a single output GNU_MBIND section.
1212 * testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
1213 * testsuite/ld-elf/mbind1.s: New file.
1214 * testsuite/ld-elf/mbind1a.d: Likewise.
1215 * testsuite/ld-elf/mbind1b.d: Likewise.
1216 * testsuite/ld-elf/mbind1c.d: Likewise.
1217 * testsuite/ld-elf/mbind2a.s: Likewise.
1218 * testsuite/ld-elf/mbind2b.c: Likewise.
1219
1220 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
1221
1222 * NEWS: Mention support for ELF GNU program properties.
1223 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
1224 ELF setup_gnu_properties.
1225 * testsuite/ld-i386/i386.exp: Run property tests for Linux/i386.
1226 * testsuite/ld-i386/pass.c: New file.
1227 * testsuite/ld-i386/property-1.r: Likewise.
1228 * testsuite/ld-i386/property-2.r: Likewise.
1229 * testsuite/ld-i386/property-3.r: Likewise.
1230 * testsuite/ld-i386/property-4.r: Likewise.
1231 * testsuite/ld-i386/property-5.r: Likewise.
1232 * testsuite/ld-i386/property-6.r: Likewise.
1233 * testsuite/ld-i386/property-6a.c: Likewise.
1234 * testsuite/ld-i386/property-6b.c: Likewise.
1235 * testsuite/ld-i386/property-6c.S: Likewise.
1236 * testsuite/ld-i386/property-7.r: Likewise.
1237 * testsuite/ld-i386/property-no-copy.S: Likewise.
1238 * testsuite/ld-i386/property-stack.S: Likewise.
1239 * testsuite/ld-i386/property-unsorted-1.S: Likewise.
1240 * testsuite/ld-i386/property-unsorted-2.S: Likewise.
1241 * testsuite/ld-i386/property-x86-1.S: Likewise.
1242 * testsuite/ld-i386/property-x86-2.S: Likewise.
1243 * testsuite/ld-x86-64/pass.c: Likewise.
1244 * testsuite/ld-x86-64/property-1.r: Likewise.
1245 * testsuite/ld-x86-64/property-2.r: Likewise.
1246 * testsuite/ld-x86-64/property-3.r: Likewise.
1247 * testsuite/ld-x86-64/property-4.r: Likewise.
1248 * testsuite/ld-x86-64/property-5.r: Likewise.
1249 * testsuite/ld-x86-64/property-6.r: Likewise.
1250 * testsuite/ld-x86-64/property-6a.c: Likewise.
1251 * testsuite/ld-x86-64/property-6b.c: Likewise.
1252 * testsuite/ld-x86-64/property-6c.S: Likewise.
1253 * testsuite/ld-x86-64/property-7.r: Likewise.
1254 * testsuite/ld-x86-64/property-no-copy.S: Likewise.
1255 * testsuite/ld-x86-64/property-stack.S: Likewise.
1256 * testsuite/ld-x86-64/property-unsorted-1.S: Likewise.
1257 * testsuite/ld-x86-64/property-unsorted-2.S: Likewise.
1258 * testsuite/ld-x86-64/property-x86-1.S: Likewise.
1259 * testsuite/ld-x86-64/property-x86-2.S: Likewise.
1260 * testsuite/ld-x86-64/x86-64.exp: Run property tests for
1261 Linux/x86-64.
1262
1263 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
1264
1265 PR ld/16044
1266 * testsuite/ld-cris/pr16044.d, testsuite/ld-cris/dso-1c.s,
1267 testsuite/ld-cris/dso-2b.s, testsuite/ld-cris/dso-4.s: New test.
1268
1269 2017-03-21 Sandra Loosemore <sandra@codesourcery.com>
1270
1271 * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
1272 false for nios2-*-elf.
1273
1274 2017-03-21 gingold <gingold@gingold-Precision-7510>
1275
1276 * ldlang.c (lang_check_section_addresses): Check only for
1277 allocated sections.
1278
1279 2017-03-17 Alan Modra <amodra@gmail.com>
1280
1281 * testsuite/ld-elf/sec64k.exp: Don't run on h8300 and ip2k.
1282
1283 2017-03-15 Tristan Gingold <gingold@adacore.com>
1284
1285 * testsuite/ld-checks/checks.exp (overflow_check): Disable for
1286 non-elf targets.
1287
1288 2017-03-14 H.J. Lu <hongjiu.lu@intel.com>
1289
1290 * ldlang.c (lang_check_section_addresses): Use addr_mask to
1291 check VMA and LMA.
1292
1293 2017-03-13 Nick Clifton <nickc@redhat.com>
1294
1295 PR binutils/21202
1296 * testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
1297
1298 2017-03-13 Tristan Gingold <gingold@adacore.com>
1299
1300 * ldlang.c (lang_check_section_addresses): Check for address space
1301 overflow.
1302 * testsuite/ld-checks/checks.exp (overflow_check): New procedure
1303 * testsuite/ld-checks/over.s: New test source.
1304 * testsuite/ld-checks/over.d: New test.
1305 * testsuite/ld-checks/over2.s: New test source.
1306 * testsuite/ld-checks/over2.d: New test.
1307
1308 2017-03-13 Alexey Neyman <stilor@att.net>
1309
1310 * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
1311 cpu, not host.
1312
1313 2017-03-11 Alan Modra <amodra@gmail.com>
1314
1315 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
1316 sysroot for -rpath search.
1317
1318 2017-03-11 Alan Modra <amodra@gmail.com>
1319
1320 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
1321 Only prefix absolute paths with sysroot. Handle DOS paths.
1322 (gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
1323 (gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
1324 (gld${EMULATION_NAME}_after_open): Short-circuit NULL path
1325 searches. Rename variable. Simplify get_runpath search.
1326
1327 2017-03-11 Alan Modra <amodra@gmail.com>
1328
1329 * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
1330 than -rdynamic.
1331
1332 2017-03-11 Alan Modra <amodra@gmail.com>
1333
1334 * ld.texinfo (Orphan Sections): Mention that not all targets
1335 handle orphans well.
1336 * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
1337 * testsuite/ld-elf/orphan-10.d: Likewise.
1338
1339 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 * ldlang.c (lang_size_sections_1): Shortcut loop only after
1342 tracking changes to the default regions LMA.
1343 * testsuite/ld-elf/orphan-9.ld: Extend header comment.
1344 * testsuite/ld-elf/orphan-10.d: New file.
1345 * testsuite/ld-elf/orphan-10.s: New file.
1346 * NEWS: Mention change in behaviour.
1347
1348 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1349
1350 * ldlang.c (lang_leave_output_section_statement): Move lma_region
1351 logic to...
1352 (lang_propagate_lma_regions): ...this new function.
1353 (lang_process): Call new function.
1354 * testsuite/ld-elf/orphan-9.d: New file.
1355 * testsuite/ld-elf/orphan-9.ld: New file.
1356 * testsuite/ld-elf/orphan-9.s: New file.
1357 * NEWS: Mention change in behaviour.
1358
1359 2017-03-07 Alan Modra <amodra@gmail.com>
1360
1361 * ldlang.c (open_input_bfds): Check that lang_assignment_statement
1362 is not an assert before referencing defsym.
1363
1364 2017-03-05 Alan Modra <amodra@gmail.com>
1365
1366 * testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
1367 * testsuite/ld-elf/eh6.d: Likewise.
1368 * testsuite/ld-alpha/tlsbin.dd: Likewise.
1369 * testsuite/ld-alpha/tlsbin.td: Likewise.
1370 * testsuite/ld-alpha/tlsbinr.dd: Likewise.
1371 * testsuite/ld-alpha/tlspic.dd: Likewise.
1372 * testsuite/ld-alpha/tlspic.rd: Likewise.
1373 * testsuite/ld-alpha/tlspic.sd: Likewise.
1374 * testsuite/ld-alpha/tlspic.td: Likewise.
1375 * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
1376 * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
1377 * testsuite/ld-mips-elf/eh-frame3.d: Likewise.
1378 * testsuite/ld-x86-64/pr20830a.d: Likewise.
1379 * testsuite/ld-x86-64/pr21038a.d: Likewise.
1380 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1381 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1382
1383 2017-03-03 Max Bolingbroke <batterseapower@hotmail.com>
1384
1385 PR 12969
1386 * pe-dll.c (generate_edata): Fail if the input file(s) require too
1387 many ordinals.
1388
1389 2017-03-02 Alan Modra <amodra@gmail.com>
1390
1391 * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
1392 and dl3.cc.
1393
1394 2017-02-28 Alan Modra <amodra@gmail.com>
1395
1396 * testsuite/ld-elf/merge.d: xfail for nios.
1397
1398 2017-02-28 Alan Modra <amodra@gmail.com>
1399
1400 * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
1401 limits of addpcis range.
1402
1403 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
1404
1405 * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
1406 instructions.
1407 * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
1408 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1409
1410 2017-02-27 Georg-Johann Lay <gjl@gcc.gnu.org>
1411
1412 PR target/20849
1413 * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
1414 (.rodata): New section.
1415 (.data): Remove .rodata*.
1416
1417 2017-02-25 Alan Modra <amodra@gmail.com>
1418
1419 * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
1420 Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
1421 defining HPUX where necessary. Define HPUX for implib tests.
1422 * testsuite/ld-elf/comm-data4.d: Run for hpux.
1423 * testsuite/ld-elf/endsym.d: Likewise.
1424 * testsuite/ld-elf/linkoncerdiff.d: Likewise.
1425 * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
1426 * testsuite/ld-elf/comm-data5.s: Likewise.
1427 * testsuite/ld-elf/endsym.s: Likewise.
1428 * testsuite/ld-elf/pr14170c.s: Likewise.
1429 * testsuite/ld-elf/symbol3.s: Likewise.
1430 * testsuite/ld-elf/implib.s: Likewise. Don't start directives
1431 in first column.
1432 * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
1433 * testsuite/ld-elf/warn3.d: Run for hpux.
1434 * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
1435 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1436 * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
1437
1438 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1439
1440 * testsuite/ld-elf/ver_def.vd: New test.
1441 * testsuite/ld-elf/ver_def-tic6x.vd: New test.
1442 * testsuite/ld-elf/ver_def.ld: New test linker script.
1443 * testsuite/ld-elf/ver_def.ver: New test version script.
1444 * testsuite/ld-elf/ver_def.s: New test source.
1445 * testsuite/ld-elf/readelf.exp: New test script.
1446
1447 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
1448
1449 * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
1450 option.
1451 * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
1452 * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
1453 * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
1454
1455 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
1456
1457 * testsuite/ld-mips-elf/jalr4.dd: New test.
1458 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1459
1460 2017-02-23 Alan Modra <amodra@gmail.com>
1461
1462 PR 20744
1463 * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
1464 each group.
1465 * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
1466 and sdarel reloc fix.
1467
1468 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1469
1470 PR ld/20828
1471 * testsuite/ld-elf/pr20828-d.sd: New test.
1472 * testsuite/ld-elf/pr20828-e.sd: New test.
1473 * testsuite/ld-elf/pr20828-v.od: New test.
1474 * testsuite/ld-elf/pr20828-v.ver: New test version script.
1475 * testsuite/ld-elf/pr20828-v.ld: New test linker script.
1476 * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
1477 `.gnu.version_d'.
1478 * testsuite/ld-elf/shared.exp: Run the new tests.
1479
1480 2017-02-21 Nick Clifton <nickc@redhat.com>
1481
1482 * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
1483 about non-void function returning without a result.
1484
1485 2017-02-17 Alan Modra <amodra@gmail.com>
1486
1487 PR 15041
1488 * scripttempl/pe.sc: Don't combine sections for ld -r.
1489 * scripttempl/pep.sc: Likewise.
1490
1491 2017-02-17 Alan Modra <amodra@gmail.com>
1492
1493 PR 21099
1494 * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
1495 rather than using OTHER_SECTIONS.
1496 * emulparams/elf32mt.sh: Likewise.
1497 * emulparams/elf32rx.sh: Likewise.
1498 * emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to
1499 define __rl78_abs__.
1500 * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
1501 rather than using OTHER_SECTIONS.
1502 * emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges.
1503 * emulparams/shelf64.sh: Unset OTHER_SECTIONS.
1504 * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
1505 * emulparams/shelf_uclinux.sh: Likewise.
1506 * emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS
1507 to define _stack, not OTHER_SECTIONS.
1508 * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
1509 TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL.
1510 * scripttempl/arclinux.sc: Likewise.
1511 * scripttempl/elf64hppa.sc: Likewise.
1512 * scripttempl/elfxtensa.sc: Likewise.
1513 * scripttempl/nds32elf.sc: Likewise.
1514 * scripttempl/armbpabi.sc: Move STACK before debug sections.
1515 * scripttempl/elf_chaos.sc: Likewise.
1516 * scripttempl/elfarc.sc: Delete STACK.
1517 * scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION,
1518 TINY_BSS_SECTION, and .stack before debug sections.
1519
1520 2017-02-17 Nick Clifton <nickc@redhat.com>
1521
1522 PR ld/20825
1523 * ld.texinfo (Options): Add missing @item entry for --pop-state.
1524
1525 2017-02-17 Alan Modra <amodra@gmail.com>
1526
1527 * testsuite/ld-elf/dwarf2.err: Accept other errors between the
1528 multiple definition errors.
1529
1530 2017-02-17 Alan Modra <amodra@gmail.com>
1531
1532 * testsuite/ld-elf/dwarf2.err: Add missing newline at end.
1533 * testsuite/ld-elf/dwarf3.err: Likewise. Allow match without filename.
1534
1535 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1536
1537 * testsuite/ld-elf/shared.exp: Update expected results.
1538 * testsuite/ld-elf/dwarf2.err: Likewise
1539
1540 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1541
1542 * testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
1543 * testsuite/ld-elf/dwarf2.err: New file.
1544 * testsuite/ld-elf/dwarf2a.c: New file.
1545 * testsuite/ld-elf/dwarf2b.c: New file.
1546 * testsuite/ld-elf/dwarf3.c: New file.
1547 * testsuite/ld-elf/dwarf3.err: New file.
1548
1549 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1550
1551 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
1552 error, warning_output, and error_output actions. Remove separate
1553 warnings parameter.
1554 * testsuite/ld-elf/shared.exp (build_tests): Updated to use
1555 'warning' action.
1556 * testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
1557
1558 2017-02-16 Alan Modra <amodra@gmail.com>
1559
1560 * testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
1561 from void pointers to function pointers.
1562 * testsuite/ld-elf/pr18718.c: Update to suit.
1563 * testsuite/ld-elf/pr18720a.c: Update to suit.
1564
1565 2017-02-16 Alan Modra <amodra@gmail.com>
1566
1567 PR 21000
1568 * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
1569 * testsuite/ld-elf/loadaddr2.d: Likewise.
1570 * testsuite/ld-elf/loadaddr3a.d: Likewise.
1571 * testsuite/ld-scripts/rgn-at5.d: Likewise.
1572
1573 2017-02-16 Alan Modra <amodra@gmail.com>
1574
1575 * testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
1576 * testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
1577
1578 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
1579
1580 PR ld/21168
1581 * testsuite/ld-i386/i386.exp: Run pr21168.
1582 * testsuite/ld-i386/pr21168a.c: New file.
1583 * testsuite/ld-i386/pr21168b.S: Likewise.
1584
1585 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
1586
1587 PR ld/20244
1588 * testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
1589 pr20244-4c.
1590 * testsuite/ld-i386/pr20244-4.s: New file.
1591 * testsuite/ld-i386/pr20244-4a.d: Likewise.
1592 * testsuite/ld-i386/pr20244-4b.d: Likewise.
1593 * testsuite/ld-i386/pr20244-4c.d: Likewise.
1594
1595 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
1596
1597 * ldmisc.c (vfinfo): Don't print the function name again either
1598 if no source file name has been found both now and previously.
1599 * testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
1600 * testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
1601 * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
1602 * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
1603 * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
1604 * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
1605 * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
1606 * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
1607 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
1608 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
1609 Likewise.
1610 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
1611 Likewise.
1612 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
1613 Likewise.
1614 * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
1615 * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
1616 Likewise.
1617 * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
1618 Likewise.
1619 * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
1620 * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
1621 * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
1622 * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
1623 * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
1624 * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
1625 * testsuite/ld-powerpc/tocopt.out: Likewise.
1626 * testsuite/ld-powerpc/tocopt7.out: Likewise.
1627
1628 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
1629
1630 * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
1631
1632 2017-02-15 Igor Kudrin <ikudrin@accesssoftek.com>
1633
1634 * testsuite/ld-scripts/sysroot-prefix.exp
1635 (get_base_dir_for_scripts): New function.
1636 (run_sysroot_prefix_test): Use get_base_dir_for_scripts.
1637
1638 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
1639
1640 * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
1641 _gp to __global_pointer$
1642
1643 2017-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * configure.tgt (arc*-*-linux*): Change the default linker
1646 emulation based on --with-cpu selection.
1647 * NEWS: Mention new configuration option.
1648
1649 2017-02-06 Jiong Wang <jiong.wang@arm.com>
1650
1651 * testsuite/ld-elf/compress.exp: Don't print to stdout for all
1652 "readelf -w".
1653
1654 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1655
1656 * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
1657
1658 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1659
1660 * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
1661 s/regexp/regex/.
1662
1663 2017-02-02 Jiong Wang <jiong.wang@arm.com>
1664
1665 * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
1666 * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
1667 dlopen support into "dlopen_run_tests". These tests include dl1*main
1668 and dl6*main.
1669 (dlopen_run_tests): New and only run it when check_libdl_available
1670 returns true. XFAIL on *-*-netbsdelf*.
1671
1672 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
1673
1674 * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
1675 presentation of relocation addends.
1676 * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
1677 * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
1678 * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
1679
1680 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
1681
1682 * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
1683 in `.tdata' section.
1684 * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
1685 * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
1686
1687 2017-02-01 Jiong Wang <jiong.wang@arm.com>
1688
1689 * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
1690 Append $board_cflags to link commands.
1691
1692 2017-02-01 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1693
1694 * testsuite/ld-scripts/print-memory-usage-1.l: Relax
1695 check for digit in second decimal place.
1696
1697 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
1698
1699 PR ld/20828
1700 * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
1701 indentation.
1702
1703 2017-01-31 Nick Clifton <nickc@redhat.com>
1704
1705 * ldmain.c (add_archive_element): Eliminate string buffer.
1706 * ldlang.c (lang_print_asneeded): Likewise.
1707
1708 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
1709
1710 * emultempl/mipself.em (ignore_branch_isa): New variable.
1711 (mips_create_output_section_statements): Rename
1712 `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
1713 add `ignore_branch_isa' argument.
1714 (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
1715 OPTION_NO_IGNORE_BRANCH_ISA enum values.
1716 (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
1717 "no-ignore-branch-isa" options.
1718 (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
1719 `--no-ignore-branch-isa'.
1720 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
1721 OPTION_NO_IGNORE_BRANCH_ISA.
1722
1723 * ld.texinfo (Options specific to MIPS targets): Add
1724 `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
1725 (ld and the MIPS family): Likewise.
1726
1727 * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
1728 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
1729 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
1730 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
1731 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
1732 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
1733 test.
1734 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
1735 test.
1736 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1737
1738 2017-01-29 Hans-Peter Nilsson <hp@axis.com>
1739
1740 PR binutils/19935
1741 Fix long-standing buglet and fallout from now-default initfini-array.
1742 * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
1743 (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
1744
1745 2017-01-27 Jiong Wang <jiong.wang@arm.com>
1746
1747 * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
1748 arm*-*-eabi*.
1749
1750 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1751 Nick Clifton <nickc@redhat.com>
1752
1753 PR 20343
1754 * ld.texinfo (Options): Extend documentation of the --plugin
1755 option. Include a description of where the plugins should be
1756 located.
1757
1758 2017-01-27 Nick Clifton <nickc@redhat.com>
1759
1760 * po/sr.po: New Serbian translation.
1761 * configure.ac (ALL_LINGUAS): Add sr.
1762 * configure: Regenerate.
1763
1764 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1765
1766 * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
1767 (bfin-*-rtems*): Move to (bfin*-*-elf*).
1768 (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
1769 (m68*-*-rtems*): Move to (m68*-*-elf*).
1770 (mips*-*-rtems*): Move to (mips*-*-elf*).
1771 (or1k*-*-rtems*): Move to (or1k*-*-elf*).
1772 (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
1773 (sparc*-*-rtems*): Move to (sparc*-*-elf*).
1774 (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
1775
1776 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1777
1778 * configure.tgt (h8300-*-rtemscoff*): Remove.
1779 (i960-*-rtems*): Likewise.
1780 (m68*-*-rtemscoff*): Likewise.
1781 (sh-*-rtemscoff*): Likewise.
1782
1783 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
1784
1785 * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
1786 add implicit version nodes if an anonymous version tag is being
1787 used.
1788
1789 2017-01-24 Jiong Wang <jiong.wang@arm.com>
1790
1791 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
1792 "Compile 8a", "Compile 8b"...
1793 (lto_compile_elf_tests): ...to here. Always run these tests.
1794 (lto_run_elf_tests): Move "LTO 7"...
1795 (lto_run_elf_shared_tests): ...to here. Restrict these tests on
1796 environment where share library is supported.
1797
1798 2017-01-24 Alan Modra <amodra@gmail.com>
1799
1800 * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
1801 and symbols.
1802 * testsuite/ld-powerpc/tlsexe.d: Likewise.
1803 * testsuite/ld-powerpc/tlsexe.g: Likewise.
1804
1805 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
1806
1807 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
1808 * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
1809 * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
1810 * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
1811 * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
1812 * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
1813 * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
1814 * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
1815 * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
1816 * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
1817 * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
1818 * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
1819 * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
1820
1821 2017-01-23 Nick Clifton <nickc@redhat.com>
1822
1823 * po/ga.po: Updated Irish translation.
1824
1825 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
1826
1827 PR ld/20828
1828 * testsuite/ld-elf/pr20828.ld: Add `.plt'.
1829
1830 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
1831
1832 PR ld/20828
1833 * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
1834 `fdata' and `edata' respectively.
1835 * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
1836 * testsuite/ld-elf/pr20828-a.sd: Likewise.
1837 * testsuite/ld-elf/pr20828-b.sd: Likewise.
1838 * testsuite/ld-elf/pr20828-c.sd: Likewise.
1839
1840 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
1841
1842 PR ld/20828
1843 * testsuite/ld-elf/pr20828-1.sd: Remove test.
1844 * testsuite/ld-elf/pr20828-a.sd: New test.
1845 * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
1846 * testsuite/ld-elf/pr20828-b.sd: ... this.
1847 * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
1848 * testsuite/ld-elf/pr20828-c.sd: ... this.
1849 * testsuite/ld-elf/shared.exp: Adjust accordingly.
1850
1851 2017-01-23 Jiong Wang <jiong.wang@arm.com>
1852
1853 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
1854 board_cflags as gcc is used as linker driver.
1855 * testsuite/ld-unique/unique.exp: Likewise
1856
1857 2017-01-20 Jiong Wang <jiong.wang@arm.com>
1858
1859 * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
1860 * testsuite/ld-aarch64/func-in-so.s: New test source file.
1861 * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
1862 * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
1863
1864 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
1867
1868 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1869
1870 PR ld/20995
1871 * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
1872 `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
1873
1874 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1875
1876 PR ld/20828
1877 * testsuite/ld-elf/pr20828-1.sd: New test.
1878 * testsuite/ld-elf/pr20828-2a.sd: New test.
1879 * testsuite/ld-elf/pr20828-2b.sd: New test.
1880 * testsuite/ld-elf/pr20828.ld: New test linker script.
1881 * testsuite/ld-elf/pr20828.ver: New test version script.
1882 * testsuite/ld-elf/pr20828.s: New test source.
1883 * testsuite/ld-elf/shared.exp: Run the new test.
1884
1885 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1886
1887 PR gas/20649
1888 * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
1889 relocation pairing link test.
1890
1891 2017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
1892
1893 * testsuite/ld-unique/unique.exp: Filter shared lib cases in
1894 uniqeue.exp, as not all targets have such support.
1895
1896 2017-01-16 Nick Clifton <nickc@redhat.com>
1897
1898 * po/sv.po: Updated Swedish translation.
1899
1900 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
1901
1902 PR ld/21038
1903 * testsuite/ld-x86-64/pr21038b.d: Updated.
1904 * testsuite/ld-x86-64/pr21038c.d: New file.
1905 * testsuite/ld-x86-64/pr21038c.s: Likewise.
1906 * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
1907
1908 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
1909
1910 PR ld/21038
1911 * testsuite/ld-x86-64/pr21038a.d: New file.
1912 * testsuite/ld-x86-64/pr21038a.s: Likewise.
1913 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1914 * testsuite/ld-x86-64/pr21038b.s: Likewise.
1915 * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
1916
1917 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
1918
1919 * configure.tgt: Add entries for x86-redox and x86_64-redox.
1920
1921 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1922
1923 * testsuite/ld-x86-64/pr20830b.d: Updated.
1924
1925 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1926
1927 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
1928 * testsuite/ld-x86-64/pr20830.d: Renamed to ...
1929 * testsuite/ld-x86-64/pr20830a.d: This. Updated.
1930 * testsuite/ld-x86-64/pr20830b.d: New file.
1931 * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
1932 Run pr20830b.
1933
1934 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1935
1936 PR ld/20830
1937 * testsuite/ld-i386/i386.exp: Run pr20830.
1938 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1939 * testsuite/ld-i386/pr20830.d: New file.
1940 * testsuite/ld-i386/pr20830.s: Likewise.
1941 * testsuite/ld-x86-64/pr20830.d: Likewise.
1942 * testsuite/ld-x86-64/pr20830.s: Likewise.
1943
1944 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1945
1946 * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
1947 -Wl,--as-needed to $CC.
1948 * testsuite/ld-i386/tls.exp: Likewise.
1949
1950 2017-01-10 Nick Clifton <nickc@redhat.com>
1951
1952 * po/sv.po: Updated Swedish translation.
1953
1954 2016-12-09 Graham Markall <graham.markall@embecosm.com>
1955 Andrew Burgess <andrew.burgess@embecosm.com>
1956
1957 * Makefile.am: Add earclinux_nps.c target and add to
1958 ALL_EMULATION_SOURCES.
1959 * Makefile.in: Likewise, regenerated.
1960 * configure.tgt: Add arclinux_nps as an extra emulation for
1961 arc*-*-elf* and arc*-*-linux*.
1962 * emulparams/arc-nps.sh: New file.
1963 * emulparams/arclinux_nps.sh: New file.
1964 * testsuite/ld-arc/arclinux-nps.d,
1965 * testsuite/ld-arc/arclinux-nps.s: New test.
1966
1967 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
1968
1969 PR 20958
1970 * ldlex.l (option): Add noyywrap
1971 (yywrap): Delete.
1972 * ldlex.h (yywrap): Delete prototype.
1973
1974 2017-01-04 Alan Modra <amodra@gmail.com>
1975
1976 * testsuite/ld-elf/audit.exp: Check for shared lib support.
1977 * testsuite/ld-elf/compress.exp: Likewise.
1978 * testsuite/ld-elf/dwarf.exp: Likewise.
1979 * testsuite/ld-elf/shared.exp: Likewise.
1980 * testsuite/ld-elf/wrap.exp: Likewise.
1981 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1982 * testsuite/ld-plugin/lto.exp: Check $CXX exists.
1983
1984 2017-01-03 Alan Modra <amodra@gmail.com>
1985
1986 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
1987 allow test to continue after compilation errors.
1988 (run_cc_link_tests): Likewise.
1989
1990 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
1991
1992 * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
1993 (epruelf.c): Remove unneeded dependencies.
1994 * Makefile.in: Regenerate
1995
1996 2017-01-03 Alan Modra <amodra@gmail.com>
1997
1998 * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
1999 to various tests.
2000 * testsuite/ld-elfweak/elfweak.exp: Likewise.
2001 * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
2002
2003 2017-01-03 Alan Modra <amodra@gmail.com>
2004
2005 * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
2006 * testsuite/ld-pie/pie.exp: Likewise.
2007 * testsuite/ld-plugin/lto.exp: Likewise.
2008
2009 2017-01-02 Alan Modra <amodra@gmail.com>
2010
2011 * Makefile.am (bootstrap): Delete rule.
2012 (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
2013 (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
2014 (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
2015 * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
2016 (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
2017 * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
2018 * Makefile.in: Regenerate.
2019 * configure: Regenerate.
2020 * testsuite/config/default.exp (get_link_files): Delete.
2021 (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
2022 define.
2023 (ld_simple_link): Delete.
2024 * testsuite/lib/ld-lib.exp (default_ld_link): Delete
2025 (default_ld_simple_link): Rename to default_ld_link.
2026 (ld_simple_link_defsyms): Rename to ld_link_defsyms.
2027 (run_ld_link_tests): Use ld_link, not ld_simple_link.
2028 (run_cc_link_tests): Likewise.
2029 (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
2030 Don't run exe when not native, and return unsupported.
2031 * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
2032 Link ld1 etc. using $CC.
2033 * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
2034 * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
2035 * testsuite/ld-cygwin/exe-export.exp: Likewise.
2036 * testsuite/ld-elf/binutils.exp: Likewise.
2037 * testsuite/ld-elf/eh-group.exp: Likewise.
2038 * testsuite/ld-elf/exclude.exp: Likewise.
2039 * testsuite/ld-elf/frame.exp: Likewise.
2040 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
2041 * testsuite/ld-elf/tls_common.exp: Likewise.
2042 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
2043 * testsuite/ld-fastcall/fastcall.exp: Likewise.
2044 * testsuite/ld-gc/gc.exp: Likewise.
2045 * testsuite/ld-ifunc/binutils.exp: Likewise.
2046 * testsuite/ld-mep/mep.exp: Likewise.
2047 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
2048 * testsuite/ld-mn10300/mn10300.exp: Likewise.
2049 * testsuite/ld-nios2/nios2.exp: Likewise.
2050 * testsuite/ld-pe/pe-compile.exp: Likewise.
2051 * testsuite/ld-pe/pe-run.exp: Likewise.
2052 * testsuite/ld-pe/pe-run2.exp: Likewise.
2053 * testsuite/ld-plugin/plugin.exp: Likewise.
2054 * testsuite/ld-scripts/align.exp: Likewise.
2055 * testsuite/ld-scripts/alignof.exp: Likewise.
2056 * testsuite/ld-scripts/assert.exp: Likewise.
2057 * testsuite/ld-scripts/defined.exp: Likewise.
2058 * testsuite/ld-scripts/extern.exp: Likewise.
2059 * testsuite/ld-scripts/log2.exp: Likewise.
2060 * testsuite/ld-scripts/map-address.exp: Likewise.
2061 * testsuite/ld-scripts/phdrs.exp: Likewise.
2062 * testsuite/ld-scripts/phdrs2.exp: Likewise.
2063 * testsuite/ld-scripts/script.exp: Likewise.
2064 * testsuite/ld-scripts/section-flags.exp: Likewise.
2065 * testsuite/ld-scripts/sizeof.exp: Likewise.
2066 * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
2067 * testsuite/ld-scripts/weak.exp: Likewise.
2068 * testsuite/ld-selective/selective.exp: Likewise.
2069 * testsuite/ld-sh/sh.exp: Likewise.
2070 * testsuite/ld-sh/sh64/relax.exp: Likewise.
2071 * testsuite/ld-sh/sh64/relfail.exp: Likewise.
2072 * testsuite/ld-srec/srec.exp: Likewise.
2073 * testsuite/ld-tic6x/tic6x.exp: Likewise.
2074 * testsuite/ld-undefined/weak-undef.exp: Likewise.
2075 * testsuite/ld-versados/versados.exp: Likewise.
2076 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
2077 * testsuite/ld-xtensa/coalesce.exp: Likewise.
2078 * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
2079 * testsuite/ld-xtensa/lcall.exp: Likewise.
2080 * testsuite/ld-elf/audit.exp: Run non-native too.
2081 * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
2082 gcc -Wl, options.
2083 * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
2084 not ld_simple_link. Add -Wl,--no-as-needed to some tests.
2085 * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
2086 * testsuite/ld-elf/indirect.exp: Run non-native too. Add
2087 -Wl,--no-as-needed to most tests.
2088 * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
2089 to simplify quoting. Set run_tests using [list] rather than
2090 brace assignment to expand $extralibs. Add -Wl,--no-as-needed
2091 to many test. Prefix ld options with -Wl,.
2092 (mix_pic_and_non_pic): Don't run exe if not native.
2093 * testsuite/ld-elf/wrap.exp: Run non-native too. Add
2094 -Wl,--no-as-needed and prefix ld options with -Wl,.
2095 * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
2096 not ld_simple_link.
2097 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
2098 (visibility_test): Don't run exe if not native.
2099 * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
2100 not ld_simple_link.
2101 (build_exec): Don't run exe if not native.
2102 * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
2103 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
2104 to some tests and prefix ld options with -Wl,. Expect GNU
2105 for hppa-linux even when no ifuncs. Delete cleanup.
2106 * testsuite/ld-pie/pie.exp: Run non-native too.
2107 * testsuite/ld-plugin/lto.exp: Likewise.
2108 * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
2109 not ld_simple_link.
2110 (shared_test): Don't run exe if not native.
2111 * testsuite/ld-size/size.exp: Run non-native too. Add
2112 -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
2113 * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
2114 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
2115 to some tests and prefix ld options with -Wl,. Expect GNU
2116 for hppa-linux even when no unique syms. Delete cleanup.
2117 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
2118 tests and prefix ld options with -Wl,.
2119 * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
2120 Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
2121
2122 2017-01-02 Alan Modra <amodra@gmail.com>
2123
2124 * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
2125
2126 2017-01-02 Alan Modra <amodra@gmail.com>
2127
2128 PR ld/21000
2129 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
2130 (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
2131 * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
2132 is already defined.
2133
2134 2017-01-02 Alan Modra <amodra@gmail.com>
2135
2136 Update year range in copyright notice of all files.
2137
2138 For older changes see ChangeLog-2016
2139 \f
2140 Copyright (C) 2017 Free Software Foundation, Inc.
2141
2142 Copying and distribution of this file, with or without modification,
2143 are permitted in any medium without royalty provided the copyright
2144 notice and this notice are preserved.
2145
2146 Local Variables:
2147 mode: change-log
2148 left-margin: 8
2149 fill-column: 74
2150 version-control: never
2151 End:
This page took 0.079476 seconds and 5 git commands to generate.