]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/ChangeLog
x86: Only allow S + A relocations against absolute symbol
[thirdparty/binutils-gdb.git] / ld / ChangeLog
1 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/25749
4 PR ld/25754
5 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
6 * testsuite/ld-elf/pr25749-1.c: New file.
7 * testsuite/ld-elf/pr25749-1a.c: Likewise.
8 * testsuite/ld-elf/pr25749-1b.c: Likewise.
9 * testsuite/ld-elf/pr25749-1b.err: Likewise.
10 * testsuite/ld-elf/pr25749-1c.c: Likewise.
11 * testsuite/ld-elf/pr25749-1d.c: Likewise.
12 * testsuite/ld-elf/pr25749-2.c: Likewise.
13 * testsuite/ld-elf/pr25749-2a.s: Likewise.
14 * testsuite/ld-elf/pr25749-2b.s: Likewise.
15 * testsuite/ld-elf/pr25749.rd: Likewise.
16 * testsuite/ld-elf/pr25754-1a.c: Likewise.
17 * testsuite/ld-elf/pr25754-1b.s: Likewise.
18 * testsuite/ld-elf/pr25754-2a.c: Likewise.
19 * testsuite/ld-elf/pr25754-2b.err: Likewise.
20 * testsuite/ld-elf/pr25754-2b.s: Likewise.
21 * testsuite/ld-elf/pr25754-3a.c: Likewise.
22 * testsuite/ld-elf/pr25754-3b.s: Likewise.
23 * testsuite/ld-elf/pr25754-4a.c: Likewise.
24 * testsuite/ld-elf/pr25754-4b.s: Likewise.
25 * testsuite/ld-elf/pr25754-4c.s: Likewise.
26 * testsuite/ld-elf/pr25754-5a.c: Likewise.
27 * testsuite/ld-elf/pr25754-5b.s: Likewise.
28 * testsuite/ld-elf/pr25754-5c.s: Likewise.
29 * testsuite/ld-elf/pr25754-6a.c: Likewise.
30 * testsuite/ld-elf/pr25754-6b.s: Likewise.
31 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
32
33 2020-04-01 Tamar Christina <tamar.christina@arm.com>
34
35 PR ld/16017
36 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
37
38 2020-04-01 Nick Clifton <nickc@redhat.com>
39
40 PR ld/25747
41 * ldfile.c (ldfile_open_file): If a search for a library fails,
42 but there is a file that would match if it had a "lib" prefix to
43 its name, then tell the user.
44
45 2020-04-01 Tamar Christina <tamar.christina@arm.com>
46
47 PR ld/16017
48 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
49 * testsuite/ld-arm/thumb-plt-got.d: New test.
50
51 2020-04-01 Tamar Christina <tamar.christina@arm.com>
52
53 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
54 * testsuite/ld-arm/thumb-plt.d: New test.
55 * testsuite/ld-arm/thumb-plt.s: New test.
56
57 2020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
58
59 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
60
61 2020-03-30 Nick Clifton <nickc@redhat.com>
62
63 PR binutils/25662
64 * emultempl/pe.em (after_open): Replace initialisation of the
65 insert_timestamp field in the pe_data structure with an
66 initialisation of the timestamp field.
67 * emultemp/pep.em: Likewise.
68 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
69 structure instead of the insert_timestamp field.
70
71 2020-03-28 H.J. Lu <hongjiu.lu@intel.com>
72
73 PR 25732
74 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
75 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
76 Solaris.
77
78 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
79
80 PR 25732
81 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
82
83 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
84
85 PR 25732
86 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
87 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
88 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
89
90 2020-03-25 Alan Modra <amodra@gmail.com>
91
92 * testsuite/ld-elf/compress1c.d: xfail h8300.
93 * testsuite/ld-elf/compressed1c.d: Likewise.
94 * testsuite/ld-elf/compressed1e.d: Likewise.
95 * testsuite/ld-elf/dynamic1.d: Likewise.
96 * testsuite/ld-elf/dynsym1.d: Likewise.
97 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
98 * testsuite/ld-elf/exclude3b.d: Likewise.
99 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
100 * testsuite/ld-elf/global1.d: xfail h8300.
101 * testsuite/ld-elf/hash.d: Likewise.
102 * testsuite/ld-elf/loadaddr1.d: Likewise.
103 * testsuite/ld-elf/loadaddr2.d: Likewise.
104 * testsuite/ld-elf/local1.d: Likewise.
105 * testsuite/ld-elf/mbind1b.d: Likewise.
106 * testsuite/ld-elf/mbind1c.d: Likewise.
107 * testsuite/ld-elf/now-1.d: Likewise.
108 * testsuite/ld-elf/now-2.d: Likewise.
109 * testsuite/ld-elf/now-3.d: Likewise.
110 * testsuite/ld-elf/now-4.d: Likewise.
111 * testsuite/ld-elf/pie.d: Likewise.
112 * testsuite/ld-elf/pr12975.d: Likewise.
113 * testsuite/ld-elf/pr13177.d: Likewise.
114 * testsuite/ld-elf/pr13195.d: Likewise.
115 * testsuite/ld-elf/pr16322.d: Likewise.
116 * testsuite/ld-elf/pr16498a.d: Likewise.
117 * testsuite/ld-elf/pr16498b.d: Likewise.
118 * testsuite/ld-elf/pr17615.d: Likewise.
119 * testsuite/ld-elf/pr19162.d: Likewise.
120 * testsuite/ld-elf/pr19539.d: Likewise.
121 * testsuite/ld-elf/pr19617a.d: Likewise.
122 * testsuite/ld-elf/pr19698.d: Likewise.
123 * testsuite/ld-elf/pr20513c.d: Likewise.
124 * testsuite/ld-elf/pr20513d.d: Likewise.
125 * testsuite/ld-elf/pr21389a.d: Likewise.
126 * testsuite/ld-elf/pr21389b.d: Likewise.
127 * testsuite/ld-elf/pr21389c.d: Likewise.
128 * testsuite/ld-elf/pr21562a.d: Likewise.
129 * testsuite/ld-elf/pr21562b.d: Likewise.
130 * testsuite/ld-elf/pr21562c.d: Likewise.
131 * testsuite/ld-elf/pr21562d.d: Likewise.
132 * testsuite/ld-elf/pr21562e.d: Likewise.
133 * testsuite/ld-elf/pr21562f.d: Likewise.
134 * testsuite/ld-elf/pr21562g.d: Likewise.
135 * testsuite/ld-elf/pr21562h.d: Likewise.
136 * testsuite/ld-elf/pr21562i.d: Likewise.
137 * testsuite/ld-elf/pr21562j.d: Likewise.
138 * testsuite/ld-elf/pr21562k.d: Likewise.
139 * testsuite/ld-elf/pr21562l.d: Likewise.
140 * testsuite/ld-elf/pr21562m.d: Likewise.
141 * testsuite/ld-elf/pr21562n.d: Likewise.
142 * testsuite/ld-elf/pr21903a.d: Likewise.
143 * testsuite/ld-elf/pr21903b.d: Likewise.
144 * testsuite/ld-elf/pr21903d.d: Likewise.
145 * testsuite/ld-elf/pr22269a.d: Likewise.
146 * testsuite/ld-elf/pr22269b.d: Likewise.
147 * testsuite/ld-elf/pr22393-1a.d: Likewise.
148 * testsuite/ld-elf/pr22393-1b.d: Likewise.
149 * testsuite/ld-elf/pr22393-1c.d: Likewise.
150 * testsuite/ld-elf/pr22393-1d.d: Likewise.
151 * testsuite/ld-elf/pr22393-1e.d: Likewise.
152 * testsuite/ld-elf/pr22393-1f.d: Likewise.
153 * testsuite/ld-elf/pr22423.d: Likewise.
154 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
155 and xc16x.
156 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
157 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
158 * testsuite/ld-elf/rpath-1.d: xfail h8300.
159 * testsuite/ld-elf/rpath-2.d: Likewise.
160 * testsuite/ld-elf/runpath-1.d: Likewise.
161 * testsuite/ld-elf/runpath-2.d: Likewise.
162 * testsuite/ld-elf/sizeofb.d: Likewise.
163 * testsuite/ld-elf/startofb.d: Likewise.
164 * testsuite/ld-elf/strtab.d: Likewise.
165 * testsuite/ld-elf/textaddr1.d: Likewise.
166 * testsuite/ld-elf/textaddr2.d: Likewise.
167 * testsuite/ld-elf/textaddr4.d: Likewise.
168 * testsuite/ld-elf/textaddr5.d: Likewise.
169 * testsuite/ld-elf/textaddr6.d: Likewise.
170 * testsuite/ld-elf/unknown2.d: Likewise.
171 * testsuite/ld-undefined/entry-3.d: Likewise.
172 * testsuite/ld-undefined/entry-4.d: Likewise.
173 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
174 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
175 file format match.
176 * testsuite/ld-h8300/relax-2.d: Likewise.
177 * testsuite/ld-h8300/relax-3.d: Likewise.
178 * testsuite/ld-h8300/relax-4.d: Likewise.
179 * testsuite/ld-h8300/relax-5.d: Likewise.
180 * testsuite/ld-h8300/relax-6.d: Likewise.
181 * testsuite/ld-h8300/relax-7.d: Likewise.
182 * testsuite/ld-h8300/relax.d: Relax file format match.
183
184 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
185
186 PR binutils/25708
187 * testsuite/ld-elf/pr25708.d: New file.
188
189 2020-03-23 Alan Modra <amodra@gmail.com>
190
191 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
192 Include ei386aout dep file.
193 * Makefile.in: Regenerate.
194 * po/BLD-POTFILES.in: Regenerate.
195
196 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
197
198 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
199 test only for GCC 10 or newer.
200
201 2020-03-20 Alan Modra <amodra@gmail.com>
202
203 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
204 clear new fields.
205 * testplug2.c (parse_symdefstr): Likewise.
206 * testplug3.c (parse_symdefstr): Likewise.
207 * testplug4.c (parse_symdefstr): Likewise.
208
209 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
210
211 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
212 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
213
214 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
215
216 * emultempl/xtensaelf.em: Emit a fatal error message
217 instead of calling abort.
218 * ldlang.c: Likewise.
219
220 2020-03-14 Alan Modra <amodra@gmail.com>
221
222 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
223 targets. Don't skip xtensa, xfail instead.
224
225 2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
226
227 * ldlang.c (lang_add_section): Add support for
228 non_contiguous_regions.
229 (size_input_section): Likewise.
230 (lang_size_sections_1): Likewise.
231 (process_insert_statements): Likewise.
232 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
233 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
234 * lexsup.c (ld_options): Add entries for
235 --enable-non-contiguous-regions and
236 --enable-non-contiguous-regions-warnings.
237 (parse_args): Handle it.
238 * NEWS: Add --enable-non-contiguous-regions and
239 --enable-non-contiguous-regions-warnings.
240 * ld.texi: Add --enable-non-contiguous-regions and
241 --enable-non-contiguous-regions-warnings documentation.
242 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
243 SEC_LINKER_CREATED flag.
244 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
245 Emit an error when --enable-non-contiguous-regions is used.
246 * testsuite/ld-elf/non-contiguous.d: New.
247 * testsuite/ld-elf/non-contiguous.ld: New.
248 * testsuite/ld-elf/non-contiguous.s: New.
249 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
250 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
251 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
252 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
253 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
254 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
255 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
256 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
257 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
258 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
259 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
260 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
261 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
262 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
263 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
264 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
265 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
266 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
267 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
268
269 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
270
271 PR ld/24920
272 * emulparams/elf32_x86_64.sh: Use static.sh.
273 * emulparams/elf_i386.sh: Likewise.
274 * emulparams/elf_x86_64.sh: Likewise.
275 * emulparams/static.sh: New file.
276 * emultempl/elf-x86.em: Include "ldlex.h".
277 * testsuite/ld-elf/pr24920.err: New file.
278 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
279
280 2020-03-13 Christian Eggers <ceggers@gmx.de>
281
282 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
283
284 2020-03-11 Alan Modra <amodra@gmail.com>
285
286 * ldelf.c (elf_orphan_compatible): Return false when two sections
287 have differing SHF_MASKPROC or SHF_MASKOS flags.
288
289 2020-03-05 Alan Modra <amodra@gmail.com>
290
291 PR 25570
292 * ldlang.c (lang_size_sections_1): Don't report changes on
293 second and subsequent iterations that make no change in
294 alignment from that already reported.
295
296 2020-03-05 Alan Modra <amodra@gmail.com>
297
298 PR 25570
299 * ldlang.c (lang_sizing_iteration): New static var.
300 (lang_size_sections_1): Warn about no memory region only on first
301 iteration. Warn about changing start address on first iteration
302 then any delta from that on subsequent iterations. Report a signed
303 delta.
304 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
305
306 2020-03-03 Nick Clifton <nickc@redhat.com>
307
308 PR 25588
309 * ld.texi (Options): Update the description of the --rpath-link
310 option.
311
312 2020-03-02 Alan Modra <amodra@gmail.com>
313
314 * plugin.c (plugin_object_p): Return a bfd_cleanup.
315 (plugin_cleanup): New function.
316
317 2020-03-01 H.J. Lu <hongjiu.lu@intel.com>
318
319 PR ld/25618
320 * plugin.c (plugin_object_p): Copy the no_export field to the IR
321 dummy object.
322 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
323 PR ld/25618 tests.
324 * testsuite/ld-plugin/pr25618.d: New file.
325 * testsuite/ld-plugin/pr25618a.cc: Likewise.
326 * testsuite/ld-plugin/pr25618a.h: Likewise.
327 * testsuite/ld-plugin/pr25618b.cc: Likewise.
328 * testsuite/ld-plugin/pr25618b.h: Likewise.
329
330 2020-02-27 Alan Modra <amodra@gmail.com>
331
332 PR 24511
333 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
334 * testsuite/ld-mmix/sec-2.d: Likewise.
335 * testsuite/ld-mmix/sec-3.d: Likewise.
336 * testsuite/ld-mmix/sec-4.d: Likewise.
337 * testsuite/ld-mmix/spec802.d: Likewise.
338 * testsuite/ld-mmix/spec803.d: Likewise.
339 * testsuite/ld-mmix/spec804.d: Likewise.
340 * testsuite/ld-mmix/spec805.d: Likewise.
341 * testsuite/ld-mmix/spec806.d: Likewise.
342 * testsuite/ld-mmix/spec807.d: Likewise.
343 * testsuite/ld-mmix/spec808.d: Likewise.
344
345 2020-02-26 H.J. Lu <hongjiu.lu@intel.com>
346
347 PR ld/25593
348 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
349 * testsuite/ld-plugin/pr25593.d: New file.
350 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
351 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
352 * testsuite/ld-plugin/pr25593b.c: Likewise.
353 * testsuite/ld-plugin/pr25593c.c: Likewise.
354 * testsuite/ld-plugin/pr25593d.c: Likewise.
355 * testsuite/ld-plugin/pr25593e.c: Likewise.
356
357 2020-02-26 Alan Modra <amodra@gmail.com>
358
359 * emultempl/cskyelf.em: Indent labels correctly.
360 * ldfile.c: Likewise.
361 * ldlang.c: Likewise.
362 * plugin.c: Likewise.
363
364 2020-02-26 Alan Modra <amodra@gmail.com>
365
366 PR 25593
367 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
368 (ldelf_after_open): Save state of input_bfds list before loading
369 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
370 Restore input_bfds list.
371 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
372
373 2020-02-24 Nick Clifton <nickc@redhat.com>
374
375 * po/fr.po: Update French translation.
376
377 2020-02-22 Alan Modra <amodra@gmail.com>
378
379 PR 25585
380 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
381 checking.
382
383 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
384
385 PR 25537
386 * emultempl/z80.em: Remove machine compatability checking.
387
388 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
389
390 PR 25517
391 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
392 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
393 * testsuite/ld-z80/arch_r800.d: Likewise.
394 * testsuite/ld-z80/arch_z180.d: Likewise.
395 * testsuite/ld-z80/arch_z80n.d: Likewise.
396 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
397 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
398 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
399 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
400 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
401 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
402 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
403 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
404 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
405 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
406
407 2020-02-19 Alan Modra <amodra@gmail.com>
408
409 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
410
411 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
412
413 PR binutils/25355
414 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
415 * testsuite/ld-plugin/pr25355.c: New file.
416 * testsuite/ld-plugin/pr25355.d: Likewise.
417 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
418 only dump.
419
420 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
421
422 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
423
424 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
425
426 PR 25469
427 * emulparams/elf32z80.sh: Use z80 emulation.
428 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
429 * emultempl/z80elf.em: Delete.
430 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
431 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
432 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
433 * testsuite/ld-unique/unique.s: Likewise.
434 * testsuite/ld-unique/unique_empty.s: Likewise.
435 * testsuite/ld-unique/unique_shared.s: Likewise.
436 * testsuite/ld-unique/unique.d: Updated expected output.
437 * testsuite/ld-z80/arch_z80n.d: New file.
438 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
439 * testsuite/ld-z80/labels.s: Add more labels.
440 * testsuite/ld-z80/relocs.s: Add more reloc tests.
441 * testsuite/ld-z80/relocs_f_z80n.d: New file
442
443 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
444
445 PR ld/25022
446 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
447 ldelf_before_place_orphans.
448
449 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
450
451 PR ld/25022
452 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
453 before_place_orphans_default.
454 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
455 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
456 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
457 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
458 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
459 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
460 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
461 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
462 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
463 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
464 ldelf_before_place_orphans.
465 * ldelf.c (ldelf_before_place_orphans): New.
466 * ldelf.h (ldelf_before_place_orphans): Likewise.
467 * ldemul.c (ldemul_before_place_orphans): Likewise.
468 (before_place_orphans_default): Likewise.
469 * ldemul.h (ldemul_before_place_orphans): Likewise.
470 (before_place_orphans_default): Likewise.
471 (ld_emulation_xfer_struct): Add before_place_orphans.
472 * ldlang.c (lang_process): Call ldemul_before_place_orphans
473 before lang_place_orphans.
474 * testsuite/ld-elf/pr25022.d: New file.
475 * testsuite/ld-elf/pr25022.s: Likewise.
476 * testsuite/ld-elf/pr25022.t: Likewise.
477
478 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
479
480 PR ld/25490
481 * testsuite/ld-elf/pr25490-1.d: New file.
482 * testsuite/ld-elf/pr25490-1.s: Likewise.
483
484 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
485
486 PR ld/24526
487 PR ld/25021
488 PR ld/25490
489 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
490 * testsuite/ld-elf/pr24526.d: New file.
491 * testsuite/ld-elf/pr24526.s: Likewise.
492 * testsuite/ld-elf/pr25021.d: Likewise.
493 * testsuite/ld-elf/pr25021.s: Likewise.
494 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
495 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
496 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
497 * testsuite/ld-elf/pr25490-2.s: Likewise.
498 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
499 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
500 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
501 * testsuite/ld-elf/pr25490-3.s: Likewise.
502 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
503 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
504 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
505 * testsuite/ld-elf/pr25490-4.s: Likewise.
506 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
507 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
508 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
509 * testsuite/ld-elf/pr25490-5.s: Likewise.
510 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
511 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
512 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
513 * testsuite/ld-elf/pr25490-6.s: Likewise.
514
515 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
516
517 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
518 z80 as not supported.
519
520 2020-02-06 Alan Modra <amodra@gmail.com>
521
522 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
523 targets that don't support ifunc rather than ones that do.
524 (contains_irelative_reloc): Match R_PARISC_IPLT.
525 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
526 * testsuite/ld-ifunc/ifunc-23-x86.s,
527 * testsuite/ld-ifunc/ifunc-24-x86.s,
528 * testsuite/ld-ifunc/ifunc-25-x86.s,
529 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
530 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
531 * testsuite/ld-ifunc/ifunc-10-i386.d,
532 * testsuite/ld-ifunc/ifunc-11-i386.d,
533 * testsuite/ld-ifunc/ifunc-12-i386.d,
534 * testsuite/ld-ifunc/ifunc-13-i386.d,
535 * testsuite/ld-ifunc/ifunc-14a-i386.d,
536 * testsuite/ld-ifunc/ifunc-14b-i386.d,
537 * testsuite/ld-ifunc/ifunc-14c-i386.d,
538 * testsuite/ld-ifunc/ifunc-14d-i386.d,
539 * testsuite/ld-ifunc/ifunc-14e-i386.d,
540 * testsuite/ld-ifunc/ifunc-14f-i386.d,
541 * testsuite/ld-ifunc/ifunc-15-i386.d,
542 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
543 * testsuite/ld-ifunc/ifunc-16-i386.d,
544 * testsuite/ld-ifunc/ifunc-17a-i386.d,
545 * testsuite/ld-ifunc/ifunc-17b-i386.d,
546 * testsuite/ld-ifunc/ifunc-18a-i386.d,
547 * testsuite/ld-ifunc/ifunc-18b-i386.d,
548 * testsuite/ld-ifunc/ifunc-19a-i386.d,
549 * testsuite/ld-ifunc/ifunc-19b-i386.d,
550 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
551 * testsuite/ld-ifunc/ifunc-2-i386.d,
552 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
553 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
554 * testsuite/ld-ifunc/ifunc-20-i386.d,
555 * testsuite/ld-ifunc/ifunc-21-i386.d,
556 * testsuite/ld-ifunc/ifunc-22-i386.d,
557 * testsuite/ld-ifunc/ifunc-26.d,
558 * testsuite/ld-ifunc/ifunc-5a-i386.d,
559 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
560 * testsuite/ld-ifunc/ifunc-5b-i386.d,
561 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
562 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
563 * testsuite/ld-ifunc/ifunc-6a-i386.d,
564 * testsuite/ld-ifunc/ifunc-6b-i386.d,
565 * testsuite/ld-ifunc/ifunc-7a-i386.d,
566 * testsuite/ld-ifunc/ifunc-7b-i386.d,
567 * testsuite/ld-ifunc/ifunc-8-i386.d,
568 * testsuite/ld-ifunc/ifunc-9-i386.d,
569 * testsuite/ld-ifunc/pr17154-i386-now.d,
570 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
571
572 2020-02-06 Alan Modra <amodra@gmail.com>
573
574 * testsuite/lib/ld-lib.exp (is_generic): Delete.
575 * testsuite/ld-unique/unique.exp: Exclude tic6x.
576
577 2020-02-06 Alan Modra <amodra@gmail.com>
578
579 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
580 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
581
582 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
583
584 PR gas/25380
585 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
586 directives.
587 * testsuite/ld-i386/tls-gd1.S: Likewise.
588 * testsuite/ld-x86-64/pr21481b.S: Likewise.
589
590 2020-01-30 Jan Beulich <jbeulich@suse.com>
591
592 * ld.texi: Remove space between @option and brace.
593
594 2020-01-29 Alan Modra <amodra@gmail.com>
595
596 PR 25477
597 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
598 correct concat.
599 (ldelf_after_open): Add prefix parameter.
600 * ldelf.h (ldelf_after_open): Update prototype.
601 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
602 to ldelf_after_open.
603 * Makefile.am: Correct z80 dependencies.
604 * Makefile.in: Regenerate.
605
606 2020-01-28 Alan Modra <amodra@gmail.com>
607
608 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
609 in first phase.
610
611 2020-01-27 Alan Modra <amodra@gmail.com>
612
613 * testsuite/ld-elfvers/vers.exp: Replace case statements with
614 switch statements.
615 * testsuite/ld-ifunc/ifunc.exp: Likewise.
616 * testsuite/ld-unique/unique.exp: Likewise.
617
618 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
619 Alan Modra <amodra@gmail.com>
620
621 PR ld/25458
622 * testsuite/ld-elf/pr25458.map: New file.
623 * testsuite/ld-elf/pr25458.rd: Likewise.
624 * testsuite/ld-elf/pr25458a.s: Likewise.
625 * testsuite/ld-elf/pr25458b.s: Likewise.
626 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
627
628 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
629
630 PR ld/25416
631 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
632 compiler support.
633
634 2020-01-22 Alan Modra <amodra@gmail.com>
635
636 * testsuite/ld-powerpc/tlsdesc3.d,
637 * testsuite/ld-powerpc/tlsdesc3.wf,
638 * testsuite/ld-powerpc/tlsdesc4.d,
639 * testsuite/ld-powerpc/tlsdesc4.s,
640 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
641 * testsuite/ld-powerpc/powerpc.exp: Run them.
642
643 2020-01-22 Alan Modra <amodra@gmail.com>
644
645 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
646 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
647 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
648 (params): Init new field.
649 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
650 Document.
651 * testsuite/ld-powerpc/tlsdesc.s,
652 * testsuite/ld-powerpc/tlsdesc.d,
653 * testsuite/ld-powerpc/tlsdesc.wf,
654 * testsuite/ld-powerpc/tlsdesc2.d,
655 * testsuite/ld-powerpc/tlsdesc2.wf,
656 * testsuite/ld-powerpc/tlsexenors.d,
657 * testsuite/ld-powerpc/tlsexenors.r,
658 * testsuite/ld-powerpc/tlsexers.d,
659 * testsuite/ld-powerpc/tlsexers.r,
660 * testsuite/ld-powerpc/tlsexetocnors.d,
661 * testsuite/ld-powerpc/tlsexetocrs.d,
662 * testsuite/ld-powerpc/tlsexetocrs.r,
663 * testsuite/ld-powerpc/tlsopt6.d,
664 * testsuite/ld-powerpc/tlsopt6.wf: New.
665 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
666
667 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
668
669 PR 25417
670 * ldlang.c (ldlang_open_ctf): Fix error message typo.
671 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
672
673 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
674
675 * testsuite/ld-elf/pr23900-1.d: Adjusted.
676
677 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
678
679 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
680
681 2020-01-20 Nick Clifton <nickc@redhat.com>
682
683 * po/pt_BR.po: Updated Brazilian Portuguese translation.
684 * po/uk.po: Updated Ukranian translation.
685
686 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
687
688 PR ld/25416
689 * testsuite/ld-x86-64/pr25416-1.s: New file
690 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
691 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
692 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
693 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
694 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
695 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
696 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
697 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
698 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
699 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
700 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
701 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
702 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
703 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
704 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
705 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
706
707 2020-01-20 Alan Modra <amodra@gmail.com>
708
709 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
710 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
711 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
712 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
713 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
714
715 2020-01-18 Roland McGrath <mcgrathr@google.com>
716
717 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
718 to admit whatever absolute address. The label-relative address is
719 what the test needs to verify.
720
721 2020-01-18 Nick Clifton <nickc@redhat.com>
722
723 * configure: Regenerate.
724 * po/ld.pot: Regenerate.
725
726 2020-01-18 Nick Clifton <nickc@redhat.com>
727
728 Binutils 2.34 branch created.
729
730 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
731
732 * scripttempl/elf32msp430_3.sc: Remove.
733
734 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
735
736 * scripttempl/elf32msp430.sc: Add input section rules for
737 .upper.{text,data,rodata,bss}.
738 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
739 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
740
741 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
742
743 PR 20694
744 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
745
746 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
747
748 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
749 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
750
751 2020-01-15 Alan Modra <amodra@gmail.com>
752
753 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
754 * testsuite/ld-powerpc/funref.s: Align func_tab.
755 * testsuite/ld-powerpc/funref2.s: Likewise.
756 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
757
758 2020-01-14 Lili Cui <lili.cui@intel.com>
759
760 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
761
762 2020-01-13 Alan Modra <amodra@gmail.com>
763
764 * po/BLD-POTFILES.in: Regenerate.
765
766 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
767
768 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
769
770 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
771
772 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
773 emulations.
774 * configure.tgt: Likewise.
775 * Makefile.in: Regenerate.
776 * emulparams/arcelf_prof.sh: Remove file.
777 * emulparams/arclinux_prof.sh: Likewise.
778
779 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
780
781 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
782 located at an arbitrary address. Use DWARF.sc file.
783 * scripttempl/elfarc.sc: Use DWARF.sc file.
784
785 2020-01-07 Alan Modra <amodra@gmail.com>
786
787 * testsuite/ld-mips-elf/eh-frame5.s,
788 * testsuite/ld-mips-elf/ehdr_start-new.s,
789 * testsuite/ld-mips-elf/ehdr_start-o32.s,
790 * testsuite/ld-mips-elf/mips16-call-global-1.s,
791 * testsuite/ld-mips-elf/mips16-intermix-1.s,
792 * testsuite/ld-mips-elf/mips16-pic-1b.s,
793 * testsuite/ld-mips-elf/mips16-pic-4c.s,
794 * testsuite/ld-mips-elf/no-shared-1-n64.s,
795 * testsuite/ld-mips-elf/no-shared-1-o32.s,
796 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
797 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
798 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
799 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
800 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
801 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
802 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
803 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
804 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
805 * testsuite/ld-mips-elf/pie.s,
806 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
807
808 2020-01-06 Nick Clifton <nickc@redhat.com>
809
810 PR 25327
811 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
812 command line when building libcomm1.o and pr13250 tests.
813 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
814
815 2020-01-06 Nick Clifton <nickc@redhat.com>
816
817 PR 25326
818 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
819 command line when building pr19579 binaries.
820
821 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
822
823 * emultempl/pe.em: Add new option --enable-reloc-section.
824 * emultempl/pep.em: Likewise.
825 * ld.texi: Document --enable-reloc-section.
826 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
827 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
828 * pe-dll.h: Add extern declaration of option flag.
829 * pep-dll.c (pe_dll_enable_reloc_section):
830 Add alias define for pep_dll_enable_reloc_section.
831 * pep-dll.h: Add extern declaration of option flag.
832
833 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
834
835 * Makefile.am: Add new target z80-elf
836 * configure.tgt: Likewise.
837 * Makefile.in: Regenerate.
838 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
839 * emulparams/elf32z80.sh: New file.
840 * emultempl/z80elf.em: Likewise.
841 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
842 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
843 * testsuite/ld-scripts/fill16.d: Fix for Z80.
844 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
845 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
846 * testsuite/ld-z80/arch_r800.d: Likewise.
847 * testsuite/ld-z80/arch_z180.d: Likewise.
848 * testsuite/ld-z80/arch_z80.d: Likewise.
849 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
850 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
851 * testsuite/ld-z80/labels.s: Likewise.
852 * testsuite/ld-z80/relocs.s: Likewise.
853 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
854 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
855 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
856 * testsuite/ld-z80/z80.exp: Likewise.
857 * NEWS: Mention the new support.
858
859 2020-01-02 Tamar Christina <tamar.christina@arm.com>
860
861 PR 25210
862 PR 24753
863 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
864 Remove SEC_LINKER_CREATED.
865 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
866 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
867
868 2020-01-01 Alan Modra <amodra@gmail.com>
869
870 Update year range in copyright notice of all files.
871
872 For older changes see ChangeLog-2019
873 \f
874 Copyright (C) 2020 Free Software Foundation, Inc.
875
876 Copying and distribution of this file, with or without modification,
877 are permitted in any medium without royalty provided the copyright
878 notice and this notice are preserved.
879
880 Local Variables:
881 mode: change-log
882 left-margin: 8
883 fill-column: 74
884 version-control: never
885 End: