363685d39c65bffdd932a160da2b5588d9025939
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2020-06-04 Alan Modra <amodra@gmail.com>
2
3 * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
4 * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
5 executable and dynamic executable tests.
6
7 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
8
9 * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
10 * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
11 tests with run_ld_link_exec_tests.
12 * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
13 with run_ld_link_tests.
14 * testsuite/ld-elf/tls.exp: Likewise.
15 * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
16 tests with ld_link.
17 * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
18 * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
19 with run_ld_link_tests.a
20 * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
21 CFLAGS.
22 * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
23 to cflags and cxxflags.
24 * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
25 and CXX.
26 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
27 -fsanitize=undefined.
28 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
29 * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
30 tests with run_cc_link_tests and run_ld_link_tests.
31
32 2020-06-03 Fangrui Song <maskray@google.com>
33 H.J. Lu <hongjiu.lu@intel.com>
34
35 PR ld/25910
36 * NEWS: Mention --export-dynamic-symbol[-list].
37 * ld.texi: Document --export-dynamic-symbol[-list].
38 * ldgram.y: Pass current_dynamic_list_p to
39 lang_append_dynamic_list.
40 * ldlang.c (current_dynamic_list_p): New.
41 (ang_append_dynamic_list): Updated to take a pointer to
42 struct bfd_elf_dynamic_list * argument instead of using
43 link_info.dynamic_list.
44 (lang_append_dynamic_list_cpp_typeinfo): Pass
45 &link_info.dynamic_list to ang_append_dynamic_list.
46 (lang_append_dynamic_list_cpp_new): Likewise.
47 * ldlang.h (current_dynamic_list_p): New.
48 (lang_append_dynamic_list): Add a pointer to
49 struct bfd_elf_dynamic_list * argument.
50 * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
51 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
52 * lexsup.c (ld_options): Add entries for
53 OPTION_EXPORT_DYNAMIC_SYMBOL and
54 OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
55 (parse_args): Handle --export-dynamic-symbol and
56 --export-dynamic-symbol-list.
57 * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
58 * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
59 * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
60 * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
61 * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
62 * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
63 * testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
64 * testsuite/ld-dynamic/export-dynamic-symbol.s: New.
65 * testsuite/ld-dynamic/foo-bar.list: New.
66 * testsuite/ld-dynamic/foo.list: New.
67 * testsuite/ld-dynamic/foo.s: New.
68 * testsuite/ld-dynamic/fstar.list: New.
69 * testsuite/ld-elf/dlempty.list: New.
70 * testsuite/ld-elf/shared.exp: Add tests for
71 --export-dynamic-symbol and --export-dynamic-symbol-list.
72
73 2020-06-03 Jan Beulich <jbeulich@suse.com>
74
75 * testsuite/ld-elf/linux-x86.exp: Make copied source files
76 writeable.
77
78 2020-05-28 Nick Clifton <nickc@redhat.com>
79
80 PR 26047
81 * ldelf.c (ldelf_after_open): Fail if attempting to link one
82 executable into another. Ensure that the test is made for all
83 forms of linking.
84
85 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
86
87 * NEWS: Mention --enable-textrel-check=yes is default for
88 Linux/x86 targets.
89 * configure.tgt (ac_default_ld_textrel_check): Set to yes if
90 unset for Linux/x86 targets.
91
92 2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
93
94 PR ld/20824
95 * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
96 * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
97 (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
98 (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
99 * ldmain.c (main): Initialize link_info.textrel_check to
100 DEFAULT_LD_TEXTREL_CHECK.
101 * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
102 * config.in: Regenerated.
103 * configure: Likewise.
104
105 2020-05-28 Nick Clifton <nickc@redhat.com>
106
107 * lexsup.c (parse_args): Generate an error if a name is not
108 provided to the -Map option.
109 (ld_options): Mention that the -Map option supports a directory
110 name as an argument.
111 * NEWS: Remove mention of support for an empty string as an
112 argument to -Map.
113 * ld.texi: Likewise.
114
115 2020-05-27 Hans-Peter Nilsson <hp@axis.com>
116
117 PR ld/22909
118 * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
119
120 2020-05-27 Rasmus Villemoes <rv@rasmusvillemoes.dk>
121 Nick Clifton <nickc@redhat.com>
122
123 * lexsup.c (parse_args): If the map filename is defined but empty
124 create a name based upon the output file name. If the name is
125 defined but refers to a directory create a file inside the
126 directory based on the output file name.
127 * ld.texi: Document the new feature.
128 * testsuite/ld-script/map-address.exp: Add test of new feature.
129 * NEWS: Mention the new feature.
130
131 2020-05-27 H.J. Lu <hongjiu.lu@intel.com>
132
133 PR ld/22909
134 * NEWS: Mention --warn-textrel.
135 * ld.texi: Update -z text/notext/textoff. Add --warn-textrel.
136 Remove --warn-shared-textrel.
137 * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
138 OPTION_WARN_TEXTREL.
139 * lexsup.c (ld_options): Add --warn-textrel. Obsolete
140 --warn-shared-textrel.
141 (parse_args): Updated.
142 (elf_shlib_list_options): Check link_info.textrel_check.
143 * emultempl/elf.em: Updated.
144 * testsuite/ld-elf/pr19539.d: Replace -z notext with
145 --warn-textrel. Expect a warning.
146 * testsuite/ld-i386/warn1.d: Update expected warning.
147
148 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
149
150 * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
151 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
152 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
153
154 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
155
156 * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
157
158 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
159
160 * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
161 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
162 * testsuite/ld-elf/pr19539.d: Likewise.
163 * testsuite/ld-elfvers/vers.exp: Likewise.
164 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
165 * testsuite/ld-i386/i386.exp: Likewise.
166 * testsuite/ld-i386/nogot1.d: Likewise.
167 * testsuite/ld-i386/pr19539.d: Likewise.
168 * testsuite/ld-i386/pr19636-2a.d: Likewise.
169 * testsuite/ld-i386/pr19636-2b.d: Likewise.
170 * testsuite/ld-i386/pr19636-2c.d: Likewise.
171 * testsuite/ld-i386/pr19636-2d.d: Likewise.
172 * testsuite/ld-i386/pr19636-2e.d: Likewise.
173 * testsuite/ld-i386/pr19636-3d.d: Likewise.
174 * testsuite/ld-i386/pr19636-3e.d: Likewise.
175 * testsuite/ld-i386/pr19939b.d: Likewise.
176 * testsuite/ld-i386/undefweaka.d: Likewise.
177 * testsuite/ld-i386/undefweakb.d: Likewise.
178 * testsuite/ld-shared/shared.exp: Likewise.
179 * testsuite/ld-size/size.exp: Likewise.
180 * testsuite/ld-unique/unique.exp: Likewise.
181 * testsuite/ld-x86-64/pie1.d: Likewise.
182 * testsuite/ld-x86-64/pr19539a.d: Likewise.
183 * testsuite/ld-x86-64/pr19539b.d: Likewise.
184 * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
185 * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
186 * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
187 * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
188 * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
189 * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
190 * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
191 * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
192 * testsuite/ld-x86-64/pr19939b.d: Likewise.
193 * testsuite/ld-x86-64/x86-64.exp: Likewise.
194
195 2020-05-24 Fangrui Song <maskray@google.com>
196
197 PR ld/26018
198 * lexsup.c (parse_args): Simplify.
199 * testsuite/ld-elf/dl4e.out: New.
200 * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
201
202 2020-05-23 H.J. Lu <hongjiu.lu@intel.com>
203
204 PR ld/26018
205 * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
206 * testsuite/ld-x86-64/x86-64.exp: Likewise.
207 * testsuite/ld-i386/pr26018.d: New file.
208 * testsuite/ld-x86-64/pr26018.d: Likewise.
209 * testsuite/ld-x86-64/pr26018.s: Likewise.
210
211 2020-05-21 Alan Modra <amodra@gmail.com>
212
213 * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
214 * emultempl/elf.em: Likewise.
215 * emultempl/msp430.em: Likewise.
216 * emultempl/pe.em: Likewise.
217 * emultempl/pep.em: Likewise.
218 * emultempl/ppc64elf.em: Likewise.
219 * emultempl/xtensaelf.em: Likewise.
220 * ldelf.c: Likewise.
221 * ldfile.c: Likewise.
222 * ldmain.c: Likewise.
223 * ldmisc.c: Likewise.
224 * lexsup.c: Likewise.
225 * pe-dll.c: Likewise.
226
227 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
228
229 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
230 priv attributes according to the -mpriv-spec option.
231 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
232 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
233 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
234 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
235 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
236 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
237 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
238 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
239 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
240 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
241 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
242
243 2020-05-20 Alan Modra <amodra@gmail.com>
244
245 PR 25993
246 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
247 other_bfd_filename for bfd_set_filename, and test result of
248 bfd_set_filename call. Don't create a new is->filename, simply
249 copy from bfd filename. Free new_name after bfd_set_filename.
250 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
251
252 2020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
253
254 * testsuite/ld-aarch64/aarch64-elf.exp: New test
255 emit-relocs-560.
256 * testsuite/ld-aarch64/emit-relocs-560.d: New file.
257 * testsuite/ld-aarch64/emit-relocs-560.s: New file.
258
259 2020-05-19 Alan Modra <amodra@gmail.com>
260
261 * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
262 rather than accessing bfd->filename directly.
263 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
264 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
265 * emultempl/spuelf.em (embedded_spu_file): Likewise.
266 * ldlang.c (input_statement_is_archive_path, wild_sort),
267 (check_excluded_libs): Likewise.
268 * ldmain.c (add_archive_element): Likewise.
269 * ldmisc.c (vfinfo): Likewise.
270 * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
271 (pe_dll_generate_implib, pe_process_import_defs): Likewise.
272 * plugin.c (plugin_object_p): Likewise.
273
274 2020-05-18 Douglas B Rupp <rupp@adacore.com>
275
276 * ldemul.h (ldemul_print_symbol): New.
277 (ld_emulation_xfer_type) <print_symbol): Likewise.
278 * ldemul.c (ldemul_print_symbol): New.
279 * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
280 (print_one_symbol): Make global and move declaration to ...
281 (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
282 (print_input_section): Likewise
283 * ldlang.h: ... here.
284 * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
285 (ld_emulation_xfer_struct): Use it.
286 * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
287 and default to NULL.
288 * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
289 * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
290 * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
291 * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
292 * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
293 * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
294 * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
295 * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
296 * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
297
298 2020-05-18 Sergei Trofimovich <siarheit@google.com>
299
300 * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
301 in info message.
302
303 2020-05-18 Nick Clifton <nickc@redhat.com>
304
305 * po/sv.po: Update Swedish translation.
306
307 2020-05-18 Nick Clifton <nickc@redhat.com>
308
309 PR 25993
310 * emultempl/pe.em (_after_open): Check for duplicate filename
311 pointers before renaming the dll.
312 * emultempl/pep.em (_after_open): Likewise.
313
314 2020-05-13 Nick Clifton <nickc@redhat.com>
315
316 PR 25979
317 * lexsup.c (elf_shlib_list_options): Include the default value for
318 the hash style in the output text.
319
320 2020-05-11 Alan Modra <amodra@gmail.com>
321
322 * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
323 * testsuite/ld-powerpc/pcrelopt.d: Update.
324
325 2020-05-11 Alan Modra <amodra@gmail.com>
326
327 * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
328 place of -mfuture/-Mfuture.
329 * testsuite/ld-powerpc/notoc2.d: Likewise.
330 * testsuite/ld-powerpc/powerpc.exp: Likewise.
331 * testsuite/ld-powerpc/tlsgd.d: Likewise.
332 * testsuite/ld-powerpc/tlsie.d: Likewise.
333 * testsuite/ld-powerpc/tlsld.d: Likewise.
334
335 2020-05-11 Nick Clifton <nickc@redhat.com>
336
337 * po/es.po: Updated Spanish translation.
338
339 2020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
340
341 PR ld/25665
342 * testsuite/ld-aarch64/farcall-group.s: New large group test.
343 * testsuite/ld-aarch64/farcall-group.d: New test driver.
344 * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
345
346 2020-05-01 Alan Modra <amodra@gmail.com>
347
348 PR 25882
349 * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
350 shared libraries.
351
352 2020-05-01 Alan Modra <amodra@gmail.com>
353
354 * po/BLD-POTFILES.in: Regenerate.
355
356 2020-04-30 Alex Coplan <alex.coplan@arm.com>
357
358 * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
359 * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
360 * testsuite/ld-aarch64/farcall-back.d: Likewise.
361 * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
362
363 2020-04-30 Nick Clifton <nickc@redhat.com>
364
365 * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
366 not support the -shared command line option.
367 * /ld-elf/compressed1c.d: Likewise.
368 * /ld-elf/compressed1e.d: Likewise.
369 * /ld-elf/dynamic1.d: Likewise.
370 * /ld-elf/dynsym1.d: Likewise.
371 * /ld-elf/ehdr_start-shared.d: Likewise.
372 * /ld-elf/exclude3b.d: Likewise.
373 * /ld-elf/global1.d: Likewise.
374 * /ld-elf/hash.d: Likewise.
375 * /ld-elf/local1.d: Likewise.
376 * /ld-elf/mbind1b.d: Likewise.
377 * /ld-elf/now-1.d: Likewise.
378 * /ld-elf/now-2.d: Likewise.
379 * /ld-elf/now-3.d: Likewise.
380 * /ld-elf/now-4.d: Likewise.
381 * /ld-elf/pr12975.d: Likewise.
382 * /ld-elf/pr13177.d: Likewise.
383 * /ld-elf/pr13195.d: Likewise.
384 * /ld-elf/pr16322.d: Likewise.
385 * /ld-elf/pr16498a.d: Likewise.
386 * /ld-elf/pr16498b.d: Likewise.
387 * /ld-elf/pr17615.d: Likewise.
388 * /ld-elf/pr19162.d: Likewise.
389 * /ld-elf/pr19698.d: Likewise.
390 * /ld-elf/pr20513c.d: Likewise.
391 * /ld-elf/pr20513d.d: Likewise.
392 * /ld-elf/pr21389a.d: Likewise.
393 * /ld-elf/pr21389b.d: Likewise.
394 * /ld-elf/pr21389c.d: Likewise.
395 * /ld-elf/pr21562a.d: Likewise.
396 * /ld-elf/pr21562b.d: Likewise.
397 * /ld-elf/pr21562c.d: Likewise.
398 * /ld-elf/pr21562d.d: Likewise.
399 * /ld-elf/pr21562e.d: Likewise.
400 * /ld-elf/pr21562f.d: Likewise.
401 * /ld-elf/pr21562g.d: Likewise.
402 * /ld-elf/pr21562h.d: Likewise.
403 * /ld-elf/pr21562i.d: Likewise.
404 * /ld-elf/pr21562j.d: Likewise.
405 * /ld-elf/pr21562k.d: Likewise.
406 * /ld-elf/pr21562l.d: Likewise.
407 * /ld-elf/pr21562m.d: Likewise.
408 * /ld-elf/pr21562n.d: Likewise.
409 * /ld-elf/pr21903a.d: Likewise.
410 * /ld-elf/pr21903b.d: Likewise.
411 * /ld-elf/pr22269b.d: Likewise.
412 * /ld-elf/pr22393-1a.d: Likewise.
413 * /ld-elf/pr22393-1b.d: Likewise.
414 * /ld-elf/pr23658-1c.d: Likewise.
415 * /ld-elf/pr25708.d: Likewise.
416 * /ld-elf/rpath-1.d: Likewise.
417 * /ld-elf/rpath-2.d: Likewise.
418 * /ld-elf/runpath-1.d: Likewise.
419 * /ld-elf/runpath-2.d: Likewise.
420 * /ld-elf/sizeofb.d: Likewise.
421 * /ld-elf/startofb.d: Likewise.
422 * /ld-elf/strtab.d: Likewise.
423 * /ld-elf/textaddr2.d: Likewise.
424 * /ld-elf/textaddr5.d: Likewise.
425 * /ld-elf/textaddr6.d: Likewise.
426 * /ld-elf/unknown2.d: Likewise.
427 * /ld-undefined/entry-3.d: Likewise.
428 * /ld-undefined/entry-4.d: Likewise.
429 * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
430 the -pie option.
431 * /ld-elf/pie.d: Likewise.
432 * /ld-elf/pr19539.d: Likewise.
433 * /ld-elf/pr21903d.d: Likewise.
434 * /ld-elf/pr22269a.d: Likewise.
435 * /ld-elf/pr22393-1c.d: Likewise.
436 * /ld-elf/pr22393-1d.d: Likewise.
437 * /ld-elf/pr22423.d: Likewise.
438 * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
439 * /ld-elf/loadaddr2.d: Likewise.
440 * /ld-elf/pr22393-1e.d: Likewise.
441 * /ld-elf/pr22393-1f.d: Likewise.
442 * /ld-elf/textaddr1.d: Likewise.
443 * /ld-elf/textaddr4.d: Likewise.
444
445 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
446
447 * emulparams/elf32rx_linux.sh: New rx-linux emulation.
448 * emultempl/rxlinux.em: New.
449 * configure.tgt: Add rx-linux.
450 * Makefile.am: Add eelf32rx_linux.c
451 * Makefile.in: Regenerate.
452
453 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
454
455 * testsuite/ld-xtensa/relax-diff1.d: New test definition.
456 * testsuite/ld-xtensa/relax-diff1.s: New test source.
457 * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
458 * testsuite/ld-xtensa/relax-ndiff.s: New test source.
459 * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
460 (relax-ndiff): New tests.
461
462 2020-04-29 Stephen Casner <casner@acm.org>
463
464 PR 25829
465 * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
466 LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
467 * testsuite/ld-scripts/default-script1.d: No longer have to skip
468 test for those targets.
469 * testsuite/ld-scripts/default-script2.d: Likewise.
470 * testsuite/ld-scripts/default-script3.d: Likewise.
471 * testsuite/ld-scripts/default-script4.d: Likewise.
472
473 2020-04-27 Tamar Christina <tamar.christina@arm.com>
474
475 * pe-dll.c (pe_detail_list): Add pe-bigobj-i386.
476
477 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
478
479 PR ld/25861
480 * testsuite/ld-xtensa/relax-loc.d: New test definition.
481 * testsuite/ld-xtensa/relax-loc.s: New test source.
482 * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
483
484 2020-04-22 Fangrui Song <maskray@google.com>
485
486 PR ld/25806
487 * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
488 * ldlang.c (current_input_file): New.
489 (ldirname): New.
490 (new_afile): Add from_filename parameter. Set extra_search_path.
491 (lang_add_input_file): Pass current_input_file to new_afile.
492 (load_symbols): Set current_input_file.
493 * ldfile.c (ldfile_open_file): If extra_search_path has been set
494 then scan it for the file that needs to be opened.
495 * ld.texi: Document the new behaviour.
496 * NEWS: Mention the new feature.
497
498 2020-04-22 Alan Modra <amodra@gmail.com>
499
500 * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
501 * testsuite/ld-scripts/default-script2.d: Likewise.
502 * testsuite/ld-scripts/default-script3.d: Likewise.
503 * testsuite/ld-scripts/default-script4.d: Likewise.
504
505 2020-04-21 Stephen Casner <casner@acm.org>
506
507 PR 25829
508 * testsuite/ld-scripts/script.exp (check_script)
509 (extract_symbol_test): Make test addresses fit in 16 bits.
510 * testsuite/ld-scripts/memory.t: Likewise.
511 * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
512 * testsuite/ld-scripts/default-script.t (_START): Likewise.
513 * testsuite/ld-scripts/default-script1.d: Likewise.
514 * testsuite/ld-scripts/default-script2.d: Likewise.
515 * testsuite/ld-scripts/default-script3.d: Likewise.
516 * testsuite/ld-scripts/default-script4.d: Likewise.
517 * testsuite/ld-scripts/empty-address-1.t: Likewise.
518 * testsuite/ld-scripts/empty-address-1.d: Likewise.
519 * testsuite/ld-scripts/empty-address-2a.d: Likewise.
520 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
521 * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
522 fit target address size.
523 * testsuite/ld-scripts/empty-address-1.s: Likewise.
524 * testsuite/ld-scripts/empty-address-2.s: Likewise.
525
526 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
527
528 PR ld/25849
529 * ldelfgen.c (ldelf_map_segments): Call
530 elf_backend_strip_zero_sized_dynamic_sections.
531 * testsuite/ld-alpha/tlsbinr.rd: Updated.
532
533 2020-04-20 Alan Modra <amodra@gmail.com>
534
535 * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
536 * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
537 * testsuite/ld-powerpc/tlsopt6.d: Likewise.
538
539 2020-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
540
541 * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
542 * testsuite/ld-elf/warn2.d: Likewise.
543
544 2020-04-18 H.J. Lu <hongjiu.lu@intel.com>
545
546 * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
547 alpha target.
548 * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
549
550 2020-04-16 Stephen Casner <casner@acm.org>
551
552 PR 18963
553 * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
554 16-bit address space.
555 * testsuite/ld-scripts/pr18963.d: Likewise.
556
557 2020-04-17 Juan Manuel Guerrero <juan.guerrero@gmx.de>
558 Jan W. Jagersma <jwjagersma@gmail.com>
559
560 * scripttempl/i386go32.sc: Provide symbol _environ. Link in
561 .ctors and .dtors. Discard LTO sections.
562
563 2020-04-17 Nick Clifton <nickc@redhat.com>
564
565 * testsuite/config/default.exp: If not already set then create the
566 CCC_OVERRIDE_OPTIONS environment variable to help when running the
567 testsuite with clang.
568 * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
569 * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
570 were built before attempting to copy them.
571
572 2020-04-15 Fangrui Song <maskray@google.com>
573
574 PR binutils/24613
575 * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
576 RM_GENERATE_ERROR to RM_DIAGNOSE.
577 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
578 RM_GENERATE_ERROR to RM_DIAGNOSE.
579 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
580
581 2020-04-14 Stephen Casner <casner@acm.org>
582
583 PR ld/25677
584 * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
585 (EXTRA_EM_FILE): New, add emulation file pdp11.
586 * scripttempl/pdp11.sc: New, derived from aout.sc without
587 irrelevant input sections.
588 * emultempl/pdp11.em (_add_options, _handle_option)
589 (_list_options): New. Add options -z, --imagic for pdp11-aout.
590 (_before_parse): Make --omagic be default instead of --nmagic.
591 (_get_script): Modify special-case linker script for --imagic.
592 * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
593 * ld.texi (Options): Add documentation of PDP11-specific options.
594 (Options): Fix unrelated typo to --no-compact-branches.
595 * gen-doc.texi: @set PDP11.
596 * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
597 * testsuite/ld-pdp11/sections.s: New, source for options tests.
598 * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
599 * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
600 * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
601 * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
602
603 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
604
605 PR binutils/25707
606 * testsuite/ld-arm/armthumb-lib.sym: Updated.
607 * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
608 * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
609 * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
610 * testsuite/ld-arm/fdpic-main.sym: Likewise.
611 * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
612 * testsuite/ld-arm/fdpic-shared.sym: Likewise.
613 * testsuite/ld-arm/mixed-app.sym: Likewise.
614 * testsuite/ld-arm/mixed-lib.sym: Likewise.
615 * testsuite/ld-arm/preempt-app.sym: Likewise.
616 * testsuite/ld-elf/hash.d: Likewise.
617 * testsuite/ld-elf/pr13195.d: Likewise.
618 * testsuite/ld-elfvsb/hidden2.d: Likewise.
619 * testsuite/ld-mips-elf/hash2.d: Likewise.
620
621 2020-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
622
623 * testsuite/ld-shared/shared.exp: Remove dangling comments.
624 xfail shared non PIC tests on Solaris.
625
626 2020-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
627
628 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
629
630 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
631
632 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
633 nopie with available.
634
635 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
636
637 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
638 Set to "-fcf-protection=none" if target compiler supports it.
639 * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
640 CC and CXX.
641 * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
642 to PLT BND tests.
643
644 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
645
646 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
647 -I../bfd.
648 (check_pr25749b): Likewise.
649
650 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
651
652 * testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
653 notarget.
654 * ifunc-11-i386.d: Likewise.
655 * ifunc-12-i386.d: Likewise.
656 * ifunc-13-i386.d: Likewise.
657 * ifunc-14a-i386.d: Likewise.
658 * ifunc-14b-i386.d: Likewise.
659 * ifunc-14c-i386.d: Likewise.
660 * ifunc-14d-i386.d: Likewise.
661 * ifunc-14e-i386.d: Likewise.
662 * ifunc-14f-i386.d: Likewise.
663 * ifunc-15-i386.d: Likewise.
664 * ifunc-16-i386-now.d: Likewise.
665 * ifunc-16-i386.d: Likewise.
666 * ifunc-17a-i386.d: Likewise.
667 * ifunc-17b-i386.d: Likewise.
668 * ifunc-18a-i386.d: Likewise.
669 * ifunc-18b-i386.d: Likewise.
670 * ifunc-19a-i386.d: Likewise.
671 * ifunc-19b-i386.d: Likewise.
672 * ifunc-2-i386-now.d: Likewise.
673 * ifunc-2-i386.d: Likewise.
674 * ifunc-2-local-i386-now.d: Likewise.
675 * ifunc-2-local-i386.d: Likewise.
676 * ifunc-20-i386.d: Likewise.
677 * ifunc-21-i386.d: Likewise.
678 * ifunc-22-i386.d: Likewise.
679 * ifunc-5a-i386.d: Likewise.
680 * ifunc-5a-local-i386.d: Likewise.
681 * ifunc-5b-i386.d: Likewise.
682 * ifunc-5b-local-i386.d: Likewise.
683 * ifunc-5r-local-i386.d: Likewise.
684 * ifunc-6a-i386.d: Likewise.
685 * ifunc-6b-i386.d: Likewise.
686 * ifunc-7a-i386.d: Likewise.
687 * ifunc-7b-i386.d: Likewise.
688 * ifunc-8-i386.d: Likewise.
689 * ifunc-9-i386.d: Likewise.
690 * pr17154-i386-now.d: Likewise.
691 * pr17154-i386.d: Likewise.
692
693 * ifunc-23a-x86.d: Remove notarget.
694 * ifunc-24a-x86.d: Likewise.
695 * ifunc-25a-x86.d: Likewise.
696
697 2020-04-02 Nick Clifton <nickc@redhat.com>
698
699 PR ld/25747
700 * ldfile.c (ldfile_open_file): Fix typo in warning message.
701
702 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
703
704 PR ld/25749
705 PR ld/25754
706 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
707 * testsuite/ld-elf/pr25749-1.c: New file.
708 * testsuite/ld-elf/pr25749-1a.c: Likewise.
709 * testsuite/ld-elf/pr25749-1b.c: Likewise.
710 * testsuite/ld-elf/pr25749-1b.err: Likewise.
711 * testsuite/ld-elf/pr25749-1c.c: Likewise.
712 * testsuite/ld-elf/pr25749-1d.c: Likewise.
713 * testsuite/ld-elf/pr25749-2.c: Likewise.
714 * testsuite/ld-elf/pr25749-2a.s: Likewise.
715 * testsuite/ld-elf/pr25749-2b.s: Likewise.
716 * testsuite/ld-elf/pr25749.rd: Likewise.
717 * testsuite/ld-elf/pr25754-1a.c: Likewise.
718 * testsuite/ld-elf/pr25754-1b.s: Likewise.
719 * testsuite/ld-elf/pr25754-2a.c: Likewise.
720 * testsuite/ld-elf/pr25754-2b.err: Likewise.
721 * testsuite/ld-elf/pr25754-2b.s: Likewise.
722 * testsuite/ld-elf/pr25754-3a.c: Likewise.
723 * testsuite/ld-elf/pr25754-3b.s: Likewise.
724 * testsuite/ld-elf/pr25754-4a.c: Likewise.
725 * testsuite/ld-elf/pr25754-4b.s: Likewise.
726 * testsuite/ld-elf/pr25754-4c.s: Likewise.
727 * testsuite/ld-elf/pr25754-5a.c: Likewise.
728 * testsuite/ld-elf/pr25754-5b.s: Likewise.
729 * testsuite/ld-elf/pr25754-5c.s: Likewise.
730 * testsuite/ld-elf/pr25754-6a.c: Likewise.
731 * testsuite/ld-elf/pr25754-6b.s: Likewise.
732 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
733
734 2020-04-01 Tamar Christina <tamar.christina@arm.com>
735
736 PR ld/16017
737 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
738
739 2020-04-01 Nick Clifton <nickc@redhat.com>
740
741 PR ld/25747
742 * ldfile.c (ldfile_open_file): If a search for a library fails,
743 but there is a file that would match if it had a "lib" prefix to
744 its name, then tell the user.
745
746 2020-04-01 Tamar Christina <tamar.christina@arm.com>
747
748 PR ld/16017
749 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
750 * testsuite/ld-arm/thumb-plt-got.d: New test.
751
752 2020-04-01 Tamar Christina <tamar.christina@arm.com>
753
754 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
755 * testsuite/ld-arm/thumb-plt.d: New test.
756 * testsuite/ld-arm/thumb-plt.s: New test.
757
758 2020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
759
760 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
761
762 2020-03-30 Nick Clifton <nickc@redhat.com>
763
764 PR binutils/25662
765 * emultempl/pe.em (after_open): Replace initialisation of the
766 insert_timestamp field in the pe_data structure with an
767 initialisation of the timestamp field.
768 * emultemp/pep.em: Likewise.
769 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
770 structure instead of the insert_timestamp field.
771
772 2020-03-28 H.J. Lu <hongjiu.lu@intel.com>
773
774 PR 25732
775 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
776 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
777 Solaris.
778
779 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
780
781 PR 25732
782 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
783
784 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
785
786 PR 25732
787 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
788 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
789 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
790
791 2020-03-25 Alan Modra <amodra@gmail.com>
792
793 * testsuite/ld-elf/compress1c.d: xfail h8300.
794 * testsuite/ld-elf/compressed1c.d: Likewise.
795 * testsuite/ld-elf/compressed1e.d: Likewise.
796 * testsuite/ld-elf/dynamic1.d: Likewise.
797 * testsuite/ld-elf/dynsym1.d: Likewise.
798 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
799 * testsuite/ld-elf/exclude3b.d: Likewise.
800 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
801 * testsuite/ld-elf/global1.d: xfail h8300.
802 * testsuite/ld-elf/hash.d: Likewise.
803 * testsuite/ld-elf/loadaddr1.d: Likewise.
804 * testsuite/ld-elf/loadaddr2.d: Likewise.
805 * testsuite/ld-elf/local1.d: Likewise.
806 * testsuite/ld-elf/mbind1b.d: Likewise.
807 * testsuite/ld-elf/mbind1c.d: Likewise.
808 * testsuite/ld-elf/now-1.d: Likewise.
809 * testsuite/ld-elf/now-2.d: Likewise.
810 * testsuite/ld-elf/now-3.d: Likewise.
811 * testsuite/ld-elf/now-4.d: Likewise.
812 * testsuite/ld-elf/pie.d: Likewise.
813 * testsuite/ld-elf/pr12975.d: Likewise.
814 * testsuite/ld-elf/pr13177.d: Likewise.
815 * testsuite/ld-elf/pr13195.d: Likewise.
816 * testsuite/ld-elf/pr16322.d: Likewise.
817 * testsuite/ld-elf/pr16498a.d: Likewise.
818 * testsuite/ld-elf/pr16498b.d: Likewise.
819 * testsuite/ld-elf/pr17615.d: Likewise.
820 * testsuite/ld-elf/pr19162.d: Likewise.
821 * testsuite/ld-elf/pr19539.d: Likewise.
822 * testsuite/ld-elf/pr19617a.d: Likewise.
823 * testsuite/ld-elf/pr19698.d: Likewise.
824 * testsuite/ld-elf/pr20513c.d: Likewise.
825 * testsuite/ld-elf/pr20513d.d: Likewise.
826 * testsuite/ld-elf/pr21389a.d: Likewise.
827 * testsuite/ld-elf/pr21389b.d: Likewise.
828 * testsuite/ld-elf/pr21389c.d: Likewise.
829 * testsuite/ld-elf/pr21562a.d: Likewise.
830 * testsuite/ld-elf/pr21562b.d: Likewise.
831 * testsuite/ld-elf/pr21562c.d: Likewise.
832 * testsuite/ld-elf/pr21562d.d: Likewise.
833 * testsuite/ld-elf/pr21562e.d: Likewise.
834 * testsuite/ld-elf/pr21562f.d: Likewise.
835 * testsuite/ld-elf/pr21562g.d: Likewise.
836 * testsuite/ld-elf/pr21562h.d: Likewise.
837 * testsuite/ld-elf/pr21562i.d: Likewise.
838 * testsuite/ld-elf/pr21562j.d: Likewise.
839 * testsuite/ld-elf/pr21562k.d: Likewise.
840 * testsuite/ld-elf/pr21562l.d: Likewise.
841 * testsuite/ld-elf/pr21562m.d: Likewise.
842 * testsuite/ld-elf/pr21562n.d: Likewise.
843 * testsuite/ld-elf/pr21903a.d: Likewise.
844 * testsuite/ld-elf/pr21903b.d: Likewise.
845 * testsuite/ld-elf/pr21903d.d: Likewise.
846 * testsuite/ld-elf/pr22269a.d: Likewise.
847 * testsuite/ld-elf/pr22269b.d: Likewise.
848 * testsuite/ld-elf/pr22393-1a.d: Likewise.
849 * testsuite/ld-elf/pr22393-1b.d: Likewise.
850 * testsuite/ld-elf/pr22393-1c.d: Likewise.
851 * testsuite/ld-elf/pr22393-1d.d: Likewise.
852 * testsuite/ld-elf/pr22393-1e.d: Likewise.
853 * testsuite/ld-elf/pr22393-1f.d: Likewise.
854 * testsuite/ld-elf/pr22423.d: Likewise.
855 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
856 and xc16x.
857 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
858 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
859 * testsuite/ld-elf/rpath-1.d: xfail h8300.
860 * testsuite/ld-elf/rpath-2.d: Likewise.
861 * testsuite/ld-elf/runpath-1.d: Likewise.
862 * testsuite/ld-elf/runpath-2.d: Likewise.
863 * testsuite/ld-elf/sizeofb.d: Likewise.
864 * testsuite/ld-elf/startofb.d: Likewise.
865 * testsuite/ld-elf/strtab.d: Likewise.
866 * testsuite/ld-elf/textaddr1.d: Likewise.
867 * testsuite/ld-elf/textaddr2.d: Likewise.
868 * testsuite/ld-elf/textaddr4.d: Likewise.
869 * testsuite/ld-elf/textaddr5.d: Likewise.
870 * testsuite/ld-elf/textaddr6.d: Likewise.
871 * testsuite/ld-elf/unknown2.d: Likewise.
872 * testsuite/ld-undefined/entry-3.d: Likewise.
873 * testsuite/ld-undefined/entry-4.d: Likewise.
874 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
875 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
876 file format match.
877 * testsuite/ld-h8300/relax-2.d: Likewise.
878 * testsuite/ld-h8300/relax-3.d: Likewise.
879 * testsuite/ld-h8300/relax-4.d: Likewise.
880 * testsuite/ld-h8300/relax-5.d: Likewise.
881 * testsuite/ld-h8300/relax-6.d: Likewise.
882 * testsuite/ld-h8300/relax-7.d: Likewise.
883 * testsuite/ld-h8300/relax.d: Relax file format match.
884
885 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
886
887 PR binutils/25708
888 * testsuite/ld-elf/pr25708.d: New file.
889
890 2020-03-23 Alan Modra <amodra@gmail.com>
891
892 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
893 Include ei386aout dep file.
894 * Makefile.in: Regenerate.
895 * po/BLD-POTFILES.in: Regenerate.
896
897 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
898
899 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
900 test only for GCC 10 or newer.
901
902 2020-03-20 Alan Modra <amodra@gmail.com>
903
904 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
905 clear new fields.
906 * testplug2.c (parse_symdefstr): Likewise.
907 * testplug3.c (parse_symdefstr): Likewise.
908 * testplug4.c (parse_symdefstr): Likewise.
909
910 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
911
912 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
913 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
914
915 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
916
917 * emultempl/xtensaelf.em: Emit a fatal error message
918 instead of calling abort.
919 * ldlang.c: Likewise.
920
921 2020-03-14 Alan Modra <amodra@gmail.com>
922
923 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
924 targets. Don't skip xtensa, xfail instead.
925
926 2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
927
928 * ldlang.c (lang_add_section): Add support for
929 non_contiguous_regions.
930 (size_input_section): Likewise.
931 (lang_size_sections_1): Likewise.
932 (process_insert_statements): Likewise.
933 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
934 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
935 * lexsup.c (ld_options): Add entries for
936 --enable-non-contiguous-regions and
937 --enable-non-contiguous-regions-warnings.
938 (parse_args): Handle it.
939 * NEWS: Add --enable-non-contiguous-regions and
940 --enable-non-contiguous-regions-warnings.
941 * ld.texi: Add --enable-non-contiguous-regions and
942 --enable-non-contiguous-regions-warnings documentation.
943 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
944 SEC_LINKER_CREATED flag.
945 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
946 Emit an error when --enable-non-contiguous-regions is used.
947 * testsuite/ld-elf/non-contiguous.d: New.
948 * testsuite/ld-elf/non-contiguous.ld: New.
949 * testsuite/ld-elf/non-contiguous.s: New.
950 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
951 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
952 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
953 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
954 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
955 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
956 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
957 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
958 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
959 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
960 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
961 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
962 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
963 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
964 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
965 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
966 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
967 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
968 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
969
970 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
971
972 PR ld/24920
973 * emulparams/elf32_x86_64.sh: Use static.sh.
974 * emulparams/elf_i386.sh: Likewise.
975 * emulparams/elf_x86_64.sh: Likewise.
976 * emulparams/static.sh: New file.
977 * emultempl/elf-x86.em: Include "ldlex.h".
978 * testsuite/ld-elf/pr24920.err: New file.
979 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
980
981 2020-03-13 Christian Eggers <ceggers@gmx.de>
982
983 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
984
985 2020-03-11 Alan Modra <amodra@gmail.com>
986
987 * ldelf.c (elf_orphan_compatible): Return false when two sections
988 have differing SHF_MASKPROC or SHF_MASKOS flags.
989
990 2020-03-05 Alan Modra <amodra@gmail.com>
991
992 PR 25570
993 * ldlang.c (lang_size_sections_1): Don't report changes on
994 second and subsequent iterations that make no change in
995 alignment from that already reported.
996
997 2020-03-05 Alan Modra <amodra@gmail.com>
998
999 PR 25570
1000 * ldlang.c (lang_sizing_iteration): New static var.
1001 (lang_size_sections_1): Warn about no memory region only on first
1002 iteration. Warn about changing start address on first iteration
1003 then any delta from that on subsequent iterations. Report a signed
1004 delta.
1005 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
1006
1007 2020-03-03 Nick Clifton <nickc@redhat.com>
1008
1009 PR 25588
1010 * ld.texi (Options): Update the description of the --rpath-link
1011 option.
1012
1013 2020-03-02 Alan Modra <amodra@gmail.com>
1014
1015 * plugin.c (plugin_object_p): Return a bfd_cleanup.
1016 (plugin_cleanup): New function.
1017
1018 2020-03-01 H.J. Lu <hongjiu.lu@intel.com>
1019
1020 PR ld/25618
1021 * plugin.c (plugin_object_p): Copy the no_export field to the IR
1022 dummy object.
1023 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
1024 PR ld/25618 tests.
1025 * testsuite/ld-plugin/pr25618.d: New file.
1026 * testsuite/ld-plugin/pr25618a.cc: Likewise.
1027 * testsuite/ld-plugin/pr25618a.h: Likewise.
1028 * testsuite/ld-plugin/pr25618b.cc: Likewise.
1029 * testsuite/ld-plugin/pr25618b.h: Likewise.
1030
1031 2020-02-27 Alan Modra <amodra@gmail.com>
1032
1033 PR 24511
1034 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
1035 * testsuite/ld-mmix/sec-2.d: Likewise.
1036 * testsuite/ld-mmix/sec-3.d: Likewise.
1037 * testsuite/ld-mmix/sec-4.d: Likewise.
1038 * testsuite/ld-mmix/spec802.d: Likewise.
1039 * testsuite/ld-mmix/spec803.d: Likewise.
1040 * testsuite/ld-mmix/spec804.d: Likewise.
1041 * testsuite/ld-mmix/spec805.d: Likewise.
1042 * testsuite/ld-mmix/spec806.d: Likewise.
1043 * testsuite/ld-mmix/spec807.d: Likewise.
1044 * testsuite/ld-mmix/spec808.d: Likewise.
1045
1046 2020-02-26 H.J. Lu <hongjiu.lu@intel.com>
1047
1048 PR ld/25593
1049 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
1050 * testsuite/ld-plugin/pr25593.d: New file.
1051 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
1052 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
1053 * testsuite/ld-plugin/pr25593b.c: Likewise.
1054 * testsuite/ld-plugin/pr25593c.c: Likewise.
1055 * testsuite/ld-plugin/pr25593d.c: Likewise.
1056 * testsuite/ld-plugin/pr25593e.c: Likewise.
1057
1058 2020-02-26 Alan Modra <amodra@gmail.com>
1059
1060 * emultempl/cskyelf.em: Indent labels correctly.
1061 * ldfile.c: Likewise.
1062 * ldlang.c: Likewise.
1063 * plugin.c: Likewise.
1064
1065 2020-02-26 Alan Modra <amodra@gmail.com>
1066
1067 PR 25593
1068 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
1069 (ldelf_after_open): Save state of input_bfds list before loading
1070 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
1071 Restore input_bfds list.
1072 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
1073
1074 2020-02-24 Nick Clifton <nickc@redhat.com>
1075
1076 * po/fr.po: Update French translation.
1077
1078 2020-02-22 Alan Modra <amodra@gmail.com>
1079
1080 PR 25585
1081 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
1082 checking.
1083
1084 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1085
1086 PR 25537
1087 * emultempl/z80.em: Remove machine compatability checking.
1088
1089 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1090
1091 PR 25517
1092 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
1093 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1094 * testsuite/ld-z80/arch_r800.d: Likewise.
1095 * testsuite/ld-z80/arch_z180.d: Likewise.
1096 * testsuite/ld-z80/arch_z80n.d: Likewise.
1097 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1098 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
1099 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
1100 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
1101 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
1102 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1103 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1104 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
1105 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1106 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
1107
1108 2020-02-19 Alan Modra <amodra@gmail.com>
1109
1110 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
1111
1112 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
1113
1114 PR binutils/25355
1115 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
1116 * testsuite/ld-plugin/pr25355.c: New file.
1117 * testsuite/ld-plugin/pr25355.d: Likewise.
1118 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
1119 only dump.
1120
1121 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1122
1123 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
1124
1125 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1126
1127 PR 25469
1128 * emulparams/elf32z80.sh: Use z80 emulation.
1129 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
1130 * emultempl/z80elf.em: Delete.
1131 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
1132 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
1133 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
1134 * testsuite/ld-unique/unique.s: Likewise.
1135 * testsuite/ld-unique/unique_empty.s: Likewise.
1136 * testsuite/ld-unique/unique_shared.s: Likewise.
1137 * testsuite/ld-unique/unique.d: Updated expected output.
1138 * testsuite/ld-z80/arch_z80n.d: New file.
1139 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
1140 * testsuite/ld-z80/labels.s: Add more labels.
1141 * testsuite/ld-z80/relocs.s: Add more reloc tests.
1142 * testsuite/ld-z80/relocs_f_z80n.d: New file
1143
1144 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
1145
1146 PR ld/25022
1147 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
1148 ldelf_before_place_orphans.
1149
1150 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1151
1152 PR ld/25022
1153 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
1154 before_place_orphans_default.
1155 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1156 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
1157 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
1158 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
1159 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
1160 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
1161 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
1162 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
1163 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
1164 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
1165 ldelf_before_place_orphans.
1166 * ldelf.c (ldelf_before_place_orphans): New.
1167 * ldelf.h (ldelf_before_place_orphans): Likewise.
1168 * ldemul.c (ldemul_before_place_orphans): Likewise.
1169 (before_place_orphans_default): Likewise.
1170 * ldemul.h (ldemul_before_place_orphans): Likewise.
1171 (before_place_orphans_default): Likewise.
1172 (ld_emulation_xfer_struct): Add before_place_orphans.
1173 * ldlang.c (lang_process): Call ldemul_before_place_orphans
1174 before lang_place_orphans.
1175 * testsuite/ld-elf/pr25022.d: New file.
1176 * testsuite/ld-elf/pr25022.s: Likewise.
1177 * testsuite/ld-elf/pr25022.t: Likewise.
1178
1179 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1180
1181 PR ld/25490
1182 * testsuite/ld-elf/pr25490-1.d: New file.
1183 * testsuite/ld-elf/pr25490-1.s: Likewise.
1184
1185 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1186
1187 PR ld/24526
1188 PR ld/25021
1189 PR ld/25490
1190 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
1191 * testsuite/ld-elf/pr24526.d: New file.
1192 * testsuite/ld-elf/pr24526.s: Likewise.
1193 * testsuite/ld-elf/pr25021.d: Likewise.
1194 * testsuite/ld-elf/pr25021.s: Likewise.
1195 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
1196 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
1197 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
1198 * testsuite/ld-elf/pr25490-2.s: Likewise.
1199 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
1200 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
1201 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
1202 * testsuite/ld-elf/pr25490-3.s: Likewise.
1203 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
1204 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
1205 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
1206 * testsuite/ld-elf/pr25490-4.s: Likewise.
1207 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
1208 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
1209 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
1210 * testsuite/ld-elf/pr25490-5.s: Likewise.
1211 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
1212 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
1213 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
1214 * testsuite/ld-elf/pr25490-6.s: Likewise.
1215
1216 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1217
1218 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
1219 z80 as not supported.
1220
1221 2020-02-06 Alan Modra <amodra@gmail.com>
1222
1223 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
1224 targets that don't support ifunc rather than ones that do.
1225 (contains_irelative_reloc): Match R_PARISC_IPLT.
1226 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
1227 * testsuite/ld-ifunc/ifunc-23-x86.s,
1228 * testsuite/ld-ifunc/ifunc-24-x86.s,
1229 * testsuite/ld-ifunc/ifunc-25-x86.s,
1230 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
1231 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
1232 * testsuite/ld-ifunc/ifunc-10-i386.d,
1233 * testsuite/ld-ifunc/ifunc-11-i386.d,
1234 * testsuite/ld-ifunc/ifunc-12-i386.d,
1235 * testsuite/ld-ifunc/ifunc-13-i386.d,
1236 * testsuite/ld-ifunc/ifunc-14a-i386.d,
1237 * testsuite/ld-ifunc/ifunc-14b-i386.d,
1238 * testsuite/ld-ifunc/ifunc-14c-i386.d,
1239 * testsuite/ld-ifunc/ifunc-14d-i386.d,
1240 * testsuite/ld-ifunc/ifunc-14e-i386.d,
1241 * testsuite/ld-ifunc/ifunc-14f-i386.d,
1242 * testsuite/ld-ifunc/ifunc-15-i386.d,
1243 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
1244 * testsuite/ld-ifunc/ifunc-16-i386.d,
1245 * testsuite/ld-ifunc/ifunc-17a-i386.d,
1246 * testsuite/ld-ifunc/ifunc-17b-i386.d,
1247 * testsuite/ld-ifunc/ifunc-18a-i386.d,
1248 * testsuite/ld-ifunc/ifunc-18b-i386.d,
1249 * testsuite/ld-ifunc/ifunc-19a-i386.d,
1250 * testsuite/ld-ifunc/ifunc-19b-i386.d,
1251 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
1252 * testsuite/ld-ifunc/ifunc-2-i386.d,
1253 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
1254 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
1255 * testsuite/ld-ifunc/ifunc-20-i386.d,
1256 * testsuite/ld-ifunc/ifunc-21-i386.d,
1257 * testsuite/ld-ifunc/ifunc-22-i386.d,
1258 * testsuite/ld-ifunc/ifunc-26.d,
1259 * testsuite/ld-ifunc/ifunc-5a-i386.d,
1260 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
1261 * testsuite/ld-ifunc/ifunc-5b-i386.d,
1262 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
1263 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
1264 * testsuite/ld-ifunc/ifunc-6a-i386.d,
1265 * testsuite/ld-ifunc/ifunc-6b-i386.d,
1266 * testsuite/ld-ifunc/ifunc-7a-i386.d,
1267 * testsuite/ld-ifunc/ifunc-7b-i386.d,
1268 * testsuite/ld-ifunc/ifunc-8-i386.d,
1269 * testsuite/ld-ifunc/ifunc-9-i386.d,
1270 * testsuite/ld-ifunc/pr17154-i386-now.d,
1271 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
1272
1273 2020-02-06 Alan Modra <amodra@gmail.com>
1274
1275 * testsuite/lib/ld-lib.exp (is_generic): Delete.
1276 * testsuite/ld-unique/unique.exp: Exclude tic6x.
1277
1278 2020-02-06 Alan Modra <amodra@gmail.com>
1279
1280 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
1281 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
1282
1283 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1284
1285 PR gas/25380
1286 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
1287 directives.
1288 * testsuite/ld-i386/tls-gd1.S: Likewise.
1289 * testsuite/ld-x86-64/pr21481b.S: Likewise.
1290
1291 2020-01-30 Jan Beulich <jbeulich@suse.com>
1292
1293 * ld.texi: Remove space between @option and brace.
1294
1295 2020-01-29 Alan Modra <amodra@gmail.com>
1296
1297 PR 25477
1298 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
1299 correct concat.
1300 (ldelf_after_open): Add prefix parameter.
1301 * ldelf.h (ldelf_after_open): Update prototype.
1302 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
1303 to ldelf_after_open.
1304 * Makefile.am: Correct z80 dependencies.
1305 * Makefile.in: Regenerate.
1306
1307 2020-01-28 Alan Modra <amodra@gmail.com>
1308
1309 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
1310 in first phase.
1311
1312 2020-01-27 Alan Modra <amodra@gmail.com>
1313
1314 * testsuite/ld-elfvers/vers.exp: Replace case statements with
1315 switch statements.
1316 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1317 * testsuite/ld-unique/unique.exp: Likewise.
1318
1319 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
1320 Alan Modra <amodra@gmail.com>
1321
1322 PR ld/25458
1323 * testsuite/ld-elf/pr25458.map: New file.
1324 * testsuite/ld-elf/pr25458.rd: Likewise.
1325 * testsuite/ld-elf/pr25458a.s: Likewise.
1326 * testsuite/ld-elf/pr25458b.s: Likewise.
1327 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
1328
1329 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
1330
1331 PR ld/25416
1332 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
1333 compiler support.
1334
1335 2020-01-22 Alan Modra <amodra@gmail.com>
1336
1337 * testsuite/ld-powerpc/tlsdesc3.d,
1338 * testsuite/ld-powerpc/tlsdesc3.wf,
1339 * testsuite/ld-powerpc/tlsdesc4.d,
1340 * testsuite/ld-powerpc/tlsdesc4.s,
1341 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
1342 * testsuite/ld-powerpc/powerpc.exp: Run them.
1343
1344 2020-01-22 Alan Modra <amodra@gmail.com>
1345
1346 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
1347 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
1348 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
1349 (params): Init new field.
1350 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
1351 Document.
1352 * testsuite/ld-powerpc/tlsdesc.s,
1353 * testsuite/ld-powerpc/tlsdesc.d,
1354 * testsuite/ld-powerpc/tlsdesc.wf,
1355 * testsuite/ld-powerpc/tlsdesc2.d,
1356 * testsuite/ld-powerpc/tlsdesc2.wf,
1357 * testsuite/ld-powerpc/tlsexenors.d,
1358 * testsuite/ld-powerpc/tlsexenors.r,
1359 * testsuite/ld-powerpc/tlsexers.d,
1360 * testsuite/ld-powerpc/tlsexers.r,
1361 * testsuite/ld-powerpc/tlsexetocnors.d,
1362 * testsuite/ld-powerpc/tlsexetocrs.d,
1363 * testsuite/ld-powerpc/tlsexetocrs.r,
1364 * testsuite/ld-powerpc/tlsopt6.d,
1365 * testsuite/ld-powerpc/tlsopt6.wf: New.
1366 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1367
1368 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1369
1370 PR 25417
1371 * ldlang.c (ldlang_open_ctf): Fix error message typo.
1372 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
1373
1374 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1375
1376 * testsuite/ld-elf/pr23900-1.d: Adjusted.
1377
1378 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1379
1380 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
1381
1382 2020-01-20 Nick Clifton <nickc@redhat.com>
1383
1384 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1385 * po/uk.po: Updated Ukranian translation.
1386
1387 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
1388
1389 PR ld/25416
1390 * testsuite/ld-x86-64/pr25416-1.s: New file
1391 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
1392 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
1393 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
1394 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
1395 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
1396 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
1397 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1398 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
1399 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1400 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
1401 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
1402 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
1403 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
1404 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
1405 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
1406 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
1407
1408 2020-01-20 Alan Modra <amodra@gmail.com>
1409
1410 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
1411 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
1412 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
1413 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
1414 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1415
1416 2020-01-18 Roland McGrath <mcgrathr@google.com>
1417
1418 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
1419 to admit whatever absolute address. The label-relative address is
1420 what the test needs to verify.
1421
1422 2020-01-18 Nick Clifton <nickc@redhat.com>
1423
1424 * configure: Regenerate.
1425 * po/ld.pot: Regenerate.
1426
1427 2020-01-18 Nick Clifton <nickc@redhat.com>
1428
1429 Binutils 2.34 branch created.
1430
1431 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1432
1433 * scripttempl/elf32msp430_3.sc: Remove.
1434
1435 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1436
1437 * scripttempl/elf32msp430.sc: Add input section rules for
1438 .upper.{text,data,rodata,bss}.
1439 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1440 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
1441
1442 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
1443
1444 PR 20694
1445 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
1446
1447 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1448
1449 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1450 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
1451
1452 2020-01-15 Alan Modra <amodra@gmail.com>
1453
1454 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
1455 * testsuite/ld-powerpc/funref.s: Align func_tab.
1456 * testsuite/ld-powerpc/funref2.s: Likewise.
1457 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
1458
1459 2020-01-14 Lili Cui <lili.cui@intel.com>
1460
1461 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
1462
1463 2020-01-13 Alan Modra <amodra@gmail.com>
1464
1465 * po/BLD-POTFILES.in: Regenerate.
1466
1467 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1468
1469 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
1470
1471 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1472
1473 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
1474 emulations.
1475 * configure.tgt: Likewise.
1476 * Makefile.in: Regenerate.
1477 * emulparams/arcelf_prof.sh: Remove file.
1478 * emulparams/arclinux_prof.sh: Likewise.
1479
1480 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1481
1482 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
1483 located at an arbitrary address. Use DWARF.sc file.
1484 * scripttempl/elfarc.sc: Use DWARF.sc file.
1485
1486 2020-01-07 Alan Modra <amodra@gmail.com>
1487
1488 * testsuite/ld-mips-elf/eh-frame5.s,
1489 * testsuite/ld-mips-elf/ehdr_start-new.s,
1490 * testsuite/ld-mips-elf/ehdr_start-o32.s,
1491 * testsuite/ld-mips-elf/mips16-call-global-1.s,
1492 * testsuite/ld-mips-elf/mips16-intermix-1.s,
1493 * testsuite/ld-mips-elf/mips16-pic-1b.s,
1494 * testsuite/ld-mips-elf/mips16-pic-4c.s,
1495 * testsuite/ld-mips-elf/no-shared-1-n64.s,
1496 * testsuite/ld-mips-elf/no-shared-1-o32.s,
1497 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
1498 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
1499 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
1500 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
1501 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
1502 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
1503 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
1504 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
1505 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
1506 * testsuite/ld-mips-elf/pie.s,
1507 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
1508
1509 2020-01-06 Nick Clifton <nickc@redhat.com>
1510
1511 PR 25327
1512 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1513 command line when building libcomm1.o and pr13250 tests.
1514 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
1515
1516 2020-01-06 Nick Clifton <nickc@redhat.com>
1517
1518 PR 25326
1519 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1520 command line when building pr19579 binaries.
1521
1522 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
1523
1524 * emultempl/pe.em: Add new option --enable-reloc-section.
1525 * emultempl/pep.em: Likewise.
1526 * ld.texi: Document --enable-reloc-section.
1527 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
1528 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
1529 * pe-dll.h: Add extern declaration of option flag.
1530 * pep-dll.c (pe_dll_enable_reloc_section):
1531 Add alias define for pep_dll_enable_reloc_section.
1532 * pep-dll.h: Add extern declaration of option flag.
1533
1534 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1535
1536 * Makefile.am: Add new target z80-elf
1537 * configure.tgt: Likewise.
1538 * Makefile.in: Regenerate.
1539 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
1540 * emulparams/elf32z80.sh: New file.
1541 * emultempl/z80elf.em: Likewise.
1542 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
1543 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
1544 * testsuite/ld-scripts/fill16.d: Fix for Z80.
1545 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
1546 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1547 * testsuite/ld-z80/arch_r800.d: Likewise.
1548 * testsuite/ld-z80/arch_z180.d: Likewise.
1549 * testsuite/ld-z80/arch_z80.d: Likewise.
1550 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1551 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
1552 * testsuite/ld-z80/labels.s: Likewise.
1553 * testsuite/ld-z80/relocs.s: Likewise.
1554 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1555 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1556 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1557 * testsuite/ld-z80/z80.exp: Likewise.
1558 * NEWS: Mention the new support.
1559
1560 2020-01-02 Tamar Christina <tamar.christina@arm.com>
1561
1562 PR 25210
1563 PR 24753
1564 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
1565 Remove SEC_LINKER_CREATED.
1566 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
1567 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
1568
1569 2020-01-01 Alan Modra <amodra@gmail.com>
1570
1571 Update year range in copyright notice of all files.
1572
1573 For older changes see ChangeLog-2019
1574 \f
1575 Copyright (C) 2020 Free Software Foundation, Inc.
1576
1577 Copying and distribution of this file, with or without modification,
1578 are permitted in any medium without royalty provided the copyright
1579 notice and this notice are preserved.
1580
1581 Local Variables:
1582 mode: change-log
1583 left-margin: 8
1584 fill-column: 74
1585 version-control: never
1586 End:
This page took 0.058498 seconds and 3 git commands to generate.