MIPS/BFD: Include the addend in JALX's target alignment verification
[binutils-gdb.git] / ld / ChangeLog
1 2016-05-27 Maciej W. Rozycki <macro@imgtec.com>
2
3 * testsuite/ld-mips-elf/unaligned-jalx-addend-0.d: New test.
4 * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: New test.
5 * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-0.d: New
6 test.
7 * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d: New
8 test.
9 * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-0.d: New
10 test.
11 * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d: New
12 test.
13 * testsuite/ld-mips-elf/unaligned-jalx-addend-0.s: New test
14 source.
15 * testsuite/ld-mips-elf/unaligned-jalx-addend-1.s: New test
16 source.
17 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
18
19 2016-05-27 Maciej W. Rozycki <macro@imgtec.com>
20
21 * testsuite/ld-mips-elf/reloc-local-overflow.d: New test.
22 * testsuite/ld-mips-elf/reloc-local-overflow.s: Source for the
23 new test.
24 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
25
26 2016-05-26 Maciej W. Rozycki <macro@imgtec.com>
27
28 * testsuite/ld-mips-elf/unaligned-jalx-0.d: Fold
29 `unaligned-jalx-2' here.
30 * testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: Fold
31 `unaligned-jalx-mips16-2' here.
32 * testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: Fold
33 `unaligned-jalx-micromips-2' here.
34 * testsuite/ld-mips-elf/unaligned-jalx-0.s: Update accordingly.
35 * testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error
36 message.
37 * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise.
38 * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise.
39 * testsuite/ld-mips-elf/unaligned-jalx-2.d: Remove test.
40 * testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: Remove test.
41 * testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: Remove
42 test.
43 * testsuite/ld-mips-elf/unaligned-jalx-2.s: Remove test source.
44 * testsuite/ld-mips-elf/unaligned-lwpc-0.d: Fold
45 `unaligned-lwpc-3' here.
46 * testsuite/ld-mips-elf/unaligned-lwpc-0.s: Update accordingly.
47 * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Fold
48 `unaligned-lwpc-2' here.
49 * testsuite/ld-mips-elf/unaligned-lwpc-1.s: Update accordingly.
50 * testsuite/ld-mips-elf/unaligned-lwpc-2.d: Remove test.
51 * testsuite/ld-mips-elf/unaligned-lwpc-2.s: Remove test source.
52 * testsuite/ld-mips-elf/unaligned-lwpc-3.d: Remove test.
53 * testsuite/ld-mips-elf/unaligned-lwpc-3.s: Remove test source.
54 * testsuite/ld-mips-elf/unaligned-ldpc-0.d: Fold
55 `unaligned-ldpc-4' here.
56 * testsuite/ld-mips-elf/unaligned-ldpc-0.s: Update accordingly.
57 * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Update error
58 message. Fold `unaligned-ldpc-2' and `unaligned-ldpc-3' here.
59 * testsuite/ld-mips-elf/unaligned-ldpc-1.s: Update accordingly.
60 * testsuite/ld-mips-elf/unaligned-ldpc-2.d: Remove test.
61 * testsuite/ld-mips-elf/unaligned-ldpc-2.s: Remove test source.
62 * testsuite/ld-mips-elf/unaligned-ldpc-3.d: Remove test.
63 * testsuite/ld-mips-elf/unaligned-ldpc-3.s: Remove test source.
64 * testsuite/ld-mips-elf/unaligned-ldpc-4.d: Remove test.
65 * testsuite/ld-mips-elf/unaligned-ldpc-4.s: Remove test source.
66 * testsuite/ld-mips-elf/mips-elf.exp: Delete removed tests.
67
68 2016-05-26 Nick Clifton <nickc@redhat.com>
69
70 PR target/20134
71 * scripttempl/elf32msp430.sc (.bss): Provide __bssstart and
72 __bsssize.
73 * scripttempl/elf32msp430_3.sc (.bss): Likewise.
74
75 2016-05-25 Maciej W. Rozycki <macro@imgtec.com>
76
77 * testsuite/ld-mips-elf/unaligned-jalx-0.d: New test.
78 * testsuite/ld-mips-elf/unaligned-jalx-1.d: New test.
79 * testsuite/ld-mips-elf/unaligned-jalx-2.d: New test.
80 * testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: New test.
81 * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: New test.
82 * testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: New test.
83 * testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: New test.
84 * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: New test.
85 * testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: New test.
86 * testsuite/ld-mips-elf/unaligned-lwpc-0.d: New test.
87 * testsuite/ld-mips-elf/unaligned-lwpc-1.d: New test.
88 * testsuite/ld-mips-elf/unaligned-lwpc-2.d: New test.
89 * testsuite/ld-mips-elf/unaligned-lwpc-3.d: New test.
90 * testsuite/ld-mips-elf/unaligned-ldpc-0.d: New test.
91 * testsuite/ld-mips-elf/unaligned-ldpc-1.d: New test.
92 * testsuite/ld-mips-elf/unaligned-ldpc-2.d: New test.
93 * testsuite/ld-mips-elf/unaligned-ldpc-3.d: New test.
94 * testsuite/ld-mips-elf/unaligned-ldpc-4.d: New test.
95 * testsuite/ld-mips-elf/unaligned-jalx-0.s: New test source.
96 * testsuite/ld-mips-elf/unaligned-jalx-1.s: New test source.
97 * testsuite/ld-mips-elf/unaligned-jalx-2.s: New test source.
98 * testsuite/ld-mips-elf/unaligned-insn.s: New test source.
99 * testsuite/ld-mips-elf/unaligned-lwpc-0.s: New test source.
100 * testsuite/ld-mips-elf/unaligned-lwpc-1.s: New test source.
101 * testsuite/ld-mips-elf/unaligned-lwpc-2.s: New test source.
102 * testsuite/ld-mips-elf/unaligned-lwpc-3.s: New test source.
103 * testsuite/ld-mips-elf/unaligned-ldpc-0.s: New test source.
104 * testsuite/ld-mips-elf/unaligned-ldpc-1.s: New test source.
105 * testsuite/ld-mips-elf/unaligned-ldpc-2.s: New test source.
106 * testsuite/ld-mips-elf/unaligned-ldpc-3.s: New test source.
107 * testsuite/ld-mips-elf/unaligned-ldpc-4.s: New test source.
108 * testsuite/ld-mips-elf/unaligned-syms.s: New test source.
109 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
110
111 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
112
113 PR ld/20103
114 * ldmain.c (add_archive_element): Don't claim new IR symbols
115 after all IR symbols have been claimed.
116 * plugin.c (plugin_call_claim_file): Remove no_more_claiming
117 check.
118 * testsuite/ld-plugin/lto.exp (pr20103): New proc.
119 Run PR ld/20103 tests.
120 * testsuite/ld-plugin/pr20103a.c: New file.
121 * testsuite/ld-plugin/pr20103b.c: Likewise.
122 * testsuite/ld-plugin/pr20103c.c: Likewise.
123
124 2016-05-24 Maciej W. Rozycki <macro@imgtec.com>
125
126 * testsuite/ld-mips-elf/jalx-local.d: New test.
127 * testsuite/ld-mips-elf/jalx-local-n32.d: New test.
128 * testsuite/ld-mips-elf/jalx-local-n64.d: New test.
129 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
130
131 2016-05-23 Kuba Sejdak <jakub.sejdak@phoesys.com>
132
133 * Makefile.am: Add earmelf_phoenix.c.
134 * Makefile.in: Regenerate.
135 * configure.tgt: Add entry for arm-phoenix.
136 * emulparams/armelf_phoenix.sh: New file.
137
138 2016-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
139
140 * emultempl/armelf.em (arm_elf_before_allocation): Call
141 bfd_elf32_arm_keep_private_stub_output_sections before generic
142 before_allocation function.
143
144 2016-05-20 Maciej W. Rozycki <macro@imgtec.com>
145
146 * testsuite/ld-mips-elf/jalx-addend.d: New test.
147 * testsuite/ld-mips-elf/jalx-addend-n32.d: New test.
148 * testsuite/ld-mips-elf/jalx-addend-n64.d: New test.
149 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
150
151 2016-05-19 H.J. Lu <hongjiu.lu@intel.com>
152
153 PR ld/20117
154 * testsuite/ld-i386/i386.exp: Run pr20117.
155 * testsuite/ld-i386/pr19609-1i.d: Updated.
156 * testsuite/ld-i386/pr20117.d: New file.
157 * testsuite/ld-i386/pr20117.s: Likewise.
158
159 2016-05-19 Cupertino Miranda <cmiranda@synopsys.com>
160
161 * testsuite/ld-elf/compressed1d.d: Removed from notarget.
162 * testsuite/ld-elf/group8a.d: Likewise.
163 * testsuite/ld-elf/group8b.d: Likewise.
164 * testsuite/ld-elf/group9a.d: Likewise.
165 * testsuite/ld-elf/group9b.d: Likewise.
166 * testsuite/ld-elf/pr12851.d: Likewise.
167 * testsuite/ld-elf/pr12975.d: Likewise.
168 * testsuite/ld-elf/pr13177.d: Likewise.
169 * testsuite/ld-elf/pr13195.d: Likewise.
170 * testsuite/ld-elf/pr17615.d: Likewise.
171 * testsuite/ld-elf/eh-frame-hdr.d: Removed from xfail.
172 * testsuite/ld-elf/group3b.d: Likewise.
173 * testsuite/ld-srec/srec.exp: Likewise.
174 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark ARC
175 as supporting gc.
176 (check_shared_lib_support): Mark ARC as supporting.
177
178 2016-05-19 Cupertino Miranda <cmiranda@synopsys.com>
179
180 * emulparams/arcelf.sh: Changed.
181 * emulparams/arclinux.sh: Likewise.
182 * scripttempl/arclinux.sc: Moved to a more standard implementation
183 similar to elf.sc.
184
185 2016-05-19 Maciej W. Rozycki <macro@imgtec.com>
186
187 * testsuite/lib/ld-lib.exp (check_shared_lib_support): Reorder
188 `ft32-*-*' behind `frv-*-*'.
189
190 2016-05-19 Maciej W. Rozycki <macro@imgtec.com>
191
192 * configure.tgt: Remove `am34-*-linux*' support.
193
194 2016-05-19 Alan Modra <amodra@gmail.com>
195
196 * testsuite/ld-scripts/crossref.exp: Remove -mcall-aixdesc hack.
197 * testsuite/ld-scripts/cross2.t: Tweak .opd and .toc placement.
198 * testsuite/ld-scripts/cross3.t: Likewise.
199 * testsuite/ld-scripts/cross4.t: Likewise.
200 * testsuite/ld-scripts/cross5.t: Likewise.
201 * testsuite/ld-scripts/cross6.t: Likewise.
202 * testsuite/ld-scripts/cross7.t: Likewise.
203
204 2016-05-19 Alan Modra <amodra@gmail.com>
205
206 * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Pass in
207 exe name rather than constructing testname. Fix typo in
208 sub-test name. Log copying. Use -rpath rather than -R.
209
210 2016-05-18 Nick Clifton <nickc@redhat.com>
211
212 * scripttempl/ft32.sc: Use fixed constants for memory region
213 lengths. Include DWARF debug sections.
214 (.data .bss): Do not assign locations during relocatable links.
215 * testsuite/ld-elf/compressed1d.d: Skip for FT32.
216 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
217 * testsuite/ld-elf/sec64k.exp: Likewise.
218 * testsuite/ld-elf/init-fini-array.d: XFail for FT32.
219 * testsuite/ld-elf/merge.d: Likewise.
220 * testsuite/ld-elf/orphan-region.d: Likewise.
221 * testsuite/ld-elf/orphan.s: Likewise.
222 * testsuite/ld-elf/orphan3.d: Likewise.
223 * testsuite/ld-elf/pr349.d: Likewise.
224 * testsuite/ld-elf/warn2.d: Likewise.
225 * testsuite/lib/ld-lib.exp (check_shared_lib_support): Note
226 that the FT32 does not support shared libraries.
227
228 2016-05-17 H.J. Lu <hongjiu.lu@intel.com>
229
230 * testsuite/lib/ld-lib.exp (at_least_gcc_version): Check
231 global CC.
232
233 2016-05-17 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
234
235 * scripttempl/avr.sc (text): Place .progmem.data from avr-libc
236 above .progmem*.
237 * scripttempl/avrtiny.sc (text): Likewise.
238
239 2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
240
241 * testsuite/ld-unique/unique.exp: Use `is_elf_format' and
242 `supports_gnu_unique' to qualify testing.
243
244 2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
245
246 * testsuite/ld-elf/flags1.d: Update the xfail list.
247
248 2016-05-15 Maciej W. Rozycki <macro@imgtec.com>
249
250 * testsuite/ld-elf/flags1.d: Update for `*-*-nacl*' xfail
251 removal.
252
253 2016-05-14 H.J. Lu <hongjiu.lu@intel.com>
254
255 PR ld/20097
256 * testplug2.c (onall_symbols_read): Remove redundant sizeof
257 on EXPECTED_VIEW_LENGTH.
258 * testplug4.c (onall_symbols_read): Likewise.
259
260 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
261
262 PR ld/20093
263 * testsuite/ld-x86-64/pr20093-1.d: New file.
264 * testsuite/ld-x86-64/pr20093-1.s: Likewise.
265 * testsuite/ld-x86-64/pr20093-2.d: Likewise.
266 * testsuite/ld-x86-64/pr20093-2.s: Likewise.
267 * testsuite/ld-x86-64/x86-64.exp: Run pr20093-1 and pr20093-2.
268
269 2016-05-13 Alan Modra <amodra@gmail.com>
270
271 * testsuite/ld-arm/arm-elf.exp: Adjust for arm-no-rel-plt now passing.
272 Use different output file name for static app without .rel.plt.
273 * testsuite/ld-arm/arm-no-rel-plt.ld: Align .rel.dyn and .rela.dyn.
274 * testsuite/ld-arm/arm-no-rel-plt.out: Delete.
275 * testsuite/ld-arm/arm-no-rel-plt.r: New.
276 * testsuite/ld-arm/arm-static-app.d: Don't check file name.
277 * testsuite/ld-arm/arm-static-app.r: Likewise.
278
279 2016-05-12 H.J. Lu <hongjiu.lu@intel.com>
280
281 PR ld/20070
282 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug4.la.
283 (libldtestplug4_la_SOURCES): New.
284 (libldtestplug4_la_CFLAGS): Likewise.
285 (libldtestplug4_la_LDFLAGS): Likewise.
286 * Makefile.in: Regenerated.
287 * plugin.c (get_symbols): Return resolution based on IR symbol
288 kinds for symbols defined/referenced only within IR.
289 * testplug4.c: New file.
290 * ld/testsuite/ld-plugin/pr20070.d: Likewise.
291 * ld/testsuite/ld-plugin/pr20070a.c: Likewise.
292 * ld/testsuite/ld-plugin/pr20070b.c: Likewise.
293 * testsuite/ld-plugin/plugin.exp (plugin4_name): New.
294 (plugin4_path): Likewise.
295 Add a test for ld/20070.
296
297 2016-05-11 Alan Modra <amodra@gmail.com>
298
299 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
300 Call elf32_hppa_init_stub_bfd.
301
302 2016-05-11 Alan Modra <amodra@gmail.com>
303
304 PR 20060
305 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
306 * testsuite/ld-powerpc/tlsdll.s: New.
307 * testsuite/ld-powerpc/tlsdll.ver: New.
308 * testsuite/ld-powerpc/tlsdll_32.s: New.
309 * testsuite/ld-powerpc/tlsopt5.d: New.
310 * testsuite/ld-powerpc/tlsopt5.s: New.
311 * testsuite/ld-powerpc/tlsopt5_32.d: New.
312 * testsuite/ld-powerpc/tlsopt5_32.s: New.
313
314 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
315
316 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Use
317 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
318
319 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
320
321 * emultempl/armelf.em (elf32_arm_add_stub_section): Add output_section
322 parameter and rename input_section parameter to after_input_section.
323 Append input stub section to the output section if after_input_section
324 is NULL.
325
326 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
327
328 * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 10 (DSP)): New
329 test.
330 * testsuite/ld-arm/attr-merge-10b-dsp.s: New file.
331 * testsuite/ld-arm/attr-merge-10-dsp.attr: Likewise.
332
333 2016-05-10 Christophe Lyon <christophe.lyon@linaro.org>
334
335 * ld/testsuite/ld-elf/flags1.d (xfail): Remove *-*-nacl*".
336
337 2016-05-09 Christophe Monat <christophe.monat@st.com>
338
339 PR ld/20030
340 * testsuite/ld-arm/arm-elf.exp: Run new stm32l4xx-fix-vldm-dp
341 tests. Fix misnamed stm32l4xx-fix-all.
342 * testsuite/ld-arm/stm32l4xx-fix-vldm-dp.s: New tests for multiple
343 loads with DP registers.
344 * testsuite/ld-arm/stm32l4xx-fix-vldm-dp.d: New reference file.
345 * testsuite/ld-arm/stm32l4xx-fix-vldm.s: Add missing comment.
346 * testsuite/ld-arm/stm32l4xx-fix-all.s: Add tests for multiple
347 loads with DP registers.
348 * testsuite/ld-arm/stm32l4xx-fix-all.d: Update reference.
349
350 2016-05-09 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
351
352 * testsuite/ld-elf/flags1.d (readelf): Dump section header instead
353 program headers.
354 (xfail): Remove avr-*-*.
355 Update regex to check the section flags.
356 * testsuite/ld-elf/merge.d (xfail): Remove avr-*-*.
357
358 2016-05-09 Alan Modra <amodra@gmail.com>
359
360 * Makefile.am (ealphavms.c, eelf64_ia64_vms): Correct .em deps.
361 * Makefile.in: Regenerate.
362
363 2016-05-09 Alan Modra <amodra@gmail.com>
364
365 * testsuite/ld-scripts/pr14962-2.t: Match .text, not *.text.
366 * testsuite/ld-scripts/rgn-at5.t: Similarly, .sec not *.sec.
367 * testsuite/ld-scripts/section-match-1.t: Likewise.
368
369 2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
370
371 PR ld/17550
372 * testsuite/ld-elf/pr17550-1.s: New file.
373 * testsuite/ld-elf/pr17550-2.s: Likewise.
374 * testsuite/ld-elf/pr17550-3.s: Likewise.
375 * testsuite/ld-elf/pr17550-4.s: Likewise.
376 * testsuite/ld-elf/pr17550a.d: Likewise.
377 * testsuite/ld-elf/pr17550b.d: Likewise.
378 * testsuite/ld-elf/pr17550c.d: Likewise.
379 * testsuite/ld-elf/pr17550d.d: Likewise.
380
381 2016-05-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
382
383 * ld/testsuite/ld-srec/srec.exp: Mark test as XFAIL for AVR.
384
385 2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
386
387 * testsuite/ld-i386/i386.exp: Run load7.
388 * testsuite/ld-i386/load7.d: New file.
389 * testsuite/ld-i386/load7.map: Likewise.
390 * testsuite/ld-i386/load7.s: Likewise.
391 * testsuite/ld-x86-64/load2.d: Likewise.
392 * testsuite/ld-x86-64/load2.map: Likewise.
393 * testsuite/ld-x86-64/load2.s: Likewise.
394 * testsuite/ld-x86-64/x86-64.exp: Run load2.
395
396 2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
397
398 * emulparams/elf_iamcu.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): New.
399 * emulparams/elf_k1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
400 Likewise.
401 * emulparams/elf_l1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
402 Likewise.
403
404 2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
405
406 * testsuite/ld-x86-64/pr18591.d: Pass --no-relax to ld.
407
408 2016-05-04 H.J. Lu <hongjiu.lu@intel.com>
409
410 * ldlang.c (init_os): Pass %E to einfo when bfd_section == NULL.
411
412 2016-05-04 Maciej W. Rozycki <macro@imgtec.com>
413
414 * testsuite/ld-unique/unique.d: New test.
415 * testsuite/ld-unique/unique.exp: Run the new test. Adjust
416 messages for compiled tests.
417
418 2016-05-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
419
420 * testsuite/ld-elf/pr18735.d: Allow other symbols.
421 * testsuite/ld-elf/sec64k.exp: Skip 64ksec for avr.
422 * testsuite/ld-gc/pr14265.d: Allow other symbols.
423 * testsuite/ld-plugin/plugin.exp: Add PR ld/17973 to
424 plugin_tests only if check_shared_lib_support is true.
425 * testsuite/ld-selective/selective.exp: Add --section-start
426 flag for avr.
427
428 2016-05-03 Maciej W. Rozycki <macro@imgtec.com>
429
430 PR 10549
431 * testsuite/ld-unique/unique.exp: Also run for `mips*-*-*'.
432
433 2016-05-03 Jiong Wang <jiong.wang@arm.com>
434
435 * emultempl/aarch64elf.em (--no-apply-dynamic-relocs): New option.
436 * NEWS: Mention --no-apply-dynamic-relocs.
437 * ld.texinfo (ld and the ARM family): Document
438 --no-apply-dynamic-relocs.
439 * testsuite/ld-aarch64/rela-abs-relative.s: New test source.
440 * testsuite/ld-aarch64/rela-abs-relative.d: New expected result.
441 * testsuite/ld-aarch64/rela-abs-relative-be.d: Likewise for big-endian.
442 * estsuite/ld-aarch64/rela-abs-relative-opt.d: Likewise, but enable new
443 option.
444
445 2016-05-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
446
447 * testsuite/ld-elfcomm/elfcomm.exp: Check for shared lib support
448 before running STT_COMMON tests.
449
450 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
451
452 * config/default.exp (NOPIE_CFLAGS): Download source only on
453 remote host.
454 (NOPIE_LDFLAGS): Likewise.
455 * testsuite/lib/ld-lib.exp (check_lto_available): Likewise.
456 (check_lto_fat_available): Likewise.
457 (check_lto_shared_available): Likewise.
458 (check_ifunc_available): Likewise.
459 (check_ifunc_attribute_available): Likewise.
460
461 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
462
463 * testsuite/ld-elf/compressed1b.d: Only run for Linux/GNU targets.
464
465 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
466
467 PR ld/20006
468 * testsuite/ld-elfvsb/elfvsb.exp (COMPRESS_LDFLAG): New.
469 (visibility_run): Pass COMPRESS_LDFLAG to visibility_test on
470 ELF targets.
471
472 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
473
474 * testsuite/ld-elf/compressed1b.d: Pass
475 --compress-debug-sections=none to ld.
476 * testsuite/ld-elf/compressed1c.d: Likewise.
477
478 2016-04-27 Alan Modra <amodra@gmail.com>
479
480 PR target/19985
481 * configure.tgt: Don't use var+=.
482
483 2016-04-25 Nick Clifton <nickc@redhat.com>
484
485 PR target/19985
486 * configure.tgt: Include big endian PPC64 emulations with little
487 endian PPC64 targets.
488
489 2016-04-25 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
490
491 * scripttempl/avrtiny.sc (.text): Do not set LMA to zero.
492
493 2016-04-21 Nick Clifton <nickc@redhat.com>
494
495 * ldlang.c (lang_check_relocs): Use bfd_link_check_relocs in
496 prefernce to _bfd_elf_link_check_relocs. Drop test for ELF
497 targets. Do not stop the checks when problems are encountered.
498
499 2016-04-21 Alan Modra <amodra@gmail.com>
500
501 * testsuite/ld-scripts/cross3.t: Add commonly used data
502 and text section names to output section statements.
503 * testsuite/ld-scripts/cross4.t: Likewise.
504 * testsuite/ld-scripts/cross5.t: Likewise.
505 * testsuite/ld-scripts/cross6.t: Likewise.
506 * testsuite/ld-scripts/cross7.t: Likewise.
507
508 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
509
510 * ldlang.c (lang_check_relocs): New function.
511 (lang_process): Call lang_check_relocs after lang_gc_sections.
512 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
513 call _bfd_elf_link_check_relocs here.
514
515 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
516
517 PR ld/19972
518 * testsuite/ld-elf/eh6.d: Pass -rW to readelf and check for
519 R_386_NONE or R_X86_64_NONE.
520
521 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
522
523 * testsuite/ld-x86-64/pic1.d: New file.
524 * testsuite/ld-x86-64/pic1.s: Likewise.
525 * testsuite/ld-x86-64/x86-64.exp: Run pic1.
526
527 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
528
529 * testsuite/ld-x86-64/pie2.d: New file.
530 * testsuite/ld-x86-64/pie2.s: Likewise.
531 * testsuite/ld-x86-64/x86-64.exp: Run pie2.
532
533 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
534
535 PR ld/19969
536 * testsuite/ld-x86-64/pr19969.d: New file.
537 * testsuite/ld-x86-64/pr19969a.S: Likewise.
538 * testsuite/ld-x86-64/pr19969b.S: Likewise.
539 * testsuite/ld-x86-64/x86-64.exp: Run pr19969 tests.
540
541 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
542
543 * emulparams/elf32_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
544 New.
545 * emulparams/elf_i386.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
546 Likewise.
547 * emulparams/elf_i386_be.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
548 Likewise.
549 * emulparams/elf_i386_chaos.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
550 Likewise.
551 * emulparams/elf_i386_ldso.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
552 Likewise.
553 * emulparams/elf_i386_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
554 Likewise.
555 * emulparams/elf_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
556 Likewise.
557 * emulparams/i386nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
558 Likewise.
559 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
560 Set check_relocs_after_open_input to TRUE if
561 CHECK_RELOCS_AFTER_OPEN_INPUT is yes.
562 (gld${EMULATION_NAME}_after_open): Call
563 _bfd_elf_link_check_relocs on all inputs if
564 check_relocs_after_open_input is TRUE.
565
566 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
567
568 * testsuite/ld-elf/eh6.s: Replace .long with .dc.a on
569 my_personality_v0.
570
571 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
572
573 * emultempl/scoreelf.em: Likewise.
574
575 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
576
577 PR ld/19719
578 * testsuite/ld-x86-64/pr19719.d: New file.
579 * testsuite/ld-x86-64/pr19719.s: Likewise.
580 * testsuite/ld-x86-64/x86-64.exp: Run pr19719.
581
582 2016-04-18 Matthew Fortune <matthew.fortune@imgtec.com>
583
584 * ld.texinfo: Document NOCROSSREFS_TO script command.
585 * ldlang.h (struct lang_nocrossrefs): Add onlyfirst field.
586 (lang_add_nocrossref_to): New prototype.
587 * ldcref.c (check_local_sym_xref): Use onlyfirst to only look for
588 symbols defined in the first section.
589 (check_nocrossref): Likewise.
590 * ldgram.y (NOCROSSREFS_TO): New script command.
591 * ldlang.c (lang_add_nocrossref): Set onlyfirst to FALSE.
592 (lang_add_nocrossref_to): New function.
593 * ldlex.l (NOCROSSREFS_TO): New token.
594 * NEWS: Mention NOCROSSREFS_TO.
595 * testsuite/ld-scripts/cross4.t: New file.
596 * testsuite/ld-scripts/cross5.t: Likewise.
597 * testsuite/ld-scripts/cross6.t: Likewise.
598 * testsuite/ld-scripts/cross7.t: Likewise.
599 * testsuite/ld-scripts/crossref.exp: Run 4 new NOCROSSREFS_TO
600 tests.
601
602 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
603
604 * Makefile.in: Regenerated with automake 1.11.6.
605 * aclocal.m4: Likewise.
606
607 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * testsuite/ld-arc/arc.exp: New file.
610 * testsuite/ld-arc/nps-1.s: New file.
611 * testsuite/ld-arc/nps-1a.d: New file.
612 * testsuite/ld-arc/nps-1b.d: New file.
613 * testsuite/ld-arc/nps-1b.err: New file.
614
615 2016-04-14 Nick Clifton <nickc@redhat.com>
616
617 PR 19457
618 * testsuite/ld-scripts/script.exp (extract_symbol_test): Add
619 exceptions for Mingw and Cygwin.
620
621 2016-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
622
623 * testsuite/lib/ld-lib.exp (run_dump_test): Initialise
624 check_ld(terminal).
625
626 2016-04-13 H.J. Lu <hongjiu.lu@intel.com>
627
628 PR ld/19774
629 * testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr17689b.o before
630 tmpdir/pr17689.so, fix gotpcrel1 test and add more --as-needed
631 tests.
632
633 2016-04-11 H.J. Lu <hongjiu.lu@intel.com>
634
635 PR ld/19939
636 * testsuite/ld-i386/i386.exp: Run PR ld/19939 tests.
637 * testsuite/ld-x86-64/x86-64.exp: Likewise.
638 * testsuite/ld-i386/pr19939.s: New file.
639 * testsuite/ld-i386/pr19939a.d: Likewise.
640 * testsuite/ld-i386/pr19939b.d: Likewise.
641 * testsuite/ld-x86-64/pr19939.s: Likewise.
642 * testsuite/ld-x86-64/pr19939a.d: Likewise.
643 * testsuite/ld-x86-64/pr19939b.d: Likewise.
644
645 2016-04-09 Oleg Endo <olegendo@gcc.gnu.org>
646
647 * emulparams/shelf.sh: Set stack area to 0x3FFFFF00.
648
649 2016-04-08 Alan Modra <amodra@gmail.com>
650
651 PR 18452
652 * ldlang.c (maybe_overlays): Delete.
653 (lang_size_sections_1): Remove code setting maybe_overlays.
654 (lang_check_section_addresses): Instead detect overlays by
655 exact match of section VMAs here. Fix memory leak.
656
657 2016-04-08 Dan Gisselquist <dgisselq@ieee.org>
658
659 * ldlang.c (print_output_section_statement): Show minfo size
660 in target machine address units.
661 (print_reloc_statement): Likewise.
662 (print_padding_statement): Likewise.
663 (print_data_statement): Likewise. Ensure minimum print_dot
664 increment of one address unit.
665
666 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
667
668 * emulparams/arc-endianness.sh: Make little endian default choice.
669
670 2016-04-07 Nick Clifton <nickc@redhat.com>
671
672 * scripttempl/elf32msp430.sc (.MSP430.attributes): Fix typo in
673 section name.
674 * scripttempl/elf32msp430_3.sc (.MSP430.attributes): Likewise.
675
676 2016-04-05 Andrew Burgess <andrew.burgess@embecosm.com>
677
678 * emulparams/arc-endianness.sh: New file.
679 * emulparams/arcebelf.sh: Deleted.
680 * emulparams/arcebelf_prof.sh: Deleted.
681 * emulparams/arceblinux.sh: Deleted.
682 * emulparams/arceblinux_prof.sh: Deleted.
683 * emulparams/arcelf.sh: Include arc-endinness.sh.
684 * emulparams/arcelf_prof.sh: Include arc-endinness.sh.
685 * emulparams/arclinux.sh: Include arc-endinness.sh.
686 * emulparams/arclinux_prof.sh: Include arc-endinness.sh.
687 * emulparams/arcv2elf.sh: Include arc-endinness.sh.
688 * emulparams/arcv2elfx.sh: Include arc-endinness.sh.
689 * testsuite/ld-elf/compressed1d.d: Update pattern for big and
690 little endian arc targets.
691 * testsuite/ld-elf/eh-frame-hdr.d: Likewise.
692 * testsuite/ld-elf/group1.d: Likewise.
693 * testsuite/ld-elf/group3b.d: Likewise.
694 * testsuite/ld-elf/group8a.d: Likewise.
695 * testsuite/ld-elf/group8b.d: Likewise.
696 * testsuite/ld-elf/group9a.d: Likewise.
697 * testsuite/ld-elf/group9b.d: Likewise.
698 * testsuite/ld-elf/linkonce2.d: Likewise.
699 * testsuite/ld-elf/pr12851.d: Likewise.
700 * testsuite/ld-elf/pr12975.d: Likewise.
701 * testsuite/ld-elf/pr13177.d: Likewise.
702 * testsuite/ld-elf/pr13195.d: Likewise.
703 * testsuite/ld-elf/pr17615.d: Likewise.
704 * testsuite/ld-elf/pr19162.d: Likewise.
705 * testsuite/ld-elf/sec64k.exp: Likewise.
706 * testsuite/lib/ld-lib.exp: Likewise.
707
708 2016-04-05 Maciej W. Rozycki <macro@imgtec.com>
709
710 PR ld/19908
711 * testsuite/ld-cris/tls-e-20.d: Adjust for hidden symbol
712 handling fix.
713 * testsuite/ld-cris/tls-e-20a.d: Likewise.
714 * testsuite/ld-cris/tls-e-21.d: Likewise.
715 * testsuite/ld-cris/tls-e-23.d: Likewise.
716 * testsuite/ld-cris/tls-e-80.d: Likewise.
717 * testsuite/ld-cris/tls-gd-3h.d: Likewise.
718 * testsuite/ld-cris/tls-leie-19.d: Likewise.
719 * testsuite/ld-mips-elf/export-class-ref-lib.sd: New test.
720 * testsuite/ld-mips-elf/export-hidden-ref.sd: New test.
721 * testsuite/ld-mips-elf/export-internal-ref.sd: New test.
722 * testsuite/ld-mips-elf/export-protected-ref.sd: New test.
723 * testsuite/ld-mips-elf/export-class-ref-f0.s: New test source.
724 * testsuite/ld-mips-elf/export-class-ref-f1.s: New test source.
725 * testsuite/ld-mips-elf/export-class-ref-f2.s: New test source.
726 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
727
728 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
729
730 * testsuite/ld-discard/extern.d: Removed xfail for ARC.
731 * testsuite/ld-discard/start.d: Likewise.
732 * testsuite/ld-discard/static.d: Likewise.
733 * testsuite/ld-elf/group1.d: Likewise.
734 * testsuite/ld-elf/group3b.d: Likewise.
735 * testsuite/ld-elf/orphan-region.d: Likewise.
736 * testsuite/ld-elf/orphan.d: Likewise.
737 * testsuite/ld-elf/orphan3.d: Likewise.
738 * testsuite/ld-elf/pr349.d: Likewise.
739 * testsuite/ld-elf/warn1.d: Likewise.
740 * testsuite/ld-elf/warn2.d: Likewise.
741 * testsuite/ld-elf/warn3.d: Likewise.
742 * testsuite/ld-scripts/crossref.exp: Add __SDATA_BEGIN__ symbol
743 through linker flags.
744 * testsuite/ld-srec/srec.exp: Set as xfail.
745
746 2016-04-04 H.J. Lu <hongjiu.lu@intel.com>
747
748 PR ld/19827
749 * testsuite/ld-i386/pr19827-nacl.rd: New file.
750 * testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
751
752 2016-04-04 Nick Clifton <nickc@redhat.com>
753
754 PR 19803
755 * emultempl/pe.em (change_undef): New function. Encapsulates
756 duplicated code in pe_fixup_stdcalls and adds the newly defined
757 sym to the gc root list.
758 (pe_fixup_stdcall): Use the new function.
759 * pe-dll.c (process_def_file_and_drectve); Add alias of exported
760 symbol to gc root list.
761
762 2016-03-31 Alan Modra <amodra@gmail.com>
763
764 * ldlang.c (TO_ADDR, TO_SIZE, opb_shift): Move earlier in file.
765 (lang_insert_orphan): Use TO_ADDR in __stop sym calculation.
766 (print_input_section): Don't use TO_ADDR when printing section
767 size.
768 (lang_size_sections_1): Use TO_ADDR in overlay lma calculation.
769 (lang_size_sections): Use TO_ADDR in relro end calculation.
770
771 2016-03-30 Andrew Burgess <andrew.burgess@embecosm.com>
772
773 * testsuite/lib/ld-lib.exp (run_dump_test): Fix check of return
774 value from regexp_diff.
775 * testsuite/ld-elf/orphan-5.l: Fix expected output.
776 * testsuite/ld-elf/orphan-6.l: Likewise.
777
778 2016-03-30 Alan Modra <amodra@gmail.com>
779
780 PR 18452
781 * ldlang.c (maybe_overlays): New static var.
782 (lang_size_sections_1): Set it here.
783 (struct check_sec): New.
784 (sort_sections_by_lma): Adjust for array of structs.
785 (sort_sections_by_vma): New function.
786 (lang_check_section_addresses): Check both LMA and VMA for overlap.
787 * testsuite/ld-scripts/rgn-over7.d: Adjust.
788
789 2016-03-30 Alan Modra <amodra@gmail.com>
790
791 * ldlang.c (lang_size_sections_1): Correct code detecting a
792 backward non-overlapping move.
793
794 2016-03-30 Alan Modra <amodra@gmail.com>
795
796 * ldlang.c (IS_TBSS): New macro, extracted from..
797 (IGNORE_SECTION): ..here.
798 (lang_size_sections_1): Use IS_TBSS and IGNORE_SECTION.
799 (lang_size_sections, lang_do_assignments_1): Use IS_TBSS.
800
801 2016-03-22 Nick Clifton <nickc@redhat.com>
802
803 PR ld/19803
804 * ldlang.c (lang_add_gc_name): New function. Adds the provided
805 symbol name to the list of gc symbols.
806 (lang_process): Call lang_add_gc_name with entry_symbol_default if
807 entry_symbol.name is NULL. Use lang_add_gc_name to add the init
808 and fini function names.
809 * pe-dll.c (process_def_file_and_drectve): Add exported names to
810 the gc symbol list.
811 * testsuite/ld-pe/pr19803.s: Do not export _testval symbol.
812 * testsuite/ld-pe/pr19803.d: Tweak expected output.
813
814 2016-03-22 Nick Clifton <nickc@redhat.com>
815
816 * configure: Regenerate.
817
818 2016-03-21 Nick Clifton <nickc@redhat.com>
819
820 * emultempl/msp430.em: Replace use of alloca with call to xmalloc.
821 * plugin.c: Likewise.
822 * pe-dll.c: Likewise.
823
824 2016-03-18 Awson <kyrab@mail.ru>
825
826 PR 19531
827 * scripttempl/pe.sc (.rdata_runtime_pseudo_reloc): Always KEEP
828 this section.
829 * scripttempl/pep.sc (.rdata_runtime_pseudo_reloc): Likewise.
830
831 2016-03-18 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
832
833 * ld-avr/gc-section-debugline.d: Relax regex check for CU.
834
835 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
836
837 PR ld/19827
838 * testsuite/ld-i386/i386.exp: Run PR ld/19827 tests.
839 * testsuite/ld-x86-64/x86-64.exp: Likewise.
840 * testsuite/ld-i386/pr19827.rd: New file.
841 * testsuite/ld-i386/pr19827a.S: Likewise.
842 * testsuite/ld-i386/pr19827b.S: Likewise.
843 * testsuite/ld-x86-64/pr19827.rd: Likewise.
844 * testsuite/ld-x86-64/pr19827a.S: Likewise.
845 * testsuite/ld-x86-64/pr19827b.S: Likewise.
846
847 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
848
849 PR ld/19807
850 * Makefile.am (ELF_X86_DEPS): Add
851 $(srcdir)/emulparams/reloc_overflow.sh.
852 * Makefile.in: Regenerated.
853 * NEWS: Mention -z noreloc-overflow.
854 * ld.texinfo: Document -z noreloc-overflow.
855 * emulparams/elf32_x86_64.sh: Source
856 ${srcdir}/emulparams/reloc_overflow.sh.
857 * emulparams/elf_x86_64.sh: Likewise.
858 * emulparams/reloc_overflow.sh: New file.
859 * testsuite/ld-x86-64/pr19807-1.s: New file.
860 * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
861 * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
862 * testsuite/ld-x86-64/pr19807-2.s: Likewise.
863 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
864 * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
865 * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
866 * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
867 * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
868 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/19807 tests.
869
870 2016-03-13 H.J. Lu <hongjiu.lu@intel.com>
871
872 PR ld/19539
873 * testsuite/ld-i386/i386.exp: Run pr19539.
874 * testsuite/ld-i386/pr19539.d: New file.
875 * testsuite/ld-i386/pr19539.s: Likewise.
876 * testsuite/ld-i386/pr19539.t: Likewise.
877 * testsuite/ld-x86-64/pr19539.s: Likewise.
878 * testsuite/ld-x86-64/pr19539.t: Likewise.
879 * testsuite/ld-x86-64/pr19539a.d: Likewise.
880 * testsuite/ld-x86-64/pr19539b.d: Likewise.
881 * testsuite/ld-x86-64/x86-64.exp: Run pr19539a and pr19539b.
882
883 2016-03-10 Mickael Guene <mickael.guene@st.com>
884
885 PR gas/19744
886 * testsuite/ld-arm/arm-elf.exp: New tests.
887 * testsuite/ld-arm/thumb1-adds-armv7-m.s: New.
888 * testsuite/ld-arm/thumb1-movs-armv7-m.s: New.
889
890 2016-03-10 Nick Clifton <nickc@redhat.com>
891
892 * scripttempl/elf32msp430.sc (.rodata): Remove spurious LONG(0).
893
894 2016-03-09 Pedro Alves <palves@redhat.com>
895
896 * scripttempl/v850.sc: Use "v850:old-gcc-abi" as OUTPUT_ARCH.
897 * scripttempl/v850_rh850.sc: Use "v850:rh850" as OUTPUT_ARCH.
898
899 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
900
901 PR ld/19789
902 * testsuite/ld-elf/pr19789.d: New file.
903 * testsuite/ld-elf/pr19789.s: Likewise.
904
905 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
906
907 PR ld/19784
908 * testsuite/ld-i386/i386.exp: Remove pr19636-2e-nacl test.
909 * testsuite/ld-i386/pr19636-2e-nacl.d: Moved to ...
910 * testsuite/ld-i386/pr19636-2e.d: Here. Remove notarget.
911 * testsuite/ld-ifunc/ifunc.exp: Run PR ld/19784 tests.
912 * testsuite/ld-ifunc/pass.out: New file.
913 * testsuite/ld-ifunc/pr19784a.c: Likewise.
914 * testsuite/ld-ifunc/pr19784b.c: Likewise.
915 * testsuite/ld-ifunc/pr19784c.c: Likewise.
916
917 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
918
919 PR ld/19774
920 * testsuite/ld-ifunc/ifunc.exp: Link tmpdir/pr18808a.o before
921 tmpdir/libpr18808.so. Link tmpdir/pr18841a.o before
922 tmpdir/libpr18841b.so and tmpdir/libpr18841c.so. Test
923 --as-needed for pr18841c.
924
925 2016-03-07 H.J. Lu <hongjiu.lu@intel.com>
926
927 PR ld/19774
928 * testsuite/ld-i386/i386.exp: Link tmpdir/pr18900.o before
929 tmpdir/pr18900.so and test --as-needed. Link tmpdir/gotpc1.o
930 before tmpdir/got1d.so and test --as-needed.
931 * testsuite/ld-x86-64/x86-64.exp: Link tmpdir/pr18900.o before
932 tmpdir/pr18900.so and test --as-needed.
933
934 2016-03-07 Jiong Wang <jiong.wang@arm.com>
935
936 * testsuite/ld-aarch64/implicit_got_section_1.s: New test source file.
937 * testsuite/ld-aarch64/implicit_got_section_1.d: New test expected
938 result.
939 * testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
940
941 2016-03-06 H.J. Lu <hongjiu.lu@intel.com>
942
943 * testsuite/ld-i386/i386.exp: Link tmpdir/copyreloc-main.o
944 before tmpdir/copyreloc-lib.so and test --as-needed.
945 * testsuite/ld-x86-64/x86-64.exp: Likewise.
946
947 2016-03-04 H.J. Lu <hongjiu.lu@intel.com>
948
949 PR ld/19579
950 * testsuite/ld-elf/pr19579a.c: New file.
951 * testsuite/ld-elf/pr19579b.c: Likewise.
952 * testsuite/ld-elf/shared.exp: Run PR ld/19579 test.
953
954 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
955
956 * testsuite/ld-elf/pr19162.d: Skip hppa-*-*.
957
958 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
959
960 * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Add xfails.
961 Xfail mix_pic_and_non_pic on "arm*-*-*" "aarch64*-*-*".
962
963 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
964
965 PR ld/19739
966 * emultempl/mmo.em (mmo_place_orphan): Don't merge flags of other
967 input sections for relocatable link.
968 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
969 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
970
971 2016-03-01 H.J. Lu <hongjiu.lu@intel.com>
972
973 PR ld/19739
974 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
975 merge flags of other input sections for relocatable link.
976
977 2016-03-01 H.J. Lu <hongjiu.lu@intel.com>
978
979 * testsuite/ld-plugin/lto.exp: Update PR ld/12365 test for GCC 6.
980
981 2016-03-01 H.J. Lu <hongjiu.lu@intel.com>
982
983 * testsuite/ld-elf/pr19162.d: Skip arc target.
984
985 2016-02-29 H.J. Lu <hongjiu.lu@intel.com>
986
987 PR ld/19162
988 * testsuite/ld-elf/pr19162.d: New file.
989 * testsuite/ld-elf/pr19162a.s: Likwise.
990 * testsuite/ld-elf/pr19162b.s: Likwise.
991
992 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
993
994 * testsuite/ld-elf/merge.d: Removed xfail for ARC.
995 * testsuite/ld-elf/merge2.d: Likewise.
996 * testsuite/ld-elf/merge3.d: Likewise.
997
998 2016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
999
1000 * scripttempl/arclinux.sc: Force .tdata and .tbss to always be
1001 generated.
1002
1003 2016-02-26 Renlin Li <renlin.li@arm.com>
1004
1005 * testsuite/ld-aarch64/aarch64-elf.exp: Run new testcases.
1006 * testsuite/ld-aarch64/emit-relocs-270.d: Update to use new boundary.
1007 * testsuite/ld-aarch64/emit-relocs-271.d: Likewise.
1008 * testsuite/ld-aarch64/emit-relocs-272.d: Likewise.
1009 * testsuite/ld-aarch64/emit-relocs-270-overflow.d: New.
1010 * testsuite/ld-aarch64/emit-relocs-270-overflow.s: New.
1011 * testsuite/ld-aarch64/emit-relocs-271-overflow.d: New.
1012 * testsuite/ld-aarch64/emit-relocs-271-overflow.s: New.
1013 * testsuite/ld-aarch64/emit-relocs-272-overflow.d: New.
1014 * testsuite/ld-aarch64/emit-relocs-272-overflow.s: New.
1015
1016 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
1017
1018 PR ld/19609
1019 * testsuite/ld-i386/got1.dd: Updated.
1020 * testsuite/ld-i386/lea1c.d: Likewise.
1021 * testsuite/ld-i386/load1-nacl.d: Likewise.
1022 * testsuite/ld-i386/load1.d: Likewise.
1023 * testsuite/ld-i386/load4b.d: Likewise.
1024 * testsuite/ld-i386/load5b.d: Likewise.
1025 * testsuite/ld-i386/mov1b.d: Likewise.
1026 * testsuite/ld-x86-64/mov1b.d: Likewise.
1027 * testsuite/ld-x86-64/mov1d.d: Likewise.
1028 * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
1029 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1030 * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
1031 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1032 * testsuite/ld-x86-64/gotpcrel1.dd: Likewise.
1033 * testsuite/ld-x86-64/lea1a.d: Likewise.
1034 * testsuite/ld-x86-64/lea1b.d: Likewise.
1035 * testsuite/ld-x86-64/lea1c.d: Likewise.
1036 * testsuite/ld-x86-64/lea1d.d: Likewise.
1037 * testsuite/ld-x86-64/lea1e.d: Likewise.
1038 * testsuite/ld-x86-64/lea1f.d: Likewise.
1039 * testsuite/ld-x86-64/mov1b.d: Likewise.
1040 * testsuite/ld-x86-64/mov1d.d: Likewise.
1041 * testsuite/ld-x86-64/pr13082-3b.d: Likewise.
1042 * testsuite/ld-x86-64/pr13082-4b.d: Likewise.
1043 * testsuite/ld-x86-64/lea1.s: Add tests for 32-bit registers.
1044 * testsuite/ld-i386/pr19609-1.s: New file.
1045 * testsuite/ld-i386/pr19609-1a.d: Likewise.
1046 * testsuite/ld-i386/pr19609-1b.d: Likewise.
1047 * testsuite/ld-i386/pr19609-1c.d: Likewise.
1048 * testsuite/ld-i386/pr19609-1d.d: Likewise.
1049 * testsuite/ld-i386/pr19609-1e.d: Likewise.
1050 * testsuite/ld-i386/pr19609-1f.d: Likewise.
1051 * testsuite/ld-i386/pr19609-1g.d: Likewise.
1052 * testsuite/ld-i386/pr19609-1h.d: Likewise.
1053 * testsuite/ld-i386/pr19609-1i.d: Likewise.
1054 * testsuite/ld-i386/pr19609-2.s: Likewise.
1055 * testsuite/ld-i386/pr19609-2a.d: Likewise.
1056 * testsuite/ld-i386/pr19609-2b.d: Likewise.
1057 * testsuite/ld-i386/pr19609-2c.d: Likewise.
1058 * testsuite/ld-i386/undefweak.s: Likewise.
1059 * testsuite/ld-i386/undefweaka.d: Likewise.
1060 * testsuite/ld-i386/undefweakb.d: Likewise.
1061 * testsuite/ld-x86-64/pr13082-3c.d: Likewise.
1062 * testsuite/ld-x86-64/pr13082-3d.d: Likewise.
1063 * testsuite/ld-x86-64/pr19609-1.s: Likewise.
1064 * testsuite/ld-x86-64/pr19609-1a.d: Likewise.
1065 * testsuite/ld-x86-64/pr19609-1b.d: Likewise.
1066 * testsuite/ld-x86-64/pr19609-1c.d: Likewise.
1067 * testsuite/ld-x86-64/pr19609-1d.d: Likewise.
1068 * testsuite/ld-x86-64/pr19609-1e.d: Likewise.
1069 * testsuite/ld-x86-64/pr19609-1f.d: Likewise.
1070 * testsuite/ld-x86-64/pr19609-1g.d: Likewise.
1071 * testsuite/ld-x86-64/pr19609-1h.d: Likewise.
1072 * testsuite/ld-x86-64/pr19609-1i.d: Likewise.
1073 * testsuite/ld-x86-64/pr19609-1j.d: Likewise.
1074 * testsuite/ld-x86-64/pr19609-1k.d: Likewise.
1075 * testsuite/ld-x86-64/pr19609-1l.d: Likewise.
1076 * testsuite/ld-x86-64/pr19609-1m.d: Likewise.
1077 * testsuite/ld-x86-64/pr19609-2.s: Likewise.
1078 * testsuite/ld-x86-64/pr19609-2a.d: Likewise.
1079 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1080 * testsuite/ld-x86-64/pr19609-2c.d: Likewise.
1081 * testsuite/ld-x86-64/pr19609-2d.d: Likewise.
1082 * testsuite/ld-x86-64/pr19609-3.s: Likewise.
1083 * testsuite/ld-x86-64/pr19609-3a.d: Likewise.
1084 * testsuite/ld-x86-64/pr19609-3b.d: Likewise.
1085 * testsuite/ld-x86-64/pr19609-4.s: Likewise.
1086 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1087 * testsuite/ld-x86-64/pr19609-4b.d: Likewise.
1088 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1089 * testsuite/ld-x86-64/pr19609-4d.d: Likewise.
1090 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1091 * testsuite/ld-x86-64/pr19609-5.s: Likewise.
1092 * testsuite/ld-x86-64/pr19609-5a.d: Likewise.
1093 * testsuite/ld-x86-64/pr19609-5b.d: Likewise.
1094 * testsuite/ld-x86-64/pr19609-5c.d: Likewise.
1095 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1096 * testsuite/ld-x86-64/pr19609-5e.d: Likewise.
1097 * testsuite/ld-x86-64/pr19609-6.s: Likewise.
1098 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1099 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1100 * testsuite/ld-x86-64/pr19609-6c.d: Likewise.
1101 * testsuite/ld-x86-64/pr19609-6d.d: Likewise.
1102 * testsuite/ld-x86-64/pr19609-7.s: Likewise.
1103 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1104 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1105 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1106 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1107 * testsuite/ld-i386/i386.exp: Run undefweak tests and tests for
1108 PR ld/19609.
1109 * testsuite/ld-x86-64/x86-64.exp: Run pr13082-3c, pr13082-3d
1110 and tests for PR ld/19609.
1111
1112 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
1113
1114 PR ld/19645
1115 * NEWS: Mention -z common/-z nocommon for ELF targets.
1116 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1117 -z common and -z nocommon.
1118 * ld.texinfo: Document -z common/-z nocommon.
1119 * lexsup.c (elf_shlib_list_options): Add -z common/-z nocommon.
1120 * testsuite/ld-elf/tls_common.exp: Test --elf-stt-common=no and
1121 --elf-stt-common=yes with assembler.
1122 * testsuite/ld-elfcomm/common-1.s: New file.
1123 * testsuite/ld-elfcomm/common-1a.d: Likewise.
1124 * testsuite/ld-elfcomm/common-1b.d: Likewise.
1125 * testsuite/ld-elfcomm/common-1c.d: Likewise.
1126 * testsuite/ld-elfcomm/common-1d.d: Likewise.
1127 * testsuite/ld-elfcomm/common-1e.d: Likewise.
1128 * testsuite/ld-elfcomm/common-1f.d: Likewise.
1129 * testsuite/ld-elfcomm/common-2.s: Likewise.
1130 * testsuite/ld-elfcomm/common-2a.d: Likewise.
1131 * testsuite/ld-elfcomm/common-2b.d: Likewise.
1132 * testsuite/ld-elfcomm/common-2c.d: Likewise.
1133 * testsuite/ld-elfcomm/common-2d.d: Likewise.
1134 * testsuite/ld-elfcomm/common-2e.d: Likewise.
1135 * testsuite/ld-elfcomm/common-2f.d: Likewise.
1136 * testsuite/ld-elfcomm/common-3a.rd: Likewise.
1137 * testsuite/ld-elfcomm/common-3b.rd: Likewise.
1138 * testsuite/ld-i386/pr19645.d: Likewise.
1139 * testsuite/ld-i386/pr19645.s: Likewise.
1140 * testsuite/ld-x86-64/largecomm-1.s: Likewise.
1141 * testsuite/ld-x86-64/largecomm-1a.d: Likewise.
1142 * testsuite/ld-x86-64/largecomm-1b.d: Likewise.
1143 * testsuite/ld-x86-64/largecomm-1c.d: Likewise.
1144 * testsuite/ld-x86-64/largecomm-1d.d: Likewise.
1145 * testsuite/ld-x86-64/largecomm-1e.d: Likewise.
1146 * testsuite/ld-x86-64/largecomm-1f.d: Likewise.
1147 * testsuite/ld-x86-64/pr19645.d: Likewise.
1148 * testsuite/ld-x86-64/pr19645.s: Likewise.
1149 * testsuite/ld-elfcomm/elfcomm.exp: Test --elf-stt-common=yes
1150 with assembler.
1151 (assembler_generates_commons): Removed.
1152 Run -z common/-z nocommon tests. Run *.d tests.
1153 * testsuite/ld-i386/i386.exp: Run pr19645.
1154 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1155 * testsuite/ld-x86-64/dwarfreloc.exp: Test --elf-stt-common with
1156 assembler. Test STT_COMMON with readelf.
1157
1158 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
1159
1160 PR ld/19636
1161 PR ld/19704
1162 PR ld/19719
1163 * Makefile.am (ELF_X86_DEPS): Add dynamic_undefined_weak.sh.
1164 * Makefile.in: Regenerated.
1165 * NEWS: Mention -z nodynamic-undefined-weak.
1166 * ld.texinfo: Document -z nodynamic-undefined-weak.
1167 * ldmain.c (main): Initialize dynamic_undefined_weak to -1.
1168 * emulparams/dynamic_undefined_weak.sh: New file.
1169 * emulparams/elf32_x86_64.sh: Source dynamic_undefined_weak.sh.
1170 * emulparams/elf_i386.sh: Likewise.
1171 * emulparams/elf_i386_be.sh: Likewise.
1172 * emulparams/elf_i386_chaos.sh: Likewise.
1173 * emulparams/elf_i386_ldso.sh: Likewise.
1174 * emulparams/elf_i386_vxworks.sh: Likewise.
1175 * emulparams/elf_iamcu.sh: Likewise.
1176 * emulparams/elf_k1om.sh: Likewise.
1177 * emulparams/elf_l1om.sh: Likewise.
1178 * emulparams/elf_x86_64.sh: Likewise.
1179 * emulparams/extern_protected_data.sh (PARSE_AND_LIST_OPTIONS):
1180 Append.
1181 (PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
1182 * testsuite/ld-elf/pr19719a.c: New file.
1183 * testsuite/ld-elf/pr19719b.c: Likewise.
1184 * testsuite/ld-elf/pr19719c.c: Likewise.
1185 * testsuite/ld-elf/pr19719d.c: Likewise.
1186 * testsuite/ld-i386/pr19636-1.s: Likewise.
1187 * testsuite/ld-i386/pr19636-1a.d: Likewise.
1188 * testsuite/ld-i386/pr19636-1b.d: Likewise.
1189 * testsuite/ld-i386/pr19636-1c.d: Likewise.
1190 * testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
1191 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1192 * testsuite/ld-i386/pr19636-1e.d: Likewise.
1193 * testsuite/ld-i386/pr19636-1f.d: Likewise.
1194 * testsuite/ld-i386/pr19636-1g.d: Likewise.
1195 * testsuite/ld-i386/pr19636-1h.d: Likewise.
1196 * testsuite/ld-i386/pr19636-1i.d: Likewise.
1197 * testsuite/ld-i386/pr19636-2.s: Likewise.
1198 * testsuite/ld-i386/pr19636-2a.d: Likewise.
1199 * testsuite/ld-i386/pr19636-2b.d: Likewise.
1200 * testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
1201 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1202 * testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
1203 * testsuite/ld-i386/pr19636-2d.d: Likewise.
1204 * testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
1205 * testsuite/ld-i386/pr19636-2e.d: Likewise.
1206 * testsuite/ld-i386/pr19636-3.s: Likewise.
1207 * testsuite/ld-i386/pr19636-3a.d: Likewise.
1208 * testsuite/ld-i386/pr19636-3b.d: Likewise.
1209 * testsuite/ld-i386/pr19636-3c.d: Likewise.
1210 * testsuite/ld-i386/pr19636-3d.d: Likewise.
1211 * testsuite/ld-i386/pr19636-3e.d: Likewise.
1212 * testsuite/ld-i386/pr19636-3f.d: Likewise.
1213 * testsuite/ld-i386/pr19636-3g.d: Likewise.
1214 * testsuite/ld-i386/pr19636-4.s: Likewise.
1215 * testsuite/ld-i386/pr19636-4a.d: Likewise.
1216 * testsuite/ld-i386/pr19636-4b.d: Likewise.
1217 * testsuite/ld-i386/pr19636-4c.d: Likewise.
1218 * testsuite/ld-i386/pr19636-4d.d: Likewise.
1219 * testsuite/ld-i386/pr19704.out: Likewise.
1220 * testsuite/ld-i386/pr19704a.c: Likewise.
1221 * testsuite/ld-i386/pr19704b.c: Likewise.
1222 * testsuite/ld-x86-64/pr19636-1.s: Likewise.
1223 * testsuite/ld-x86-64/pr19636-1a.d: Likewise.
1224 * testsuite/ld-x86-64/pr19636-1b.d: Likewise.
1225 * testsuite/ld-x86-64/pr19636-1c.d: Likewise.
1226 * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
1227 * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
1228 * testsuite/ld-x86-64/pr19636-1f.d: Likewise.
1229 * testsuite/ld-x86-64/pr19636-1g.d: Likewise.
1230 * testsuite/ld-x86-64/pr19636-2.s: Likewise.
1231 * testsuite/ld-x86-64/pr19636-2a.d: Likewise.
1232 * testsuite/ld-x86-64/pr19636-2b.d: Likewise.
1233 * testsuite/ld-x86-64/pr19636-2c.d: Likewise.
1234 * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
1235 * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
1236 * testsuite/ld-x86-64/pr19636-2e.d: Likewise.
1237 * testsuite/ld-x86-64/pr19636-2f.d: Likewise.
1238 * testsuite/ld-x86-64/pr19636-2g.d: Likewise.
1239 * testsuite/ld-x86-64/pr19636-2h.d: Likewise.
1240 * testsuite/ld-x86-64/pr19636-2i.d: Likewise.
1241 * testsuite/ld-x86-64/pr19636-3.s: Likewise.
1242 * testsuite/ld-x86-64/pr19636-3a.d: Likewise.
1243 * testsuite/ld-x86-64/pr19636-3b.d: Likewise.
1244 * testsuite/ld-x86-64/pr19636-3c.d: Likewise.
1245 * testsuite/ld-x86-64/pr19636-3d.d: Likewise.
1246 * testsuite/ld-x86-64/pr19704.out: Likewise.
1247 * testsuite/ld-x86-64/pr19704a.c: Likewise.
1248 * testsuite/ld-x86-64/pr19704b.c: Likewise.
1249 * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): New.
1250 Run mix_pic_and_non_pic.
1251 * testsuite/ld-i386/i386.exp (undefined_weak): New.
1252 Run undefined_weak and PR ld/19636 tests.
1253 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1254 * testsuite/ld-x86-64/pr13082-3b.d: Updated.
1255 * testsuite/ld-x86-64/pr13082-4b.d: Likewise.
1256
1257 2016-02-25 Nick Clifton <nickc@redhat.com>
1258
1259 * ld.h (struct ld_config_type): Remove specified_data_size field.
1260
1261 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
1262
1263 PR ld/19698
1264 * testsuite/ld-elf/pr19698.d: New file.
1265 * testsuite/ld-elf/pr19698.s: Likewise.
1266 * testsuite/ld-elf/pr19698.t: Likewise.
1267
1268 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
1269
1270 * Makefile.am (ELF_X86_DEPS): New.
1271 (eelf_i386.c): Replace $(ELF_DEPS) with $(ELF_X86_DEPS).
1272 (eelf_i386_chaos.c): Likewise.
1273 (eelf_i386_fbsd.c): Likewise.
1274 (eelf_i386_ldso.c): Likewise.
1275 (eelf_i386_nacl.c): Likewise.
1276 (eelf_i386_sol2.c): Likewise.
1277 (eelf_iamcu.c): Likewise.
1278 (eelf32_x86_64.c): Likewise.
1279 (eelf32_x86_64_nacl.c): Likewise.
1280 (eelf_l1om.c): Likewise.
1281 (eelf_l1om_fbsd.c): Likewise.
1282 (eelf_k1om.c): Likewise.
1283 (eelf_k1om_fbsd.c): Likewise.
1284 (eelf_x86_64.c): Likewise.
1285 (eelf_x86_64_cloudabi.c): Likewise.
1286 (eelf_x86_64_fbsd.c): Likewise.
1287 (eelf_x86_64_sol2.c): Likewise.
1288 * Makefile.in: Regenerated.
1289
1290 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
1291
1292 * testsuite/ld-frv/fdpic-pie-6.d: Updated.
1293 * testsuite/ld-mips-elf/pie-n32.d: Likewise.
1294 * testsuite/ld-mips-elf/pie-n64.d: Likewise.
1295 * testsuite/ld-mips-elf/pie-o32.d: Likewise.
1296
1297 2016-02-20 H.J. Lu <hongjiu.lu@intel.com>
1298
1299 * testsuite/ld-elf/pr19539.d: Skip cris*-*-* targets.
1300
1301 2016-02-18 H.J. Lu <hongjiu.lu@intel.com>
1302
1303 * testsuite/ld-elf/pr19617a.d: Enable only for *-*-linux*,
1304 *-*-gnu* and *-*-solaris*.
1305 * testsuite/ld-elf/pr19617b.d: Likewise.
1306 * testsuite/ld-elf/pr19617c.d: Likewise.
1307
1308 2016-02-18 H.J. Lu <hongjiu.lu@intel.com>
1309
1310 PR ld/19617
1311 * testsuite/ld-elf/pr19617.s: New file.
1312 * testsuite/ld-elf/pr19617a.d: Likewise.
1313 * testsuite/ld-elf/pr19617b.d: Likewise.
1314 * testsuite/ld-elf/pr19617c.d: Likewise.
1315
1316 2016-02-18 Nick Clifton <nickc@redhat.com>
1317
1318 * Makefile.am (CXX_FOR_TARGET): Check for the presence of an
1319 in-tree xg++ executable after checking for the presence of an
1320 in-tree g++ executable.
1321 * Makefile.in: Regenerate.
1322
1323 2016-02-17 H.J. Lu <hongjiu.lu@intel.com>
1324
1325 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
1326 * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
1327 * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
1328
1329 2016-02-17 H.J. Lu <hongjiu.lu@intel.com>
1330
1331 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
1332 * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
1333 * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
1334 * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
1335 * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
1336 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1337 * testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
1338 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1339 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1340 * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
1341 * testsuite/ld-x86-64/ilp32-4.d: Likewise.
1342 * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
1343 * testsuite/ld-x86-64/load1c.d: Likewise.
1344 * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
1345 * testsuite/ld-x86-64/load1d.d: Likewise.
1346 * testsuite/ld-x86-64/pr14207.d: Likewise.
1347 * testsuite/ld-x86-64/pr19162.d: Likewise.
1348 * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
1349 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1350 * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
1351 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1352 * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
1353 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1354
1355 2016-02-17 Nick Clifton <nickc@redhat.com>
1356
1357 * testsuite/ld-elf/eh-frame-hdr.d: Skip for ARC ELF targets.
1358
1359 2016-02-15 Nick Clifton <nickc@redhat.com>
1360
1361 * testsuite/ld-i386/pr12718.d: Remove dependency upon the
1362 description of the flags produced by readelf.
1363 * testsuite/ld-i386/pr12921.d: Likewise.
1364 * testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
1365 * testsuite/ld-i386/tlsbin.rd: Likewise.
1366 * testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
1367 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1368 * testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
1369 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1370 * testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
1371 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1372 * testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
1373 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1374 * testsuite/ld-i386/tlspic-nacl.rd: Likewise.
1375 * testsuite/ld-i386/tlspic.rd: Likewise.
1376 * testsuite/ld-s390/tlsbin.rd: Likewise.
1377 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1378 * testsuite/ld-s390/tlspic.rd: Likewise.
1379 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1380 * testsuite/ld-sh/tlsbin-2.d: Likewise.
1381 * testsuite/ld-sh/tlspic-2.d: Likewise.
1382 * testsuite/ld-tic6x/common.d: Likewise.
1383 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1384 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1385 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1386 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1387 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1388 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1389 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1390 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1391 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1392 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1393 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1394 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1395 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1396 * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
1397 * testsuite/ld-x86-64/ilp32-4.d: Likewise.
1398 * testsuite/ld-x86-64/pr12718.d: Likewise.
1399 * testsuite/ld-x86-64/pr12921.d: Likewise.
1400 * testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
1401 * testsuite/ld-x86-64/split-by-file.rd: Likewise.
1402 * testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
1403 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1404 * testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
1405 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1406 * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
1407 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1408 * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
1409 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1410 * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
1411 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1412 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1413 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1414
1415 2016-02-11 H.J. Lu <hongjiu.lu@intel.com>
1416
1417 PR ld/19615
1418 * ld.texinfo: Document -Bsymbolic and -Bsymbolic-functions for
1419 PIE.
1420 * lexsup.c (parse_args): Enable -Bsymbolic and
1421 -Bsymbolic-functions for PIE.
1422 * testsuite/ld-i386/i386.exp: Run pr19615.
1423 * testsuite/ld-i386/pr19615.d: New file.
1424 * testsuite/ld-i386/pr19615.s: Likewise.
1425 * testsuite/ld-x86-64/pr19615.d: Likewise.
1426 * testsuite/ld-x86-64/pr19615.s: Likewise.
1427
1428 2016-02-09 Nick Clifton <nickc@redhat.com>
1429
1430 * testsuite/ld-aarch64/reloc-overflow-bad.d: New test.
1431 * testsuite/ld-aarch64/reloc-overflow-1.s: New source file.
1432 * testsuite/ld-aarch64/reloc-overflow-2.s: New source file.
1433 * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
1434
1435 2016-02-04 Nick Clifton <nickc@redhat.com>
1436
1437 * testsuite/ld-arm/arm-elf.exp: Remove ARM NOREAD section tests.
1438 * testsuite/ld-arm/thumb1-input-section-flag-match.d: Delete.
1439 * testsuite/ld-arm/thumb1-input-section-flag-match.s: Delete.
1440 * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.d: Delete.
1441 * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s: Delete.
1442 * testsuite/ld-arm/thumb1-noread-present-one-section.d: Delete.
1443 * testsuite/ld-arm/thumb1-noread-present-one-section.s: Delete.
1444 * testsuite/ld-arm/thumb1-noread-present-two-section.d: Delete.
1445 * testsuite/ld-arm/thumb1-noread-present-two-section.s: Delete.
1446
1447 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
1448
1449 PR gas/19520
1450 * testsuite/ld-i386/branch1.d: Pass -mrelax-relocations=yes to as.
1451 * testsuite/ld-i386/call1.d: Likewise.
1452 * testsuite/ld-i386/call2.d: Likewise.
1453 * testsuite/ld-i386/call3a.d: Likewise.
1454 * testsuite/ld-i386/call3b.d: Likewise.
1455 * testsuite/ld-i386/call3c.d: Likewise.
1456 * testsuite/ld-i386/call3d.d: Likewise.
1457 * testsuite/ld-i386/call3e.d: Likewise.
1458 * testsuite/ld-i386/call3f.d: Likewise.
1459 * testsuite/ld-i386/call3g.d: Likewise.
1460 * testsuite/ld-i386/call3h.d: Likewise.
1461 * testsuite/ld-i386/jmp1.d: Likewise.
1462 * testsuite/ld-i386/jmp2.d: Likewise.
1463 * testsuite/ld-i386/lea1c.d: Likewise.
1464 * testsuite/ld-i386/load1.d: Likewise.
1465 * testsuite/ld-i386/load2.d: Likewise.
1466 * testsuite/ld-i386/load3.d: Likewise.
1467 * testsuite/ld-i386/load4a.d: Likewise.
1468 * testsuite/ld-i386/load5a.d: Likewise.
1469 * testsuite/ld-i386/mov2b.d: Likewise.
1470 * testsuite/ld-i386/mov3.d: Likewise.
1471 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1472 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1473 * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
1474 * testsuite/ld-x86-64/call1a.d: Likewise.
1475 * testsuite/ld-x86-64/call1b.d: Likewise.
1476 * testsuite/ld-x86-64/call1c.d: Likewise.
1477 * testsuite/ld-x86-64/call1d.d: Likewise.
1478 * testsuite/ld-x86-64/call1e.d: Likewise.
1479 * testsuite/ld-x86-64/call1f.d: Likewise.
1480 * testsuite/ld-x86-64/call1h.d: Likewise.
1481 * testsuite/ld-x86-64/call1i.d: Likewise.
1482 * testsuite/ld-x86-64/load1a.d: Likewise.
1483 * testsuite/ld-x86-64/load1b.d: Likewise.
1484 * testsuite/ld-i386/got1a.S: Load GOT into %ecx and use it.
1485 * testsuite/ld-i386/got1.dd: Updated.
1486 * testsuite/ld-i386/got1d.S (1): Removed.
1487 * testsuite/ld-i386/i386.exp: Add -Wa,-mrelax-relocations=yes.
1488 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1489
1490 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
1491
1492 PR ld/18591
1493 * testsuite/ld-x86-64/pr18591.d: New file.
1494 * testsuite/ld-x86-64/pr18591.s: Likewise.
1495 * testsuite/ld-x86-64/x86-64.exp: Run pr18591.
1496
1497 2016-02-01 H.J. Lu <hongjiu.lu@intel.com>
1498
1499 PR ld/19553
1500 * testsuite/ld-elf/indirect.exp: Run tests for PR ld/19553.
1501 * testsuite/ld-elf/pr19553.map: New file.
1502 * testsuite/ld-elf/pr19553.map: Likewise.
1503 * testsuite/ld-elf/pr19553a.c: Likewise.
1504 * testsuite/ld-elf/pr19553b.c: Likewise.
1505 * testsuite/ld-elf/pr19553b.out: Likewise.
1506 * testsuite/ld-elf/pr19553c.c: Likewise.
1507 * testsuite/ld-elf/pr19553c.out: Likewise.
1508 * testsuite/ld-elf/pr19553d.c: Likewise.
1509 * testsuite/ld-elf/pr19553d.out: Likewise.
1510
1511 2016-01-30 H.J. Lu <hongjiu.lu@intel.com>
1512
1513 PR ld/19539
1514 * testsuite/ld-elf/pr19539.d: New file.
1515 * testsuite/ld-elf/pr19539.s: Likewise.
1516 * testsuite/ld-elf/pr19539.t: Likewise.
1517
1518 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1519
1520 PR ld/19533
1521 * configure.ac (compressed_debug_sections): Replace == with =.
1522 * configure: Regenerated.
1523
1524 2016-01-22 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1525
1526 * scripttempl/avr.sc (.noinit): Force .noinit VMA to end of .bss VMA.
1527 * scripttempl/avrtiny.sc (.noinit): Likewise.
1528
1529 2016-01-21 Nick Clifton <nickc@redhat.com>
1530
1531 PR ld/19453
1532 * testsuite/ld-arm/arm-elf.exp: Skip tests that do not work for
1533 the arm-netbsdelf target.
1534
1535 PR ld/19455
1536 * testsuite/ld-arm/vxworks1-lib.dd: Update for current
1537 disassmebler output.
1538 * testsuite/ld-arm/vxworks1-lib.rd: Likewise.
1539 * testsuite/ld-arm/vxworks1.dd: Likewise.
1540 * testsuite/ld-arm/vxworks1.rd: Likewise.
1541 * testsuite/ld-arm/vxworks1.ld: Set the output format.
1542
1543 2016-01-20 Jiong Wang <jiong.wang@arm.com>
1544
1545 * testsuite/ld-aarch64/farcall-section.d: Delete.
1546 * testsuite/ld-aarch64/farcall-section.s: Delete.
1547 * testsuite/ld-aarch64/farcall-b-section.d: New expectation file.
1548 * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
1549 * testsuite/ld-aarch64/farcall-b-section.s: New testcase.
1550 * testsuite/ld-aarch64/farcall-bl-section.s: Likewise.
1551 * testsuite/ld-aarch64/aarch64-elf.exp: Likewise.
1552
1553 2016-01-20 Nick Clifton <nickc@redhat.com>
1554
1555 PR 19457
1556 * testsuite/ld-scripts/script.exp (extract_symbol_test): Stop test
1557 early for PE based targets.
1558 * testsuite/ld-scripts/align.t: Use 0x1000 as VMA alignment.
1559 * testsuite/ld-pe/tlssec32.d: Allow for relocatable output.
1560
1561 2016-01-20 Mickael Guene <mickael.guene@st.com>
1562
1563 * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s:
1564 Add 'y' attribute usage.
1565 * testsuite/ld-arm/thumb1-noread-present-one-section.s: Likewise.
1566 * testsuite/ld-arm/thumb1-noread-present-two-section.s: Likewise.
1567 * testsuite/ld-arm/thumb1-input-section-flag-match.s: Likewise.
1568
1569 2016-01-19 Nick Clifton <nickc@redhat.com>
1570
1571 * testsuite/ld-elf/pr18735.d: Allow for extra symbols between
1572 foo@FOO and bar@@FOO.
1573
1574 2016-01-18 Alan Modra <amodra@gmail.com>
1575
1576 * configure: Regenerate.
1577
1578 2016-01-18 Nick Clifton <nickc@redhat.com>
1579
1580 * testsuite/ld-plugin/plugin.exp: Skip plugin tests if the linker
1581 is not configured to support plugins.
1582
1583 * testsuite/ld-scripts/rgn-at11.s: New file - based on rgn-at10.s
1584 but with 16 byte section alignment.
1585 * testsuite/ld-scripts/rgn-at11.d: Use new source file. Reenable
1586 test for MIPS targets.
1587
1588 2016-01-17 Alan Modra <amodra@gmail.com>
1589
1590 * configure: Regenerate.
1591
1592 2016-01-17 Alan Modra <amodra@gmail.com>
1593
1594 * testsuite/lib/ld-lib.exp (check_shared_lib_support): Exclude xgate.
1595 * testsuite/ld-elf/endsym.d: xfail m68hc11/12 and xgate.
1596 * testsuite/ld-elf/pr14156a.d: Likewise.
1597 * testsuite/ld-elf/pr14926.d: Don't run for m68hc11/12 and xgate.
1598 * testsuite/ld-elf/sec64k.exp: Likewise.
1599
1600 2016-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1601
1602 * testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall v6-M (no profile)):
1603 Set address of .foo section when linking.
1604 * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile-b.s: Place myfunc
1605 in .foo section.
1606 * testsuite/ld-arm/farcall-thumb-thumb-m-no-profile.d: Adapt expected
1607 output to the above changes.
1608
1609 2016-01-13 Nick Clifton <nickc@redhat.com>
1610
1611 * testsuite/ld-elf/elf.exp (-Bymsolic-functions): Expect to fail
1612 for MIPS targets.
1613
1614 * testsuite/ld-scripts/script.exp (extract_symbol_test): Expect to
1615 fail for MIPS targets.
1616
1617 * testsuite/ld-scripts/rgn-at11.d: Expect this test to fail for
1618 MIPS targets.
1619
1620 2016-01-12 Yury Usishchev <y.usishchev@samsung.com>
1621
1622 * testsuite/ld-arm/arm-elf.exp: New test.
1623 * testsuite/ld-arm/unwind-mix.d: New file.
1624 * testsuite/ld-arm/unwind-mix1.s: New file.
1625 * testsuite/ld-arm/unwind-mix2.s: New file.
1626
1627 2016-01-08 Jiong Wang <jiong.wang@arm.com>
1628
1629 PR ld/19368
1630 * testsuite/ld-arm/ifunc-3.rd: Update expected result.
1631 * testsuite/ld-arm/ifunc-4.rd: Likewise.
1632 * testsuite/ld-arm/ifunc-9.rd: Likewise.
1633 * testsuite/ld-arm/ifunc-10.rd: Likewise.
1634 * testsuite/ld-arm/ifunc-12.rd: Likewise.
1635 * testsuite/ld-arm/ifunc-13.rd: Likewise.
1636
1637 2016-01-05 Nick Clifton <nickc@redhat.com>
1638
1639 * emulparams/msp430elf.sh (RAM_START): Move to 0x500 - above the
1640 MSP430 hardware multiply address range.
1641 * scripttempl/elf32msp430.sc (__romdatastart): Define.
1642 (__romdatacopysize): Define.
1643 * scripttempl/elf32msp430_3.sc: Likewise.
1644
1645 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1646
1647 * emultempl/mipself.em (PARSE_AND_LIST_PROLOGUE): Convert
1648 OPTION_INSN32 and OPTION_NO_INSN32 macros to an enum.
1649
1650 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1651
1652 * testsuite/ld-mips-elf/attr-gnu-4-14.d: Update the order of
1653 messages expected according to MIPS BFD private data merge
1654 changes.
1655 * testsuite/ld-mips-elf/attr-gnu-4-24.d: Likewise.
1656 * testsuite/ld-mips-elf/attr-gnu-4-34.d: Likewise.
1657 * testsuite/ld-mips-elf/attr-gnu-4-41.d: Likewise.
1658 * testsuite/ld-mips-elf/attr-gnu-4-42.d: Likewise.
1659 * testsuite/ld-mips-elf/attr-gnu-4-43.d: Likewise.
1660 * testsuite/ld-mips-elf/attr-gnu-4-45.d: Likewise.
1661 * testsuite/ld-mips-elf/attr-gnu-4-46.d: Likewise.
1662 * testsuite/ld-mips-elf/attr-gnu-4-47.d: Likewise.
1663 * testsuite/ld-mips-elf/attr-gnu-4-48.d: Likewise.
1664 * testsuite/ld-mips-elf/attr-gnu-4-49.d: Likewise.
1665 * testsuite/ld-mips-elf/attr-gnu-4-54.d: Likewise.
1666 * testsuite/ld-mips-elf/attr-gnu-4-64.d: Likewise.
1667 * testsuite/ld-mips-elf/attr-gnu-4-74.d: Likewise.
1668
1669 2016-01-01 Alan Modra <amodra@gmail.com>
1670
1671 Update year range in copyright notice of all files.
1672
1673 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
1674 \f
1675 Copyright (C) 2016 Free Software Foundation, Inc.
1676
1677 Copying and distribution of this file, with or without modification,
1678 are permitted in any medium without royalty provided the copyright
1679 notice and this notice are preserved.
1680
1681 Local Variables:
1682 mode: change-log
1683 left-margin: 8
1684 fill-column: 74
1685 version-control: never
1686 End: