PR22471, undefined reference to linker-defined symbols
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
165f707a
AM
12017-11-28 Alan Modra <amodra@gmail.com>
2
3 PR 22471
4 * ldexp.c (struct definedness_hash_entry): Delete "by_script". Make
5 "iteration" an 8-bit field, and update mask in all uses.
6 (definedness_newfunc): Don't init "by_script".
7 (update_definedness): Test ldscript_def rather than by_script.
8 (is_sym_value): Likewise.
9 (fold_name <DEFINED>): Return a result for first phase. Test
10 ldscript_def.
11 (fold_name <NAME>): Return a result for first phase.
12 * ldlang.c (open_input_bfds): Process all assignments, not just
13 defsym.
14 (lang_process): Increment lang_statement_iteration before
15 open_input_bfds.
16 * testsuite/ld-mips-elf/tlsdyn-o32-1.d: Adjust for larger .dynsym.
17 * testsuite/ld-mips-elf/tlsdyn-o32-1.got: Likewise.
18 * testsuite/ld-mips-elf/tlsdyn-o32-2.d: Likewise.
19 * testsuite/ld-mips-elf/tlsdyn-o32-2.got: Likewise.
20 * testsuite/ld-mips-elf/tlsdyn-o32-3.d: Likewise.
21 * testsuite/ld-mips-elf/tlsdyn-o32-3.got: Likewise.
22
cd5b2bab
AM
232017-11-28 Alan Modra <amodra@gmail.com>
24
25 * ldexp.h (struct ldexp_control): Add "assign_src".
26 * ldexp.c (fold_trinary): Save and restore assign_src around
27 condition evaluation.
28 (fold_name <NAME>): Set expld.assign_src.
29 (try_copy_symbol_type): Delete.
30 (exp_fold_tree_1): Set symbol type using expld.assign_src.
31
a83ef4d1
L
322017-11-28 H.J. Lu <hongjiu.lu@intel.com>
33
34 PR ld/22502
35 * testsuite/ld-plugin/lto.exp: Run PR ld/22502 test.
36 * testsuite/ld-plugin/pr22502a.c: New file.
37 * testsuite/ld-plugin/pr22502b.c: Likewise.
38
8b77421a
L
392017-11-24 H.J. Lu <hongjiu.lu@intel.com>
40
41 * testsuite/ld-elf/pr21562c.t: Also provide ___start_scnfoo and
42 ___stop_scnfoo.
43 * testsuite/ld-elf/pr21562d.t: Likewise.
44
9d9c67b0
MS
452017-11-23 Martin Storsjo <martin@martin.st>
46
47 * pe-dll.c (autofilter_liblist): Add libmsvcrt, libmsvcrt-os and
48 libucrtbase.
49
43083a50
JB
502017-11-23 Jan Beulich <jbeulich@suse.com>
51
52 PR gas/22441
53 * testsuite/ld-x86-64/apic.{s,d}: New.
54 * testsuite/ld-x86-64/x86-64.exp: Run new test.
55
2824e1bd
NC
562017-11-21 Nick Clifton <nickc@redhat.com>
57
58 PR 22419
59 * emultempl/v850elf.em (v850_create_output_section_statements):
60 New function. Generate an error if attempting to convert the
61 format of the output file.
62 * testsuite/ld-unique/pr21529.d: Skip for the V850.
63 * testsuite/ld-elf/pr21884.d: Skip for the V850.
64
50d2740d 652017-11-21 Claudiu Zissulescu <claziss@synopsys.com>
66
67 * testsuite/ld-arc/jli-simple.d: Update test.
68
b77db948
NC
692017-11-20 Nick Clifton <nickc@redhat.com>
70
71 PR 22450
72 * testsuite/ld-elf/elf.exp: Add --defsym ALIGN=2|3 to assembler
73 command line depending upon the size of the target address space.
74 * testsuite/ld-elf/pr22450.s: New test file.
75 * testsuite/ld-elf/pr22450.d: New test driver.
76 * testsuite/config/default.exp: Add note that LD_CLASS refers to
77 the size of the host linker not the size of the target linker.
78
dda8d76d
NC
792017-11-15 Nick Clifton <nickc@redhat.com>
80
81 PR 15152
82 * testsuite/ld-avr/gc-section-debugline.d: Update expected
83 output.
84
99847db8
AM
852017-11-15 Alan Modra <amodra@gmail.com>
86
87 * ldmisc.c (vfinfo): Support up to 9 positional args.
88
754842fb
JW
892017-11-14 Jim Wilson <jimw@sifive.com>
90
91 * testsuite/ld-elf/compress1-alt.s: New.
92 * testsuite/ld-elf/compressed1d-alt.d: New.
93 * testsuite/ld-elf/compressed1d.d: Add riscv*-*-* to notarget list.
94
06bcf541
AM
952017-11-14 Alan Modra <amodra@gmail.com>
96
97 * testsuite/ld-elf/note-3.t: Don't discard .got.
98
640d0ed8
AM
992017-11-14 Alan Modra <amodra@gmail.com>
100
101 * testsuite/ld-ifunc/ifunc.exp: Ensure non-PIC tests are really
102 not PIE by default gcc options.
103
58e6cc77
L
1042017-11-13 H.J. Lu <hongjiu.lu@intel.com>
105
106 * emultempl/ppc32elf.em (ppc_before_allocation): Replace
107 exp_dataseg_none with exp_seg_none.
108 * emultempl/ppc64elf.em (prelim_size_sections): Likewise.
109 * emultempl/spuelf.em (spu_before_allocation): Likewise.
110
f4d18a54
L
1112017-11-12 H.J. Lu <hongjiu.lu@intel.com>
112
113 * ldlang.c (lang_size_sections_1): Extract GNU_RELRO region check
114 into ...
115 (ldlang_check_relro_region): New function.
116 (lang_find_relro_sections_1): Add an argument for pointer to
117 seg_align_type and replace expld.dataseg with the pointer.
118 (lang_find_relro_sections): Pass address of expld.dataseg to
119 lang_find_relro_sections_1.
120
cba6246d
L
1212017-11-12 H.J. Lu <hongjiu.lu@intel.com>
122
123 * ldlang.c (lang_size_segment): New function.
124 (lang_size_relro_segment_1): Likewise.
125 (lang_size_relro_segment): Likewise.
126 (lang_size_sections): Rewrite to call lang_size_relro_segment.
127
d7475e03
L
1282017-11-12 H.J. Lu <hongjiu.lu@intel.com>
129
130 * ldexp.c (fold_unary): Extract the DATA_SEGMENT_END case to ...
131 (fold_segment_end): New function.
132 (fold_binary): Extract the DATA_SEGMENT_ALIGN case to ...
133 (fold_segment_align): New function.
134 (fold_binary): Extract the DATA_SEGMENT_RELRO_END case to ...
135 (fold_segment_relro_end): New function.
136
0f99513f
L
1372017-11-12 H.J. Lu <hongjiu.lu@intel.com>
138
139 * ldexp.h (phase_enum): Rename exp_dataseg_none,
140 exp_dataseg_align_seen, exp_dataseg_relro_seen,
141 exp_dataseg_end_seen, exp_dataseg_relro_adjust,
142 exp_dataseg_adjust and exp_dataseg_done to exp_seg_none,
143 exp_seg_align_seen, exp_seg_relro_seen, exp_seg_end_seen,
144 exp_seg_relro_adjust, exp_seg_adjust and exp_seg_done.
145 (relro_enum): Rename exp_dataseg_relro_none,
146 exp_dataseg_relro_start and exp_dataseg_relro_end to
147 exp_seg_relro_none, exp_seg_relro_start and exp_seg_relro_end.
148 (seg_align_type): New struct type.
149 (ldexp_control): Use seg_align_type.
150 * ldexp.c (fold_unary): Updated.
151 (fold_binary): Likewise.
152 * ldlang.c (strip_excluded_output_sections): Likewise.
153 (lang_size_sections_1): Likewise.
154 (lang_size_sections): Likewise.
155
f882209d
L
1562017-11-12 H.J. Lu <hongjiu.lu@intel.com>
157
158 PR ld/22423
159 * testsuite/ld-alpha/tlsbin.rd: Replace "R E " with "R +" for
160 PT_PHDR segment.
161 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
162 * testsuite/ld-ia64/tlsbin.rd: Likewise.
163 * testsuite/ld-powerpc/tlsexe.r: Likewise.
164 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
165 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
166 * testsuite/ld-s390/tlsbin.rd: Likewise.
167 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
168 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
169 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
170 * testsuite/ld-elf/pr22423.d: New test.
171
ce3ad333
L
1722017-11-12 H.J. Lu <hongjiu.lu@intel.com>
173
174 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): Renamed
175 to ...
176 (OTHER_PLT_SECTIONS): This.
177 * emulparams/elf_i386.sh: Likewise.
178 * emulparams/elf_iamcu.sh: Likewise.
179 * emulparams/elf_x86_64.sh: Likewise.
180 * scripttempl/elf.sc: Place ${OTHER_PLT_SECTIONS} just after
181 .plt.
182
fb24d531
L
1832017-11-09 H.J. Lu <hongjiu.lu@intel.com>
184
185 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Reformat
186 to generate consistent codes.
187
d3a49aa8
AM
1882017-11-07 Alan Modra <amodra@gmail.com>
189
190 * testsuite/ld-aarch64/ifunc-13.d,
191 * testsuite/ld-aarch64/ifunc-15.d,
192 * testsuite/ld-aarch64/ifunc-20.d,
193 * testsuite/ld-alpha/tlsbin.rd,
194 * testsuite/ld-alpha/tlspic.rd,
195 * testsuite/ld-arm/ifunc-3.rd,
196 * testsuite/ld-arm/ifunc-9.rd,
197 * testsuite/ld-arm/unwind-mix.d,
198 * testsuite/ld-arm/unwind-rel.d,
199 * testsuite/ld-cris/hiddef1.d,
200 * testsuite/ld-cris/libdso-13.d,
201 * testsuite/ld-cris/libdso-2.d,
202 * testsuite/ld-cris/pr16044.d,
203 * testsuite/ld-cris/tls-local-63.d,
204 * testsuite/ld-cris/tls-local-64.d,
205 * testsuite/ld-cris/tls-und-38.d,
206 * testsuite/ld-cris/tls-und-42.d,
207 * testsuite/ld-cris/tls-und-46.d,
208 * testsuite/ld-cris/tls-und-50.d,
209 * testsuite/ld-cris/weakref3.d,
210 * testsuite/ld-cris/weakref4.d,
211 * testsuite/ld-elf/comm-data2r.rd,
212 * testsuite/ld-elf/discard1.d,
213 * testsuite/ld-elf/discard2.d,
214 * testsuite/ld-elf/pr19539.d,
215 * testsuite/ld-elf/pr22374-1.r,
216 * testsuite/ld-elf/pr22374-2.r,
217 * testsuite/ld-i386/combreloc.d,
218 * testsuite/ld-i386/emit-relocs-nacl.rd,
219 * testsuite/ld-i386/emit-relocs.rd,
220 * testsuite/ld-i386/pr13302.d,
221 * testsuite/ld-i386/pr17709-nacl.rd,
222 * testsuite/ld-i386/pr17709.rd,
223 * testsuite/ld-i386/pr19539.d,
224 * testsuite/ld-i386/pr19615.d,
225 * testsuite/ld-i386/pr19636-1a.d,
226 * testsuite/ld-i386/pr19636-1e.d,
227 * testsuite/ld-i386/pr19636-1f.d,
228 * testsuite/ld-i386/pr19636-2a.d,
229 * testsuite/ld-i386/pr19636-2b.d,
230 * testsuite/ld-i386/pr19636-2d-nacl.d,
231 * testsuite/ld-i386/pr19636-2e-nacl.d,
232 * testsuite/ld-i386/pr19636-3a.d,
233 * testsuite/ld-i386/pr19636-3d.d,
234 * testsuite/ld-i386/pr19636-3e.d,
235 * testsuite/ld-i386/pr19636-4a.d,
236 * testsuite/ld-i386/pr19645.d,
237 * testsuite/ld-i386/pr19827-nacl.rd,
238 * testsuite/ld-i386/pr19827.rd,
239 * testsuite/ld-i386/pr20253-4a.d,
240 * testsuite/ld-i386/pr20253-4b.d,
241 * testsuite/ld-i386/pr20253-5.d,
242 * testsuite/ld-i386/tlsbin-nacl.rd,
243 * testsuite/ld-i386/tlsbin.rd,
244 * testsuite/ld-i386/tlspic-nacl.rd,
245 * testsuite/ld-i386/tlspic.rd,
246 * testsuite/ld-i386/undefweakb.d,
247 * testsuite/ld-ia64/tlsbin.rd,
248 * testsuite/ld-ia64/tlspic.rd,
249 * testsuite/ld-ifunc/ifunc-13-i386.d,
250 * testsuite/ld-ifunc/ifunc-13-x86-64.d,
251 * testsuite/ld-ifunc/ifunc-15-i386.d,
252 * testsuite/ld-ifunc/ifunc-15-x86-64.d,
253 * testsuite/ld-ifunc/ifunc-20-i386.d,
254 * testsuite/ld-ifunc/ifunc-20-x86-64.d,
255 * testsuite/ld-ifunc/ifunc-23a-x86.d,
256 * testsuite/ld-ifunc/ifunc-23b-x86.d,
257 * testsuite/ld-ifunc/ifunc-23c-x86.d,
258 * testsuite/ld-ifunc/ifunc-24a-x86.d,
259 * testsuite/ld-ifunc/ifunc-24b-x86.d,
260 * testsuite/ld-ifunc/ifunc-24c-x86.d,
261 * testsuite/ld-ifunc/ifunc-25a-x86.d,
262 * testsuite/ld-ifunc/ifunc-25b-x86.d,
263 * testsuite/ld-ifunc/ifunc-25c-x86.d,
264 * testsuite/ld-m68k/got-1.d,
265 * testsuite/ld-mips-elf/vxworks1.rd,
266 * testsuite/ld-powerpc/ambiguousv1.d,
267 * testsuite/ld-powerpc/ambiguousv1b.d,
268 * testsuite/ld-powerpc/ambiguousv2.d,
269 * testsuite/ld-powerpc/ambiguousv2b.d,
270 * testsuite/ld-powerpc/tlsexe.r,
271 * testsuite/ld-powerpc/tlsexe32.r,
272 * testsuite/ld-powerpc/tlsexetoc.r,
273 * testsuite/ld-powerpc/tlsso.r,
274 * testsuite/ld-powerpc/tlsso32.r,
275 * testsuite/ld-powerpc/tlstocso.r,
276 * testsuite/ld-powerpc/vle-multiseg-1.d,
277 * testsuite/ld-powerpc/vle-multiseg-2.d,
278 * testsuite/ld-powerpc/vle-multiseg-3.d,
279 * testsuite/ld-s390/tlsbin.rd,
280 * testsuite/ld-s390/tlsbin_64.rd,
281 * testsuite/ld-s390/tlspic.rd,
282 * testsuite/ld-s390/tlspic_64.rd,
283 * testsuite/ld-sh/ld-r-1.d,
284 * testsuite/ld-sh/sh64/gotplt.d,
285 * testsuite/ld-sh/shared-1.d,
286 * testsuite/ld-sh/tlsbin-2.d,
287 * testsuite/ld-sh/tlspic-2.d,
288 * testsuite/ld-sparc/gotop32.rd,
289 * testsuite/ld-sparc/gotop64.rd,
290 * testsuite/ld-sparc/tlssunpic32.rd,
291 * testsuite/ld-sparc/tlssunpic64.rd,
292 * testsuite/ld-sparc/vxworks1-lib.rd,
293 * testsuite/ld-tic6x/shlib-app-1.rd,
294 * testsuite/ld-tic6x/shlib-app-1b.rd,
295 * testsuite/ld-tic6x/shlib-app-1r.rd,
296 * testsuite/ld-tic6x/shlib-app-1rb.rd,
297 * testsuite/ld-tic6x/shlib-noindex.rd,
298 * testsuite/ld-vax-elf/export-class-data.rd,
299 * testsuite/ld-x86-64/pr13082-1a.d,
300 * testsuite/ld-x86-64/pr13082-1b.d,
301 * testsuite/ld-x86-64/pr13082-2a.d,
302 * testsuite/ld-x86-64/pr13082-2b.d,
303 * testsuite/ld-x86-64/pr13082-3a.d,
304 * testsuite/ld-x86-64/pr13082-3c.d,
305 * testsuite/ld-x86-64/pr13082-4a.d,
306 * testsuite/ld-x86-64/pr13082-5a.d,
307 * testsuite/ld-x86-64/pr13082-5b.d,
308 * testsuite/ld-x86-64/pr13082-6a.d,
309 * testsuite/ld-x86-64/pr13082-6b.d,
310 * testsuite/ld-x86-64/pr17709-nacl.rd,
311 * testsuite/ld-x86-64/pr17709.rd,
312 * testsuite/ld-x86-64/pr19539a.d,
313 * testsuite/ld-x86-64/pr19539b.d,
314 * testsuite/ld-x86-64/pr19615.d,
315 * testsuite/ld-x86-64/pr19636-1a.d,
316 * testsuite/ld-x86-64/pr19636-1d.d,
317 * testsuite/ld-x86-64/pr19636-1e.d,
318 * testsuite/ld-x86-64/pr19636-2a.d,
319 * testsuite/ld-x86-64/pr19636-2e.d,
320 * testsuite/ld-x86-64/pr19636-2f.d,
321 * testsuite/ld-x86-64/pr19636-3a.d,
322 * testsuite/ld-x86-64/pr19645.d,
323 * testsuite/ld-x86-64/pr19807-2b.d,
324 * testsuite/ld-x86-64/pr19807-2d.d,
325 * testsuite/ld-x86-64/pr19827-nacl.rd,
326 * testsuite/ld-x86-64/pr19827.rd,
327 * testsuite/ld-x86-64/pr20253-4a.d,
328 * testsuite/ld-x86-64/pr20253-4b.d,
329 * testsuite/ld-x86-64/pr20253-4d.d,
330 * testsuite/ld-x86-64/pr20253-4e.d,
331 * testsuite/ld-x86-64/pr20253-5a.d,
332 * testsuite/ld-x86-64/pr20253-5b.d,
333 * testsuite/ld-x86-64/tlsbin-nacl.rd,
334 * testsuite/ld-x86-64/tlsbin.rd,
335 * testsuite/ld-x86-64/tlspic-nacl.rd,
336 * testsuite/ld-x86-64/tlspic.rd,
337 * testsuite/ld-x86-64/tlspic2-nacl.rd: Update for
338 pluralization fixes.
339
992a06ee
AM
3402017-11-07 Alan Modra <amodra@gmail.com>
341
342 * ldlang.c (lang_size_sections_1): Properly pluralize messages.
343 (lang_check_section_addresses): Likewise.
344
6003e27e
AM
3452017-11-07 Alan Modra <amodra@gmail.com>
346
347 * ld.h (textdomain, bindtextdomain): Use safer "do nothing".
348 (ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
349
3988aed5
AM
3502017-11-01 Alan Modra <amodra@gmail.com>
351
352 * testsuite/ld-powerpc/ambiguousv2.d: Remove FIXME.
353
e48f0c8f
AM
3542017-11-01 Alan Modra <amodra@gmail.com>
355
356 PR 22374
357 * testsuite/ld-elf/pr22374a.s,
358 * testsuite/ld-elf/pr22374b.s,
359 * testsuite/ld-elf/pr22374-1.r,
360 * testsuite/ld-elf/pr22374-2.r: New test.
361 * testsuite/ld-elf/elf.exp: Run it.
362
46b06a98
AM
3632017-11-01 Alan Modra <amodra@gmail.com>
364
365 * testsuite/ld-elf/elf.exp: Merge some conditionals, a better
366 name than "shared library for next test", and use xfail arg
367 of run_ld_link_tests in a few places.
368
506981af
RL
3692017-10-26 Renlin Li <renlin.li@arm.com>
370
371 * testsuite/ld-elf/elf.exp: xfail pr21703 tests on specific targets.
372 Only run shared lib test for targets which support it.
373 * testsuite/ld-elf/pr21703-r.sd: Adjust the expected output.
374 * testsuite/ld-elf/pr21703-shared.sd: Likewise.
375
4062f504
JG
3762017-10-26 James Greenhalgh <james.greenhalgh@arm.com>
377
378 * testsuite/ld-arm/cortex-a8-far.d: Update expected disassembly.
379 * testsuite/ld-arm/farcall-group-size2: Likewise.
380 * testsuite/ld-arm/farcall-group.d: Likewise.
381
8df93cb5
L
3822017-10-25 H.J. Lu <hongjiu.lu@intel.com>
383
384 * ld.texinfo: Correct -z ibt.
385
e601d38b
AM
3862017-10-25 Alan Modra <amodra@gmail.com>
387
388 * testsuite/ld-plugin/lto-3r.d: Match "__gnu_lto_v" optionally
389 prefixed with "_".
390 * testsuite/ld-plugin/lto-5r.d: Likewise.
391
2e30886f
HPN
3922017-10-25 Hans-Peter Nilsson <hp@axis.com>
393
394 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Fix typo for istarget.
395
3342be5d
AW
3962017-10-24 Andrew Waterman <andrew@sifive.com>
397
db283f44
HPN
398 * testsuite/ld-riscv-elf/c-lui.d: New testcase.
399 * testsuite/ld-riscv-elf/c-lui.s: Likewise.
400 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: New test suite.
3342be5d 401
93f4de39
RL
4022017-10-24 Renlin Li <renlin.li@arm.com>
403
404 PR ld/21703
405 * testsuite/ld-elf/elf.exp: Run new tests.
406 * testsuite/ld-elf/pr21703-1.s: New.
407 * testsuite/ld-elf/pr21703-2.s: New.
408 * testsuite/ld-elf/pr21703-3.s: New.
409 * testsuite/ld-elf/pr21703-4.s: New.
410 * testsuite/ld-elf/pr21703-r.sd: New.
411 * testsuite/ld-elf/pr21703-shared.sd: New.
412 * testsuite/ld-elf/pr21703.sd: New.
413 * testsuite/ld-elf/pr21703.ver: New.
414
4a8f9fc2
L
4152017-10-23 H.J. Lu <hongjiu.lu@intel.com>
416
417 * configure.tgt (i[3-7]86-*-linux-*): Move elf32_x86_64 from
418 targ_extra_libpath to targ64_extra_libpath.
419
66cae560
NC
4202017-10-23 Nick Clifton <nickc@redhat.com>
421
422 PR 22310
423 * testsuite/ld-elf/pr22310.s: New test source file.
424 * testsuite/ld-elf/pr22310.d: New test driver.
425 * testsuite/ld-mmix/undef-3.d: Update expected output from readelf.
426
4e15b78b
HPN
4272017-10-21 Hans-Peter Nilsson <hp@axis.com>
428
429 PR ld/21233
430 * testsuite/ld-elf/shared.exp: Remove kfails.
431
f3012016
L
4322017-10-20 H.J. Lu <hongjiu.lu@intel.com>
433
434 PR ld/22269
435 * testsuite/ld-elf/pr22269-1.rd: New file.
436 * testsuite/ld-elf/pr22269-1.c: Likewise.
437 * testsuite/ld-elf/shared.exp: Run pr22269-1.
438
ff6f4d9b
PD
4392017-10-19 Palmer Dabbelt <palmer@dabbelt.com>
440
441 * emultempl/riscvelf.em (riscv_elf_before_allocation): Add a
442 third relaxation pass.
443
e6e2dfbd
AM
4442017-10-17 Alan Modra <amodra@gmail.com>
445
446 * ld.texinfo (-z): Combine negative options with corresponding
447 positive option. Sort the table. Expand and correct "combreloc",
448 "common", "common-page-size", "interpose", "loadfltr",
449 "max-page-size", "muldefs", "nodefaultlib", "nodelete", "nodlopen",
450 "nodump", "noextern-protected-data", "now", "origin", and "text".
451
5c3261b0
L
4522017-10-16 H.J. Lu <hongjiu.lu@intel.com>
453
454 * emulparams/elf32_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
455 Removed.
456 * emulparams/elf_i386_be.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
457 Likewise.
458 * emulparams/elf_i386_chaos.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
459 Likewise.
460 * emulparams/elf_i386_ldso.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
461 Likewise.
462 * emulparams/elf_i386_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
463 Likewise.
464 * emulparams/elf_iamcu.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
465 Likewise.
466 * emulparams/elf_k1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
467 Likewise.
468 * emulparams/elf_l1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
469 Likewise.
470 * emulparams/elf_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
471 Likewise.
472 * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
473 Likewise.
474 * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
475 Likewise.
476 * emulparams/i386nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
477 Likewise.
478 * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
479 Likewise.
480 * emulparams/shelf.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
481 Likewise.
482 * emulparams/shelf32.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
483 Likewise.
484 * emulparams/shelf_nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
485 Likewise.
486 * emulparams/shelf_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
487 Likewise.
488 * emulparams/shlelf32_linux.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
489 Likewise.
490 * emulparams/shlelf_linux.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
491 Likewise.
492 * emulparams/shlelf_nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
493 Likewise.
494 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse):
495 Set link_info.check_relocs_after_open_input to TRUE.
496 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse):
497 Likewise.
498 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse):
499 Likewise.
500 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
501 after_parse_default.
502 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
503 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
504 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
505 * emultempl/gld960.em (ld_${EMULATION_NAME}_emulation): Likewise.
506 * emultempl/gld960c.em (ld_${EMULATION_NAME}_emulation): Likewise.
507 * emultempl/lnk960.em (ld_${EMULATION_NAME}_emulation): Likewise.
508 * emultempl/m68kcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
509 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
510 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
511 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
512 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
513 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
514 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
515 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Always
516 set link_info.check_relocs_after_open_input to TRUE.
517 (ld_${EMULATION_NAME}_emulation): Add $LDEMUL_AFTER_CHECK_RELOCS.
518 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
519 Set link_info.check_relocs_after_open_input to TRUE.
520 (ld_${EMULATION_NAME}_emulation): Add after_check_relocs_default.
521 * emultempl/mmix-elfnmmo.em (mmix_before_parse): New function.
522 (LDEMUL_BEFORE_PARSE): New.
523 * emultempl/mmixelf.em (elfmmix_before_parse): Replace
524 gld${EMULATION_NAME}_before_parse with mmix_before_parse.
525 * emultempl/ppc32elf.em (ppc_after_open): Renamed to ...
526 (ppc_after_check_relocs): This. Call after_check_relocs_default
527 instead of gld${EMULATION_NAME}_after_open.
528 (LDEMUL_AFTER_OPEN): Removed.
529 (LDEMUL_AFTER_CHECK_RELOCS): New.
530 * ldemul.c (ldemul_after_check_relocs): New.
531 (after_check_relocs_default): Likewise.
532 * ldemul.h (ldemul_after_check_relocs): Likewise.
533 (after_check_relocs_default): Likewise.
534 (ld_emulation_xfer_struct): Add after_check_relocs.
535 * ldlang.c (lang_process): Call ldemul_after_check_relocs after
536 lang_check_relocs.
537 * testsuite/ld-aarch64/gc-got-relocs.d: Don't expect GOT section.
538 * testsuite/ld-aarch64/gc-tls-relocs.d: Likewise.
539 * testsuite/ld-cris/tls-gc-68.d: Likewise.
540 * testsuite/ld-cris/tls-gc-69.d: Likewise.
541 * testsuite/ld-cris/tls-gc-70.d: Likewise.
542 * testsuite/ld-cris/tls-gc-75.d: Likewise.
543 * testsuite/ld-cris/tls-gc-79.d: Likewise.
544 * testsuite/ld-mmix/bpo-10.d: Don't expect .MMIX.reg_contents
545 section.
546
e01c16a8
L
5472017-10-14 H.J. Lu <hongjiu.lu@intel.com>
548
549 PR ld/22269
550 * testsuite/ld-cris/weakhiddso.d: Update and remove R_CRIS_NONE.
551
354bac40
AM
5522017-10-13 Alan Modra <amodra@gmail.com>
553
554 PR ld/22263
555 * testsuite/ld-elf/tls.exp: Link with -z text.
556 * testsuite/ld-elf/pr22263-1.rd: Test for tprel relocs.
557
74ffa566
L
5582017-10-12 H.J. Lu <hongjiu.lu@intel.com>
559
560 PR ld/22263
561 * testsuite/ld-elf/pr22263-1.rd: New file.
562 * testsuite/ld-elf/pr22263-1a.c: Likewise.
563 * testsuite/ld-elf/pr22263-1b.c: Likewise.
564 * testsuite/ld-elf/tls.exp: Likewise.
565
1d75a8e2
NC
5662017-10-12 Nick Clifton <nickc@redhat.com>
567
568 * testsuite/ld-aarch64/pcrel_pic_defined.d: Expect errors not
569 warnings. Expect errors about unsupported relocations.
570 * testsuite/ld-aarch64/pcrel_pic_undefined.d: Likewise.
571
359987e2
L
5722017-10-12 H.J. Lu <hongjiu.lu@intel.com>
573
574 * testsuite/ld-elf/pr22269b.d: Expect warning of
575 "-z dynamic-undefined-weak ignored".
576 * testsuite/ld-i386/pr19636-1j.d: Likewise.
577 * testsuite/ld-i386/pr19636-1k.d: Likewise.
578 * testsuite/ld-i386/pr19636-1l.d: Likewise.
579 * testsuite/ld-x86-64/pr19636-2j.d: Likewise.
580 * testsuite/ld-x86-64/pr19636-2k.d: Likewise.
581 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
582 * testsuite/ld-x86-64/pr19636-2m.d: Likewise.
583
22b1ee18
AM
5842017-10-12 Alan Modra <amodra@gmail.com>
585
586 PR 22269
587 * emultempl/elf32.em (after_parse): Warn on --no-dynamic-linker
588 -z dynamic-undefined-weak combination. Set dynamic_undefined_weak
589 to zero when nointerp.
590
559192d8
AM
5912017-10-12 Alan Modra <amodra@gmail.com>
592
593 * emultempl/elf32.em (before_allocation): Call
594 elf_backend_hide_symbol, not _bfd_elf_link_hash_hide_symbol.
595 Formatting.
596
4b97e389
L
5972017-10-11 H.J. Lu <hongjiu.lu@intel.com>
598
599 * PR ld/22269
600 * testsuite/ld-elf/pr22269.s: New file.
601 * testsuite/ld-elf/pr22269a.d: Likewise.
602 * testsuite/ld-elf/pr22269b.d: Likewise.
603
853ee16f
L
6042017-10-11 H.J. Lu <hongjiu.lu@intel.com>
605
606 * testsuite/ld-i386/i386.exp: Run pr19636-1j, pr19636-1k,
607 pr19636-1l, pr19636-3h and pr19636-3i.
608 * testsuite/ld-i386/pr19636-1j.d: New file.
609 * testsuite/ld-i386/pr19636-1k.d: Likewise.
610 * testsuite/ld-i386/pr19636-1l.d: Likewise.
611 * testsuite/ld-i386/pr19636-3h.d: Likewise.
612 * testsuite/ld-i386/pr19636-3i.d: Likewise.
613 * testsuite/ld-x86-64/pr19636-1h.d: Likewise.
614 * testsuite/ld-x86-64/pr19636-1i.d: Likewise.
615 * testsuite/ld-x86-64/pr19636-1j.d: Likewise.
616 * testsuite/ld-x86-64/pr19636-2j.d: Likewise.
617 * testsuite/ld-x86-64/pr19636-2k.d: Likewise.
618 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
619 * testsuite/ld-x86-64/pr19636-2m.d: Likewise.
620 * testsuite/ld-x86-64/x86-64.exp: Run pr19636-1h, pr19636-1i,
621 pr19636-1j, pr19636-2j, pr19636-2k, pr19636-2l and pr19636-2m.
622
d003af55
AM
6232017-10-11 Alan Modra <amodra@gmail.com>
624
625 * emultempl/aarch64elf.em: Wrap einfo strings in _(). Formatting.
626 * emultempl/aix.em: Likewise.
627 * emultempl/armcoff.em: Likewise.
628 * emultempl/armelf.em: Likewise.
629 * emultempl/avrelf.em: Likewise.
630 * emultempl/beos.em: Likewise.
631 * emultempl/cr16elf.em: Likewise.
632 * emultempl/elf-generic.em: Likewise.
633 * emultempl/elf32.em: Likewise.
634 * emultempl/genelf.em: Likewise.
635 * emultempl/hppaelf.em: Likewise.
636 * emultempl/linux.em: Likewise.
637 * emultempl/lnk960.em: Likewise.
638 * emultempl/m68hc1xelf.em: Likewise.
639 * emultempl/m68kcoff.em: Likewise.
640 * emultempl/m68kelf.em: Likewise.
641 * emultempl/metagelf.em: Likewise.
642 * emultempl/mipself.em: Likewise.
643 * emultempl/mmix-elfnmmo.em: Likewise.
644 * emultempl/mmo.em: Likewise.
645 * emultempl/msp430.em: Likewise.
646 * emultempl/nds32elf.em: Likewise.
647 * emultempl/nios2elf.em: Likewise.
648 * emultempl/pe.em: Likewise.
649 * emultempl/pep.em: Likewise.
650 * emultempl/ppc32elf.em: Likewise.
651 * emultempl/ppc64elf.em: Likewise.
652 * emultempl/riscvelf.em: Likewise.
653 * emultempl/s390.em: Likewise.
654 * emultempl/scoreelf.em: Likewise.
655 * emultempl/spuelf.em: Likewise.
656 * emultempl/sunos.em: Likewise.
657 * emultempl/tic6xdsbt.em: Likewise.
658 * emultempl/v850elf.em: Likewise.
659 * emultempl/vms.em: Likewise.
660 * emultempl/vxworks.em: Likewise.
661 * ldcref.c: Likewise.
662 * ldlang.c: Likewise.
663 * ldlex.l: Likewise.
664 * ldmain.c: Likewise.
665 * pe-dll.c: Likewise.
666 * plugin.c: Likewise.
667
6c699715
RL
6682017-10-10 Renlin Li <renlin.li@arm.com>
669
670 PR ld/21402
671 * testsuite/ld-arm/tls-app.d: Update address.
672 * testsuite/ld-arm/tls-app.r: Remove relocations.
673 * testsuite/ld-arm/unresolved-1-dyn.d: Update.
674
cbd3b1c1
AM
6752017-10-10 Alan Modra <amodra@gmail.com>
676
677 * Makefile.am (earmelfb_fuchsia.c): Rename rule from earmelf_fuchsia.c.
678 * Makefile.in: Regenerate.
679
6753e38a
NC
6802017-10-09 Nick Clifton <nickc@redhat.com>
681
c474ea1a
NC
682 * testsuite/ld-srec/srec.exp (run_srec_test): Set start address.
683
6753e38a
NC
684 PR ld/19874
685 * testsuite/ld-x86-64/pr19784c.c (bar): Change return type to void.
686
76f361eb
L
6872017-10-09 H.J. Lu <hongjiu.lu@intel.com>
688
689 PR ld/22267
690 * ldlex.l (SYMBOLNAMECHAR1) New.
691 (DEFSYMEXP): Replace FILENAMECHAR1 with SYMBOLNAMECHAR1.
692 (EXPRESSION): Likewise.
693 * testsuite/ld-scripts/expr.exp: Run pr22267.
694 * testsuite/ld-scripts/pr22267.d: New file.
695 * testsuite/ld-scripts/pr22267.s: Likewise.
696 * testsuite/ld-scripts/pr22267.t: Likewise.
697
2458d83b
L
6982017-10-07 H.J. Lu <hongjiu.lu@intel.com>
699
700 * testsuite/ld-elf/merge.d: Don't expect to fail for sparc.
701
94750c06
NC
7022017-10-05 Nick Clifton <nickc@redhat.com>
703
704 * po/tr.po: Updated Turkish translation.
705
5c144731
NC
7062017-10-05 Nick Clifton <nickc@redhat.com>
707
708 PR 22262
709 * testsuite/ld-powerpc/relocsort.d: Update expected output (for
710 longer reloc names).
711
db4677b8
AM
7122017-10-05 Alan Modra <amodra@gmail.com>
713
714 PR 21167
715 * testsuite/ld-elf/group9b.d: Adjust for relocs included in group.
716
9194f82d
AM
7172017-10-03 Alan Modra <amodra@gmail.com>
718
719 PR 21294
720 * NEWS: Note that defaulting to -z relro results in increased
721 memory and disk size.
722
def5c83c
AM
7232017-10-03 Alan Modra <amodra@gmail.com>
724
725 * ld.texinfo (-z relro): Expand description.
726 (DATA_SEGMENT_ALIGN): Note that -z relro is not effective when
727 running with system page size larger than commonpagesize.
728 (DATA_SEGMENT_RELRO_END): Be explicit about the alignment.
729
8cb1232a
AM
7302017-10-01 Alan Modra <amodra@gmail.com>
731
732 PR 21970
733 * ldlang.c (lang_leave_overlay): Reset overlay_subalign.
734
2715765b
L
7352017-09-30 H.J. Lu <hongjiu.lu@intel.com>
736
737 PR binutils/21978
738 * testsuite/ld-elf/pr21978.od: New file.
739 * testsuite/ld-elf/pr21978a.c: Likewise.
740 * testsuite/ld-elf/pr21978b.c: Likewise.
741 * testsuite/ld-elf/shared.exp: Run PR binutils/21978 test.
742
231ca753
NC
7432017-09-28 Nick Clifton <nickc@redhat.com>
744
745 PR 14918
746 * testsuite/ld-plugin/lto.exp (link_elf_tests): Skip the pr14918
747 test for ARM targets as they always link with libgcc.
748
1a3b5c34
AM
7492017-09-28 Alan Modra <amodra@gmail.com>
750
751 * testsuite/ld-plugin/pr22220.h,
752 * testsuite/ld-plugin/pr22220lib.cc,
753 * testsuite/ld-plugin/pr22220lib.ver,
754 * testsuite/ld-plugin/pr22220main.cc: New test.
755 * testsuite/ld-plugin/lto.exp: Run it.
756
28d810f7
MR
7572017-09-26 Maciej W. Rozycki <macro@imgtec.com>
758
759 * testsuite/ld-undefined/undefined.exp: Correct the dyn reloc
760 test for MIPS and S+core targets.
761
be2b629f
L
7622017-09-22 H.J. Lu <hongjiu.lu@intel.com>
763
764 PR ld/22150
765 * testsuite/ld-elf/pr22150.vd: New file.
766 * testsuite/ld-elf/pr22150.ver: Likewise.
767 * testsuite/ld-elf/pr22150a.s: Likewise.
768 * testsuite/ld-elf/pr22150b.s: Likewise.
769 * testsuite/ld-elf/shared.exp: Run PR ld/22150 tests.
770
ba52cbb9
AM
7712017-09-21 Alan Modra <amodra@gmail.com>
772
773 * testsuite/ld-powerpc/tlsopt5.wf: Update for reduced alignment.
774
b7f54058
MR
7752017-09-19 Maciej W. Rozycki <macro@imgtec.com>
776
777 * configure.tgt <mips64el-*-openbsd*, mips64-*-openbsd*>: New
778 targets.
779
8fd138c4
AM
7802017-09-15 Alan Modra <amodra@gmail.com>
781
782 PR 22118
783 * testsuite/ld-aarch64/erratum843419.d: Correct regexp.
784
79254a52
L
7852017-09-14 H.J. Lu <hongjiu.lu@intel.com>
786
787 PR ld/22139
788 * testsuite/ld-elf/globalaudit.rd: Allow additional bits in
789 DT_FLAGS_1.
790
5e5e02ae
L
7912017-09-14 H.J. Lu <hongjiu.lu@intel.com>
792
793 PR ld/22135
794 * testsuite/ld-i386/i386.exp: Run pr22135.
795 * testsuite/ld-x86-64/x86-64.exp: Likewise.
796 * testsuite/ld-i386/pr22135.d: New file.
797 * testsuite/ld-i386/pr22135.s: Likewise.
798 * testsuite/ld-x86-64/pr22135.d: Likewise.
799 * testsuite/ld-x86-64/pr22135.s: Likewise.
800
2420fff6
AM
8012017-09-09 Alan Modra <amodra@gmail.com>
802
803 * ld.texinfo (--plt-align): Describe new behaviour of option.
804 * emultempl/ppc64elf.em (params): Default plt_stub_align to 5.
805 * testsuite/ld-powerpc/powerpc.exp: Pass --no-plt-align for
806 selected tests.
807 * testsuite/ld-powerpc/relbrlt.d: Pass --no-plt-align.
808 * testsuite/ld-powerpc/elfv2so.d: Adjust expected output.
809
0a27fed7
L
8102017-09-09 H.J. Lu <hongjiu.lu@intel.com>
811
812 PR ld/22115
813 * ld-i386/i386.exp: Run PR ld/22115 tests,
814 * ld/testsuite/ld-x86-64/x86-64.exp: Likewise.
815 * testsuite/ld-i386/pr22115-1.s: New file.
816 * testsuite/ld-i386/pr22115-1a.d: Likewise.
817 * testsuite/ld-i386/pr22115-1b.d: Likewise.
818 * testsuite/ld-i386/pr22115-1c.d: Likewise.
819 * testsuite/ld-i386/pr22115-1d.d: Likewise.
820 * testsuite/ld-x86-64/pr22115-1.s: Likewise.
821 * testsuite/ld-x86-64/pr22115-1a-x32.d: Likewise.
822 * testsuite/ld-x86-64/pr22115-1a.d: Likewise.
823 * testsuite/ld-x86-64/pr22115-1b-x32.d: Likewise.
824 * testsuite/ld-x86-64/pr22115-1b.d: Likewise.
825 * testsuite/ld-x86-64/pr22115-1c-x32.d: Likewise.
826 * testsuite/ld-x86-64/pr22115-1c.d: Likewise.
827 * testsuite/ld-x86-64/pr22115-1d-x32.d: Likewise.
828 * testsuite/ld-x86-64/pr22115-1d.d: Likewise.
829
78984959
L
8302017-09-06 H.J. Lu <hongjiu.lu@intel.com>
831
832 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
833 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
834 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
835 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
836
dc089072
L
8372017-09-05 H.J. Lu <hongjiu.lu@intel.com>
838
839 * testsuite/ld-x86-64/pr19609-5d.d: Updated.
840 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
841 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
842
8b43e456
L
8432017-09-05 H.J. Lu <hongjiu.lu@intel.com>
844
845 * testsuite/ld-x86-64/pr19609-4e.d: Updated.
846 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
847
0e30d991
L
8482017-09-03 H.J. Lu <hongjiu.lu@intel.com>
849
850 PR ld/22071
851 * testsuite/ld-x86-64/pr22071.d: New file.
852 * testsuite/ld-x86-64/pr22071.s: Likewise.
853 * testsuite/ld-x86-64/x86-64.exp: Run pr22071.
854
1fa4ec6a
AM
8552017-09-02 Alan Modra <amodra@gmail.com>
856
857 * ldlang.h (lang_input_statement_type): Expand comments.
858 (LANG_FOR_EACH_INPUT_STATEMENT): Rewrite without casts.
859 * ldlang.c (lang_for_each_input_file): Likewise.
860 (load_symbols): Set usrdata for archives.
861 (find_rescan_insertion): New function.
862 (lang_process): Trim off and reinsert entries added to file chain
863 when rescanning archives for LTO.
864 * ldmain.c (add_archive_element): Set my_archive input_statement
865 next pointer to last element added.
866
ad71ce8d
L
8672017-09-01 H.J. Lu <hongjiu.lu@intel.com>
868
869 PR ld/22064
870 * testsuite/ld-x86-64/pr22064a.S: New file.
871 * testsuite/ld-x86-64/pr22064b.c: Likewise.
872 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/22064 test.
873
96d01d93
AM
8742017-09-02 Alan Modra <amodra@gmail.com>
875
876 * emultempl/msp430.em (eval_upper_either_sections): Make base_sec_name
877 a const char*.
878 (eval_lower_either_sections): Likewise.
879 (msp430_elf_after_allocation): Likewise, and don't needlessly concat
880 and free. Warning fix.
881
e10c9c62
L
8822017-09-01 H.J. Lu <hongjiu.lu@intel.com>
883
884 PR ld/22061
885 * testsuite/ld-i386/ibt-plt-1.d: Updated.
886 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
887 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
888 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
889 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
890 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
891 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
892 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
893 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
894 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
895 * testsuite/ld-i386/ibt-plt-2b.d: Pass --hash-style=sysv to ld
896 and dump unwind information.
897 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
898 * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
899 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
900 * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
901 * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
902 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
903 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
904 * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
905 * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
906 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
907 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
908
d7de6408
L
9092017-08-31 H.J. Lu <hongjiu.lu@intel.com>
910
911 PR ld/22048
912 * testsuite/ld-x86-64/pr22048.d: New file.
913 * testsuite/ld-x86-64/pr22048a.s: Likewise.
914 * testsuite/ld-x86-64/pr22048b.s: Likewise.
915 * testsuite/ld-x86-64/x86-64.exp: Run pr22048.
916
9866ffe2
AM
9172017-08-31 Alan Modra <amodra@gmail.com>
918
919 * testsuite/ld-elf/eh3.d: Update.
920 * testsuite/ld-elf/eh4.d: Update.
921
5dda3209
MR
9222017-08-30 Maciej W. Rozycki <macro@imgtec.com>
923
924 * testsuite/ld-elf/orphan-11.ld: Also discard `.MIPS.options'
925 sections.
926
70e65ca8
MR
9272017-08-30 Maciej W. Rozycki <macro@imgtec.com>
928
929 * testsuite/ld-mips-elf/bal-jalx-addend-micromips.d: New test.
930 * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n32.d: New
931 test.
932 * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n64.d: New
933 test.
934 * testsuite/ld-mips-elf/bal-jalx-local-micromips.d: New test.
935 * testsuite/ld-mips-elf/bal-jalx-local-micromips-n32.d: New
936 test.
937 * testsuite/ld-mips-elf/bal-jalx-local-micromips-n64.d: New
938 test.
939 * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d: New test.
940 * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d: New test.
941 * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d: New test.
942 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d: New
943 test.
944 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d: New
945 test.
946 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d: New
947 test.
948 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
949
9a23f96e
AM
9502017-08-30 Alan Modra <amodra@gmail.com>
951
952 * testsuite/ld-powerpc/tls.s: Add calls with tls markers.
953 * testsuite/ld-powerpc/tls32.s: Likewise.
954 * testsuite/ld-powerpc/powerpc.exp: Run tls marker tests.
955 * testsuite/ld-powerpc/tls.d: Adjust for TPREL16_HA/LO optimization.
956 * testsuite/ld-powerpc/tlsexe.d: Likewise.
957 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
958 * testsuite/ld-powerpc/tlsld.d: Likewise.
959 * testsuite/ld-powerpc/tlsmark.d: Likewise.
960 * testsuite/ld-powerpc/tlsopt4.d: Likewise.
961 * testsuite/ld-powerpc/tlstoc.d: Likewise.
962
b9f04fe0
AM
9632017-08-30 Alan Modra <amodra@gmail.com>
964
965 * testsuite/ld-powerpc/tls.d: Update.
966 * testsuite/ld-powerpc/tlsexe.d: Update.
967 * testsuite/ld-powerpc/tlsexetoc.d: Update.
968 * testsuite/ld-powerpc/tlsld.d: Update.
969 * testsuite/ld-powerpc/tlsmark.d: Update.
970 * testsuite/ld-powerpc/tlsopt4.d: Update.
971 * testsuite/ld-powerpc/tlstoc.d: Update.
972
c7dffc39
HPN
9732017-08-30 Hans-Peter Nilsson <hp@axis.com>
974
975 * testsuite/ld-cris/dso-pltdis1.d: Run ld with --hash-style=sysv.
976 * testsuite/ld-cris/dso-pltdis2.d,
977 testsuite/ld-cris/dso12-pltdis.d, testsuite/ld-cris/expdyn1.d,
978 testsuite/ld-cris/expdyn5.d, testsuite/ld-cris/expdyn6.d,
979 testsuite/ld-cris/expdyn7.d, testsuite/ld-cris/gotplt1.d,
980 testsuite/ld-cris/gotplt2.d, testsuite/ld-cris/gotplt3.d,
981 testsuite/ld-cris/hiddef1.d, testsuite/ld-cris/libdso-11.d,
982 testsuite/ld-cris/libdso-12.d, testsuite/ld-cris/libdso-12b.d,
983 testsuite/ld-cris/libdso-12c.d, testsuite/ld-cris/libdso-13.d,
984 testsuite/ld-cris/libdso-13b.d, testsuite/ld-cris/libdso-14.d,
985 testsuite/ld-cris/libdso-15.d, testsuite/ld-cris/libdso-15b.d,
986 testsuite/ld-cris/libdso-1b.d, testsuite/ld-cris/libdso-1c.d,
987 testsuite/ld-cris/libdso-1d.d, testsuite/ld-cris/libdso-4.d,
988 testsuite/ld-cris/pr16044.d, testsuite/ld-cris/pv32-1.d,
989 testsuite/ld-cris/tls-dso-dtpoffd2.d,
990 testsuite/ld-cris/tls-dso-dtpoffd4.d,
991 testsuite/ld-cris/tls-dso-tpoffgotcomm1.d,
992 testsuite/ld-cris/tls-dso-x1x2-1.d, testsuite/ld-cris/tls-gc-71.d,
993 testsuite/ld-cris/tls-ie-78.d, testsuite/ld-cris/tls-js1.d,
994 testsuite/ld-cris/tls-ldgdex-14.d,
995 testsuite/ld-cris/tls-ldgdex-15.d,
996 testsuite/ld-cris/tls-legdx-16.d,
997 testsuite/ld-cris/tls-legdx-17.d,
998 testsuite/ld-cris/tls-local-63.d,
999 testsuite/ld-cris/tls-local-64.d, testsuite/ld-cris/tls-ok-30.d,
1000 testsuite/ld-cris/tls-ok-32.d, testsuite/ld-cris/tls-ok-34.d,
1001 testsuite/ld-cris/tls-und-38.d, testsuite/ld-cris/tls-und-42.d,
1002 testsuite/ld-cris/tls-und-46.d, testsuite/ld-cris/tls-und-50.d,
1003 testsuite/ld-cris/weakref2.d, testsuite/ld-cris/weakref3.d,
1004 testsuite/ld-cris/weakref4.d: Likewise.
1005
7ef3addb
JL
10062017-08-29 Jozef Lawrynowicz <jozef.l@somniumtech.com>
1007
1008 * emultempl/msp430.em (change_output_section): New function.
1009 (move_prefixed_section): New function.
1010 (add_region_prefix): New function.
1011 (msp430_elf_after_open): New function.
1012 (gld${EMULATION_NAME}_add_options): Implement.
1013 (gld${EMULATION_NAME}_list_options): Implement.
1014 (gld${EMULATION_NAME}_handle_option): Implement.
1015 * ld.texinfo: Document new options.
1016 * testsuite/ld-msp430-elf/main-bss-lower.d: New.
1017 * testsuite/ld-msp430-elf/main-bss-upper.d: New.
1018 * testsuite/ld-msp430-elf/main-const-lower.d: New.
1019 * testsuite/ld-msp430-elf/main-const-upper.d: New.
1020 * testsuite/ld-msp430-elf/main-text-lower.d: New.
1021 * testsuite/ld-msp430-elf/main-text-upper.d: New.
1022 * testsuite/ld-msp430-elf/main-var-lower.d: New.
1023 * testsuite/ld-msp430-elf/main-var-upper.d: New.
1024 * testsuite/ld-msp430-elf/main-with-data-bss-unique-sec.s: New.
1025 * testsuite/ld-msp430-elf/main-with-data-bss.s: New.
1026 * testsuite/ld-msp430-elf/main-with-text-rodata-unique-sec.s: New.
1027 * testsuite/ld-msp430-elf/main-with-text-rodata.s: New.
1028 * testsuite/ld-msp430-elf/msp430-elf.exp: New.
1029 * testsuite/ld-msp430-elf/msp430-no-lower.ld: New.
1030 * testsuite/ld-msp430-elf/msp430.ld: New.
1031 * emultempl/msp430.em (data_statement_size): New.
1032 (eval_upper_either_sections): New.
1033 (eval_lower_either_sections): New.
1034 (intermediate_relax_sections): New.
1035 (msp430_elf_after_allocation): New.
1036 * emultempl/msp430.em (gld${EMULATION_NAME}_place_orphan): Always
1037 place sections in the lower region.
1038
a5b4ee94
L
10392017-08-26 H.J. Lu <hongjiu.lu@intel.com>
1040
1041 PR ld/21997
1042 * testsuite/ld-i386/i386.exp: Run PR ld/21997 tests.
1043 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1044 * testsuite/ld-i386/pr21997-1a.S: New file.
1045 * testsuite/ld-i386/pr21997-1b.c: Likewise.
1046 * testsuite/ld-i386/pr21997-1c.S: Likewise.
1047 * testsuite/ld-x86-64/pr21997-1a.S: Likewise.
1048 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
1049 * testsuite/ld-x86-64/pr21997-1b.c: Likewise.
1050 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
1051 * testsuite/ld-x86-64/pr21997-1c.c: Likewise.
1052
176047c9
L
10532017-08-24 H.J. Lu <hongjiu.lu@intel.com>
1054
1055 * testsuite/ld-elf/pr21903c.d: Remove '\' before --.
1056 * testsuite/ld-elf/pr21903d.d: Likewise.
1057 * testsuite/ld-elf/pr21903e.d: Likewise.
1058 * testsuite/lib/ld-lib.exp (run_dump_test): Add "--" after
1059 regexp.
1060
074f6066
L
10612017-08-24 H.J. Lu <hongjiu.lu@intel.com>
1062
1063 * testsuite/ld-i386/i386.exp (undefined_weak): Replace regexp
1064 with string match.
1065 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Likewise.
1066
28e6a46b
L
10672017-08-24 H.J. Lu <hongjiu.lu@intel.com>
1068
1069 * testsuite/ld-x86-64/x86-64.exp: Run pr22001-1b on x32.
1070
7073b5b9
L
10712017-08-24 H.J. Lu <hongjiu.lu@intel.com>
1072
1073 PR ld/22001
1074 * testsuite/ld-i386/i386.exp: Run -z nocopyreloc tests.
1075 * testsuite/ld-x86-64/x86-64.exp: Likewise.
28e6a46b
L
1076 * testsuite/ld-i386/pr22001-1a.c: New file.
1077 * testsuite/ld-i386/pr22001-1b.c: Likewise.
1078 * testsuite/ld-i386/pr22001-1c.S: Likewise.
1079 * testsuite/ld-x86-64/pr22001-1a.c: Likewise.
1080 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
1081 * testsuite/ld-x86-64/pr22001-1b.c: Likewise.
1082 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
1083 * testsuite/ld-x86-64/pr22001-1c.c: Likewise.
7073b5b9 1084
5b5f4e6f
AB
10852017-08-17 Andrew Burgess <andrew.burgess@embecosm.com>
1086
1087 PR 21961
1088 * ldlang.c (lang_discard_section_p): New function.
1089 (lang_add_section): Checks moved out into new function, which is
1090 now called.
1091 (lang_place_orphans): Call lang_discard_section_p instead of
1092 duplicating some of the checks from lang_add_section.
1093 * testsuite/ld-elf/orphan-11.d: New file.
1094 * testsuite/ld-elf/orphan-11.ld: New file.
1095 * testsuite/ld-elf/orphan-11.s: New file.
1096 * testsuite/ld-elf/orphan-12.d: New file.
1097 * testsuite/ld-elf/orphan-12.s: New file.
1098
647d4de9
AM
10992017-08-24 Alan Modra <amodra@gmail.com>
1100
1101 * testsuite/ld-undefined/fundef.s: New test.
1102 * testsuite/ld-undefined/undefined.exp: Test that undefined
1103 symbols in shared libraries are made dynamic.
1104
49263c56
L
11052017-08-23 H.J. Lu <hongjiu.lu@intel.com>
1106
1107 * testsuite/ld-elf/pr21903c.d: Add '\' before --.
1108 * testsuite/ld-elf/pr21903d.d: Likewise.
1109 * testsuite/ld-elf/pr21903e.d: Likewise.
1110
aab921ad
L
11112017-08-23 H.J. Lu <hongjiu.lu@intel.com>
1112
1113 * testsuite/ld-x86-64/pie2.d: Updated.
1114 * testsuite/ld-x86-64/pr19719.d: Likewise.
1115 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
1116 * testsuite/ld-x86-64/pr19969.d: Likewise.
1117
73784fa5
L
11182017-08-23 H.J. Lu <hongjiu.lu@intel.com>
1119
1120 * testsuite/ld-i386/i386.exp: Run protected7.
1121 * testsuite/ld-i386/protected7.d: New file.
1122 * testsuite/ld-i386/protected7.s: Likewise.
1123 * testsuite/ld-x86-64/protected8.d: Likewise.
1124 * testsuite/ld-x86-64/protected8.s: Likewise.
1125 * testsuite/ld-x86-64/x86-64.exp: Run protected8.
1126
9d3420f5
AM
11272017-08-23 Alan Modra <amodra@gmail.com>
1128
1129 * testsuite/ld-gc/pr19161.d: Don't xfail hppa.
1130
8dfb7cbf
L
11312017-08-22 H.J. Lu <hongjiu.lu@intel.com>
1132 Alan Modra <amodra@gmail.com>
1133
1134 * testsuite/ld-elf/pr21964-1a.c (foo): Renamed to ...
1135 (foo1): This.
1136 * testsuite/ld-elf/pr21964-1b.c: Rewrite.
1137 * testsuite/ld-elf/pr21964-1c.c: New file.
1138 * testsuite/ld-elf/pr21964-2c.c: Likewise.
1139 * testsuite/ld-elf/pr21964-2a.c (foo): Renamed to ...
1140 (foo1): This.
1141 * testsuite/ld-elf/pr21964-2b.c: Rewrite.
1142 * testsuite/ld-elf/shared.exp: Update PR ld/21964 tests.
1143
487b6440
AM
11442017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1145 Alan Modra <amodra@gmail.com>
1146
1147 PR ld/21964
1148 * testsuite/ld-elf/pr21562a.d: Update for changed start/stop symbols.
1149 * testsuite/ld-elf/pr21562b.d: Likewise.
1150 * testsuite/ld-elf/pr21562c.d: Likewise.
1151 * testsuite/ld-elf/pr21562d.d: Likewise.
1152 * testsuite/ld-elf/pr21562e.d: Likewise.
1153 * testsuite/ld-elf/pr21562f.d: Likewise.
1154 * testsuite/ld-elf/pr21562g.d: Likewise.
1155 * testsuite/ld-elf/pr21562h.d: Likewise.
1156 * testsuite/ld-elf/pr21562i.d: Likewise.
1157 * testsuite/ld-elf/pr21562j.d: Likewise.
1158 * testsuite/ld-elf/pr21562k.d: Likewise.
1159 * testsuite/ld-elf/pr21562l.d: Likewise.
1160 * testsuite/ld-elf/pr21562m.d: Likewise.
1161 * testsuite/ld-elf/pr21562n.d: Likewise.
1162 * testsuite/ld-elf/sizeofa.d: Likewise.
1163 * testsuite/ld-elf/sizeofb.d: Likewise.
1164 * testsuite/ld-elf/startofa.d: Likewise.
1165 * testsuite/ld-elf/startofb.d: Likewise.
1166 * testsuite/ld-gc/pr20022.d: Likewise.
1167 * testsuite/ld-gc/start.d: Likewise.
1168 * testsuite/ld-elf/pr21964-1a.c: New file.
1169 * testsuite/ld-elf/pr21964-1b.c: New file.
1170 * testsuite/ld-elf/pr21964-2a.c: New file.
1171 * testsuite/ld-elf/pr21964-2b.c: New file.
1172 * testsuite/ld-elf/shared.exp: Run PR ld/21964 tests.
1173
284d826d
HPN
11742017-08-21 Hans-Peter Nilsson <hp@bitrange.com>
1175
1176 PR ld/20125
1177 * testsuite/ld-mmix/pr20125.d, testsuite/ld-mmix/pr20125.s: New
1178 test.
1179
7f3d21db
L
11802017-08-20 A. Wilcox <awilfox@adelielinux.org>
1181
1182 PR ld/21976
1183 * testsuite/ld-x86-64/plt-main-bnd.dd: Accept '_' in symbol
1184 name.
1185
12601963
NC
11862017-08-17 Nick Clifton <nickc@redhat.com>
1187
1188 * po/pt_BR.po: New Brazilian Portuguese translation.
1189 * configure.ac (ALL_LINGUAS): Add pt_BR.
1190 * configure: Regenerate.
1191
79a94a2a
AM
11922017-08-14 Alan Modra <amodra@gmail.com>
1193
1194 PR 21441
1195 * testsuite/ld-x86-64/pr21038a.d: Adjust.
1196 * testsuite/ld-x86-64/pr21038a-now.d: Adjust.
1197
34c4758c
L
11982017-08-13 H.J. Lu <hongjiu.lu@intel.com>
1199
1200 * testsuite/ld-i386/i386.exp: Run pr21884-nacl.
1201 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1202 * testsuite/ld-i386/pr21884.d: Don't run on nacl targets.
1203 * testsuite/ld-x86-64/pr21884.d: Likewise.
1204 * testsuite/ld-i386/pr21884.t: Revert the last change.
1205 * testsuite/ld-x86-64/pr21884.t: Likewise.
1206 * testsuite/ld-i386/pr21884-nacl.d: New file.
1207 * testsuite/ld-i386/pr21884-nacl.t: Likewise.
1208 * testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
1209 * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
1210
6d545e31
AM
12112017-08-13 Alan Modra <amodra@gmail.com>
1212
1213 * testsuite/ld-i386/pr21884.t: Remove unneeded format, arch and entry.
1214 * testsuite/ld-x86-64/pr21884.t: Likewise.
1215
93ab9c0d
NC
12162017-08-11 Nick Clifton <nickc@redhat.com>
1217
1218 * emultempl/elf32.em (handle_option): Accept the -z globalaudit
1219 command line option.
1220 * lexsup.c (elf_static_list_options): Add -z globalaudit.
1221 * ld.texinfo: Document the support for the new command line
1222 option.
1223 * NEWS: Mention the new feature.
1224 * testsuite/ld-elf/audit.exp: Add a test of the -z globalaudit
1225 command line option.
1226 * testsuite/ld-elf/globalaudit.rd: New file: Expected output from
1227 readelf.
1228
9593aade
L
12292017-08-11 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 PR ld/21884
1232 * testsuite/ld-i386/i386.exp: Run pr21884.
1233 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1234 * testsuite/ld-i386/pr21884.d: New file.
1235 * testsuite/ld-i386/pr21884.t: Likewise.
1236 * testsuite/ld-x86-64/pr21884.d: Likewise.
1237 * testsuite/ld-x86-64/pr21884.t: Likewise.
1238
ca6f2be7
NC
12392017-08-10 Nick Clifton <nickc@redhat.com>
1240
1241 * scripttempl/pep.sc: Enclose __CTOR_LIST__, ___CTOR_LIST__,
1242 __DTOR_LIST__ and ___DTOR_LIST__ in PROVIDE statements so that
1243 they can be overrridden by crt input files.
1244 * scripttempl/pe.sc: Likewise.
1245
7ed1dab9
L
12462017-08-09 H.J. Lu <hongjiu.lu@intel.com>
1247
1248 * testsuite/config/default.exp (LD_CLASS): Check .libs/ld-new
1249 for linker first.
1250
978c0540
L
12512017-08-09 H.J. Lu <hongjiu.lu@intel.com>
1252
1253 * testsuite/config/default.exp (LD_CLASS): New. Set to "64bit"
1254 for 64-bit ELF linker.
1255 * testsuite/ld-x86-64/pr17618.d (#notarget): Removed.
1256 * testsuite/ld-x86-64/x86-64.exp: Run pr17618 only for 64-bit
1257 linker.
1258
25d28c91
L
12592017-08-08 H.J. Lu <hongjiu.lu@intel.com>
1260
1261 PR ld/21924
1262 * testsuite/ld-i386/i386.exp: Require GCC 5 or above for
1263 "weakundef1 with PIE" test.
1264 * testsuite/ld-x86-64/tls.exp: Require GCC 5 or above for
1265 "tlsdesc1" and "tlsdesc1 with PIE" tests.
1266
9165f454
L
12672017-08-08 H.J. Lu <hongjiu.lu@intel.com>
1268
1269 * configure.ac (TESTBFDLIB): Add a ',' after -Wl,--rpath.
1270 * configure: Regenerated.
1271
fe22cbc4
L
12722017-08-08 H.J. Lu <hongjiu.lu@intel.com>
1273
1274 PR ld/21923
1275 * configure.ac (TESTBFDLIB): Replace --rpath with -Wl,--rpath
1276 for --disable-static.
1277 * configure: Regenerated.
1278
2760f24c
RG
12792017-08-08 Romain Geissler <romain.geissler@gmail.com>
1280 Alan Modra <amodra@gmail.com>
1281
1282 * configure.ac: Add --enable-default-hash-style option.
1283 * ldmain.c (main): Set link_info.emit_hash to DEFAULT_EMIT_SYSV_HASH.
1284 Set link_info.emit_gnu_hash to DEFAULT_EMIT_GNU_HASH.
1285 * configure: Regenerate.
1286 * config.in: Regenerate.
1287
8f5e83fb
AM
12882017-08-08 Alan Modra <amodra@gmail.com>
1289
1290 * testsuite/ld-aarch64/ifunc-1-local.d: Run ld with --hash-style=sysv.
1291 * testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
1292 * testsuite/ld-aarch64/ifunc-3a.d: Likewise.
1293 * testsuite/ld-frv/fdpic-pie-1.d: Likewise.
1294 * testsuite/ld-frv/fdpic-pie-2.d: Likewise.
1295 * testsuite/ld-frv/fdpic-pie-7.d: Likewise.
1296 * testsuite/ld-frv/fdpic-pie-8.d: Likewise.
1297 * testsuite/ld-arm/arm-elf.exp: Add --hash-style=sysv to "Using
1298 Thumb lib by another lib" test's ld options.
1299 * testsuite/ld-elf/note-3.l: Match .gnu.hash.
1300 * testsuite/ld-elf/note-3.t: Add .gnu.hash output section.
1301
2980ccad
L
13022017-08-07 H.J. Lu <hongjiu.lu@intel.com>
1303
1304 * testsuite/ld-elf/pr21903.s (start): Removed.
1305 (_start): Likewise.
1306 (__start): Likewise.
1307 (main): Likewise.
1308 (bar): New.
1309
bab55c05
AM
13102017-08-07 Alan Modra <amodra@gmail.com>
1311
1312 * testsuite/ld-alpha/alpha.exp: Add --hash-style=sysv to various
1313 test's ld options.
1314 * testsuite/ld-arm/arm-elf.exp: Likewise.
1315 * testsuite/ld-elf/elf.exp: Likewise.
1316 * testsuite/ld-elf/readelf.exp: Likewise.
1317 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1318 * testsuite/ld-i386/i386.exp: Likewise.
1319 * testsuite/ld-ia64/ia64.exp: Likewise.
1320 * testsuite/ld-m68k/m68k.exp: Likewise.
1321 * testsuite/ld-metag/metag.exp: Likewise.
1322 * testsuite/ld-powerpc/powerpc.exp: Likewise.
1323 * testsuite/ld-s390/s390.exp: Likewise.
1324 * testsuite/ld-sh/sh-vxworks.exp: Likewise.
1325 * testsuite/ld-shared/shared.exp: Likewise.
1326 * testsuite/ld-sparc/sparc.exp: Likewise.
1327 * testsuite/ld-tic6x/tic6x.exp: Likewise.
1328 * testsuite/ld-vax-elf/vax-elf.exp: Likewise.
1329 * testsuite/ld-x86-64/mpx.exp: Likewise.
1330 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1331 * testsuite/ld-xtensa/xtensa.exp: Likewise.
1332
1333 * testsuite/ld-elf/comm-data2.ld: Add .gnu.hash output section.
1334 * testsuite/ld-elf/pr20828-v.ld: Likewise.
1335 * testsuite/ld-elf/pr20828.ld: Likewise.
1336 * testsuite/ld-elf/pr21233.ld: Likewise.
1337 * testsuite/ld-elf/pr21384.ld: Likewise.
1338 * testsuite/ld-elf/provide-hidden-1.ld: Likewise.
1339 * testsuite/ld-elf/provide-hidden-2.ld: Likewise.
1340 * testsuite/ld-elf/provide-hidden-s.ld: Likewise.
1341 * testsuite/ld-scripts/cross1.t: Likewise.
1342
1343 * testsuite/ld-elf/stab.d: Adjust allowed section indices.
1344
1345 * testsuite/ld-i386/pie1.d: Don't match addresses.
1346 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1347 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1348 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1349 * testsuite/ld-powerpc/elfv2so.d: Likewise.
1350 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1351 * testsuite/ld-powerpc/tlsopt5.wf: Likewise.
1352 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
1353
1354 * testsuite/ld-i386/pr19636-2b.d: Don't match _start.
1355
1356 * testsuite/ld-powerpc/ambiguousv1.d: Relax symbol count, index
1357 and address match.
1358 * testsuite/ld-powerpc/ambiguousv1b.d: Likewise.
1359 * testsuite/ld-powerpc/ambiguousv2.d: Likewise.
1360 * testsuite/ld-powerpc/ambiguousv2b.d: Likewise.
1361
1362 * testsuite/ld-aarch64/gc-plt-relocs.d: Run ld with --hash-style=sysv.
1363 * testsuite/ld-aarch64/ifunc-1.d: Likewise.
1364 * testsuite/ld-aarch64/ifunc-2.d: Likewise.
1365 * testsuite/ld-aarch64/ifunc-21.d: Likewise.
1366 * testsuite/ld-aarch64/relasz.d: Likewise.
1367 * testsuite/ld-aarch64/tls-small-ld.d: Likewise.
1368 * testsuite/ld-aarch64/tls-tiny-ld.d: Likewise.
1369 * testsuite/ld-arc/tls_gd-01.d: Likewise.
1370 * testsuite/ld-cris/libdso-10.d: Likewise.
1371 * testsuite/ld-cris/libdso-2.d: Likewise.
1372 * testsuite/ld-cris/pic-gc-72.d: Likewise.
1373 * testsuite/ld-cris/pic-gc-73.d: Likewise.
1374 * testsuite/ld-cris/tls-gd-1.d: Likewise.
1375 * testsuite/ld-cris/tls-gd-1h.d: Likewise.
1376 * testsuite/ld-cris/tls-gd-2.d: Likewise.
1377 * testsuite/ld-cris/tls-gd-2h.d: Likewise.
1378 * testsuite/ld-cris/tls-ie-10.d: Likewise.
1379 * testsuite/ld-cris/tls-ie-11.d: Likewise.
1380 * testsuite/ld-cris/tls-ie-8.d: Likewise.
1381 * testsuite/ld-cris/tls-ie-9.d: Likewise.
1382 * testsuite/ld-cris/tls-ld-4.d: Likewise.
1383 * testsuite/ld-cris/tls-ld-5.d: Likewise.
1384 * testsuite/ld-cris/tls-ld-6.d: Likewise.
1385 * testsuite/ld-cris/tls-ld-7.d: Likewise.
1386 * testsuite/ld-cris/tls-ldgd-14.d: Likewise.
1387 * testsuite/ld-cris/tls-ldgd-15.d: Likewise.
1388 * testsuite/ld-cris/tls-ldgdx-14.d: Likewise.
1389 * testsuite/ld-cris/tls-ldgdx-15.d: Likewise.
1390 * testsuite/ld-cris/tls-local-54.d: Likewise.
1391 * testsuite/ld-cris/tls-local-60.d: Likewise.
1392 * testsuite/ld-cris/tls-local-61.d: Likewise.
1393 * testsuite/ld-cris/weakhiddso.d: Likewise.
1394 * testsuite/ld-elf/linkinfo1a.d: Likewise.
1395 * testsuite/ld-elf/linkinfo1b.d: Likewise.
1396 * testsuite/ld-elf/pr19617a.d: Likewise.
1397 * testsuite/ld-elfvsb/hidden2.d: Likewise.
1398 * testsuite/ld-frv/fdpic-pie-6.d: Likewise.
1399 * testsuite/ld-frv/fdpic-shared-2.d: Likewise.
1400 * testsuite/ld-frv/fdpic-shared-5.d: Likewise.
1401 * testsuite/ld-frv/fdpic-shared-6.d: Likewise.
1402 * testsuite/ld-frv/fdpic-shared-8.d: Likewise.
1403 * testsuite/ld-frv/fdpic-shared-local-2.d: Likewise.
1404 * testsuite/ld-frv/fdpic-shared-local-8.d: Likewise.
1405 * testsuite/ld-frv/tls-dynamic-2.d: Likewise.
1406 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1407 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1408 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1409 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1410 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1411 * testsuite/ld-i386/pr20830.d: Likewise.
1412 * testsuite/ld-ia64/merge1.d: Likewise.
1413 * testsuite/ld-ia64/merge2.d: Likewise.
1414 * testsuite/ld-ia64/merge3.d: Likewise.
1415 * testsuite/ld-ia64/merge4.d: Likewise.
1416 * testsuite/ld-ia64/merge5.d: Likewise.
1417 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Likewise.
1418 * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
1419 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1420 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1421 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1422 * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
1423 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1424 * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
1425 * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
1426 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1427 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1428 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1429 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1430 * testsuite/ld-m68k/got-1.d: Likewise.
1431 * testsuite/ld-m68k/got-multigot-12-13-14-34-35-ok.d: Likewise.
1432 * testsuite/ld-m68k/got-multigot-14-ok.d: Likewise.
1433 * testsuite/ld-m68k/got-multigot-15-er.d: Likewise.
1434 * testsuite/ld-m68k/got-negative-12-13-14-34-ok.d: Likewise.
1435 * testsuite/ld-m68k/got-negative-12-13-14-35-er.d: Likewise.
1436 * testsuite/ld-m68k/got-negative-14-ok.d: Likewise.
1437 * testsuite/ld-m68k/got-negative-15-er.d: Likewise.
1438 * testsuite/ld-m68k/got-single-12-ok.d: Likewise.
1439 * testsuite/ld-m68k/got-single-13-er.d: Likewise.
1440 * testsuite/ld-m68k/got-xgot-12-13-14-15-34-35-ok.d: Likewise.
1441 * testsuite/ld-m68k/got-xgot-15-ok.d: Likewise.
1442 * testsuite/ld-m68k/tls-gd-1.d: Likewise.
1443 * testsuite/ld-m68k/tls-gd-2.d: Likewise.
1444 * testsuite/ld-m68k/tls-gd-ie-1.d: Likewise.
1445 * testsuite/ld-m68k/tls-ie-1.d: Likewise.
1446 * testsuite/ld-m68k/tls-ld-1.d: Likewise.
1447 * testsuite/ld-m68k/tls-ld-2.d: Likewise.
1448 * testsuite/ld-sh/shared-2.d: Likewise.
1449 * testsuite/ld-sh/tlsbin-2.d: Likewise.
1450 * testsuite/ld-sh/tlspic-2.d: Likewise.
1451 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1452 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1453 * testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
1454 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1455 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1456 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1457 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1458 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1459 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1460 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1461 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1462 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1463 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1464 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1465 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1466 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1467 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1468 * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
1469 * testsuite/ld-x86-64/ilp32-4.d: Likewise.
1470 * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
1471 * testsuite/ld-x86-64/load1c.d: Likewise.
1472 * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
1473 * testsuite/ld-x86-64/load1d.d: Likewise.
1474 * testsuite/ld-x86-64/pie3-nacl.d: Likewise.
1475 * testsuite/ld-x86-64/pie3.d: Likewise.
1476 * testsuite/ld-x86-64/pr14207.d: Likewise.
1477 * testsuite/ld-x86-64/pr19162.d: Likewise.
1478 * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
1479 * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
1480 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1481 * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
1482 * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
1483 * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
1484 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
1485 * testsuite/ld-x86-64/pr20830a.d: Likewise.
1486 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
1487 * testsuite/ld-x86-64/pr20830b.d: Likewise.
1488 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
1489 * testsuite/ld-x86-64/pr21038a.d: Likewise.
1490 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1491 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1492 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1493 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1494
a4819f54
L
14952017-08-06 H.J. Lu <hongjiu.lu@intel.com>
1496
1497 PR ld/21903:
1498 * ld.h (command_line): Remove inhibit_common_definition.
1499 * ldgram.y: Replace command_line.inhibit_common_definition with
1500 link_info.inhibit_common_definition.
1501 * ldlang.c (lang_common): Likewise.
1502 * lexsup.c (parse_args): Likewise.
1503 * ldmain.c (main): Only allow --no-define-common with -shared.
1504 * testsuite/ld-elf/pr21903.s: New file.
1505 * testsuite/ld-elf/pr21903a.d: Likewise.
1506 * testsuite/ld-elf/pr21903b.d: Likewise.
1507 * testsuite/ld-elf/pr21903c.d: Likewise.
1508 * testsuite/ld-elf/pr21903d.d: Likewise.
1509 * testsuite/ld-elf/pr21903e.d: Likewise.
1510
55ef6584
AM
15112017-08-05 Alan Modra <amodra@gmail.com>
1512
1513 * testsuite/ld-unique/pr21529.d: Don't xfail hppa.
1514
9f06dab1
L
15152017-08-04 H.J. Lu <hongjiu.lu@intel.com>
1516
1517 PR ld/21904
1518 * testsuite/ld-elf/pr21904.d: New file.
1519 * testsuite/ld-elf/pr21904.s: Likewise.
1520
fd9770d8
NC
15212017-08-03 Nick Clifton <nickc@redhat.com>
1522
1523 PR ld/21884
1524 * testsuite/ld-elf/pr21884.d: Add AVR, HPPA, IA64, M68HC1x and
1525 SCORE to list of targets not supporting file format changes during
1526 linking.
1527 * testsuite/ld-unique/pr21529.d: Likewise.
1528 * emultempl/avrelf.em (_before_allocation): Skip for non-ELF
1529 output formats.
1530 (avr_elf_create_output_section_statements): Fail if the output
1531 format is not ELF.
1532 (avr_finish): Do not access the ELF header in non-ELF format
1533 output bfds.
1534 * emultempl/m68hc1xelf.em (_before_allocation): Skip for non-ELF
1535 output formats.
1536 (m68hc11elf_create_output_section_statements): Fail if the putput
1537 format is not ELF.
1538 (m68hc11elf_after_allocation): Skip for non-ELF output formats.
1539
2e9246e0
AM
15402017-08-03 Alan Modra <amodra@gmail.com>
1541
1542 PR ld/21884
1543 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Revert
1544 last change. Rename iself to elfinput. Expand comments. Condition
1545 ELF checks on having both input and output ELF files. Extract..
1546 (elf_orphan_compatible): ..this new function.
1547
db99ecc0
L
15482017-08-02 H.J. Lu <hongjiu.lu@intel.com>
1549
1550 PR ld/21884
1551 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Check
1552 ELF section header only for ELF output.
1553 * testsuite/ld-elf/pr21884.d: New test.
1554 * testsuite/ld-elf/pr21884.t: Likewise.
1555 * testsuite/ld-elf/pr21884a.s: Likewise.
1556 * testsuite/ld-elf/pr21884b.s: Likewise.
1557
b8f4abd3
L
15582017-08-02 H.J. Lu <hongjiu.lu@intel.com>
1559
1560 * emultempl/elf32.em (_place_orphan): Revert the last change.
1561
73d5923e
MF
15622017-08-02 Max Filippov <jcmvbkbc@gmail.com>
1563
1564 * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
1565 Only check for by_name sorting.
1566
ddff3d84
NC
15672017-08-02 Nick Clifton <nickc@redhat.com>
1568
1569 PR 21884
1570 * emultempl/elf32.em (_place_orphan): Skip non-ELF binaries when
1571 looking for sections to merge.
1572
d44c746a
AM
15732017-07-31 Alan Modra <amodra@gmail.com>
1574
1575 * ld.texinfo (plt-localentry): Revise.
1576
8b5f1ed8
AM
15772017-07-29 Alan Modra <amodra@gmail.com>
1578
1579 * ld.texinfo (plt-localentry): Document.
1580
2b94abd4
AB
15812017-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1582
1583 * ldgram.y (ldgram_had_keep): Make static.
1584 (ldgram_vers_current_lang): Likewise.
1585 (filename_spec): New rule.
1586 (input_section_spec_no_keep): Use filename_spec.
1587 (wildcard_maybe_exclude): New rule.
1588 (wildcard_spec): Rename to...
1589 (section_name_spec): ...this.
1590 (section_NAME_list): Rename to...
1591 (section_name_list): ...this.
1592 (section_name_spec): Simplifiy and use wildcard_maybe_exclude.
1593 * ldlang.c (placed_commons): Delete.
1594 (lang_add_wild): No longer set placed_commons.
1595 (print_wild_statement): Use full names for SORT specifiers.
1596 * testsuite/ld-scripts/align.exp: Run new tests.
1597 * testsuite/ld-scripts/align3.d: New file.
1598 * testsuite/ld-scripts/align3.t: New file.
1599 * testsuite/ld-scripts/align4.d: New file.
1600 * testsuite/ld-scripts/align4.t: New file.
1601 * testsuite/ld-scripts/align5.d: New file.
1602 * testsuite/ld-scripts/align5.t: New file.
1603 * testsuite/ld-scripts/exclude-file-5.d: New file.
1604 * testsuite/ld-scripts/exclude-file-5.map: New file.
1605 * testsuite/ld-scripts/exclude-file-5.t: New file.
1606 * testsuite/ld-scripts/exclude-file-6.d: New file.
1607 * testsuite/ld-scripts/exclude-file-6.map: New file.
1608 * testsuite/ld-scripts/exclude-file-6.t: New file.
1609 * NEWS: Mention the changes.
1610
f726cc1c
GJL
16112017-07-27 Georg-Johann Lay <gjl@gcc.gnu.org>
1612
1613 PR ld/21849
1614 * scripttempl/avr.sc: Split .progmemx.* from .progmem.* and locate
1615 former at a higher address.
1616
d4aaa2a0
AM
16172017-07-25 Alan Modra <amodra@gmail.com>
1618
1619 * testsuite/ld-powerpc/tlsopt5.s: Add cfi.
1620 * testsuite/ld-powerpc/tlsopt5.d: Update.
1621 * testsuite/ld-powerpc/tlsopt5.wf: New file.
1622 * testsuite/ld-powerpc/powerpc.exp: Perform new tlsopt5 test.
1623
645b2800 16242017-07-24 Claudiu Zissulescu <claziss@synopsys.com>
1625
1626 * testsuite/ld-arc/jli-overflow.d: Force testing for little
1627 endian.
1628 * testsuite/ld-arc/tls_gd-01.d: Fix string to match bigendian
1629 systems.
1630 * testsuite/ld-arc/tls_ie-01.d: Fix test for bigendian systems.
1631
62a5222f
MR
16322017-07-19 Maciej W. Rozycki <macro@imgtec.com>
1633
1634 * testsuite/ld-scripts/fill.d: Adjust `xfail' entries. Add
1635 `notarget' entries. Update comments.
1636 * testsuite/ld-scripts/fill16.d: New test.
1637 * testsuite/ld-scripts/fill16_0.s: New test source.
1638 * testsuite/ld-scripts/fill16_1.s: New test source.
1639 * testsuite/ld-scripts/fill16_2.s: New test source.
1640 * testsuite/ld-scripts/data.exp: Run the new test.
1641
684d5a10
JEM
16422017-07-19 Claudiu Zissulescu <claziss@synopsys.com>
1643 John Eric Martin <John.Martin@emmicro-us.com>
1644
1645 * emulparams/arcelf.sh (JLI_START_TABLE): Define.
1646 * scripttempl/elfarc.sc: Handle jlitab section.
1647 * scripttempl/elfarcv2.sc: Likewise.
1648 * testsuite/ld-arc/arc.exp: Add JLI test.
1649 * testsuite/ld-arc/jli-script.ld: New file.
1650 * testsuite/ld-arc/jli-simple.dd: Likewise.
1651 * testsuite/ld-arc/jli-simple.rd: Likewise.
1652 * testsuite/ld-arc/jli-simple.s: Likewise.
1653 * testsuite/ld-arc/jli-overflow.s: Likewise.
1654 * testsuite/ld-arc/jli-overflow.d: Likewise.
1655 * testsuite/ld-arc/jli-overflow.err: Likewise.
1656
e4943f2c
TG
16572017-07-19 Tristan Gingold <gingold@adacore.com>
1658
1659 * ldmain.c (main): Remove display of data size.
1660
927960f0
MR
16612017-07-18 Maciej W. Rozycki <macro@imgtec.com>
1662
2018ef80 1663 PR ld/16656
927960f0
MR
1664 * testsuite/ld-elf/binutils.exp (binutils_test): Make the
1665 expectation for `.got' in GNU_RELRO segment target-specific.
1666 Handle `.got.plt' separately.
1667
9a0f1d50
MR
16682017-07-18 Maciej W. Rozycki <macro@imgtec.com>
1669
2018ef80 1670 PR ld/16656
9a0f1d50
MR
1671 * testsuite/ld-elf/binutils.exp (binutils_test): Make the
1672 expectation for `.dynamic' in GNU_RELRO segment target-specific.
1673
de194d85
YC
16742017-07-18 Nick Clifton <nickc@redhat.com>
1675
1676 PR 21775
1677 * ld.texinfo: Fix spelling typos.
1678 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
1679
89d249d2
L
16802017-07-17 H.J. Lu <hongjiu.lu@intel.com>
1681
1682 * testsuite/ld-i386/i386.exp: Run pie1 and pie1-nacl.
1683 * testsuite/ld-i386/pie1-nacl.d: New file.
1684 * testsuite/ld-i386/pie1.d: Likewise.
1685 * testsuite/ld-i386/pie1.s: Likewise.
1686
8e85f840
L
16872017-07-17 H.J. Lu <hongjiu.lu@intel.com>
1688
1689 PR ld/21782
1690 * testsuite/ld-x86-64/pie3-nacl.d: New file.
1691 * testsuite/ld-x86-64/pie3.d: Likewise.
1692 * testsuite/ld-x86-64/pie3.s: Likewise.
1693 * testsuite/ld-x86-64/x86-64.exp: Run pie3 and pie3-nacl.
1694
86038de0
AM
16952017-07-14 Alan Modra <amodra@gmail.com>
1696
1697 * testsuite/ld-powerpc/powerpc.exp: Add -shared to tlsop5 tests.
1698 * testsuite/ld-powerpc/tlsopt5.d: Adjust.
1699 * testsuite/ld-powerpc/tlsopt1_32.s: Use r30 as GOT pointer.
1700 * testsuite/ld-powerpc/tlsopt2_32.s: Likewise.
1701 * testsuite/ld-powerpc/tlsopt3_32.s: Likewise.
1702 * testsuite/ld-powerpc/tlsopt4_32.s: Likewise.
1703 * testsuite/ld-powerpc/tlsopt5_32.s: Rewrite.
1704 * testsuite/ld-powerpc/tlsopt1_32.d: Adjust.
1705 * testsuite/ld-powerpc/tlsopt2_32.d: Adjust.
1706 * testsuite/ld-powerpc/tlsopt3_32.d: Adjust.
1707 * testsuite/ld-powerpc/tlsopt5_32.d: Adjust.
1708
211b0bed
MR
17092016-07-14 Maciej W. Rozycki <macro@imgtec.com>
1710
1711 * testsuite/ld-unique/pr21529.ld: New test linker script.
1712 * testsuite/ld-unique/pr21529.d: Use it.
1713
429d795d
AM
17142017-07-12 Alan Modra <amodra@gmail.com>
1715
1716 * po/bg.po: Update from translationproject.org/latest/ld/.
1717 * po/da.po: Likewise.
1718 * po/es.po: Likewise.
1719 * po/fi.po: Likewise.
1720 * po/fr.po: Likewise.
1721 * po/id.po: Likewise.
1722 * po/it.po: Likewise.
1723 * po/ja.po: Likewise.
1724 * po/tr.po: Likewise.
1725 * po/uk.po: Likewise.
1726 * po/vi.po: Likewise.
1727 * po/zh_CN.po: Likewise.
1728 * po/zh_TW.po: Likewise.
1729 * po/de.po: New file from translationproject.org.
1730 * po/ru.po: Likewise.
1731 * configure.ac (ALL_LINGUAS): Add de, ru. Sort.
1732 * configure: Regenerate.
1733
2fe40b67
AM
17342017-07-12 Alan Modra <amodra@gmail.com>
1735
1736 * testsuite/ld-scripts/align.exp: Exclude powerpc*-*-aix*.
1737 * testsuite/ld-scripts/assign-loc.d: Likewise.
1738 * testsuite/ld-scripts/defined3.d: Likewise.
1739 * testsuite/ld-scripts/defined4.d: Likewise.
1740 * testsuite/ld-scripts/defined5.d: Likewise.
1741 * testsuite/ld-scripts/expr2.d: Likewise.
1742 * testsuite/ld-scripts/provide.exp: Likewise.
1743 * testsuite/ld-scripts/sane1.d: Likewise.
1744 * testsuite/ld-scripts/size.exp: Likewise.
1745 * testsuite/ld-scripts/defined2.d: Don't xfail rs6000-*-aix*.
1746
d42c267e
AM
17472017-07-12 Alan Modra <amodra@gmail.com>
1748
1749 * testsuite/ld-arc/nps-1b.err: Update.
1750 * testsuite/ld-x86-64/ilp32-11.d: Update.
1751
61a0857c
L
17522017-07-11 H.J. Lu <hongjiu.lu@intel.com>
1753
1754 * testsuite/ld-selective/selective.exp: Support single digit
1755 GCC version.
1756
70391b29
JW
17572017-07-11 Jiong Wang <jiong.wang@arm.com>
1758
1759 * testsuite/ld-aarch64/dt_textrel.d: Use "#pass" instead of ".*" to
1760 filter out remaining lines.
1761
e54cb31a
MR
17622017-07-07 Maciej W. Rozycki <macro@imgtec.com>
1763
1764 * emultempl/mipself.em (mips_before_allocation): Avoid ELF
1765 processing if not MIPS ELF.
1766 * testsuite/ld-mips-elf/binary.d: New test.
1767 * testsuite/ld-mips-elf/binary.ld: New test linker script.
1768 * testsuite/ld-mips-elf/binary.s: New test source.
1769 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1770
c620a2b5
AM
17712017-07-07 Alan Modra <amodra@gmail.com>
1772
1773 * testsuite/ld-powerpc/ppc476-shared.lnk: Align .bss.
1774 * testsuite/ld-powerpc/ppc476-shared.d: Adjust.
1775 * testsuite/ld-powerpc/ppc476-shared2.d: Adjust.
1776
aff6079b
AM
17772017-07-07 Alan Modra <amodra@gmail.com>
1778
1779 * Makefile.am (eelf64_s390.c): Depend on emultempl/s390.em.
1780
0d702cfe
TG
17812017-07-04 Tristan Gingold <gingold@adacore.com>
1782
1783 * configure: Regenerate.
1784
55a09eb6
TG
17852017-07-04 Tristan Gingold <gingold@adacore.com>
1786
1787 * NEWS: Add marker for 2.29.
1788
15e6ed8c
TG
17892017-07-03 Tristan Gingold <gingold@adacore.com>
1790
1791 * po/ld.pot: Regenerate.
1792
9f00292e
MR
17932017-06-30 Maciej W. Rozycki <macro@imgtec.com>
1794
1795 * testsuite/ld-mips-elf/relax-offset.dd: New test.
1796 * testsuite/ld-mips-elf/relax-offset.gd: New test.
1797 * testsuite/ld-mips-elf/relax-offset-umips.dd: New test.
1798 * testsuite/ld-mips-elf/relax-offset-umips.gd: New test.
1799 * testsuite/ld-mips-elf/relax-offset.ld: New test linker script.
1800 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1801 (prune_warnings): New temporary procedure.
1802
819e1f86
MR
18032017-06-28 Maciej W. Rozycki <macro@imgtec.com>
1804
1805 * testsuite/ld-mips-elf/mips-elf-flags.exp: Add interAptiv MR2
1806 tests.
1807
68063779
SKS
18082017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1809
1810 PR ld/13402
1811 * testsuite/ld-avr/pr13402.d: New test.
1812 * testsuite/ld-avr/pr13402.s: New test.
1813
7575e6a7
MR
18142017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1815
1816 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
1817 Add an `args' final argument and examination code for `readelf
1818 -A' output. Update procedure description accordingly.
1819
1284e99a
MR
18202017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1821
1822 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
1823 Use `remote_exec' to call `readelf'. Log the command issued.
1824
b1a2d7a0
MR
18252017-06-27 Maciej W. Rozycki <macro@imgtec.com>
1826
1827 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
1828 Use `readelf -h' rather than `readelf --headers'.
1829
b417536f
MR
18302017-06-26 Maciej W. Rozycki <macro@imgtec.com>
1831
1832 * testsuite/ld-mips-elf/lsi-4010-isa.d: New test.
1833 * ld/testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1834
515a4464
MR
18352017-06-26 Maciej W. Rozycki <macro@imgtec.com>
1836
1837 * testsuite/ld-elf/sizeofa.d: Also accept the OBJECT type for
1838 the symbols examined.
1839 * testsuite/ld-elf/sizeofc.d: Likewise.
1840 * testsuite/ld-elf/startofa.d: Likewise.
1841 * testsuite/ld-elf/startofc.d: Likewise.
1842
57963c05
AM
18432017-06-26 Alan Modra <amodra@gmail.com>
1844
1845 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Skip
1846 --just-syms bfds when looking for a place to attach .note.gnu.build-id
1847 and .eh_frame_hdr sections. Delete dead code.
1848
bff0500d
TP
18492017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
1850
1851 * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 11): New test.
1852 (EABI attribute merging 12): Likewise.
1853 * testsuite/ld-arm/attr-merge-11a.s: New file.
1854 * testsuite/ld-arm/attr-merge-11b.s: New file.
1855 * testsuite/ld-arm/attr-merge-11.attr: New file.
1856 * testsuite/ld-arm/attr-merge-12a.s: New file.
1857 * testsuite/ld-arm/attr-merge-12b.s: New file.
1858 * testsuite/ld-arm/attr-merge-12.attr: New file.
1859
00564418
L
18602017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1861
1862 * testsuite/ld-i386/i386.exp: Run weakundef1 tests.
1863 * testsuite/ld-i386/weakundef1.c: New file.
1864
922109c7
L
18652017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1866
1867 PR ld/21090
1868 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Pass
1869 $NOPIE_CFLAGS if non-PIE is required.
1870
9d1c54ed
L
18712017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1872
1873 PR ld/21090
329b5ba1
L
1874 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
1875 $NOPIE_LDFLAGS to "Run pr19031".
1876
18772017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1878
1879 PR ld/21090
1880 * testsuite/ld-gc/gc.exp: Compile tmpdir/pr14265.o with
9d1c54ed
L
1881 $NOPIE_CFLAGS.
1882 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
1883 $NOPIE_LDFLAGS if non-PIE is required.
1884 * testsuite/ld-i386/no-plt.exp (NOPIE_CFLAGS): New.
1885 (NOPIE_LDFLAGS): Likewise.
1886 Pass $NOPIE_LDFLAGS if non-PIE is required.
1887 * testsuite/ld-shared/shared.exp: Compile tmpdir/sh1np.o with
1888 $NOPIE_CFLAGS.
1889
48580982
L
18902017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1891
1892 * NEWS: Mention -z shstk and GNU_PROPERTY_X86_FEATURE_1_SHSTK.
1893 * emulparams/cet.sh (PARSE_AND_LIST_OPTIONS_CET): Add "-z shstk".
1894 (PARSE_AND_LIST_ARGS_CASE_Z_CET): Support "-z shstk".
1895 * ld.texinfo: Document -z shstk.
1896 * testsuite/ld-i386/i386.exp: Run SHSTK tests.
1897 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1898 * testsuite/ld-i386/property-x86-shstk.s: New file.
1899 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
1900 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
1901 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
1902 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
1903 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
1904 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
1905 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
1906 * testsuite/ld-x86-64/property-x86-shstk.s: Likewise.
1907 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
1908 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
1909 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
1910 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
1911 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
1912 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
1913 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
1914 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
1915 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
1916 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
1917 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
1918 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
1919 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
1920 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
1921
ee2fdd6f
L
19222017-06-22 H.J. Lu <hongjiu.lu@intel.com>
1923
1924 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emulparams/cet.sh.
1925 * Makefile.in: Regenerated.
1926 * NEWS: Mention GNU_PROPERTY_X86_FEATURE_1_IBT, -z ibtplt
1927 and -z ibt.
1928 * emulparams/cet.sh: New file.
1929 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1930 * testsuite/ld-i386/ibt-plt-1.s: Likewise.
1931 * testsuite/ld-i386/ibt-plt-2.s: Likewise.
1932 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1933 * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
1934 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1935 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
1936 * testsuite/ld-i386/ibt-plt-3.s: Likewise.
1937 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1938 * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
1939 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1940 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
1941 * testsuite/ld-i386/plt-main-ibt.dd: Likewise.
1942 * testsuite/ld-i386/plt-pie-ibt.dd: Likewise.
1943 * testsuite/ld-i386/property-x86-empty.s: Likewise.
1944 * testsuite/ld-i386/property-x86-ibt.s: Likewise.
1945 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
1946 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
1947 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
1948 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
1949 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
1950 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
1951 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
1952 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1953 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1954 * testsuite/ld-x86-64/ibt-plt-1.s: Likewise.
1955 * testsuite/ld-x86-64/ibt-plt-2.s: Likewise.
1956 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1957 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1958 * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
1959 * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
1960 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1961 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1962 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
1963 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
1964 * testsuite/ld-x86-64/ibt-plt-3.s: Likewise.
1965 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1966 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1967 * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
1968 * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
1969 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1970 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1971 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
1972 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
1973 * testsuite/ld-x86-64/plt-main-ibt-now.rd: Likewise.
1974 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Likewise.
1975 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
1976 * testsuite/ld-x86-64/property-x86-empty.s: Likewise.
1977 * testsuite/ld-x86-64/property-x86-ibt.s: Likewise.
1978 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
1979 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
1980 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
1981 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
1982 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
1983 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
1984 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
1985 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
1986 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
1987 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
1988 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
1989 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
1990 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
1991 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
1992 * emulparams/elf32_x86_64.sh: Source emulparams/cet.sh.
1993 (TINY_READONLY_SECTION): Add .plt.sec.
1994 * emulparams/elf_i386.sh: Likewise.
1995 * emulparams/elf_x86_64.sh: Source emulparams/cet.sh.
1996 * ld.texinfo: Document -z ibtplt and -z ibt.
1997 * testsuite/ld-i386/i386.exp: Run IBT and IBT PLT tests.
1998 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1999 * testsuite/ld-x86-64/pr21481b.S (check): Updated for x32.
2000
6b737370
L
20012017-06-21 H.J. Lu <hongjiu.lu@intel.com>
2002
2003 PR ld/21090
2004 * testsuite/ld-elf/shared.exp: Pass $NOPIE_CFLAGS and
2005 $NOPIE_LDFLAGS if non-PIE is required.
2006
e5c89b09
L
20072017-06-21 H.J. Lu <hongjiu.lu@intel.com>
2008
2009 PR ld/21090
2010 * testsuite/ld-scripts/crossref.exp: Also pass $NOPIE_CFLAGS
2011 to CC.
2012
68193357
L
20132017-06-21 H.J. Lu <hongjiu.lu@intel.com>
2014
2015 PR ld/21090
2016 * testsuite/ld-size/size.exp: Pass $NOPIE_LDFLAGS to size-4a,
2017 size-4b, size-5a, size-5b, size-6 and size-8 tests.
127d08c0
L
2018 * testsuite/ld-srec/srec.exp (NOPIE_CFLAGS): New.
2019 (NOPIE_LDFLAGS): Likewise.
2020 (CC): Add $NOPIE_CFLAGS $NOPIE_LDFLAGS.
2021 (CXX): Likewise.
2022 * testsuite/ld-x86-64/no-plt.exp (NOPIE_CFLAGS): New.
2023 (NOPIE_LDFLAGS): Likewise.
2024 Pass $NOPIE_LDFLAGS to "No PLT (dynamic 1a)",
2025 "No PLT (dynamic 1c)" and "Run pr20253-2f".
2026 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS to
2027 "Build gotpcrel1" and "Run pr19031".
68193357 2028
81209eff
AM
20292017-06-21 Alan Modra <amodra@gmail.com>
2030
2031 * testsuite/ld-powerpc/powerpc.exp: Run TOCSAVE tests.
2032 * testsuite/ld-powerpc/tocsave1.s,
2033 * testsuite/ld-powerpc/tocsave1a.d,
2034 * testsuite/ld-powerpc/tocsave1s.d,
2035 * testsuite/ld-powerpc/tocsave2.s,
2036 * testsuite/ld-powerpc/tocsave2a.d,
2037 * testsuite/ld-powerpc/tocsave2s.d,
2038 * testsuite/ld-powerpc/tocsavelib.s: New files.
2039
fd52715c
AK
20402017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2041
2042 * Makefile.in: Add s390.em as build dependency.
2043 * emulparams/elf64_s390.sh (EXTRA_EM_FILE): Add s390.em.
2044 * emultempl/s390.em: New file.
2045 * gen-doc.texi: Add documentation for --s390-pgste option.
2046 * ld.texinfo: Likewise.
2047
abfa390d
L
20482017-06-19 H.J. Lu <hongjiu.lu@intel.com>
2049
2050 PR ld/21626
2051 * testsuite/ld-i386/i386.exp: Run ld/21626 tests.
2052 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2053
bdd32e03
AM
20542017-06-18 Alan Modra <amodra@gmail.com>
2055
2056 * testsuite/lib/ld-lib.exp (is_underscore_target): New.
2057 * testsuite/ld-elf/elf.exp (ASFLAGS): Define UNDERSCORE.
2058 * testsuite/ld-elf/pr21562a.s: If UNDERSCORE defined,
2059 reference sym with prefix.
2060 * testsuite/ld-elf/pr21562b.s: Likewise.
2061 * testsuite/ld-elf/sizeof.s: Likewise.
2062 * testsuite/ld-elf/startof.s: Likewise.
2063 * testsuite/ld-elf/pr14156a.d: Adjust for extra symbols.
2064 * testsuite/ld-elf/pr21562a.d: Remove underscore target from
2065 xfails, and match prefixed symbol.
2066 * testsuite/ld-elf/pr21562b.d: Likewise.
2067 * testsuite/ld-elf/pr21562c.d: Likewise.
2068 * testsuite/ld-elf/pr21562d.d: Likewise.
2069 * testsuite/ld-elf/pr21562e.d: Likewise.
2070 * testsuite/ld-elf/pr21562f.d: Likewise.
2071 * testsuite/ld-elf/pr21562g.d: Likewise.
2072 * testsuite/ld-elf/pr21562h.d: Likewise.
2073 * testsuite/ld-elf/pr21562i.d: Likewise.
2074 * testsuite/ld-elf/pr21562j.d: Likewise.
2075 * testsuite/ld-elf/pr21562k.d: Likewise.
2076 * testsuite/ld-elf/pr21562l.d: Likewise.
2077 * testsuite/ld-elf/pr21562m.d: Likewise.
2078 * testsuite/ld-elf/pr21562n.d: Likewise.
2079 * testsuite/ld-elf/sizeofa.d: Likewise.
2080 * testsuite/ld-elf/sizeofb.d: Likewise.
2081 * testsuite/ld-elf/sizeofc.d: Likewise.
2082 * testsuite/ld-elf/startofa.d: Likewise.
2083 * testsuite/ld-elf/startofb.d: Likewise.
2084 * testsuite/ld-elf/startofc.d: Likewise.
2085
7dba9362
AM
20862017-06-16 Alan Modra <amodra@gmail.com>
2087
2088 PR ld/20022
2089 PR ld/21557
2090 PR ld/21562
2091 PR ld/21571
2092 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't set
2093 __start/__stop syms here.
2094 * ldlang.c (lang_set_startof): Delete.
2095 (start_stop_syms, start_stop_count, start_stop_alloc): New vars.
2096 (lang_define_start_stop, lang_init_start_stop, foreach_start_stop,
2097 undef_start_stop, lang_undef_start_stop, lang_init_startof_sizeof,
2098 set_start_stop, lang_finalize_start_stop): New functions.
2099 (lang_process): Call _start_stop functions.
2100 * testsuite/ld-elf/pr21562a.d: Use xfail rather than notarget.
2101 Correct typos and list of xfail targets.
2102 * testsuite/ld-elf/pr21562b.d: Likewise.
2103 * testsuite/ld-elf/pr21562c.d: Likewise.
2104 * testsuite/ld-elf/pr21562d.d: Likewise.
2105 * testsuite/ld-elf/pr21562e.d: Likewise.
2106 * testsuite/ld-elf/pr21562f.d: Likewise.
2107 * testsuite/ld-elf/pr21562g.d: Likewise.
2108 * testsuite/ld-elf/pr21562h.d: Likewise.
2109 * testsuite/ld-elf/pr21562i.d: Likewise.
2110 * testsuite/ld-elf/pr21562j.d: Likewise.
2111 * testsuite/ld-elf/pr21562k.d: Likewise.
2112 * testsuite/ld-elf/pr21562l.d: Likewise.
2113 * testsuite/ld-elf/pr21562m.d: Likewise.
2114 * testsuite/ld-elf/pr21562n.d: Likewise.
2115 * testsuite/ld-elf/sizeofa.d: Likewise. Adjust to pass for generic ELF.
2116 * testsuite/ld-elf/sizeofb.d: Likewise.
2117 * testsuite/ld-elf/startofa.d: Likewise.
2118 * testsuite/ld-elf/startofb.d: Likewise.
2119
d68f1976
JW
21202017-06-16 Jiong Wang <jiong.wang@arm.com>
2121
2122 * testsuite/ld-aarch64/aarch64-elf.exp: Update test name
2123 * testsuite/ld-aarch64/pcrel.s: Add new testcases.
2124 * testsuite/ld-aarch64/pcrel_pic_undefined.d: Update the expected
2125 warnings.
2126 * testsuite/ld-aarch64/pcrel_pic_defined_local.d: Rename ...
2127 * testsuite/ld-aarch64/pcrel_pic_defined.d: ... to this.
2128 Update expected warnings.
2129
75e06f97
L
21302017-06-15 H.J. Lu <hongjiu.lu@intel.com>
2131
2132 * exsup.c (elf_shlib_list_options): Display "-z stack-size=SIZE"
2133 instead of "-z stacksize=SIZE".
2134
6353d82b
JW
21352017-06-15 Jiong Wang <jiong.wang@arm.com>
2136
2137 * testsuite/ld-aarch64/copy-reloc-exe-2.s: New test source file.
2138 * testsuite/ld-aarch64/copy-reloc-2.d: New test.
2139 * testsuite/ld-aarch64/copy-reloc-exe-eliminate.s: New test source file.
2140 * testsuite/ld-aarch64/copy-reloc-eliminate.d: New test.
2141 * testsuite/ld-aarch64/copy-reloc-so.s: Define new global objects.
2142 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
2143
ae87f7e7
NC
21442017-06-14 Nick Clifton <nickc@redhat.com>
2145
2146 PR binutils/21580
2147 * testsuite/ld-nds32/diff.d: Adjust expected output.
2148
99031baf
L
21492017-06-14 H.J. Lu <hongjiu.lu@intel.com>
2150
2151 PR ld/20022
2152 * testsuite/ld-gc/pr20022.d: Skip on targets without dynamic
2153 relocations in .text section.
2154
8eca1095
L
21552017-06-14 H.J. Lu <hongjiu.lu@intel.com>
2156
2157 * testsuite/ld-elf/pr21562a.d: Skip on targets with leading char
2158 in in symbol name or without --gc-sections.
2159 * testsuite/ld-elf/pr21562b.d: Likewise.
2160 * testsuite/ld-elf/pr21562c.d: Likewise.
2161 * testsuite/ld-elf/pr21562d.d: Likewise.
2162 * testsuite/ld-elf/pr21562i.d: Likewise.
2163 * testsuite/ld-elf/pr21562j.d: Likewise.
2164 * testsuite/ld-elf/pr21562k.d: Likewise.
2165 * testsuite/ld-elf/pr21562l.d: Likewise.
2166 * testsuite/ld-elf/pr21562m.d: Likewise.
2167 * testsuite/ld-elf/pr21562n.d: Likewise.
2168 * testsuite/ld-elf/pr21562e.d: Skip on targets with leading char
2169 in symbol name.
2170 * testsuite/ld-elf/pr21562f.d: Likewise.
2171 * testsuite/ld-elf/pr21562g.d: Likewise.
2172 * testsuite/ld-elf/pr21562h.d: Likewise.
2173
f78d1b3a
L
21742017-06-14 H.J. Lu <hongjiu.lu@intel.com>
2175
2176 * testsuite/ld-gc/pr20022a.s: Add size to bar.
2177
b6947a7f
L
21782017-06-14 H.J. Lu <hongjiu.lu@intel.com>
2179
2180 * testsuite/ld-elf/sizeofa.d: Skip on targets with leading char
2181 in symbol name.
2182 * testsuite/ld-elf/sizeofb.d: Likewise.
2183 * testsuite/ld-elf/startofa.d: Likewise.
2184 * testsuite/ld-elf/startofb.d: Likewise.
2185
4c0b797e
GJL
21862017-06-14 Georg-Johann Lay <gjl@gcc.gnu.org>
2187
2188 PR ld/21583
2189 * scripttempl/avr.sc (.jumptables): Move down in text section.
2190 (.hightext): New in text.
2191
319c2dbe
SH
21922017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
2193
2194 * configure.tgt (epiphany-*-elf): Accept epiphany-*-*.
2195
b27685f2
L
21962017-06-13 H.J. Lu <hongjiu.lu@intel.com>
2197
2198 * ldlang.c (lang_set_startof): Skip if config.build_constructors
2199 is FALSE.
2200 * testsuite/ld-elf/sizeofc.d: New file.
2201 * testsuite/ld-elf/startofc.d: Likewise.
2202
da614360
L
22032017-06-13 H.J. Lu <hongjiu.lu@intel.com>
2204
2205 * testsuite/ld-elf/sizeof.d: Renamed to ...
2206 * testsuite/ld-elf/sizeofa.d: This. Updated.
2207 * testsuite/ld-elf/startof.d: Renamed to ...
2208 * testsuite/ld-elf/startofa.d: This. Updated.
2209 * testsuite/ld-elf/sizeofb.d: New file.
2210 * testsuite/ld-elf/startofb.d: Likewise.
2211
cbd0eecf
L
22122017-06-13 H.J. Lu <hongjiu.lu@intel.com>
2213
2214 PR ld/20022
2215 PR ld/21557
2216 PR ld/21562
2217 PR ld/21571
2218 * ld.texinfo: Update __start_SECNAME/__stop_SECNAME symbols.
2219 * ldlang.c (lang_insert_orphan): Move handling of __start_SECNAME
2220 and __stop_SECNAME symbols to ...
2221 (lang_set_startof): Here. Also define __start_SECNAME and
2222 __stop_SECNAME for -Ur.
2223 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Mark
2224 referenced __start_SECNAME and __stop_SECNAME symbols as hidden
2225 and set start_stop for garbage collection.
2226 * testsuite/ld-elf/pr21562a.d: New file.
2227 * testsuite/ld-elf/pr21562a.s: Likewise.
2228 * testsuite/ld-elf/pr21562a.t: Likewise.
2229 * testsuite/ld-elf/pr21562b.d: Likewise.
2230 * testsuite/ld-elf/pr21562b.s: Likewise.
2231 * testsuite/ld-elf/pr21562b.t: Likewise.
2232 * testsuite/ld-elf/pr21562c.d: Likewise.
2233 * testsuite/ld-elf/pr21562c.t: Likewise.
2234 * testsuite/ld-elf/pr21562d.d: Likewise.
2235 * testsuite/ld-elf/pr21562d.t: Likewise.
2236 * testsuite/ld-elf/pr21562e.d: Likewise.
2237 * testsuite/ld-elf/pr21562f.d: Likewise.
2238 * testsuite/ld-elf/pr21562g.d: Likewise.
2239 * testsuite/ld-elf/pr21562h.d: Likewise.
2240 * testsuite/ld-elf/pr21562i.d: Likewise.
2241 * testsuite/ld-elf/pr21562j.d: Likewise.
2242 * testsuite/ld-elf/pr21562k.d: Likewise.
2243 * testsuite/ld-elf/pr21562l.d: Likewise.
2244 * testsuite/ld-elf/pr21562m.d: Likewise.
2245 * testsuite/ld-elf/pr21562n.d: Likewise.
2246 * testsuite/ld-gc/pr20022.d: Likewise.
2247 * testsuite/ld-gc/pr20022a.s: Likewise.
2248 * testsuite/ld-gc/pr20022b.s: Likewise.
2249 * testsuite/ld-gc/gc.exp: Run PR ld/20022 tests.
2250 * testsuite/ld-gc/pr19161.d: Also accept local __start_SECNAME
2251 symbol.
2252 * testsuite/ld-gc/start.d: Likewise.
2253 * testsuite/ld-x86-64/lea1a.d: Updated.
2254 * testsuite/ld-x86-64/lea1b.d: Updated.
2255 * testsuite/ld-x86-64/lea1d.d: Updated.
2256 * testsuite/ld-x86-64/lea1e.d: Likewise.
2257
dc74becf
L
22582017-06-13 H.J. Lu <hongjiu.lu@intel.com>
2259
2260 * testsuite/ld-elf/sizeof.d: New file.
2261 * testsuite/ld-elf/sizeof.s: Likewise.
2262 * testsuite/ld-elf/startof.d: Likewise.
2263 * testsuite/ld-elf/startof.s: Likewise.
2264
8569cfa7
RL
22652017-06-13 Renlin Li <renlin.li@arm.com>
2266
2267 * testsuite/ld-elf/shared.exp (build_tests): Add --no-dynamic-linker
2268 option to rdynamic-1 and dynamic-1 tests.
2269
654f3b6a
L
22702017-06-09 H.J. Lu <hongjiu.lu@intel.com>
2271
2272 * testsuite/ld-x86-64/property-x86-3-x32.d: New file.
2273 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
2274 * testsuite/ld-x86-64/property-x86-4b-x32.d: Likewise.
2275 * testsuite/ld-x86-64/property-x86-3.d: Also pass
2276 -defsym __64_bit__=1 to asssembler.
2277 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
2278 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
2279 * testsuite/ld-x86-64/property-x86-3.s: Align to 4 bytes if
2280 __64_bit__ isn't defined.
2281 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
2282 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
2283 * testsuite/ld-x86-64/x86-64.exp: Run property-x86-3-x32,
2284 property-x86-4a-x32 and property-x86-4b-x32.
2285
a0abe743
CM
22862017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
2287
2288 * testsuite/ld-arc/tls_ie-01.d: Changed expected result.
2289
51fa2693
L
22902017-06-08 H.J. Lu <hongjiu.lu@intel.com>
2291
2292 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Pass
2293 "-Map tmpdir/ifunc-1-local-x86.map" to ld and check
2294 ifunc-1-local-x86.map.
2295 * testsuite/ld-ifunc/ifunc-1-x86.d: Pass
2296 "-Map tmpdir/ifunc-1-x86.map" to ld and check ifunc-1-x86.map.
2297 * testsuite/ld-ifunc/ifunc-1-local-x86.map: New file.
2298 * testsuite/ld-ifunc/ifunc-1-x86.map: Likewise.
2299
4936f235
AM
23002017-06-07 Alan Modra <amodra@gmail.com>
2301
2302 * testsuite/ld-unique/pr21529.d: xfail aarch64, arm, hppa, ia64,
2303 nds32, and score. Match any output.
2304
670b1a13
AB
23052017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
2306
2307 * ld.h (struct args_type): Fix typo in comment.
2308
7bdf4127
AB
23092017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
2310
2311 * ld.h (struct args_type): Add force_group_allocation field.
2312 * ldgram.y: Add support for FORCE_GROUP_ALLOCATION.
2313 * ldlex.h: Likewise.
2314 * ldlex.l: Likewise.
2315 * lexsup.c: Likewise.
2316 * ldlang.c (unique_section_p): Check resolve_section_groups flag
2317 not the relaxable link flag.
2318 (lang_add_section): Discard section groups when we're resolving
2319 groups. Clear the SEC_LINK_ONCE flag if we're resolving section
2320 groups.
2321 * ldmain.c (main): Initialise resolve_section_groups flag in
2322 link_info based on command line flags.
2323 * testsuite/ld-elf/group11.d: New file.
2324 * testsuite/ld-elf/group12.d: New file.
2325 * testsuite/ld-elf/group12.ld: New file.
2326 * NEWS: Mention new features.
2327 * ld.texinfo (Options): Document --force-group-allocation.
2328 (Miscellaneous Commands): Document FORCE_GROUP_ALLOCATION.
2329
d9409498
L
23302017-06-05 H.J. Lu <hongjiu.lu@intel.com>
2331
2332 PR ld/21529
2333 * testsuite/ld-unique/pr21529.d: New file.
2334 * testsuite/ld-unique/pr21529.s: Likewise.
2335 * testsuite/ld-unique/unique.exp: Run *.d.
2336
91001320
AM
23372017-06-05 Alan Modra <amodra@gmail.com>
2338
2339 * ldmain.c (main): Correct setting of link_indo.new_dtags.
2340 * testsuite/ld-elf/now-3.d: Pass --disable-new-dtags to ld
2341 * testsuite/ld-elf/now-4.d: Likewise.
2342 * testsuite/ld-elf/rpath-1.d: Likewise.
2343 * testsuite/ld-elf/rpath-2.d: Likewise.
2344
6734f10a
SB
23452017-06-05 Slava Barinov <v.barinov@samsung.com>
2346
2347 * configure.ac: Add --enable-new-dtags option.
91001320
AM
2348 * ldmain.c (main): Set link_info.new_dtags to 1 if when
2349 --enable-new-dtags is switched on.
6734f10a
SB
2350 * configure: Regenerate.
2351 * config.in: Regenerate.
2352
4a4a4a27
L
23532017-06-02 H.J. Lu <hongjiu.lu@intel.com>
2354
2355 * emulparams/call_nop.sh: Remove -z prefix-nop.
2356 * ld.texinfo: Likewise.
2357 * testsuite/ld-i386/call3c.d: Check for linker error.
2358 * testsuite/ld-x86-64/call1c.d: Likewise.
2359
f378ab09
AM
23602017-06-01 Alan Modra <amodra@gmail.com>
2361
2362 * emultempl/ppc64elf.em (params): Init plt_localentry0 field.
2363 (enum ppc64_opt): New, replacing OPTION_* defines. Add
2364 OPTION_PLT_LOCALENTRY, and OPTION_NO_PLT_LOCALENTRY.
2365 (PARSE_AND_LIST_*): Support --plt-localentry and --no-plt-localentry.
2366 * testsuite/ld-powerpc/elfv2so.d: Update.
2367 * testsuite/ld-powerpc/powerpc.exp (TLS opt 5): Use --no-plt-localentry.
2368 * testsuite/ld-powerpc/tlsopt5.d: Update.
2369
ab12fca3
AM
23702017-05-31 Alan Modra <amodra@gmail.com>
2371
2372 * emultempl/ppc64elf.em (plt-static-chain help): Fix quoting.
2373
9a6465c2
JW
23742017-05-22 Jiong Wang <jiong.wang@arm.com>
2375
2376 * configure.tgt: Set "targ_emul" to "aarch64linux32b" for
2377 aarch64_be-*-linux-gnu_ilp32. Set "targ_emul" to "aarch64linux32" for
2378 aarch64-*-linux-gnu_ilp32.
2379
92f7d783
L
23802017-05-19 H.J. Lu <hongjiu.lu@intel.com>
2381
2382 * testsuite/ld-i386/i386.exp: Run property-x86-4a and
2383 property-x86-4b.
2384 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2385 * testsuite/ld-i386/property-x86-4a.d: New file.
2386 * testsuite/ld-i386/property-x86-4a.s: Likewise.
2387 * testsuite/ld-i386/property-x86-4b.d: Likewise.
2388 * testsuite/ld-i386/property-x86-4b.s: Likewise.
2389 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
2390 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
2391 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
2392 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
2393
f4203b2b
JL
23942017-05-19 Georg-Johann Lay <avr@gjlay.de>
2395
2396 PR ld/21472
2397 * emulparams/avrxmega3.sh (RODATA_PM_OFFSET): Set to 0x8000.
2398 * scripttempl/avr.sc (__RODATA_PM_OFFSET__) [RODATA_PM_OFFSET]:
2399 Use RODATA_PM_OFFSET as default if not already defined.
2400 (.data) [!RODATA_PM_OFFSET]: Don't include .rodata and friends.
2401 (.rodata) [RODATA_PM_OFFSET]: Put at an offset of
2402 __RODATA_PM_OFFSET__.
2403
3aa2d05a
NC
24042017-05-18 Nick Clifton <nickc@redhat.com>
2405
2406 PR ld/21251
2407 * ldfile.c (ldfile_add_library_path): If the path starts with
2408 $SYSROOT then use the sysroot as the real prefix.
2409 * ldlang.c (lang_add_input_file): Treat $SYSROOT in the same
2410 way as =.
2411 * ldlex.l: Add $SYSROOT as allow prefix for a filename.
2412 * ld.texinfo (-L): Document that $SYSROOT acts like = when
2413 prefixing a library search path.
2414 (INPUT): Likewise.
2415 * testsuite/ld-scripts/sysroot-prefix.exp: Add $SYSROOT prefix
2416 tests.
2417
535b785f
AM
24182017-05-18 Alan Modra <amodra@gmail.com>
2419
2420 * emultempl/elf32.em: Don't compare boolean values against TRUE or FALSE.
2421 * emultempl/pe.em: Likewise.
2422 * emultempl/pep.em: Likewise.
9d43118e
AM
2423 * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
2424 Don't compare enum against TRUE.
535b785f 2425
087ea222
AM
24262017-05-18 Alan Modra <amodra@gmail.com>
2427
2428 PR ld/20882
2429 * testsuite/ld-gc/pr20882.d: Don't pass -gdwarf-sections to gas.
2430 Allow for 16-bit address targets and match expected data fully.
2431 * testsuite/ld-gc/pr20882a.s: Delete .debug_line section.
2432 * testsuite/ld-gc/pr20882b.s: Likewise.
2433 * testsuite/ld-gc/pr20882c.s: Likewise.
2434
b7c871ed
L
24352017-05-17 H.J. Lu <hongjiu.lu@intel.com>
2436
2437 PR ld/20882
2438 * testsuite/ld-gc/gc.exp: Run pr20882.
2439 * testsuite/ld-gc/pr20882.d: New file.
2440 * testsuite/ld-gc/pr20882a.s: Likewise.
2441 * testsuite/ld-gc/pr20882b.s: Likewise.
2442 * testsuite/ld-gc/pr20882c.s: Likewise.
2443
0a7d3889
L
24442017-05-16 H.J. Lu <hongjiu.lu@intel.com>
2445
2446 PR ld/21481
2447 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only
2448 if IFUNC is supported by run-time.
2449
bc4e12de
AM
24502017-05-16 Alan Modra <amodra@gmail.com>
2451
2452 * plugin.c: Rename occurrences of non_ir_ref.
2453
4070765b
AM
24542017-05-16 Alan Modra <amodra@gmail.com>
2455
2456 * plugin.c (is_visible_from_outside): Use non_ir_ref_dynamic.
2457 (plugin_notice): Set non_ir_ref for references from regular
2458 objects, non_ir_ref_dynamic for references from dynamic objects.
2459
b32465c9
MR
24602017-05-15 Maciej W. Rozycki <macro@imgtec.com>
2461
2462 * testsuite/ld-mips-elf/mips16e2-pcrel-0.d: New test.
2463 * testsuite/ld-mips-elf/mips16e2-pcrel-1.d: New test.
2464 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d: New test.
2465 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d: New test.
2466 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d: New test.
2467 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d: New test.
2468 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d: New test.
2469 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d: New test.
2470 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2471
786e3eba
NC
24722017-05-15 Nick Clifton <nickc@redhat.com>
2473
2474 PR ld/21459
2475 * scripttempl/pe.sc: Add .debug_gdb_scripts section.
2476 * scripttempl/pep.sc: Likewise.
2477
73caa85d
L
24782017-05-12 H.J. Lu <hongjiu.lu@intel.com>
2479
2480 * testsuite/ld-i386/i386.exp: Run property-x86-3.
2481 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2482 * testsuite/ld-i386/property-x86-3.d: New file.
2483 * testsuite/ld-i386/property-x86-3.s: Likewise.
2484 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
2485 * testsuite/ld-x86-64/property-x86-3.s: Likewise.
2486
f2c29a16
L
24872017-05-11 H.J. Lu <hongjiu.lu@intel.com>
2488
2489 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): Replace
2490 .plt.bnd with .plt.sec.
2491 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
2492 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2493 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
2494 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2495 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
2496 * testsuite/ld-x86-64/mpx3.dd: Likewise.
2497 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
2498 * testsuite/ld-x86-64/mpx4.dd: Likewise.
2499 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
2500 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
2501 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2502 * testsuite/ld-x86-64/pr21038b.d: Likewise.
2503 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2504 * testsuite/ld-x86-64/pr21038c.d: Likewise.
2505
dc2be3d2
L
25062017-05-11 H.J. Lu <hongjiu.lu@intel.com>
2507
2508 * testsuite/ld-i386/plt-pic2.dd: Updated.
2509 * testsuite/ld-i386/plt2.dd: Likewise.
2510 * testsuite/ld-i386/plt2.rd: Likewise.
2511 * testsuite/ld-i386/pr17689now.rd: Likewise.
2512 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
2513 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
2514 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
2515 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
2516 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
2517 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2518 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2519 * testsuite/ld-x86-64/plt2.dd: Likewise.
2520 * testsuite/ld-x86-64/plt2.rd: Likewise.
2521 * testsuite/ld-x86-64/pr17689now.rd: Likewise.
2522 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2523 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2524
5d69120b
L
25252017-05-10 H.J. Lu <hongjiu.lu@intel.com>
2526
2527 * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Set
2528 to yes.
2529 * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
2530 Likewise.
2531 * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Likewise.
2532
aab82f4c
L
25332017-05-10 H.J. Lu <hongjiu.lu@intel.com>
2534
2535 PR ld/21481
2536 * testsuite/ld-x86-64/pr21481a.c: New file.
2537 * testsuite/ld-x86-64/pr21481b.S: Likewise.
2538 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests.
2539
53a346d8
CZ
25402017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
2541
2542 * testsuite/ld-arc/attr-merge-0.d: New file.
2543 * testsuite/ld-arc/attr-merge-0.s: Likewise.
2544 * testsuite/ld-arc/attr-merge-0e.s: Likewise.
2545 * testsuite/ld-arc/attr-merge-1.d: Likewise.
2546 * testsuite/ld-arc/attr-merge-1.s: Likewise.
2547 * testsuite/ld-arc/attr-merge-1e.s: Likewise.
2548 * testsuite/ld-arc/attr-merge-2.d: Likewise.
2549 * testsuite/ld-arc/attr-merge-2.s: Likewise.
2550 * testsuite/ld-arc/attr-merge-3.d: Likewise.
2551 * testsuite/ld-arc/attr-merge-3.s: Likewise.
2552 * testsuite/ld-arc/attr-merge-3e.s: Likewise.
2553 * testsuite/ld-arc/attr-merge-4.s: Likewise.
2554 * testsuite/ld-arc/attr-merge-5.d: Likewise.
2555 * testsuite/ld-arc/attr-merge-5a.s: Likewise.
2556 * testsuite/ld-arc/attr-merge-5b.s: Likewise.
2557 * testsuite/ld-arc/attr-merge-conflict-isa.d: Likewise.
2558 * testsuite/ld-arc/attr-merge-err-isa.d: Likewise.
2559 * testsuite/ld-arc/attr-merge-incompatible-cpu.d: Likewise.
2560 * testsuite/ld-arc/got-01.d: Update test.
2561 * testsuite/ld-arc/attr-merge-err-quarkse.d: New file.
2562 * testsuite/ld-arc/attr-quarkse.s: Likewise.
2563 * testsuite/ld-arc/attr-quarkse2.s: Likewise.
2564
a6da4630
A
25652017-05-09 Awson <kyrab@mail.ru>
2566
2567 PR ld/21471
2568 * pe-dll.c (pe_detail_list): Add entry for pe-bigobj-x86-64.
2569
d2732b69
AM
25702017-05-09 Benjamin Peterson <bp@benjamin.pe>
2571
2572 * ld.texinfo (orphan sections): Grammar fix.
2573
38b12349
L
25742017-05-08 H.J. Lu <hongjiu.lu@intel.com>
2575
2576 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: New file.
2577 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
2578 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
2579 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
2580 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
2581 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
2582 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2583 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2584 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
2585 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
2586 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
2587 * testsuite/ld-x86-64/plt2.dd: Likewise.
2588 * testsuite/ld-x86-64/plt2.rd: Likewise.
2589 * testsuite/ld-x86-64/plt2.s: Likewise.
2590 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
2591 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
2592 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
2593 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2594 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2595 * testsuite/ld-x86-64/load1b-nacl.d: Updated.
2596 * testsuite/ld-x86-64/load1b.d: Likewise.
2597 * testsuite/ld-x86-64/plt-main-bnd.dd: Likewise.
2598 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
2599 * testsuite/ld-x86-64/pr20830a.d: Update the .plt.got section
2600 with func@plt.
2601 * testsuite/ld-x86-64/pr20830b.d: Likewise.
2602 * testsuite/ld-x86-64/pr21038a.d: Likewise.
2603 * testsuite/ld-x86-64/pr21038c.d: Likewise.
2604 * testsuite/ld-x86-64/mpx.exp: Add some -z now tests.
2605 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2606
f604c2a2
L
26072017-05-08 H.J. Lu <hongjiu.lu@intel.com>
2608
2609 * testsuite/ld-i386/i386.exp: Add some -z now tests.
2610 * testsuite/ld-i386/plt-pic2.dd: New file.
2611 * testsuite/ld-i386/plt2.dd: Likewise.
2612 * testsuite/ld-i386/plt2.rd: Likewise.
2613 * testsuite/ld-i386/plt2.s: Likewise.
2614 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
2615 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
2616 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
2617 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
2618 * testsuite/ld-i386/pr20830.d: Update the .plt.got section
2619 with func@plt.
2620
046734ff
TP
26212017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
2622
2623 * testsuite/ld-arm/arm-elf.exp
2624 (Secure gateway import library generation): Check e_type field
2625 of import library and executable produced.
2626 * testsuite/ld-arm/cmse-implib.type: Expectations for e_type field.
2627
b660e9eb
SKS
26282017-04-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2629
2630 PR ld/21404
2631 * testsuite/ld-avr/pr21404-1.d: New test.
2632 * testsuite/ld-avr/pr21404-1.s: New test.
2633 * testsuite/ld-avr/pr21404-2.d: New test.
2634 * testsuite/ld-avr/pr21404-2.s: New test.
2635 * testsuite/ld-avr/pr21404-3.d: New test.
2636 * testsuite/ld-avr/pr21404-3.s: New test.
2637 * testsuite/ld-avr/pr21404-4.d: New test.
2638 * testsuite/ld-avr/pr21404-4.s: New test.
2639 * testsuite/ld-avr/pr21404-5.d: New test.
2640 * testsuite/ld-avr/pr21404-5.s: New test.
2641 * testsuite/ld-avr/pr21404-6.d: New test.
2642 * testsuite/ld-avr/pr21404-6.s: New test.
2643 * testsuite/ld-avr/pr21404-7.d: New test.
2644 * testsuite/ld-avr/pr21404-7.s: New test.
2645 * testsuite/ld-avr/pr21404-8.d: New test.
2646 * testsuite/ld-avr/pr21404-8.s: New test.
2647
8507b6e7
MR
26482017-05-03 Maciej W. Rozycki <macro@imgtec.com>
2649
2650 * testsuite/ld-mips-elf/mips16-pcrel-0.d: New test.
2651 * testsuite/ld-mips-elf/mips16-pcrel-1.d: New test.
2652 * testsuite/ld-mips-elf/mips16-pcrel-addend-2.d: New test.
2653 * testsuite/ld-mips-elf/mips16-pcrel-addend-6.d: New test.
2654 * testsuite/ld-mips-elf/mips16-pcrel-n32-0.d: New test.
2655 * testsuite/ld-mips-elf/mips16-pcrel-n32-1.d: New test.
2656 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d: New test.
2657 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d: New test.
2658 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2659
b2290821
L
26602017-05-03 H.J. Lu <hongjiu.lu@intel.com>
2661
2662 * testsuite/ld-elf/pr21384.d: Adjusted to accommodate
2663 additional dynamic symbols on some targets.
2664
82d808ed
MR
26652017-05-02 Maciej W. Rozycki <macro@imgtec.com>
2666
2667 * testsuite/ld-mips-elf/mips16-branch-absolute-1.d: New test.
2668 * testsuite/ld-mips-elf/mips16-branch-absolute-2.d: New test.
2669 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d: New
2670 test.
2671 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d: New
2672 test.
2673 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d: New
2674 test.
2675 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d:
2676 New test.
2677 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d: New
2678 test.
2679 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d: New
2680 test.
2681 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d:
2682 New test.
2683 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2684
3d850592
L
26852017-05-02 H.J. Lu <hongjiu.lu@intel.com>
2686
2687 * testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to
2688 "TLS without PLT (1)" and "TLS without PLT (3)".
2689 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to
2690 to "TLS without PLT (3)".
2691
640226f0
L
26922017-05-02 H.J. Lu <hongjiu.lu@intel.com>
2693
2694 PR ld/21384
2695 * testsuite/ld-elf/pr21384.d: New file.
2696 * testsuite/ld-elf/pr21384.dl: Likewise.
2697 * testsuite/ld-elf/pr21384.ld: Likewise.
2698 * testsuite/ld-elf/pr21384.s: Likewise.
2699
0aae7e72
L
27002017-05-01 H.J. Lu <hongjiu.lu@intel.com>
2701
2702 * testsuite/ld-i386/tls.exp: Run GNU2 TLS tests only if there
2703 is working GNU2 TLS support.
2704 * testsuite/ld-x86-64/tls.exp: Likewise.
2705 * testsuite/lib/ld-lib.exp (check_gnu2_tls_available): New proc.
2706
1670f9c1
L
27072017-04-28 H.J. Lu <hongjiu.lu@intel.com>
2708
2709 * testsuite/config/default.exp (GNU2_CFLAGS): New. Set
2710 to -mtls-dialect=gnu2 if target compiler supports it.
2711 * testsuite/ld-i386/tls.exp: Run -mtls-dialect=gnu2 tests.
2712 * testsuite/ld-x86-64/tls.exp: Likewise.
2713 * testsuite/ld-i386/tlsdesc1a.c: New file.
2714 * testsuite/ld-i386/tlsdesc1b.c: Likewise.
2715 * testsuite/ld-x86-64/tlsdesc1a.c: Likewise.
2716 * testsuite/ld-x86-64/tlsdesc1b.c: Likewise.
2717
d6f48aed
L
27182017-04-28 H.J. Lu <hongjiu.lu@intel.com>
2719
2720 * testsuite/ld-elf/shared.exp: Add run-time tests for -z now.
2721 * testsuite/ld-i386/tls.exp: Likewise.
2722 * testsuite/ld-ifunc/ifunc.exp: Likewise.
2723 * testsuite/ld-x86-64/tls.exp: Likewise.
2724
de9a3c42
L
27252017-04-27 H.J. Lu <hongjiu.lu@intel.com>
2726
2727 * testsuite/ld-x86-64/pr21038a.d: Update DW_CFA_nop paddings
2728 in .eh_frame section.
2729 * testsuite/ld-x86-64/pr21038c.d: Update .eh_frame order.
2730
97d343d4
L
27312017-04-26 H.J. Lu <hongjiu.lu@intel.com>
2732
2733 * testsuite/ld-i386/tlsdesc2.d: New test.
2734 * testsuite/ld-x86-64/tlsdesc2.d: Likewise.
2735
23ec1e32
MR
27362017-04-26 Maciej W. Rozycki <macro@imgtec.com>
2737
2738 PR ld/21334
2739 * testsuite/ld-mips-elf/pr21334.dd: New test.
2740 * testsuite/ld-mips-elf/pr21334.gd: New test.
2741 * testsuite/ld-mips-elf/pr21334.ld: New test linker script.
2742 * testsuite/ld-mips-elf/pr21334.s: New test source.
2743 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2744
9e9821dd
L
27452017-04-24 H.J. Lu <hongjiu.lu@intel.com>
2746
2747 * testsuite/ld-x86-64/no-plt.exp: Also check no-plt-1e.nd.
2748 * testsuite/ld-x86-64/no-plt-1e.nd: New file.
2749
e662f84f
L
27502017-04-24 H.J. Lu <hongjiu.lu@intel.com>
2751
2752 * testsuite/ld-i386/pr12570a.d: Skip for nacl targets.
2753 * testsuite/ld-i386/pr12570b.d: Likewise.
2754
1587442d
L
27552017-04-24 H.J. Lu <hongjiu.lu@intel.com>
2756
2757 PR ld/20815
2758 * testsuite/ld-i386/vxworks2.sd: Add space for program headers.
2759
8b353c47
JM
27602017-04-24 Jose E. Marchesi <jose.marchesi@oracle.com>
2761
2762 * testsuite/ld-sparc/tlssunbin64.dd: Expect `return' instructions
2763 instead of `rett' in V9.
2764 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
2765 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
2766
e133d005
L
27672017-04-21 H.J. Lu <hongjiu.lu@intel.com>
2768
2769 PR ld/21402
2770 * testsuite/ld-elf/indirect.exp: Don't skip PIE indirect5 and
2771 indirect6 tests on i386.
2772
3c5fce9b
L
27732017-04-21 H.J. Lu <hongjiu.lu@intel.com>
2774
2775 PR ld/19617
2776 PR ld/21086
2777 * testsuite/ld-elf/pr19617a.d: Pass --no-dynamic-linker to ld.
2778 * testsuite/ld-elf/pr19617b.d: Likewise.
2779 * testsuite/ld-elf/pr19617c.d: Likewise.
2780 *testsuite/ld-i386/pr19636-4d.d: Likewise.
2781 * testsuite/ld-elf/readelf.exp: Pass --no-dynamic-linker to ld
2782 with --export-dynamic.
2783 * testsuite/ld-elf/shared.exp: Pass --no-dynamic-linker to ld
2784 with -E.
2785
afe9edbf
L
27862017-04-20 H.J. Lu <hongjiu.lu@intel.com>
2787
2788 PR ld/21402
2789 * testsuite/ld-elf/indirect.exp: Pass $NOPIE_LDFLAGS and
2790 $NOPIE_CFLAGS to non-PIE indirect5 and indirect6 tests. Skip
2791 PIE indirect5 and indirect6 tests on i386.
2792
31321c80
MR
27932017-04-20 Maciej W. Rozycki <macro@imgtec.com>
2794
2795 * testsuite/ld-mips-elf/mips-elf.exp: Join `__ehdr_start' tests.
2796
59fa66c5
L
27972017-04-20 H.J. Lu <hongjiu.lu@intel.com>
2798
2799 PR ld/21382
2800 * plugin.c (is_visible_from_outside): Symbol may be visible
2801 from outside if dynamic_ref_after_ir_def is set.
2802 (plugin_notice): Set dynamic_ref_after_ir_def if the symbol is
2803 defined in an IR object and referenced in a dynamic object.
2804 * testsuite/ld-plugin/lto.exp: Run PR ld/21382 tests.
2805 * testsuite/ld-plugin/pr21382a.c: New file.
2806 * testsuite/ld-plugin/pr21382b.c: Likewise.
2807
e492d2f8
L
28082017-04-19 H.J. Lu <hongjiu.lu@intel.com>
2809
2810 PR ld/21401
2811 * testsuite/ld-ifunc/ifunc.exp: Add a libtest-2-now.so test with
2812 -z now.
2813
954b63d4
AM
28142017-04-19 Alan Modra <amodra@gmail.com>
2815
2816 * ld.texinfo (dynamic-undefined-weak): Document.
2817 (nodynamic-undefined-weak): Document that this option now can
2818 be used with shared libs.
2819 * emulparams/dynamic_undefined_weak.sh: Support -z
2820 dynamic-undefined-weak.
2821 * emulparams/elf32ppccommon.sh: Include dynamic_undefined_weak.sh.
2822 * testsuite/ld-undefined/weak-undef.exp (undef_weak_so),
2823 (undef_weak_exe): New. Use them. Add -z dynamic-undefined-weak
2824 and -z nodynamic-undefined-weak tests.
2825 * Makefile.am: Update powerpc dependencies.
2826 * Makefile.in: Regenerate.
2827
e6699019
L
28282017-04-17 H.J. Lu <hongjiu.lu@intel.com>
2829
2830 PR ld/21389
2831 * testsuite/ld-elf/pr21389.map: New file.
2832 * testsuite/ld-elf/pr21389.s: Likewise.
2833 * testsuite/ld-elf/pr21389a.d: Likewise.
2834 * testsuite/ld-elf/pr21389b.d: Likewise.
2835 * testsuite/ld-elf/pr21389c.d: Likewise.
2836
c5d37467
AM
28372017-04-17 Alan Modra <amodra@gmail.com>
2838
2839 * testsuite/ld-elf/indirect5a.c,
2840 * testsuite/ld-elf/indirect5b.c,
2841 * testsuite/ld-elf/indirect5.map,
2842 * testsuite/ld-elf/indirect5.out: New test.
2843 * testsuite/ld-elf/indirect6a.c: Likewise.
2844 * testsuite/ld-elf/indirect.exp (check_dynamic_syms): New proc.
2845 Run new tests and check dynsyms.
2846
fbea1508
AM
28472017-04-11 Alan Modra <amodra@gmail.com>
2848
2849 PR 21274
2850 PR 18466
2851 * emultempl/pe.em (pe_find_data_imports): Don't use fixed size
2852 symbol buffer. Instead, xmalloc max size needed with space for
2853 prefix. Wrap overlong lines. Formatting. Pass symbol buffer
2854 copy of name to pe_walk_relocs_of_symbol.
2855 (make_inport_fixup): Add "name" param, pass to pe_create_import_fixup.
2856 * emultempl/pe.em (pep_find_data_imports): As for pe_find_data_imports.
2857 (make_import_fixup): Add "name" param, pass to pep_create_import_fixup.
2858 Use bfd_get_signed_* and remove unnecessary casts. Formatting.
2859 * pe-dll.c (pe_walk_relocs_of_symbol): Add "name" param. Pass to
2860 callback.
2861 (make_import_fixup_mark): Add "name" param. Make use of prefix
2862 space rather than xmalloc here.
2863 (pe_create_import_fixup): Likewise.
2864 * pe-dll.h (pe_walk_relocs_of_symbol): Update prototype.
2865 (pe_create_import_fixup): Likewise.
2866 * pep-dll.h (pep_walk_relocs_of_symbol): Likewise.
2867 (pep_create_import_fixup): Likewise.
2868
a70f34c0
NC
28692017-04-10 Nick Clifton <nickc@redhat.com>
2870
2871 * ld.texinfo (--strip-discarded): Document.
2872 (--embedded-relocs): Document.
2873 (--spare-dynamic-tags): Document.
2874 (--task-link): Document.
2875
6f9dbcd4
AM
28762017-04-10 Alan Modra <amodra@gmail.com>
2877
2878 PR 21287
2879 * testsuite/ld-elf/init-fini-arrays.d: Match INIT_ARRAY and FINI_ARRAY.
2880 * testsuite/ld-elf/init-fini-arrays.s: Use %init_array and %fini_array
2881 section types.
2882 * testsuite/lib/ld-lib.exp (default_ld_compile): Trim assembler
2883 warnings about "ignoring incorrect section type".
2884 (run_ld_link_exec_tests, run_cc_link_tests): Delete old comment.
2885
37095d07
AM
28862017-04-10 Alan Modra <amodra@gmail.com>
2887
2888 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Delete
2889 sh1p.o, sh2p.o, sh1np.o and sh2np.o before compiling. Use
2890 remote_file host exists rather than file exists.
2891
a7eaf017
L
28922017-04-07 H.J. Lu <hongjiu.lu@intel.com>
2893
2894 PR ld/21090
2895 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Use
2896 NOPIE_CFLAGS and NOPIE_LDFLAGS to disable PIE for the non-pie
2897 version of the test.
2898
8170f769
L
28992017-04-07 H.J. Lu <hongjiu.lu@intel.com>
2900
2901 PR ld/19579
2902 PR ld/21306
2903 * testsuite/ld-elf/pr19579a.c (main): Updated.
2904
ae3f8c28
NC
29052017-04-07 Nick Clifton <nickc@redhat.com>
2906
2907 PR 21090
2908 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
2909 disable PIE for the non-pie version of the test.
2910
5c1f54ce
AM
29112017-04-07 Alan Modra <amodra@gmail.com>
2912
2913 * testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.
2914
1fd6d111
TG
29152017-04-07 gingold <gingold@gingold-Precision-7510>
2916
2917 * testsuite/ld-pe/pe.exp: New test.
2918 * testsuite/ld-pe/weakdef-1.s: New test source.
2919 * testsuite/ld-pe/weakdef-1.d: New test.
2920
3944e22b
AM
29212017-04-07 Alan Modra <amodra@gmail.com>
2922
2923 * testsuite/ld-elf/mbind1a.d: Remove matches for PT_LOAD segments.
2924 * testsuite/ld-elf/mbind1b.d: Likewise.
2925 * testsuite/ld-elf/mbind1c.d: Likewise.
2926
6ca30fa5
HPN
29272017-04-05 Hans-Peter Nilsson <hp@axis.com>
2928
2929 PR ld/21233
2930 * testsuite/ld-elf/shared.exp: Change xfails to kfails and fix
2931 indentation issue introduced with last commit.
2932
4d5efb85
HPN
29332017-04-05 Hans-Peter Nilsson <hp@axis.com>
2934
2935 PR ld/21233
2936 * testsuite/ld-elf/shared.exp: Xfail all PR21233 tests but the
2937 first test for cris*-*-*.
2938
80070c0d
MR
29392017-04-04 Maciej W. Rozycki <macro@imgtec.com>
2940
2941 PR ld/21233
2942 * ldlang.c (insert_undefined): Set `mark' for ELF symbols.
2943 * testsuite/ld-elf/pr21233.sd: New test.
2944 * testsuite/ld-elf/pr21233-l.sd: New test.
2945 * testsuite/ld-elf/pr21233.ld: New test linker script.
2946 * testsuite/ld-elf/pr21233-e.ld: New test linker script.
2947 * testsuite/ld-elf/pr21233.s: New test source.
2948 * testsuite/ld-elf/pr21233-l.s: New test source.
2949 * testsuite/ld-elf/shared.exp: Run the new tests.
2950
a91e1603
L
29512017-04-04 H.J. Lu <hongjiu.lu@intel.com>
2952
2953 * NEWS: Mention support for ELF SHF_GNU_MBIND and
2954 PT_GNU_MBIND_XXX.
2955 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2956 input GNU_MBIND sections with the same type, attributes and
2957 sh_info field into a single output GNU_MBIND section.
2958 * testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
2959 * testsuite/ld-elf/mbind1.s: New file.
2960 * testsuite/ld-elf/mbind1a.d: Likewise.
2961 * testsuite/ld-elf/mbind1b.d: Likewise.
2962 * testsuite/ld-elf/mbind1c.d: Likewise.
2963 * testsuite/ld-elf/mbind2a.s: Likewise.
2964 * testsuite/ld-elf/mbind2b.c: Likewise.
2965
46bed679
L
29662017-04-03 H.J. Lu <hongjiu.lu@intel.com>
2967
2514e33e 2968 * NEWS: Mention support for ELF GNU program properties.
46bed679
L
2969 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
2970 ELF setup_gnu_properties.
2971 * testsuite/ld-i386/i386.exp: Run property tests for Linux/i386.
2972 * testsuite/ld-i386/pass.c: New file.
2973 * testsuite/ld-i386/property-1.r: Likewise.
2974 * testsuite/ld-i386/property-2.r: Likewise.
2975 * testsuite/ld-i386/property-3.r: Likewise.
2976 * testsuite/ld-i386/property-4.r: Likewise.
2977 * testsuite/ld-i386/property-5.r: Likewise.
2978 * testsuite/ld-i386/property-6.r: Likewise.
2979 * testsuite/ld-i386/property-6a.c: Likewise.
2980 * testsuite/ld-i386/property-6b.c: Likewise.
2981 * testsuite/ld-i386/property-6c.S: Likewise.
2982 * testsuite/ld-i386/property-7.r: Likewise.
2983 * testsuite/ld-i386/property-no-copy.S: Likewise.
2984 * testsuite/ld-i386/property-stack.S: Likewise.
2985 * testsuite/ld-i386/property-unsorted-1.S: Likewise.
2986 * testsuite/ld-i386/property-unsorted-2.S: Likewise.
2987 * testsuite/ld-i386/property-x86-1.S: Likewise.
2988 * testsuite/ld-i386/property-x86-2.S: Likewise.
2989 * testsuite/ld-x86-64/pass.c: Likewise.
2990 * testsuite/ld-x86-64/property-1.r: Likewise.
2991 * testsuite/ld-x86-64/property-2.r: Likewise.
2992 * testsuite/ld-x86-64/property-3.r: Likewise.
2993 * testsuite/ld-x86-64/property-4.r: Likewise.
2994 * testsuite/ld-x86-64/property-5.r: Likewise.
2995 * testsuite/ld-x86-64/property-6.r: Likewise.
2996 * testsuite/ld-x86-64/property-6a.c: Likewise.
2997 * testsuite/ld-x86-64/property-6b.c: Likewise.
2998 * testsuite/ld-x86-64/property-6c.S: Likewise.
2999 * testsuite/ld-x86-64/property-7.r: Likewise.
3000 * testsuite/ld-x86-64/property-no-copy.S: Likewise.
3001 * testsuite/ld-x86-64/property-stack.S: Likewise.
3002 * testsuite/ld-x86-64/property-unsorted-1.S: Likewise.
3003 * testsuite/ld-x86-64/property-unsorted-2.S: Likewise.
3004 * testsuite/ld-x86-64/property-x86-1.S: Likewise.
3005 * testsuite/ld-x86-64/property-x86-2.S: Likewise.
3006 * testsuite/ld-x86-64/x86-64.exp: Run property tests for
3007 Linux/x86-64.
3008
086554e8
HPN
30092017-03-28 Hans-Peter Nilsson <hp@axis.com>
3010
3011 PR ld/16044
3012 * testsuite/ld-cris/pr16044.d, testsuite/ld-cris/dso-1c.s,
3013 testsuite/ld-cris/dso-2b.s, testsuite/ld-cris/dso-4.s: New test.
3014
4c8798c9
SL
30152017-03-21 Sandra Loosemore <sandra@codesourcery.com>
3016
3017 * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
3018 false for nios2-*-elf.
3019
21701718
TG
30202017-03-21 gingold <gingold@gingold-Precision-7510>
3021
3022 * ldlang.c (lang_check_section_addresses): Check only for
3023 allocated sections.
3024
1d3fa25f
AM
30252017-03-17 Alan Modra <amodra@gmail.com>
3026
3027 * testsuite/ld-elf/sec64k.exp: Don't run on h8300 and ip2k.
3028
9494d963
TG
30292017-03-15 Tristan Gingold <gingold@adacore.com>
3030
3031 * testsuite/ld-checks/checks.exp (overflow_check): Disable for
3032 non-elf targets.
3033
9216a6f3
L
30342017-03-14 H.J. Lu <hongjiu.lu@intel.com>
3035
3036 * ldlang.c (lang_check_section_addresses): Use addr_mask to
3037 check VMA and LMA.
3038
f955cccf
NC
30392017-03-13 Nick Clifton <nickc@redhat.com>
3040
3041 PR binutils/21202
3042 * testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
3043
d40e34db
TG
30442017-03-13 Tristan Gingold <gingold@adacore.com>
3045
3046 * ldlang.c (lang_check_section_addresses): Check for address space
3047 overflow.
3048 * testsuite/ld-checks/checks.exp (overflow_check): New procedure
3049 * testsuite/ld-checks/over.s: New test source.
3050 * testsuite/ld-checks/over.d: New test.
3051 * testsuite/ld-checks/over2.s: New test source.
3052 * testsuite/ld-checks/over2.d: New test.
3053
4b5900d8
AN
30542017-03-13 Alexey Neyman <stilor@att.net>
3055
3056 * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
3057 cpu, not host.
3058
118aa6cf
AM
30592017-03-11 Alan Modra <amodra@gmail.com>
3060
3061 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
3062 sysroot for -rpath search.
3063
316a1245
AM
30642017-03-11 Alan Modra <amodra@gmail.com>
3065
3066 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
3067 Only prefix absolute paths with sysroot. Handle DOS paths.
3068 (gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
3069 (gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
3070 (gld${EMULATION_NAME}_after_open): Short-circuit NULL path
3071 searches. Rename variable. Simplify get_runpath search.
3072
bb4287c5
AM
30732017-03-11 Alan Modra <amodra@gmail.com>
3074
3075 * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
3076 than -rdynamic.
3077
e299b355
AM
30782017-03-11 Alan Modra <amodra@gmail.com>
3079
3080 * ld.texinfo (Orphan Sections): Mention that not all targets
3081 handle orphans well.
3082 * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
3083 * testsuite/ld-elf/orphan-10.d: Likewise.
3084
14ea2c1b
AB
30852017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3086
3087 * ldlang.c (lang_size_sections_1): Shortcut loop only after
3088 tracking changes to the default regions LMA.
3089 * testsuite/ld-elf/orphan-9.ld: Extend header comment.
3090 * testsuite/ld-elf/orphan-10.d: New file.
3091 * testsuite/ld-elf/orphan-10.s: New file.
3092 * NEWS: Mention change in behaviour.
3093
77f5e65e
AB
30942017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * ldlang.c (lang_leave_output_section_statement): Move lma_region
3097 logic to...
3098 (lang_propagate_lma_regions): ...this new function.
3099 (lang_process): Call new function.
3100 * testsuite/ld-elf/orphan-9.d: New file.
3101 * testsuite/ld-elf/orphan-9.ld: New file.
3102 * testsuite/ld-elf/orphan-9.s: New file.
3103 * NEWS: Mention change in behaviour.
3104
d933941d
AM
31052017-03-07 Alan Modra <amodra@gmail.com>
3106
3107 * ldlang.c (open_input_bfds): Check that lang_assignment_statement
3108 is not an assert before referencing defsym.
3109
2e0ce1c8
AM
31102017-03-05 Alan Modra <amodra@gmail.com>
3111
3112 * testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
3113 * testsuite/ld-elf/eh6.d: Likewise.
3114 * testsuite/ld-alpha/tlsbin.dd: Likewise.
3115 * testsuite/ld-alpha/tlsbin.td: Likewise.
3116 * testsuite/ld-alpha/tlsbinr.dd: Likewise.
3117 * testsuite/ld-alpha/tlspic.dd: Likewise.
3118 * testsuite/ld-alpha/tlspic.rd: Likewise.
3119 * testsuite/ld-alpha/tlspic.sd: Likewise.
3120 * testsuite/ld-alpha/tlspic.td: Likewise.
3121 * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
3122 * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
3123 * testsuite/ld-mips-elf/eh-frame3.d: Likewise.
3124 * testsuite/ld-x86-64/pr20830a.d: Likewise.
3125 * testsuite/ld-x86-64/pr21038a.d: Likewise.
3126 * testsuite/ld-x86-64/pr21038b.d: Likewise.
3127 * testsuite/ld-x86-64/pr21038c.d: Likewise.
3128
611a3ca9
NC
31292017-03-03 Max Bolingbroke <batterseapower@hotmail.com>
3130
3131 PR 12969
3132 * pe-dll.c (generate_edata): Fail if the input file(s) require too
3133 many ordinals.
3134
199add01
AM
31352017-03-02 Alan Modra <amodra@gmail.com>
3136
3137 * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
3138 and dl3.cc.
3139
4ef97a1b
AM
31402017-02-28 Alan Modra <amodra@gmail.com>
3141
3142 * testsuite/ld-elf/merge.d: xfail for nios.
3143
7ba71655
AM
31442017-02-28 Alan Modra <amodra@gmail.com>
3145
3146 * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
3147 limits of addpcis range.
3148
0e392101
MR
31492017-02-28 Maciej W. Rozycki <macro@imgtec.com>
3150
3151 * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
3152 instructions.
3153 * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
3154 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
3155
fbf25dfd
GJL
31562017-02-27 Georg-Johann Lay <gjl@gcc.gnu.org>
3157
3158 PR target/20849
6734f10a
SB
3159 * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
3160 (.rodata): New section.
3161 (.data): Remove .rodata*.
fbf25dfd 3162
dd803a24
AM
31632017-02-25 Alan Modra <amodra@gmail.com>
3164
3165 * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
3166 Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
3167 defining HPUX where necessary. Define HPUX for implib tests.
3168 * testsuite/ld-elf/comm-data4.d: Run for hpux.
3169 * testsuite/ld-elf/endsym.d: Likewise.
3170 * testsuite/ld-elf/linkoncerdiff.d: Likewise.
3171 * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
3172 * testsuite/ld-elf/comm-data5.s: Likewise.
3173 * testsuite/ld-elf/endsym.s: Likewise.
3174 * testsuite/ld-elf/pr14170c.s: Likewise.
3175 * testsuite/ld-elf/symbol3.s: Likewise.
3176 * testsuite/ld-elf/implib.s: Likewise. Don't start directives
3177 in first column.
3178 * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
3179 * testsuite/ld-elf/warn3.d: Run for hpux.
3180 * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
3181 * testsuite/ld-scripts/rgn-at11.d: Likewise.
3182 * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
3183
c9f02c3e
MR
31842017-02-24 Maciej W. Rozycki <macro@imgtec.com>
3185
c72cea5a
MR
3186 * testsuite/ld-elf/ver_def.vd: New test.
3187 * testsuite/ld-elf/ver_def-tic6x.vd: New test.
c9f02c3e
MR
3188 * testsuite/ld-elf/ver_def.ld: New test linker script.
3189 * testsuite/ld-elf/ver_def.ver: New test version script.
3190 * testsuite/ld-elf/ver_def.s: New test source.
3191 * testsuite/ld-elf/readelf.exp: New test script.
3192
5d58c733
MR
31932017-02-23 Maciej W. Rozycki <macro@imgtec.com>
3194
3195 * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
3196 option.
3197 * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
3198 * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
3199 * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
3200
c1556ecd
MR
32012017-02-23 Maciej W. Rozycki <macro@imgtec.com>
3202
3203 * testsuite/ld-mips-elf/jalr4.dd: New test.
3204 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
3205
5499c7c7
AM
32062017-02-23 Alan Modra <amodra@gmail.com>
3207
3208 PR 20744
3209 * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
3210 each group.
3211 * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
3212 and sdarel reloc fix.
3213
902e9fc7
MR
32142017-02-22 Maciej W. Rozycki <macro@imgtec.com>
3215
3216 PR ld/20828
3217 * testsuite/ld-elf/pr20828-d.sd: New test.
3218 * testsuite/ld-elf/pr20828-e.sd: New test.
3219 * testsuite/ld-elf/pr20828-v.od: New test.
3220 * testsuite/ld-elf/pr20828-v.ver: New test version script.
3221 * testsuite/ld-elf/pr20828-v.ld: New test linker script.
3222 * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
3223 `.gnu.version_d'.
3224 * testsuite/ld-elf/shared.exp: Run the new tests.
3225
46519784
NC
32262017-02-21 Nick Clifton <nickc@redhat.com>
3227
3228 * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
3229 about non-void function returning without a result.
3230
c48cfedd
AM
32312017-02-17 Alan Modra <amodra@gmail.com>
3232
3233 PR 15041
3234 * scripttempl/pe.sc: Don't combine sections for ld -r.
3235 * scripttempl/pep.sc: Likewise.
3236
74dc9032
AM
32372017-02-17 Alan Modra <amodra@gmail.com>
3238
246b9122 3239 PR 21099
74dc9032
AM
3240 * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
3241 rather than using OTHER_SECTIONS.
3242 * emulparams/elf32mt.sh: Likewise.
3243 * emulparams/elf32rx.sh: Likewise.
3244 * emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to
3245 define __rl78_abs__.
3246 * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
3247 rather than using OTHER_SECTIONS.
3248 * emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges.
3249 * emulparams/shelf64.sh: Unset OTHER_SECTIONS.
3250 * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
3251 * emulparams/shelf_uclinux.sh: Likewise.
3252 * emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS
3253 to define _stack, not OTHER_SECTIONS.
3254 * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
3255 TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL.
3256 * scripttempl/arclinux.sc: Likewise.
3257 * scripttempl/elf64hppa.sc: Likewise.
3258 * scripttempl/elfxtensa.sc: Likewise.
3259 * scripttempl/nds32elf.sc: Likewise.
3260 * scripttempl/armbpabi.sc: Move STACK before debug sections.
3261 * scripttempl/elf_chaos.sc: Likewise.
3262 * scripttempl/elfarc.sc: Delete STACK.
3263 * scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION,
3264 TINY_BSS_SECTION, and .stack before debug sections.
3265
67cecaba
NC
32662017-02-17 Nick Clifton <nickc@redhat.com>
3267
3268 PR ld/20825
3269 * ld.texinfo (Options): Add missing @item entry for --pop-state.
3270
262a40a5
AM
32712017-02-17 Alan Modra <amodra@gmail.com>
3272
3273 * testsuite/ld-elf/dwarf2.err: Accept other errors between the
3274 multiple definition errors.
3275
002a5d4e
AM
32762017-02-17 Alan Modra <amodra@gmail.com>
3277
3278 * testsuite/ld-elf/dwarf2.err: Add missing newline at end.
3279 * testsuite/ld-elf/dwarf3.err: Likewise. Allow match without filename.
3280
3239a423
AB
32812017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
3282
3283 * testsuite/ld-elf/shared.exp: Update expected results.
3284 * testsuite/ld-elf/dwarf2.err: Likewise
3285
90ed9b8b
AB
32862017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
3287
3288 * testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
3289 * testsuite/ld-elf/dwarf2.err: New file.
3290 * testsuite/ld-elf/dwarf2a.c: New file.
3291 * testsuite/ld-elf/dwarf2b.c: New file.
3292 * testsuite/ld-elf/dwarf3.c: New file.
3293 * testsuite/ld-elf/dwarf3.err: New file.
3294
2bd7f877
AB
32952017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
3298 error, warning_output, and error_output actions. Remove separate
3299 warnings parameter.
3300 * testsuite/ld-elf/shared.exp (build_tests): Updated to use
3301 'warning' action.
3302 * testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
3303
37d7d56c
AM
33042017-02-16 Alan Modra <amodra@gmail.com>
3305
3306 * testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
3307 from void pointers to function pointers.
3308 * testsuite/ld-elf/pr18718.c: Update to suit.
3309 * testsuite/ld-elf/pr18720a.c: Update to suit.
3310
a8c75b76
AM
33112017-02-16 Alan Modra <amodra@gmail.com>
3312
3313 PR 21000
3314 * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
3315 * testsuite/ld-elf/loadaddr2.d: Likewise.
3316 * testsuite/ld-elf/loadaddr3a.d: Likewise.
3317 * testsuite/ld-scripts/rgn-at5.d: Likewise.
3318
a48cda7f
AM
33192017-02-16 Alan Modra <amodra@gmail.com>
3320
3321 * testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
3322 * testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
3323
2a568401
L
33242017-02-15 H.J. Lu <hongjiu.lu@intel.com>
3325
3326 PR ld/21168
3327 * testsuite/ld-i386/i386.exp: Run pr21168.
3328 * testsuite/ld-i386/pr21168a.c: New file.
3329 * testsuite/ld-i386/pr21168b.S: Likewise.
3330
a5def14f
L
33312017-02-15 H.J. Lu <hongjiu.lu@intel.com>
3332
3333 PR ld/20244
3334 * testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
3335 pr20244-4c.
3336 * testsuite/ld-i386/pr20244-4.s: New file.
3337 * testsuite/ld-i386/pr20244-4a.d: Likewise.
3338 * testsuite/ld-i386/pr20244-4b.d: Likewise.
3339 * testsuite/ld-i386/pr20244-4c.d: Likewise.
3340
ebf0b03c
MR
33412017-02-15 Maciej W. Rozycki <macro@imgtec.com>
3342
3343 * ldmisc.c (vfinfo): Don't print the function name again either
3344 if no source file name has been found both now and previously.
3345 * testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
3346 * testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
3347 * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
3348 * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
3349 * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
3350 * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
3351 * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
3352 * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
3353 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
3354 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
3355 Likewise.
3356 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
3357 Likewise.
3358 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
3359 Likewise.
3360 * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
3361 * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
3362 Likewise.
3363 * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
3364 Likewise.
3365 * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
3366 * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
3367 * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
3368 * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
3369 * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
3370 * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
3371 * testsuite/ld-powerpc/tocopt.out: Likewise.
3372 * testsuite/ld-powerpc/tocopt7.out: Likewise.
3373
befe814d
MR
33742017-02-15 Maciej W. Rozycki <macro@imgtec.com>
3375
3376 * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
3377
defe6f56
IK
33782017-02-15 Igor Kudrin <ikudrin@accesssoftek.com>
3379
3380 * testsuite/ld-scripts/sysroot-prefix.exp
3381 (get_base_dir_for_scripts): New function.
3382 (run_sysroot_prefix_test): Use get_base_dir_for_scripts.
3383
10ddfe62
PD
33842017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
3385
3386 * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
3387 _gp to __global_pointer$
3388
d7488716
AB
33892017-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * configure.tgt (arc*-*-linux*): Change the default linker
3392 emulation based on --with-cpu selection.
3393 * NEWS: Mention new configuration option.
3394
65f90e82
JW
33952017-02-06 Jiong Wang <jiong.wang@arm.com>
3396
3397 * testsuite/ld-elf/compress.exp: Don't print to stdout for all
3398 "readelf -w".
3399
fa93e3d3
MR
34002017-02-02 Maciej W. Rozycki <macro@imgtec.com>
3401
3402 * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
3403
2e9af2d0
MR
34042017-02-02 Maciej W. Rozycki <macro@imgtec.com>
3405
3406 * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
3407 s/regexp/regex/.
3408
fd121c5c
JW
34092017-02-02 Jiong Wang <jiong.wang@arm.com>
3410
3411 * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
3412 * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
3413 dlopen support into "dlopen_run_tests". These tests include dl1*main
3414 and dl6*main.
3415 (dlopen_run_tests): New and only run it when check_libdl_available
3416 returns true. XFAIL on *-*-netbsdelf*.
3417
c0c237fc
MR
34182017-02-01 Maciej W. Rozycki <macro@imgtec.com>
3419
3420 * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
3421 presentation of relocation addends.
3422 * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
3423 * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
3424 * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
3425
5139cfdb
MR
34262017-02-01 Maciej W. Rozycki <macro@imgtec.com>
3427
3428 * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
3429 in `.tdata' section.
3430 * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
3431 * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
3432
ce790370
JW
34332017-02-01 Jiong Wang <jiong.wang@arm.com>
3434
3435 * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
3436 Append $board_cflags to link commands.
3437
067869b6
SKS
34382017-02-01 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
3439
3440 * testsuite/ld-scripts/print-memory-usage-1.l: Relax
3441 check for digit in second decimal place.
3442
15a00b13
MR
34432017-02-01 Maciej W. Rozycki <macro@imgtec.com>
3444
3445 PR ld/20828
3446 * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
3447 indentation.
3448
1273da04
NC
34492017-01-31 Nick Clifton <nickc@redhat.com>
3450
3451 * ldmain.c (add_archive_element): Eliminate string buffer.
3452 * ldlang.c (lang_print_asneeded): Likewise.
3453
8b10b0b3
MR
34542017-01-30 Maciej W. Rozycki <macro@imgtec.com>
3455
3456 * emultempl/mipself.em (ignore_branch_isa): New variable.
3457 (mips_create_output_section_statements): Rename
3458 `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
3459 add `ignore_branch_isa' argument.
3460 (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
3461 OPTION_NO_IGNORE_BRANCH_ISA enum values.
3462 (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
3463 "no-ignore-branch-isa" options.
3464 (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
3465 `--no-ignore-branch-isa'.
3466 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
3467 OPTION_NO_IGNORE_BRANCH_ISA.
3468
3469 * ld.texinfo (Options specific to MIPS targets): Add
3470 `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
3471 (ld and the MIPS family): Likewise.
3472
3473 * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
3474 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
3475 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
3476 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
3477 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
3478 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
3479 test.
3480 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
3481 test.
3482 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
3483
bf382b30
HPN
34842017-01-29 Hans-Peter Nilsson <hp@axis.com>
3485
c1d45238 3486 PR binutils/19935
bf382b30
HPN
3487 Fix long-standing buglet and fallout from now-default initfini-array.
3488 * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
ce6366f9 3489 (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
bf382b30 3490
4471a46f
JW
34912017-01-27 Jiong Wang <jiong.wang@arm.com>
3492
3493 * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
3494 arm*-*-eabi*.
3495
387dd777
DP
34962017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
3497 Nick Clifton <nickc@redhat.com>
3498
3499 PR 20343
3500 * ld.texinfo (Options): Extend documentation of the --plugin
3501 option. Include a description of where the plugins should be
3502 located.
3503
0348d4be
NC
35042017-01-27 Nick Clifton <nickc@redhat.com>
3505
3506 * po/sr.po: New Serbian translation.
3507 * configure.ac (ALL_LINGUAS): Add sr.
3508 * configure: Regenerate.
3509
c75b4ebd
SH
35102017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
3511
3512 * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
3513 (bfin-*-rtems*): Move to (bfin*-*-elf*).
3514 (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
3515 (m68*-*-rtems*): Move to (m68*-*-elf*).
3516 (mips*-*-rtems*): Move to (mips*-*-elf*).
3517 (or1k*-*-rtems*): Move to (or1k*-*-elf*).
3518 (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
3519 (sparc*-*-rtems*): Move to (sparc*-*-elf*).
3520 (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
3521
850d84f6
SH
35222017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
3523
3524 * configure.tgt (h8300-*-rtemscoff*): Remove.
3525 (i960-*-rtems*): Likewise.
3526 (m68*-*-rtemscoff*): Likewise.
3527 (sh-*-rtemscoff*): Likewise.
3528
1a792e1c
MR
35292017-01-24 Maciej W. Rozycki <macro@imgtec.com>
3530
3531 * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
3532 add implicit version nodes if an anonymous version tag is being
3533 used.
3534
077c11e8
JW
35352017-01-24 Jiong Wang <jiong.wang@arm.com>
3536
3537 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
3538 "Compile 8a", "Compile 8b"...
3539 (lto_compile_elf_tests): ...to here. Always run these tests.
3540 (lto_run_elf_tests): Move "LTO 7"...
3541 (lto_run_elf_shared_tests): ...to here. Restrict these tests on
3542 environment where share library is supported.
3543
f0158f44
AM
35442017-01-24 Alan Modra <amodra@gmail.com>
3545
3546 * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
3547 and symbols.
3548 * testsuite/ld-powerpc/tlsexe.d: Likewise.
3549 * testsuite/ld-powerpc/tlsexe.g: Likewise.
3550
2d0ca824
YN
35512017-01-23 Yury Norov <ynorov@caviumnetworks.com>
3552
3553 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
3554 * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
3555 * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
3556 * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
3557 * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
3558 * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
3559 * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
3560 * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
3561 * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
3562 * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
3563 * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
3564 * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
3565 * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
3566
8069955e
NC
35672017-01-23 Nick Clifton <nickc@redhat.com>
3568
3569 * po/ga.po: Updated Irish translation.
3570
1e5f45bb
MR
35712017-01-23 Maciej W. Rozycki <macro@imgtec.com>
3572
3573 PR ld/20828
3574 * testsuite/ld-elf/pr20828.ld: Add `.plt'.
3575
fda46c41
MR
35762017-01-23 Maciej W. Rozycki <macro@imgtec.com>
3577
3578 PR ld/20828
3579 * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
3580 `fdata' and `edata' respectively.
3581 * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
3582 * testsuite/ld-elf/pr20828-a.sd: Likewise.
3583 * testsuite/ld-elf/pr20828-b.sd: Likewise.
3584 * testsuite/ld-elf/pr20828-c.sd: Likewise.
3585
adcbdc63
MR
35862017-01-23 Maciej W. Rozycki <macro@imgtec.com>
3587
3588 PR ld/20828
3589 * testsuite/ld-elf/pr20828-1.sd: Remove test.
3590 * testsuite/ld-elf/pr20828-a.sd: New test.
3591 * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
3592 * testsuite/ld-elf/pr20828-b.sd: ... this.
3593 * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
3594 * testsuite/ld-elf/pr20828-c.sd: ... this.
3595 * testsuite/ld-elf/shared.exp: Adjust accordingly.
3596
9966f7ee
JW
35972017-01-23 Jiong Wang <jiong.wang@arm.com>
3598
3599 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
3600 board_cflags as gcc is used as linker driver.
3601 * testsuite/ld-unique/unique.exp: Likewise
3602
7f784814
JW
36032017-01-20 Jiong Wang <jiong.wang@arm.com>
3604
3605 * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
3606 * testsuite/ld-aarch64/func-in-so.s: New test source file.
3607 * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
3608 * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
3609
1737c640
AB
36102017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
3611
3612 * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
3613
6984613a
MR
36142017-01-18 Maciej W. Rozycki <macro@imgtec.com>
3615
3616 PR ld/20995
3617 * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
3618 `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
3619
81ff47b3
MR
36202017-01-18 Maciej W. Rozycki <macro@imgtec.com>
3621
3622 PR ld/20828
3623 * testsuite/ld-elf/pr20828-1.sd: New test.
3624 * testsuite/ld-elf/pr20828-2a.sd: New test.
3625 * testsuite/ld-elf/pr20828-2b.sd: New test.
3626 * testsuite/ld-elf/pr20828.ld: New test linker script.
3627 * testsuite/ld-elf/pr20828.ver: New test version script.
3628 * testsuite/ld-elf/pr20828.s: New test source.
3629 * testsuite/ld-elf/shared.exp: Run the new test.
3630
9e009953
MR
36312017-01-18 Maciej W. Rozycki <macro@imgtec.com>
3632
3633 PR gas/20649
3634 * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
3635 relocation pairing link test.
3636
319b82e4
DD
36372017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
3638
3639 * testsuite/ld-unique/unique.exp: Filter shared lib cases in
3640 uniqeue.exp, as not all targets have such support.
3641
6aa1df2d
NC
36422017-01-16 Nick Clifton <nickc@redhat.com>
3643
3644 * po/sv.po: Updated Swedish translation.
3645
8361ed4d
L
36462017-01-12 H.J. Lu <hongjiu.lu@intel.com>
3647
3648 PR ld/21038
3649 * testsuite/ld-x86-64/pr21038b.d: Updated.
3650 * testsuite/ld-x86-64/pr21038c.d: New file.
3651 * testsuite/ld-x86-64/pr21038c.s: Likewise.
3652 * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
3653
9e659176
L
36542017-01-11 H.J. Lu <hongjiu.lu@intel.com>
3655
3656 PR ld/21038
3657 * testsuite/ld-x86-64/pr21038a.d: New file.
3658 * testsuite/ld-x86-64/pr21038a.s: Likewise.
3659 * testsuite/ld-x86-64/pr21038b.d: Likewise.
3660 * testsuite/ld-x86-64/pr21038b.s: Likewise.
3661 * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
3662
f2e2d2f5
JS
36632017-01-11 Jeremy Soller <jackpot51@gmail.com>
3664
3665 * configure.tgt: Add entries for x86-redox and x86_64-redox.
3666
52b232b3
L
36672017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3668
3669 * testsuite/ld-x86-64/pr20830b.d: Updated.
3670
59a1e29d
L
36712017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3672
3673 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
3674 * testsuite/ld-x86-64/pr20830.d: Renamed to ...
3675 * testsuite/ld-x86-64/pr20830a.d: This. Updated.
3676 * testsuite/ld-x86-64/pr20830b.d: New file.
3677 * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
3678 Run pr20830b.
3679
fff53dae
L
36802017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3681
3682 PR ld/20830
3683 * testsuite/ld-i386/i386.exp: Run pr20830.
3684 * testsuite/ld-x86-64/x86-64.exp: Likewise.
3685 * testsuite/ld-i386/pr20830.d: New file.
3686 * testsuite/ld-i386/pr20830.s: Likewise.
3687 * testsuite/ld-x86-64/pr20830.d: Likewise.
3688 * testsuite/ld-x86-64/pr20830.s: Likewise.
3689
e9237227
L
36902017-01-10 H.J. Lu <hongjiu.lu@intel.com>
3691
3692 * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
3693 -Wl,--as-needed to $CC.
3694 * testsuite/ld-i386/tls.exp: Likewise.
3695
07e8e623
NC
36962017-01-10 Nick Clifton <nickc@redhat.com>
3697
3698 * po/sv.po: Updated Swedish translation.
3699
07ccf83c
GM
37002016-12-09 Graham Markall <graham.markall@embecosm.com>
3701 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * Makefile.am: Add earclinux_nps.c target and add to
3704 ALL_EMULATION_SOURCES.
3705 * Makefile.in: Likewise, regenerated.
3706 * configure.tgt: Add arclinux_nps as an extra emulation for
3707 arc*-*-elf* and arc*-*-linux*.
3708 * emulparams/arc-nps.sh: New file.
3709 * emulparams/arclinux_nps.sh: New file.
3710 * testsuite/ld-arc/arclinux-nps.d,
3711 * testsuite/ld-arc/arclinux-nps.s: New test.
3712
b0556316
DP
37132017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
3714
3715 PR 20958
3716 * ldlex.l (option): Add noyywrap
3717 (yywrap): Delete.
3718 * ldlex.h (yywrap): Delete prototype.
3719
47523653
AM
37202017-01-04 Alan Modra <amodra@gmail.com>
3721
3722 * testsuite/ld-elf/audit.exp: Check for shared lib support.
3723 * testsuite/ld-elf/compress.exp: Likewise.
3724 * testsuite/ld-elf/dwarf.exp: Likewise.
3725 * testsuite/ld-elf/shared.exp: Likewise.
3726 * testsuite/ld-elf/wrap.exp: Likewise.
3727 * testsuite/ld-ifunc/ifunc.exp: Likewise.
3728 * testsuite/ld-plugin/lto.exp: Check $CXX exists.
3729
a44d0bd7
AM
37302017-01-03 Alan Modra <amodra@gmail.com>
3731
3732 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
3733 allow test to continue after compilation errors.
3734 (run_cc_link_tests): Likewise.
3735
27c3ce29
DD
37362017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
3737
3738 * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
3739 (epruelf.c): Remove unneeded dependencies.
3740 * Makefile.in: Regenerate
3741
8cfc7cf8
AM
37422017-01-03 Alan Modra <amodra@gmail.com>
3743
3744 * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
3745 to various tests.
3746 * testsuite/ld-elfweak/elfweak.exp: Likewise.
3747 * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
3748
4ce6ca2c
AM
37492017-01-03 Alan Modra <amodra@gmail.com>
3750
3751 * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
3752 * testsuite/ld-pie/pie.exp: Likewise.
3753 * testsuite/ld-plugin/lto.exp: Likewise.
3754
d9816402
AM
37552017-01-02 Alan Modra <amodra@gmail.com>
3756
3757 * Makefile.am (bootstrap): Delete rule.
3758 (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
3759 (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
3760 (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
3761 * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
3762 (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
3763 * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
3764 * Makefile.in: Regenerate.
3765 * configure: Regenerate.
3766 * testsuite/config/default.exp (get_link_files): Delete.
3767 (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
3768 define.
3769 (ld_simple_link): Delete.
3770 * testsuite/lib/ld-lib.exp (default_ld_link): Delete
3771 (default_ld_simple_link): Rename to default_ld_link.
3772 (ld_simple_link_defsyms): Rename to ld_link_defsyms.
3773 (run_ld_link_tests): Use ld_link, not ld_simple_link.
3774 (run_cc_link_tests): Likewise.
3775 (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
3776 Don't run exe when not native, and return unsupported.
3777 * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
3778 Link ld1 etc. using $CC.
3779 * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
3780 * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
3781 * testsuite/ld-cygwin/exe-export.exp: Likewise.
3782 * testsuite/ld-elf/binutils.exp: Likewise.
3783 * testsuite/ld-elf/eh-group.exp: Likewise.
3784 * testsuite/ld-elf/exclude.exp: Likewise.
3785 * testsuite/ld-elf/frame.exp: Likewise.
3786 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
3787 * testsuite/ld-elf/tls_common.exp: Likewise.
3788 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
3789 * testsuite/ld-fastcall/fastcall.exp: Likewise.
3790 * testsuite/ld-gc/gc.exp: Likewise.
3791 * testsuite/ld-ifunc/binutils.exp: Likewise.
3792 * testsuite/ld-mep/mep.exp: Likewise.
3793 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
3794 * testsuite/ld-mn10300/mn10300.exp: Likewise.
3795 * testsuite/ld-nios2/nios2.exp: Likewise.
3796 * testsuite/ld-pe/pe-compile.exp: Likewise.
3797 * testsuite/ld-pe/pe-run.exp: Likewise.
3798 * testsuite/ld-pe/pe-run2.exp: Likewise.
3799 * testsuite/ld-plugin/plugin.exp: Likewise.
3800 * testsuite/ld-scripts/align.exp: Likewise.
3801 * testsuite/ld-scripts/alignof.exp: Likewise.
3802 * testsuite/ld-scripts/assert.exp: Likewise.
3803 * testsuite/ld-scripts/defined.exp: Likewise.
3804 * testsuite/ld-scripts/extern.exp: Likewise.
3805 * testsuite/ld-scripts/log2.exp: Likewise.
3806 * testsuite/ld-scripts/map-address.exp: Likewise.
3807 * testsuite/ld-scripts/phdrs.exp: Likewise.
3808 * testsuite/ld-scripts/phdrs2.exp: Likewise.
3809 * testsuite/ld-scripts/script.exp: Likewise.
3810 * testsuite/ld-scripts/section-flags.exp: Likewise.
3811 * testsuite/ld-scripts/sizeof.exp: Likewise.
3812 * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
3813 * testsuite/ld-scripts/weak.exp: Likewise.
3814 * testsuite/ld-selective/selective.exp: Likewise.
3815 * testsuite/ld-sh/sh.exp: Likewise.
3816 * testsuite/ld-sh/sh64/relax.exp: Likewise.
3817 * testsuite/ld-sh/sh64/relfail.exp: Likewise.
3818 * testsuite/ld-srec/srec.exp: Likewise.
3819 * testsuite/ld-tic6x/tic6x.exp: Likewise.
3820 * testsuite/ld-undefined/weak-undef.exp: Likewise.
3821 * testsuite/ld-versados/versados.exp: Likewise.
3822 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
3823 * testsuite/ld-xtensa/coalesce.exp: Likewise.
3824 * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
3825 * testsuite/ld-xtensa/lcall.exp: Likewise.
3826 * testsuite/ld-elf/audit.exp: Run non-native too.
3827 * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
3828 gcc -Wl, options.
3829 * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
3830 not ld_simple_link. Add -Wl,--no-as-needed to some tests.
3831 * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
3832 * testsuite/ld-elf/indirect.exp: Run non-native too. Add
3833 -Wl,--no-as-needed to most tests.
3834 * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
3835 to simplify quoting. Set run_tests using [list] rather than
3836 brace assignment to expand $extralibs. Add -Wl,--no-as-needed
3837 to many test. Prefix ld options with -Wl,.
3838 (mix_pic_and_non_pic): Don't run exe if not native.
3839 * testsuite/ld-elf/wrap.exp: Run non-native too. Add
3840 -Wl,--no-as-needed and prefix ld options with -Wl,.
3841 * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
3842 not ld_simple_link.
3843 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
3844 (visibility_test): Don't run exe if not native.
3845 * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
3846 not ld_simple_link.
3847 (build_exec): Don't run exe if not native.
3848 * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
3849 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
3850 to some tests and prefix ld options with -Wl,. Expect GNU
3851 for hppa-linux even when no ifuncs. Delete cleanup.
3852 * testsuite/ld-pie/pie.exp: Run non-native too.
3853 * testsuite/ld-plugin/lto.exp: Likewise.
3854 * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
3855 not ld_simple_link.
3856 (shared_test): Don't run exe if not native.
3857 * testsuite/ld-size/size.exp: Run non-native too. Add
3858 -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
3859 * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
3860 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
3861 to some tests and prefix ld options with -Wl,. Expect GNU
3862 for hppa-linux even when no unique syms. Delete cleanup.
3863 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
3864 tests and prefix ld options with -Wl,.
3865 * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
3866 Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
3867
64859e14
AM
38682017-01-02 Alan Modra <amodra@gmail.com>
3869
3870 * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
3871
f5657270
AM
38722017-01-02 Alan Modra <amodra@gmail.com>
3873
3874 PR ld/21000
3875 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
3876 (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
3877 * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
3878 is already defined.
3879
2571583a
AM
38802017-01-02 Alan Modra <amodra@gmail.com>
3881
3882 Update year range in copyright notice of all files.
3883
5c1ad6b5 3884For older changes see ChangeLog-2016
3499769a 3885\f
5c1ad6b5 3886Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
3887
3888Copying and distribution of this file, with or without modification,
3889are permitted in any medium without royalty provided the copyright
3890notice and this notice are preserved.
3891
3892Local Variables:
3893mode: change-log
3894left-margin: 8
3895fill-column: 74
3896version-control: never
3897End:
This page took 0.281427 seconds and 4 git commands to generate.