]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
GNU-ld: ARM: Issues when trying to set target output architecture
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
b0dfd742
NC
12023-11-13 Nick Clifton <nickc@redhat.com>
2
3 PR 28910
4 * lexsup.c (ld_options): Ensure that the --format option is
5 correctly recognised.
6
63611bfe
CJW
72023-11-13 Chung-Ju Wu <jasonwucj@gmail.com>
8
9 * ld.texi: Fix redundant space typo.
10
e922d1ea
NC
112023-11-10 Nick Clifton <nickc@redhat.com>
12
13 * ldlex.h (enum option_values): Add OPTION_ERROR_EXECSTACK,
14 OPTION_NO_ERROR_EXECSTACK, OPTION_WARN_EXECSTACK_OBJECTS,
15 OPTION_ERROR_RWX_SEGMENTS and OPTION_NO_ERROR_RWX_SEGMENTS.
16 (struct ld_option): Add new long options.
17 (parse_args): Parse new long options.
18 (elf_static_list_options): Display the new options.
19 * ld.texi: Document the new command line options.
20 * configure.ac (error-execstack): New configuration option.
21 (error-rwx-segments): New configuration option.
22 * emultempl/elf.em (_before_parse): Initialse the new linkinfo
23 fields.
24 * NEWS: Mention the new features.
25 * config.in: Regenerate.
26 * configure: Regenerate.
27 * testsuite/ld-elf/commonpage2.d: Disable errors for RWX segments
28 and/or executable stacks.
29 * testsuite/ld-elf/elf.exp: Likewise.
30 * testsuite/ld-elf/header.d: Likewise.
31 * testsuite/ld-elf/loadaddr1.d: Likewise.
32 * testsuite/ld-elf/loadaddr2.d: Likewise.
33 * testsuite/ld-elf/maxpage4.d: Likewise.
34 * testsuite/ld-elf/nobits-1.d: Likewise.
35 * testsuite/ld-elf/note-1.d: Likewise.
36 * testsuite/ld-elf/orphan-10.d: Likewise.
37 * testsuite/ld-elf/orphan-11.d: Likewise.
38 * testsuite/ld-elf/orphan-12.d: Likewise.
39 * testsuite/ld-elf/orphan-5.d: Likewise.
40 * testsuite/ld-elf/orphan-7.d: Likewise.
41 * testsuite/ld-elf/orphan-8.d: Likewise.
42 * testsuite/ld-elf/orphan-9.d: Likewise.
43 * testsuite/ld-elf/orphan-region.d: Likewise.
44 * testsuite/ld-elf/orphan.d: Likewise.
45 * testsuite/ld-elf/pr19539.d: Likewise.
46 * testsuite/ld-elf/pr26256-1a.d: Likewise.
47 * testsuite/ld-elf/pr26907.d: Likewise.
48 * testsuite/ld-elf/pr28597.d: Likewise.
49 * testsuite/ld-elf/retain2.d: Likewise.
50 * testsuite/ld-elf/shared.exp: Likewise.
51 * testsuite/ld-elf/size-1.d: Likewise.
52 * testsuite/ld-elf/textaddr7.d: Likewise.
53 * testsuite/ld-elf/warn1.d: Likewise.
54 * testsuite/ld-elf/warn2.d: Likewise.
55 * testsuite/ld-i386/discarded1.d: Likewise.
56 * testsuite/ld-i386/pr19175.d: Likewise.
57 * testsuite/ld-i386/pr19539.d: Likewise.
58 * testsuite/ld-i386/pr23189.d: Likewise.
59 * testsuite/ld-plugin/lto-3r.d: Likewise.
60 * testsuite/ld-plugin/lto-5r.d: Likewise.
61 * testsuite/ld-plugin/lto.exp: Likewise.
62 * testsuite/ld-powerpc/ppc476-shared.d: Likewise.
63 * testsuite/ld-powerpc/ppc476-shared2.d: Likewise.
64 * testsuite/ld-powerpc/pr28827-2.d: Likewise.
65 * testsuite/ld-s390/s390.exp: Likewise.
66 * testsuite/ld-scripts/align2a.d: Likewise.
67 * testsuite/ld-scripts/align2b.d: Likewise.
68 * testsuite/ld-scripts/align5.d: Likewise.
69 * testsuite/ld-scripts/alignof.exp: Likewise.
70 * testsuite/ld-scripts/crossref.exp: Likewise.
71 * testsuite/ld-scripts/defined2.d: Likewise.
72 * testsuite/ld-scripts/defined3.d: Likewise.
73 * testsuite/ld-scripts/defined5.d: Likewise.
74 * testsuite/ld-scripts/pr14962.d: Likewise.
75 * testsuite/ld-scripts/pr18963.d: Likewise.
76 * testsuite/ld-scripts/pr20302.d: Likewise.
77 * testsuite/ld-scripts/print-memory-usage.exp: Likewise.
78 * testsuite/ld-scripts/rgn-at1.d: Likewise.
79 * testsuite/ld-scripts/rgn-at10.d: Likewise.
80 * testsuite/ld-scripts/rgn-at4.d: Likewise.
81 * testsuite/ld-scripts/rgn-at6.d: Likewise.
82 * testsuite/ld-scripts/rgn-at8.d: Likewise.
83 * testsuite/ld-scripts/rgn-at9.d: Likewise.
84 * testsuite/ld-scripts/rgn-over1.d: Likewise.
85 * testsuite/ld-scripts/rgn-over2.d: Likewise.
86 * testsuite/ld-scripts/rgn-over4.d: Likewise.
87 * testsuite/ld-scripts/rgn-over5.d: Likewise.
88 * testsuite/ld-scripts/rgn-over6.d: Likewise.
89 * testsuite/ld-scripts/script.exp: Likewise.
90 * testsuite/ld-scripts/sizeof.exp: Likewise.
91 * testsuite/ld-scripts/sort-file.d: Likewise.
92 * testsuite/ld-x86-64/discarded1.d: Likewise.
93 * testsuite/ld-x86-64/pr19175.d: Likewise.
94 * testsuite/ld-x86-64/pr19539a.d: Likewise.
95 * testsuite/ld-x86-64/pr19539b.d: Likewise.
96 * testsuite/ld-x86-64/pr23189.d: Likewise.
97
50df0f43
JB
982023-11-06 Jan Beulich <jbeulich@suse.com>
99
100 PR 30722
101 * testsuite/ld-x86-64/property-3.r: Revert commit bf77f42f6708.
102 * testsuite/ld-x86-64/property-4.r: Likewise.
103 * testsuite/ld-x86-64/property-5.r: Likewise.
104
f1837d9c
NC
1052023-11-06 Nick Clifton <nickc@redhat.com>
106
107 PR 30865
108 * ld.texi: Update description of the FILL command.
109 * testsuite/ld-scripts/fill2.d: New test.
110 * testsuite/ld-scripts/fill2.t: New test source.
111 * testsuite/ld-scripts/data.exp: Run the new test.
112
bf77f42f
NC
1132023-11-02 Nick Clifton <nickc@redhat.com>
114
115 * testsuite/ld-x86-64/property-3.r: Update regexp to allow for
116 targets which support x86-64-v3.
117 * testsuite/ld-x86-64/property-4.r: Likewise.
118 * testsuite/ld-x86-64/property-5.r: Likewise.
119
85921e9a
NC
1202023-11-01 Nick Clifton <nickc@redhat.com>
121
122 PR 27565
123 * ldlex.l: Add REVERSE.
124 * ldgram.y: Allow REVERSE to be used wherever a sorting command
125 can be used.
126 * ld.h (struct wildcard_spec): Add 'reversed' field.
127 * ldlang.h (lang_wild_statement_struct): Add 'filenames_reversed' field.
128 * ldlang.c (compare_sections): Add reversed parameter.
129 (wild_sort): Reverse the comparison if requested.
130 (print_wild_statement): Handle the reversed field.
131 * ld.texi: Document the new feature.
132 * NEWS: Mention the new feature.
133 * testsuite/ld-scripts/sort-file-reversed-1.d: New test driver.
134 * testsuite/ld-scripts/sort-file-reversed-1.t: New test source.
135 * testsuite/ld-scripts/sort-file-reversed-2.t: New test source.
136 * testsuite/ld-scripts/sort-file-reversed-2.d: New test driver.
137 * testsuite/ld-scripts/sort-sections-reversed-1.d: New test driver.
138 * testsuite/ld-scripts/sort-sections-reversed-1.t: New test source.
139 * testsuite/ld-scripts/sort-sections-reversed-2.t: New test source.
140 * testsuite/ld-scripts/sort-sections-reversed-2.d: New test driver.
141 * testsuite/ld-scripts/sort-sections-reversed-3.d: New test driver.
142 * testsuite/ld-scripts/sort-sections-reversed-3.t: New test source.
143
69bded92
NC
1442023-10-30 Nick Clifton <nickc@redhat.com>
145
146 * po/ka.po: New Georgian translation.
147
8fa1b632
JM
1482023-10-19 Jose E. Marchesi <jose.marchesi@oracle.com>
149
150 * ld.texi (Options): Fix typo metdata->metadata.
151
a79e9a07
NC
1522023-10-16 Nick Clifton <nickc@redhat.com>
153
154 PR 28910
155 * lexsup.c (ld_options): Require that the --architecture option is
156 given exactly two dashes, so that it does not become confused with
157 the -a option.
158
ee1cb49e
NC
1592023-10-09 Nick Clifton <nickc@redhat.com>
160
1b334e27
NC
161 PR 30951
162 * ldlex.l (yy_input): Check for YY_CURRENT_BUFFER being NULL.
163
ee1cb49e
NC
164 PR 30954
165 * ldlang.c (map_input_to_output_sections): Check that os is non
166 NULL before using it.
167
1499719e
W
1682023-10-05 A. Wilcox <awilfox@adelielinux.org>
169
170 PR 30905
171 * testsuite/ld-elf/pr28158.rd: Adjust regexp to allow for section
172 indicies larger than 9.
173
1742023-10-05 A. Wilcox <awilfox@adelielinux.org>
8838ac1c
W
175
176 PR 30917
177 * testsuite/ld-elf/dt-relr.exp: Skip for MUSL targets.
178
1499719e 1792023-10-05 A. Wilcox <awilfox@adelielinux.org>
99b06f8a
W
180
181 PR 30918
182 * testsuite/ld-shared/shared.exp: Add XFAILs for tests that fail
183 with the MUSL library.
184
1499719e 1852023-10-05 A. Wilcox <awilfox@adelielinux.org>
8023a054
W
186
187 PR 30923
188 * testsuite/ld-arm/thumb-plt-got.d: Skip test for configurations
189 using the MUSL library.
190 * testsuite/ld-arm/thumb-plt.d: Likewise.
191
1499719e 1922023-10-05 A. Wilcox <awilfox@adelielinux.org>
693ac69b
W
193
194 PR 30925
195 PR 22001
196 * testsuite/ld-i386/i386.exp: Skip the pr22001 test with TEXTREL
197 relocations enabled on configurations using the MUSL library.
198
1499719e 1992023-10-05 A. Wilcox <awilfox@adelielinux.org>
41ef7afa
W
200
201 PR 30924
202 * testsuite/ld-elfvers/vers.exp (objdump_emptyverstuff): Handle
203 EABI version information in objdump's output.
204
6a6117ab
NC
2052023-10-02 Nick Clifton <nickc@redhat.com>
206
207 * pe-dll.c (fill_edata): Use bfd_get_current_time when filling in
208 the timestamp.
209
193327db
HX
2102023-09-27 Hsinyuan Xavier <TheLastLin@hotmail.com>
211
212 PR 30875
213 * ldlang.c (get_os_init_flag): New function.
214 (exp_init_os, map_input_to_output_sections): Use it.
215
b5c37946 2162023-07-24 Johannes Schauer Marin Rodrigues <josch@debian.org>
6badd102 217
b5c37946
SJ
218 * pe-dll.c (fill_edata): If inserting a timestamp, use the value
219 held in the SOURCE_DATE_EPOCH environment variable, if it is
220 defined.
221 * ld.texi (--insert-timestamp): Document change in behaviour.
6badd102 222
87485f53
NC
2232023-07-03 Nick Clifton <nickc@redhat.com>
224
225 * configure: Regenerate.
226
d501d384
NC
2272023-07-03 Nick Clifton <nickc@redhat.com>
228
229 2.41 Branch Point.
230
b25c1a15
NC
2312023-06-28 Nikita Popov <npopov@redhat.com>
232 Nick Clifton <nickc@redhat.com>
233
234 PR 30568
235 * ldfile.c (ldfile_try_open_bfd): Do not track lto generated
236 temporary files.
237
0ab70050
NC
2382023-06-21 Nick Clifton <nickc@redhat.com>
239
240 PR 29072
241 * testsuite/ld-elf/elf.exp (target_defaults_to_execstack): Always
242 return false for linkers configured with the --enable-default-execstack=no
243 option.
244
fb221fba
NC
2452023-06-14 Nick Clifton <nickc@redhat.com>
246
247 PR 30374
248 * ldfile.c (struct input_remap): New structure.
249 (ldfile_add_remap): New function.
250 (ldfile_remap_input_free): New function.
251 (ldfile_add_remap_file): New function.
252 (ldfile_possibly_remap_input): New function.
253 (ldfile_print_input_remaps): New function.
254 * ldfile.h: Add prototypes for new functions.
255 * ldlang.c (new_afile): Call ldfile_possibly_remap_input.
256 (lang_finish): Call ldfile_remap_input_free.
257 (lang_map): Call ldfile_print_input_remaps.
258 * ldlex.h (OPTION_REMAP_INPUTS, OPTION_REMAP_INPUTS_FILE): Define.
259 * lexsup.c (ld_options): Add --remap-inputs-file and --remap-inputs.
260 (parse_args): Handle new options.
261 * NEWS: Mention the new feature.
262 * ld.texi: Document the new options.
263 * testsuite/ld-misc/input-remap.exp: New test driver.
264 * testsuite/ld-misc/remaps.r: New file: Expected linker output.
265 * testsuite/ld-misc/remaps.txt: New file. Input remaps file.
266
064ad3ea
NC
2672023-06-07 Nick Clifton <nickc@redhat.com>
268
269 PR 30499
270 * testsuite/ld-elfcomm/elfcomm.exp: Update regexps to match new
271 output from the linker.
272
80d4e113
LB
2732023-05-17 Luca Bacci <luca.bacci@outlook.com>
274
275 PR 30421
276 * emultempl/pe.em (set_decoration): New function.
277 (pe_fixup_stdcalls): Call the new function.
278 * emultempl/pep.em (set_decoration): New function.
279 (pep_fixup_stdcalls): Call the new function.
280 * pe-dll.c (make_one): Check for decoated symbols.
281
d1792f72
NC
2822023-05-16 Nick Clifton <nickc@redhat.com>
283
284 PR 30359
285 * ld.texi (WIN32): Document how to create a resource only DLL.
286
0a7dda4f
NC
2872023-05-16 Nick Clifton <nickc@redhat.com>
288
289 * ld.texi (-Ur): Clarify the actions of this option.
290
496917ce
NC
2912023-05-10 Nick Clifton <nickc@redhat.com>
292
293 PR 16566
294 * ldlang.c (ld_is_local_symbol): New function.
295 (print_input_section): Add code to display local symbols in the
296 section.
297 * ldlex.h (enum option_values): Add OPTION_PRINT_MAP_LOCALS and
298 OPTION_PRINT_MAP_LOCALS.
299 * lexsup.c (ld_options[]): Add entries for --print-map-locals
300 and --no-print-map-locals.
301 * NEWS: Mention the new feature.
302 * ld.h (struct ld_config_type): Add print_map_locals field.
303 * ld.texi: Document the new command line option.
304 * testsuite/ld-scripts/sizeof.s: Add a local symbol.
305 * testsuite/ld-scripts/map-locals.d: New test control file.
306 * testsuite/ld-scripts/map-address.exp: Run the new test.
307
35394145
NC
3082023-05-04 Nick Clifton <nickc@redhat.com>
309
310 PR 30300
311 * emultempl/pep.em (set_entry_point): Add an undefined reference
312 to the entry point if it has been constructed heuristically.
313 * emultempl/pe.em (set_entry_point): Likewise.
314
35130e73
DD
3152023-05-04 Dimitar Dimitrov <dimitar@dinux.eu>
316
317 * scripttempl/pru.sc (OUTPUT_SECTION_ALIGN): New helper variable
318 to place at end of DMEM output sections.
319 (.data): Use the helper variable.
320 (.eh_frame): New output section.
321 (.gnu_extab): Ditto.
322 (.gcc_except_table): Ditto.
323 (.resource_table): Use the helper variable.
324
c386bf4d
NC
3252023-04-27 Nick Clifton <nickc@redhat.com>
326
327 * ldmisc.c (vfinfo): Add support for %x and %lx.
328
a02676b7 3292023-04-18 mengqinggang <mengqinggang@loongson.cn>
330
331 * testsuite/ld-loongarch-elf/macro_op.d: Regenerated.
332
b29f2fda
NC
3332023-04-17 Nick Clifton <nickc@redhat.com>
334
335 PR 30354
336 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to
337 handle the .gnu.sgstubs section.
338
546c7898
CZ
3392023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
340
341 * testsuite/ld-arc/arc.exp: Update execution predicate.
342 * testsuite/ld-arc/nps-1a.d: Add linker script option.
343 * testsuite/ld-arc/nps-1b.d: Likewise.
344 * testsuite/ld-arc/relax-local-pic.d: Update matching patterns.
345
93cda40b
NC
3462023-04-12 Nick Clifton <nickc@redhat.com>
347
348 * ld.texi (--enable-non-contiguous-regions): Fix typos in script
349 example.
350
2d5783fa
NC
3512023-03-15 Nick Clifton <nickc@redhat.com>
352
353 PR 30187
354 * NEWS: Mention the new feature.
355 * ld.texi: Document the new feature.
356 * ldgram.y: Handle LINKER_VERSION token.
357 * ldlang.c (lang_add_version): New function.
358 (enable_linker_version): New global variable.
359 * ldlang.h (land_add_version): Prototype.
360 (enable_linker_version): Export.
361 * ldlex.h (OPTION_ENABLE_LINKER_VERSION): Define.
362 (OPTION_DISABLE_LINKER_VERSION): Define.
363 * ldlex.l (LINKER_VERSION): Add token.
364 * lexsup.c (ld_options): Add --enable-linker-version and
365 --disable-linker-version.
366 (parse_args): Handle the new options.
367 * scripttempl/arclinux.sc: Remove stabs and comment sections and
368 replace with inclusion of misc-sections.sc
369 * scripttempl/avr.sc: Likewise.
370 * scripttempl/dlx.sc: Likewise.
371 * scripttempl/elf.sc: Likewise.
372 * scripttempl/elf32cr16.sc: Likewise.
373 * scripttempl/elf32crx.sc: Likewise.
374 * scripttempl/elf32msp430.sc: Likewise.
375 * scripttempl/elf64bpf.sc: Likewise.
376 * scripttempl/elf64hppa.sc: Likewise.
377 * scripttempl/elf_chaos.sc: Likewise.
378 * scripttempl/elfarc.sc: Likewise.
379 * scripttempl/elfarcv2.sc: Likewise.
380 * scripttempl/elfd10v.sc: Likewise.
381 * scripttempl/elfd30v.sc: Likewise.
382 * scripttempl/elfm68hc11.sc: Likewise.
383 * scripttempl/elfm68hc12.sc: Likewise.
384 * scripttempl/elfm9s12z.sc: Likewise.
385 * scripttempl/elfmicroblaze.sc: Likewise.
386 * scripttempl/elfxgate.sc: Likewise.
387 * scripttempl/elfxtensa.sc: Likewise.
388 * scripttempl/epiphany_4x4.sc: Likewise.
389 * scripttempl/ft32.sc: Likewise.
390 * scripttempl/ip2k.sc: Likewise.
391 * scripttempl/iq2000.sc: Likewise.
392 * scripttempl/mep.sc: Likewise.
393 * scripttempl/nds32elf.sc: Likewise.
394 * scripttempl/pru.sc: Likewise.
395 * scripttempl/v850.sc: Likewise.
396 * scripttempl/v850_rh850.sc: Likewise.
397 * scripttempl/visium.sc: Likewise.
398 * scripttempl/xstormy16.sc: Likewise.
399 * scripttempl/z80.sc: Likewise.
400 * testsuite/ld-scripts/script.exp: Run new tests.
401 * scripttempl/misc-sections.sc: New file.
402 * testsuite/ld-scripts/ld-version-2.d: New file.
403 * testsuite/ld-scripts/ld-version.d: New file.
404 * testsuite/ld-scripts/ld-version.t: New file.
405
50980ba3
FS
4062023-02-23 Fangrui Song <i@maskray.me>
407
408 * emultempl/riscvelf.em: Add option parsing.
409 * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
410 * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
411 * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
412 used together.
413
c9802aca
NC
4142023-02-20 Nick Clifton <nickc@redhat.com>
415
416 PR 30004
417 * pe-dll.c (pe_dll_build_sections): Do not build an edata section
418 if all symbols are being excluded.
419
2b56cd91
NC
4202023-02-15 Nick Clifton <nickc@redhat.com>
421
422 PR 30078
423 * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
424 order to avoid the special behaviour of the .string directive on
425 HPPA architectures.
426
9b38b85e
NC
4272023-02-14 Nick Clifton <nickc@redhat.com>
428
429 * ld.texi (Plugins): Mention that the -plugin command line option
430 is used to load plugins.
431
1c66b8a0
NC
4322023-01-27 Nick Clifton <nickc@redhat.com>
433
434 PR 29998
435 * pe-dll.c (build_filler_bfd): Initialise the next field of the
436 filler input statement, so that it does not break the file chain.
437
f3d8ae90
NC
4382023-01-24 Nick Clifton <nickc@redhat.com>
439
440 PR 29998
441 * pe-dll.c (generate_reloc): Handle sections with no assigned
442 output section. Terminate early of there are no relocs to put in
443 the .reloc section.
444 (pe_exe_fill_sections): Do not emit an empty .reloc section.
445
59e1f50f
NC
4462023-01-06 Nick Clifton <nickc@redhat.com>
447
448 * po/bg.po: Updated Bulgarian translation.
449
beb6b61d
NC
4502023-01-05 Nick Clifton <nickc@redhat.com>
451
452 * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
453 * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
454 * emultempl/pep.em: Add suppport for arm64pe emulation.
455 * Makefile.in: Regenerate.
456 * po/BLD-POTFILES.in: Regenerate.
457 * po/ld.pot: Regenerate.
458
b26c8438
AH
4592023-01-05 Andreas K. Huettel <dilfridge@gentoo.org>
460
461 * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
462 AArch64 architecture.
463
502c7218
AH
4642023-01-04 Andreas K. Huettel <dilfridge@gentoo.org>
465
466 PR 29843
467 * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
468 for differences in build environments.
469 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
470
11982f9f
NC
4712023-01-03 Nick Clifton <nickc@redhat.com>
472
473 * po/uk.po: Updated Ukrainian translation.
474
a72b0718
NC
4752022-12-31 Nick Clifton <nickc@redhat.com>
476
477 * 2.40 branch created.
478
a7a32d58
NC
4792022-12-21 Nick Clifton <nickc@redhat.com>
480
481 PR 29900
482 * scripttempl/pe.sc: Keep the .drectve section when performing a
483 relocateable link.
484 * scripttempl/pep.sc: Likewise.
485
dcb53d93
NC
4862022-12-08 Nick Clifton <nickc@redhat.com>
487
488 PR 29861
489 * ld.texi (Output Section Type): Note that setting the output
490 section type only works if the section contains untyped data.
491
3bf5bf54
NC
4922022-12-05 Nick Clifton <nickc@redhat.com>
493
494 PR 29849
495 * ldlang.c (spec_match): Check that there is sufficient length in
496 the target name to match the spec's prefix.
497
e26943f9
NC
4982022-11-03 Nick Clifton <nickc@redhat.com>
499
500 PR 29748
501 * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
502 the V850.
503
fa6895ad
NC
5042022-11-03 Nick Clifton <nickc@redhat.com>
505
78cd9188 506 PR 29741
fa6895ad
NC
507 * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value
508 has not been provided on the command line then use DATA_ORIGIN.
509 (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
510
4b2e7a57
NC
5112022-10-21 Nick Clifton <nickc@redhat.com>
512
513 PR 29654
514 * ld.h (struct ld_config_type): Add no_warnings field.
515 * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
516 * lexsup.c (ld_options): Add --no-warnings.
517 (parse_args): Add support for -w and --no-warnings.
518 * ldmisc.c (vfinfo): Return early if the message is a warning and
519 -w has been enabled.
520 * ld.texi (options): Document new command line option.
521 * NEWS: Mention the new feature.
522
37833b96
NC
5232022-08-30 Nick Clifton <nickc@redhat.com>
524
525 PR 29529
526 * testsuite/ld-x86-64/pr27587.err: Update expected output.
527
f0821653
RH
5282022-08-18 Ralf Habacker <ralf.habacker@freenet.de>
529
530 PR 28362
531 * testsuite/ld-pe/pe-run2-def.exp: New file.
532
a6ad7914
AM
5332022-08-03 Alan Modra <amodra@gmail.com>
534
535 PR 29389
536 * ldlang.h (lang_input_statement_struct): Add sort_key field.
537 * emultempl/pe.em (after_open): If multiple import libraries refer
538 to the same bfd, store their names in the sort_key field.
539 * emultempl/pep.em (after_open): Likewise.
540 * ldlang.c (sort_filename): New function. Returns the filename to
541 be used when sorting input files.
542 (wild_sort): Use the sort_filename function.
543
b80b72c0
RO
5442022-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
545
546 PR ld/29411
547 * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
548 sparc targets. Expand comment.
549
91896b4d
NC
5502022-07-26 Nick Clifton <nickc@redhat.com>
551
552 PR 29411
553 * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
554 sparc-solaris configurations.
555
0bd09323
NC
5562022-07-08 Nick Clifton <nickc@redhat.com>
557
558 * 2.39 branch created.
559
ed1c7ad8
NC
5602022-06-27 Nick Clifton <nickc@redhat.com>
561
562 PR 29263
563 * configure.ac: Move HPPA specific code from here...
564 * configure.tgt: ... to here. Add similar code for MIPS.
565 Move code for CRIS, MIPS and HPPA to block at start of file.
566 * configure: Regenerate.
567
acd65fa6
NC
5682022-06-21 Nick Clifton <nickc@redhat.com>
569
570 PR 29263
571 * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
572 HPPA targets.
573 (ac_default_ld_warn_rwx_segments): Likewise.
574 * configure: Regenerate.
575 * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
576 option to the command line when running execstack tests for the
577 HPPA target.
578
678dc756
AM
5792022-05-12 Alan Modra <amodra@gmail.com>
580
581 PR 29006
582 * pe-dll.c (dll_name): Delete, replacing with..
583 (dll_filename): ..this, moved earlier in file.
584 (generate_edata): Delete parameters. Don't set up dll_name here..
585 (pe_process_import_defs): ..instead set up dll_filename and
586 dll_symname here before returning.
587 (dll_symname_len): Delete write-only variable.
588 (pe_dll_generate_implib): Don't set up dll_symname here.
589
46465574
NC
5902022-05-03 Nick Clifton <nickc@redhat.com>
591
592 PR 29101
593 * libdep_plugin.c (get_libdeps): Check for overflow when computing
594 amount of memory to allocate.
595
639d467b
NC
5962022-04-27 Nick Clifton <nickc@redhat.com>
597
598 PR 29006
599 * pe-dll.c (make_head): Use asprintf to allocate and populate a
600 buffer containing the temporary name.
601 (make_tail, make_one, make_singleton_name_thunk): Likewise.
602 (make_import_fixup_mark, make_import_fixup_entry): Likewise.
603 (make_runtime_pseudo_reloc): Likewise.
604 (pe_create_runtime_relocator_reference): Likewise.
605
0d38576a
NC
6062022-04-25 Nick Clifton <nickc@redhat.com>
607
608 PR 29072
609 * testsuite/ld-elf/pr29072.b.warn: Update to include the note
610 about the linker's behaviour being depreccated.
611
2d23f965
CC
6122022-04-20 Clément Chigot <clement.chigot@atos.net>
613
614 * emultempl/aix.em (params): New variable.
615 (stub_file): New variable.
616 (xcoff_add_stub_section): New function.
617 (xcoff_layout_sections_again): New function
618 (hook_in_stub): New function.
619 (_after_allocation): Add stub creation.
620 (_create_output_section_statements): Allocate stub file and
621 pass params to backend.
622
1876a542
CC
6232022-04-20 Clément Chigot <clement.chigot@atos.net>
624
625 * emultempl/aix.em (_after_allocation): New function.
626
145667f8
MH
6272022-04-07 Mark Harmstone <mark@harmstone.com>
628
629 * testsuite/ld-pe/secidx1.s: New test source file.
630 * testsuite/ld-pe/secidx2.s: New test source file.
631 * testsuite/ld-pe/secidx.d: New test driver file.
632 * testsuite/ld-pe/secidx_64.d: New test driver file.
633 * testsuite/ld-pe/pe.exp: Add new tests.
634
95e96e05
NC
6352022-03-01 Nick Clifton <nickc@redhat.com>
636
637 PR 21964
638 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
639 * testsuite/ld-elf/pr21964-1b.c: Likewise.
640 * testsuite/ld-elf/pr21964-1c.c: Likewise.
641 * testsuite/ld-elf/pr21964-2a.c: Likewise.
642 * testsuite/ld-elf/pr21964-2b.c: Likewise.
643 * testsuite/ld-elf/pr21964-3a.c: Likewise.
644
5c14cc55
RM
6452022-02-17 Roland McGrath <mcgrathr@google.com>
646
647 * ld.texi (Output Section Type): Fix typo in @code syntax.
648
36d285b9
NC
6492022-02-17 Nick Clifton <nickc@redhat.com>
650
651 * po/sr.po: Updated Serbian translation.
652
c212f39d 6532022-02-16 Fangrui Song <maskray@google.com>
5c14cc55 654 Nick Clifton <nickc@redhat.com>
c212f39d
FS
655
656 PR ld/28841
657 * ld.texi: Document new output section type.
658 * ldlex.l: Add new token TYPE.
659 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
660 * ldlang.h: Add type_section to list of section types.
661 * ldlang.c (lang_add_section): Handle type_section.
662 (map_input_to_output_sections): Handle type_section.
663 * testsuite/ld-scripts/output-section-types.t: Add tests.
664 * testsuite/ld-scripts/output-section-types.d: Update.
665
a6983974
NC
6662022-02-02 Nick Clifton <nickc@redhat.com>
667
668 * po/fr.po: Updated French translation.
669
5fe73d46
NC
6702022-01-24 Nick Clifton <nickc@redhat.com>
671
672 * po/bg.po: Updated Bulgarian translation.
673 * po/uk.po: Updated Ukranian translation.
674
cc5e4073
AGI
6752022-01-22 Alexander von Gluck IV <kallisti5@unixzen.com>
676
677 * configure.tgt (arm-haiku): Fix typo.
678 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
679 (COMMONPAGESIZE): Likewise.
680
f908e960
NC
6812022-01-22 Nick Clifton <nickc@redhat.com>
682
683 * configure: Regenerate.
684 * po/ld.pot: Regenerate.
685
a74e1cb3
NC
6862022-01-22 Nick Clifton <nickc@redhat.com>
687
688 * 2.38 release branch created.
689
e901223d
NC
6902022-01-21 Nick Clifton <nickc@redhat.com>
691
692 * po/sr.po: Updated Serbian translation.
693
6c037fdb
NC
6942022-01-17 Nick Clifton <nickc@redhat.com>
695
696 * Makefile.in: Regenerate.
697 * po/ld.pot: Regenerate.
698
c4a8df19
MS
6992022-01-11 Martin Storsjö <martin@martin.st>
700
701 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
702 (make_tail, make_one, make_singleton_name_thunk): Likewise.
703 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
704 (pe_create_runtime_relocator_reference): Likewise.
705 (pe_dll_generate_implib): Set dll_symname_len.
706 (pe_process_import_defs): Likewise.
707
f3be70df
NC
7082021-12-16 Nick Clifton <nickc@redhat.com>
709
710 PR 28686
711 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
712 * testsuite/ld-avr/avr-prop-8.d: Likewise.
713 * testsuite/ld-avr/pr13402.d: Likewise.
714
44b357eb
NC
7152021-11-30 Nick Clifton <nickc@redhat.com>
716
717 * scripttempl/pru.sc (.pru_irq_map): Define output section.
718 * testsuite/ld-pru/pru_irq_map-1.d: New test.
719 * testsuite/ld-pru/pru_irq_map-2.d: New test.
720 * testsuite/ld-pru/pru_irq_map.s: New test.
721
ef6379e1
JD
7222021-11-17 Jeremy Drake <cygwin@jdrake.com>
723
724 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
725 Cygwin targets.
726 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
727
ee9e412f
NC
7282021-11-17 Nick Clifton <nickc@redhat.com>
729
730 PR 28452
731 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
732 * ldgram.c: Regenerate.
733
d029b54d
RM
7342021-11-15 Roland McGrath <mcgrathr@google.com>
735
736 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
737 case ld was configured with --enable-textrel-check=error.
738 * testsuite/ld-aarch64/pr22764.d: Likewise.
739 * testsuite/ld-aarch64/pr20402.d: Likewise.
740
eb5323fd
NA
7412021-10-25 Nick Alcock <nick.alcock@oracle.com>
742
743 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
744
10909ea8
NA
7452021-10-25 Nick Alcock <nick.alcock@oracle.com>
746
747 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
748 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
749 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
750 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
751 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
752 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
753 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
754 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
755 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
756 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
757 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
758 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
759 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
760 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
761 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
762 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
763 * testsuite/ld-ctf/cycle-1.d: Likewise.
764 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
765 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
766 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
767 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
768 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
769 * testsuite/ld-ctf/diag-cuname.d: Likewise.
770 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
771 * testsuite/ld-ctf/enum-forward.d: Likewise.
772 * testsuite/ld-ctf/enums.d: Likewise.
773 * testsuite/ld-ctf/forward.d: Likewise.
774 * testsuite/ld-ctf/function.d: Likewise.
775 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
776 * testsuite/ld-ctf/slice.d: Likewise.
777 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
778
5109a7bd
DD
7792021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
780
781 * scripttempl/pru.sc (.resource_table): Align the output
782 section, not the first symbol.
783
b9004024
NA
7842021-09-27 Nick Alcock <nick.alcock@oracle.com>
785
786 * configure: Regenerate.
787
5226a6a8
NC
7882021-09-21 Nick Clifton <nickc@redhat.com>
789
790 * ldlang.c (lang_end): When computing the entry point, only
791 try the start address of the entry section when creating an
792 executable.
793 * ld.texi (Entry point): Update description of heuristic used to
794 choose the entry point.
795 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
796 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
797 testsuite/ld-i386/tlsnopic.rd: Likewise.
798 testsuite/ld-ia64/tlspic.rd: Likewise.
799 testsuite/ld-sparc/gotop32.rd: Likewise.
800 testsuite/ld-sparc/gotop64.rd: Likewise.
801 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
802 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
803 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
804 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
805 testsuite/ld-tic6x/shlib-1.rd: Likewise.
806 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
807 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
808 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
809 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
810 testsuite/ld-x86-64/pr14207.d: Likewise.
811 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
812 testsuite/ld-x86-64/tlspic.rd: Likewise.
813 testsuite/ld-x86-64/tlspic2.rd: Likewise.
814
720f6ee0
CZ
8152021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
816
817 * testsuite/ld-arc/got-weak.d: Update file.
818
09a7e912
CZ
8192021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
820
821 * ld-arc/got-weak.d: New file.
822 * ld-arc/got-weak.s: Likewise.
823
dfe3b805
RM
8242021-07-26 Roland McGrath <mcgrathr@google.com>
825
826 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
827
235f5ef4
MM
8282021-07-06 Michael Matz <matz@suse.de>
829
830 PR ld/28021
831 * testsuite/ld-riscv-elf/relax-twice.ver: New.
832 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
833 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
834 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
835 (run_relax_twice_test): New, and call it.
836
346d80ef
NC
8372021-07-03 Nick Clifton <nickc@redhat.com>
838
839 * configure: Regenerate.
840 * po/ld.pot: Regenerate.
841
51419248
NC
8422021-07-03 Nick Clifton <nickc@redhat.com>
843
844 * 2.37 release branch created.
845
50331d64
NC
8462021-06-22 Nelson Chu <nelson.chu@sifive.com>
847
848 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
849 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
850 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
851 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
852 Should report error since the %pcrel_lo with addend refers to
853 %got_pcrel_hi.
854 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
855 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
856 Should report error since the %got_pcrel_hi with addend.
857 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
858 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
859
406b4ada
L
8602021-06-19 H.J. Lu <hongjiu.lu@intel.com>
861
862 PR ld/27998
863 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
864 * testsuite/ld-i386/pr27998a.d: New file.
865 * testsuite/ld-i386/pr27998a.s: Likewise.
866 * testsuite/ld-i386/pr27998b.d: Likewise.
867 * testsuite/ld-i386/pr27998b.s: Likewise.
868
83b1d8f4
L
8692021-06-19 H.J. Lu <hongjiu.lu@intel.com>
870
871 * testsuite/ld-x86-64/textrel-1.err: New file.
872 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
873 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
874 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
875
c30420d8
L
8762021-06-18 H.J. Lu <hongjiu.lu@intel.com>
877
878 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
879 and mn10300.
880 Pass --generate-missing-build-notes=no to assembler. Allow
881 other note sections for xtensa.
882 * testsuite/ld-elf/property-and-2.d: Likewise.
883 * testsuite/ld-elf/property-and-3.d: Likewise.
884 * testsuite/ld-elf/property-and-4.d: Likewise.
885 * testsuite/ld-elf/property-or-1.d: Likewise.
886 * testsuite/ld-elf/property-or-2.d: Likewise.
887 * testsuite/ld-elf/property-or-3.d: Likewise.
888 * testsuite/ld-elf/property-or-4.d: Likewise.
889
2d95647b
L
8902021-06-18 H.J. Lu <hongjiu.lu@intel.com>
891
892 * ld.texi: Move -z unique-symbol after -z undefs.
893
5a767724
L
8942021-06-18 H.J. Lu <hongjiu.lu@intel.com>
895
896 * testsuite/ld-elf/property-and-1.d: New file.
897 * testsuite/ld-elf/property-and-1.s: Likewise.
898 * testsuite/ld-elf/property-and-2.d: Likewise.
899 * testsuite/ld-elf/property-and-2.s: Likewise.
900 * testsuite/ld-elf/property-and-3.d: Likewise.
901 * testsuite/ld-elf/property-and-3.s: Likewise.
902 * testsuite/ld-elf/property-and-4.d: Likewise.
903 * testsuite/ld-elf/property-and-empty.s: Likewise.
904 * testsuite/ld-elf/property-or-1.d: Likewise.
905 * testsuite/ld-elf/property-or-1.s: Likewise.
906 * testsuite/ld-elf/property-or-2.d: Likewise.
907 * testsuite/ld-elf/property-or-2.s: Likewise.
908 * testsuite/ld-elf/property-or-3.d: Likewise.
909 * testsuite/ld-elf/property-or-3.s: Likewise.
910 * testsuite/ld-elf/property-or-4.d: Likewise.
911 * testsuite/ld-elf/property-or-empty.s: Likewise.
912
e013d20d
L
9132021-06-17 H.J. Lu <hongjiu.lu@intel.com>
914
915 PR ld/27973
916 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
917 $NOPIE_CFLAGS to protected-func-1 without PIE.
918
b6b42983
L
9192021-06-17 H.J. Lu <hongjiu.lu@intel.com>
920
921 PR ld/27973
922 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
923 * testsuite/ld-x86-64/protected-func-1.h: New file.
924 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
925 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
926
d208bc76
FS
9272021-06-17 Fangrui Song <maskray@google.com>
928
929 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
930 * lexsup.c (struct ld_options): Add -no-pie.
931 (parse_args): Handle -no-pie.
932 * ld.texi: Document -no-pie.
933
93df3340
AM
9342021-06-15 Alan Modra <amodra@gmail.com>
935
936 * testsuite/ld-pie/vaddr-0.d: Update expected output.
937
f64b9b13
AM
9382021-06-11 Alan Modra <amodra@gmail.com>
939
940 PR 27952
941 * ldelf.c (ldelf_after_open): Error on input PIEs too.
942
f75bcf7e
NC
9432021-06-09 Nick Clifton <nickc@redhat.com>
944
945 PR 27666
946 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
947 sparc64tests for Solaris2 targets.
948
364d7729
AM
9492021-06-03 Alan Modra <amodra@gmail.com>
950
951 PR 2589
952 * ld.texi (link-time runtime library search path): Mention
953 plugin library path. Correct order of search.
954
ef9d2565
NC
9552021-05-31 Nelson Chu <nelson.chu@sifive.com>
956 Lifang Xia <lifang_xia@c-sky.com>
957
958 PR 27566
959 * emultempl/riscvelf.em (after_allocation): Call
960 riscv_set_data_segment_info to set data segment phase before relaxing.
961 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
962 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
963 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
964 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
965 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
966
1273b2f8
L
9672021-05-28 H.J. Lu <hongjiu.lu@intel.com>
968
969 PR ld/27905
970 * testsuite/ld-i386/pcrel16-2.d: xfail.
971 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
972
50c95a73
L
9732021-05-26 H.J. Lu <hongjiu.lu@intel.com>
974
975 PR ld/27905
976 * testsuite/ld-i386/code16.d: New file.
977 * testsuite/ld-i386/code16.t: Likewise.
978 * testsuite/ld-x86-64/code16.d: Likewise.
979 * testsuite/ld-x86-64/code16.t: Likewise.
980 * testsuite/ld-i386/i386.exp: Run code16.
981 * testsuite/ld-x86-64/x86-64.exp: Likewise.
982
983d5689
L
9832021-05-26 H.J. Lu <hongjiu.lu@intel.com>
984
985 * testsuite/ld-x86-64/ilp32-12.d: New file.
986 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
987 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
988
75f03fa7
NC
9892021-05-14 Nelson Chu <nelson.chu@sifive.com>
990
991 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
992 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
993 pcrel-lo-addend-2.
994 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
995 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
996 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
997
cf893b0e
FS
9982021-05-13 Fangrui Song <maskray@google.com>
999
1000 PR 27834
1001 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
1002 * lexsup.c (ld_options): Add -Bno-symbolic.
1003 (parse_args): Handle -Bno-symbolic.
1004 * ld.texi: Document -Bno-symbolic.
1005 * NEWS: Mention -Bno-symbolic.
1006 * testsuite/ld-elf/shared.exp: Add a test.
1007
84139c58
RE
10082021-05-12 Richard Earnshaw <rearnsha@arm.com>
1009
1010 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
1011 Correct expected output.
1012
4a1ad5c9
RM
10132021-05-11 Roland McGrath <mcgrathr@google.com>
1014
1015 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
1016 address layout, so it works for e.g. --target=x86-64-elf.
1017
22604fe6
NC
10182021-05-11 Nick Clifton <nickc@redhat.com>
1019
1020 PR 27113
1021 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
1022 is present.
1023 * Makefile.in: Regenerate.
1024
5b45e89f
DD
10252021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
1026
1027 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
1028 * testsuite/ld-elf/group8b.d: Ditto.
1029 * testsuite/ld-elf/group9a.d: Ditto.
1030 * testsuite/ld-elf/group9b.d: Ditto.
1031 * testsuite/ld-elf/pr12851.d: Ditto.
1032 * testsuite/ld-elf/pr22677.d: Ditto.
1033 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
1034 pru from list.
1035
261980de
DD
10362021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
1037
1038 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
1039 Use symbols for memory sizes.
1040
cf758b39
MF
10412021-05-08 Mike Frysinger <vapier@gentoo.org>
1042
1043 * Makefile.am (html-local, doc/ld/index.html): New targets.
1044 * Makefile.in: Regenerate.
1045
2faf902d
MF
10462021-05-08 Mike Frysinger <vapier@gentoo.org>
1047
1048 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
1049 * Makefile.in: Regenerate.
1050
17c6c3b9
JB
10512021-05-07 Jan Beulich <jbeulich@suse.com>
1052
1053 * testsuite/ld-x86-64/rela.d: New.
1054 * testsuite/ld-x86-64/x86-64.exp: Run new test.
1055
d820a652
NC
10562021-05-07 Nick Clifton <nickc@redhat.com>
1057
1058 * ldelfgen.c (compare_link_order): Ignore section size when
1059 performing a relocateable link.
1060
70993db3
AM
10612021-05-07 Alan Modra <amodra@gmail.com>
1062
1063 * ldexp.c (update_definedness): Don't return false for absolute
1064 symbols.
1065 * ldmain.c (multiple_definition): Print "warning: " in message
1066 when not a hard error.
1067
973bba91
AM
10682021-05-07 Alan Modra <amodra@gmail.com>
1069
1070 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
1071 * testsuite/ld-elf/pr27825-2.d: Likewise.
1072
284a1309
SH
10732021-05-06 Stafford Horne <shorne@gmail.com>
1074
1075 PR 27746
1076 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
1077 along with gotha() relocations.
1078 testsuite/ld-or1k/gotha1.dd: New file.
1079 testsuite/ld-or1k/gotha1.s: New file.
1080 testsuite/ld-or1k/gotha2.dd: New file.
1081 testsuite/ld-or1k/gotha2.s: New file
1082 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
1083 failure.
1084
ae064303
NA
10852021-05-06 Nick Alcock <nick.alcock@oracle.com>
1086
1087 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
1088 * testsuite/lib/ld-lib.exp: Likewise.
1089 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
1090 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
1091 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
1092 * testsuite/ld-ctf/array.d: Larger type section.
1093 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1094 * testsuite/ld-ctf/enums.d: Likewise.
1095 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
1096 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
1097 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1098 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
1099
4467df35
L
11002021-05-05 H.J. Lu <hongjiu.lu@intel.com>
1101
1102 PR ld/27825
1103 * testsuite/ld-elf/pr27825-1.d: New file.
1104 * testsuite/ld-elf/pr27825-1a.s: Likewise.
1105 * testsuite/ld-elf/pr27825-1b.s: Likewise.
1106 * testsuite/ld-elf/pr27825-2.d: Likewise.
1107 * testsuite/ld-elf/pr27825-2a.s: Likewise.
1108 * testsuite/ld-elf/pr27825-2b.s: Likewise.
1109
13ffdac3
AM
11102021-05-05 Alan Modra <amodra@gmail.com>
1111
1112 * testsuite/ld-powerpc/empty.s: New file.
1113 * testsuite/ld-powerpc/undefweak.d,
1114 * testsuite/ld-powerpc/undefweak.s: New testcase.
1115 * testsuite/ld-powerpc/powerpc.exp: Run it.
1116
df6fbc21
AM
11172021-05-03 Alan Modra <amodra@gmail.com>
1118
1119 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
1120 named section symbols.
1121
24aebc79
NC
11222021-04-28 Nick Clifton <nickc@redhat.com>
1123
1124 * testsuite/ld-elf/anno-sym.s: New test source file.
1125 * testsuite/ld-elf/anno-sym.d: New test driver.
1126 * testsuite/ld-elf/anno-sym.l: New test error output.
1127
a7664973
JB
11282021-04-26 Jan Beulich <jbeulich@suse.com>
1129
1130 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
1131 testsuite/ld-x86-64/pcrel16-2.d: New.
1132 * testsuite/ld-i386/i386.exp: Run new test.
1133 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1134
69cc1945
L
11352021-04-23 H.J. Lu <hongjiu.lu@intel.com>
1136
1137 PR ld/27771
1138 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
1139 to tmpdir/ldscripts only if it doesn't exist.
1140
d018cd83
JB
11412021-04-22 Jan Beulich <jbeulich@suse.com>
1142
1143 PR ld/26659
1144 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
1145
23356397
NC
11462021-04-21 Nick Clifton <nickc@redhat.com>
1147
1148 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
1149 to allow for named section symbols.
1150 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
1151 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
1152 * testsuite/ld-alpha/tlsbin.rd: Likewise.
1153 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
1154 * testsuite/ld-alpha/tlspic.rd: Likewise.
1155 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
1156 * testsuite/ld-arm/script-type.sym: Likewise.
1157 * testsuite/ld-cris/libdso-2.d: Likewise.
1158 * testsuite/ld-cris/pr16044.d: Likewise.
1159 * testsuite/ld-elf/sec64k.exp: Likewise.
1160 * testsuite/ld-ia64/tlsbin.rd: Likewise.
1161 * testsuite/ld-ia64/tlspic.rd: Likewise.
1162 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1163 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1164 * testsuite/ld-mmix/bspec1.d: Likewise.
1165 * testsuite/ld-mmix/bspec2.d: Likewise.
1166 * testsuite/ld-mmix/local1.d: Likewise.
1167 * testsuite/ld-mmix/local3.d: Likewise.
1168 * testsuite/ld-mmix/local5.d: Likewise.
1169 * testsuite/ld-mmix/local7.d: Likewise.
1170 * testsuite/ld-mmix/undef-3.d: Likewise.
1171 * testsuite/ld-powerpc/tlsso.r: Likewise.
1172 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1173 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1174 * testsuite/ld-s390/tlsbin.rd: Likewise.
1175 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1176 * testsuite/ld-s390/tlspic.rd: Likewise.
1177 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1178 * testsuite/ld-sparc/gotop32.rd: Likewise.
1179 * testsuite/ld-sparc/gotop64.rd: Likewise.
1180 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
1181 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
1182 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
1183 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
1184 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
1185 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
1186 * testsuite/ld-tic6x/common.d: Likewise.
1187 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1188 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1189 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1190 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1191 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1192 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1193 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1194 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1195 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1196 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1197 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1198 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1199 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1200
c5df7e44
CC
12012021-04-20 Clément Chigot <clement.chigot@atos.net>
1202
1203 PR binutils/21700
1204 * testsuite/ld-powerpc/aix52.exp: Add new test.
1205 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
1206 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
1207 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
1208 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
1209
6418520e
NC
12102021-04-13 Nick Clifton <nickc@redhat.com>
1211
1212 * ld.texi (Options): Add note about the effect of --as-needed on
1213 the --rpath and --rpath-link options on Linux based systems.
1214
1cfc6f00
AM
12152021-04-13 Alan Modra <amodra@gmail.com>
1216
1217 PR 27722
1218 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
1219 to isspace.
1220
43e05cd4
AM
12212021-04-12 Alan Modra <amodra@gmail.com>
1222
1223 * configure.ac (--enable-checking): Add support.
1224 * config.in: Regenerate.
1225 * configure: Regenerate.
1226
2cc15b10
AM
12272021-04-12 Alan Modra <amodra@gmail.com>
1228
1229 * emultempl/mipself.em (mips_create_output_section_statements):
1230 Pass base type of hash table to is_elf_hash_table.
1231 * ldelf.c (ldelf_after_open): Likewise.
1232
fc304b88
AM
12332021-04-12 Alan Modra <amodra@gmail.com>
1234
1235 PR 27719
1236 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
1237 the symbol hash table is the correct type before accessing
1238 elf_link_hash_entry symbols.
1239 * plugin.c (is_visible_from_outside): Likewise.
1240 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
1241 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
1242
c3f72de4
AM
12432021-04-09 Alan Modra <amodra@gmail.com>
1244
1245 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
1246 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
1247 * testsuite/ld-powerpc/notoc2.d: Likewise.
1248 * testsuite/ld-powerpc/notoc3.d: Likewise.
1249 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
1250 * testsuite/ld-powerpc/startstop.d: Likewise.
1251 * testsuite/ld-powerpc/tlsget.d: Likewise.
1252 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1253 * testsuite/ld-powerpc/tlsld.d: Likewise.
1254 * testsuite/ld-powerpc/weak1.d: Likewise.
1255 * testsuite/ld-powerpc/weak1so.d: Likewise.
1256
bd3d1480
JB
12572021-04-06 Jan Beulich <jbeulich@suse.com>
1258
1259 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
1260 being discarded. Warn when relocated entry is above .reloc.
1261
c774eab1
AM
12622021-04-05 Alan Modra <amodra@gmail.com>
1263
1264 * configure.ac: Move initfini-array arg handling earlier. Don't
1265 check for string.h, strings.h, stdlib.h, or locale.h. Do check
1266 for inttypes.h, stdint.h, sys/types.h. Don't check for
1267 setlocale, free, getev or strstr.
1268 (AC_ISC_POSIX): Don't invoke.
1269 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
1270 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
1271 getenv fallback declarations.
1272 * ld.h: Don't test HAVE_LOCALE_H.
1273 * ldmain.c: Don't test HAVE_SETLOCALE.
1274 * config.in: Regenerate.
1275 * configure: Regenerate.
1276
74edb473
TC
12772021-04-01 Tamar Christina <tamar.christina@arm.com>
1278
1279 PR ld/26659
1280 * testsuite/ld-pe/pe.exp: Add test.
1281 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
1282 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
1283
e9b095a5
ML
12842021-04-01 Martin Liska <mliska@suse.cz>
1285
1286 * ldbuildid.c (strneq): Remove strneq and use startswith.
1287 (validate_build_id_style): Likewise.
1288 (compute_build_id_size): Likewise.
1289
f38a2680
AM
12902021-03-31 Alan Modra <amodra@gmail.com>
1291
1292 * sysdep.h (POISON_BFD_BOOLEAN): Define.
1293 * configure.ac (elf_list_options, elf_shlib_list_options=false),
1294 (elf_plt_unwind_list_options=false): Replace FALSE with false,
1295 and TRUE with true.
1296 * emulparams/call_nop.sh, * emulparams/cet.sh,
1297 * emulparams/dynamic_undefined_weak.sh,
1298 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
1299 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1300 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
1301 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
1302 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
1303 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
1304 * emultempl/aix.em, * emultempl/alphaelf.em,
1305 * emultempl/armcoff.em, * emultempl/armelf.em,
1306 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
1307 * emultempl/cr16elf.em, * emultempl/crxelf.em,
1308 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
1309 * emultempl/hppaelf.em, * emultempl/linux.em,
1310 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
1311 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
1312 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
1313 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
1314 * emultempl/pep.em, * emultempl/ppc32elf.em,
1315 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
1316 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
1317 * emultempl/solaris2.em, * emultempl/spuelf.em,
1318 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
1319 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
1320 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
1321 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
1322 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
1323 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
1324 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
1325 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
1326 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
1327 bfd_boolean with bool, FALSE with false, and TRUE with true.
1328 * configure: Regenerate.
1329
3dfb1b6d
AM
13302021-03-31 Alan Modra <amodra@gmail.com>
1331
1332 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
1333 * emultempl/nds32elf.em: Likewise.
1334 * testsuite/ld-elf/mbind2b.c: Likewise.
1335 * testsuite/ld-elf/pr18718.c: Likewise.
1336 * testsuite/ld-elf/pr18720a.c: Likewise.
1337 * testsuite/ld-elf/pr25749-1.c: Likewise.
1338 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1339 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1340 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1341 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1342 * testsuite/ld-elf/pr25749-2.c: Likewise.
1343 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1344 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1345 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1346 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1347 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1348 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1349
63b4cc53
AM
13502021-03-29 Alan Modra <amodra@gmail.com>
1351
1352 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
1353 boolean expression.
1354 * lexsup.c (parse_args): Likewise.
1355 * pe-dll.c (pe_dll_id_target): Likewise.
1356
8592be8c
NA
13572021-03-25 Nick Alcock <nick.alcock@oracle.com>
1358
1359 * testsuite/ld-ctf/array.d: Only check that the data object
1360 section is nonempty: do not check its exact size.
1361 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1362 * testsuite/ld-ctf/slice.d: Likewise.
1363 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
1364 func info section too.
1365 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
1366
08dedd66
ML
13672021-03-22 Martin Liska <mliska@suse.cz>
1368
1369 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
1370 * emultempl/beos.em: Likewise.
1371 * emultempl/elf.em: Likewise.
1372 * emultempl/pe.em: Likewise.
1373 * emultempl/pep.em: Likewise.
1374 * emultempl/xtensaelf.em: Likewise.
1375 * ldctor.c (ctor_prio): Likewise.
1376 * ldelf.c (ldelf_try_needed): Likewise.
1377 (ldelf_parse_ld_so_conf): Likewise.
1378 (ldelf_after_open): Likewise.
1379 (output_rel_find): Likewise.
1380 (ldelf_place_orphan): Likewise.
1381 * ldfile.c (ldfile_add_library_path): Likewise.
1382 * ldlang.c (lang_add_input_file): Likewise.
1383 * ldmain.c (get_sysroot): Likewise.
1384 (get_emulation): Likewise.
1385 (add_archive_element): Likewise.
1386 * ldwrite.c (unsplittable_name): Likewise.
1387 (clone_section): Likewise.
1388 * lexsup.c (parse_args): Likewise.
1389 * pe-dll.c (is_import): Likewise.
1390 (pe_implied_import_dll): Likewise.
1391
1de96e5d
L
13922021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1393
1394 PR ld/27590
1395 * testsuite/ld-x86-64/pr27590.rd: New file.
1396 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
1397 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
1398 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1399
15407e7e
AM
14002021-03-20 Alan Modra <amodra@gmail.com>
1401
1402 PR 27590
1403 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1404 for all sections except .stabstr.
1405
fba7f753
AM
14062021-03-19 Alan Modra <amodra@gmail.com>
1407
1408 PR 27590
1409 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1410 R_MIPS_NONE.
1411 * testsuite/ld-elf/pr27590b.d: Likewise.
1412
3818d4ab
L
14132021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1414
1415 PR ld/27590
1416 * testsuite/ld-elf/pr27590.s: New file.
1417 * testsuite/ld-elf/pr27590a.d: Likewise.
1418 * testsuite/ld-elf/pr27590b.d: Likewise.
1419 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1420 --reduce-memory-overheads.
1421
51f6e7a9
L
14222021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1423
1424 PR ld/27587
1425 * testsuite/ld-x86-64/pr27587.err: New file.
1426 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1427 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1428 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1429
69a28486
NA
14302021-03-18 Nick Alcock <nick.alcock@oracle.com>
1431
1432 * testsuite/ld-ctf/slice.c: Check slices of enums too.
1433 * testsuite/ld-ctf/slice.d: Results adjusted.
1434
ee42883c
NC
14352021-03-16 Nick Clifton <nickc@redhat.com>
1436
1437 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1438 lname string.
1439
c68b1842
JB
14402021-03-15 Jan Beulich <jbeulich@suse.com>
1441
1442 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1443
203a206d
AM
14442021-03-12 Alan Modra <amodra@gmail.com>
1445
1446 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1447 (ALL_64_EMULATION_SOURCES): ..here.
1448 * Makefile.in: Regenerate.
1449
1b2cb8e2
CC
14502021-03-12 Clément Chigot <clement.chigot@atos.net>
1451
1452 * emultempl/aix.em: Ensure .tdata section is removed
1453 if empty, even with -r flag.
1454 * scripttempl/aix.sc: Handle TLS sections.
1455 * testsuite/ld-powerpc/aix52.exp: Add new tests.
1456 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1457 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1458 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1459 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1460 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1461 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1462 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1463 * testsuite/ld-powerpc/aix-tls-section.s: New test.
1464
4a403be0
CC
14652021-03-12 Clément Chigot <clement.chigot@atos.net>
1466
1467 * scripttempl/aix.sc: Add .te to .data section.
1468 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1469 Add aix-largetoc-1 test.
1470 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1471 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1472 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1473 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1474
68cb2183
AM
14752021-03-12 Alan Modra <amodra@gmail.com>
1476
1477 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1478 arrange to define __main for some run_dump_test tests.
1479 * testsuite/ld-gc/pr13683.d: Accept more symbols.
1480 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1481 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1482 * testsuite/ld-srec/srec.exp: Likewise.
1483 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1484
ebdcad3f
NC
14852021-03-11 Nelson Chu <nelson.chu@sifive.com>
1486
1487 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1488 many times if riscv_restart_relax_sections returns TRUE.
1489 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
1490 applying this patch, the call won't be relaxed to jal; But now we
1491 have more chances to do relaxations.
1492 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1493 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1494
67b0f684
JB
14952021-03-10 Jan Beulich <jbeulich@suse.com>
1496
1497 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1498 than 32 set bits.
1499 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1500 comment.
1501 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1502
5dc75cf3
JB
15032021-03-09 Jan Beulich <jbeulich@suse.com>
1504
1505 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1506 alignment to 4k.
1507 * testsuite/ld-pe/reloc.d: xfail for mcore.
1508
87fa7d56
JB
15092021-03-09 Jan Beulich <jbeulich@suse.com>
1510
1511 * testsuite/ld-scripts/alignof.exp,
1512 testsuite/ld-scripts/data.exp,
1513 testsuite/ld-scripts/default-script.exp,
1514 testsuite/ld-scripts/log2.exp,
1515 testsuite/ld-scripts/print-memory-usage.exp,
1516 testsuite/ld-scripts/sizeof.exp,
1517 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1518 for PE/COFF.
1519 * testsuite/ld-scripts/default-script1.d,
1520 testsuite/ld-scripts/default-script2.d,
1521 testsuite/ld-scripts/default-script3.d,
1522 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1523
8c0546e9
L
15242021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1525
1526 PR ld/27425
1527 PR ld/27432
1528 * ldelf.c (ldelf_set_output_arch): New function.
1529 * ldelf.h (ldelf_set_output_arch): New prototype.
1530 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1531 ldelf_set_output_arch.
1532 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1533 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1534 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1535 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1536 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1537 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1538 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1539 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1540 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1541
d4e5db4e
JB
15422021-03-04 Jan Beulich <jbeulich@suse.com>
1543
1544 * testsuite/ld-scripts/map-address.exp: Set image base to zero
1545 for PE/COFF.
1546 * testsuite/ld-scripts/map-address.t: Place .text.
1547
6fa7408d
JB
15482021-03-04 Jan Beulich <jbeulich@suse.com>
1549
1550 * ldexp.c (ldexp_is_final_sym_absolute): New.
1551 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1552 * pe-dll.c (generate_reloc): Skip absolute symbols.
1553 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1554 * testsuite/ld-pe/pe.exp: Run new test.
1555
5789f845
AM
15562021-03-03 Alan Modra <amodra@gmail.com>
1557
1558 PR 27500
1559 * ldlang.c (insert_undefined): Don't mark symbols here.
1560 (lang_mark_undefineds): Do so here instead, new function.
1561 (lang_process): Call lang_mark_undefineds.
1562 * testsuite/ld-gc/start3.d,
1563 * testsuite/ld-gc/start3.s: New test.
1564 * testsuite/ld-gc/start4.d,
1565 * testsuite/ld-gc/start4.s: New test.
1566 * testsuite/ld-gc/gc.exp: Run them.
1567
270f32fc
AM
15682021-03-03 Alan Modra <amodra@gmail.com>
1569
1570 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1571 Move tests with ELF section directives to is_elf_format block.
1572 * testsuite/ld-gc/abi-note.d: Run on more targets.
1573 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1574 * testsuite/ld-gc/start.d: Likewise.
1575 * testsuite/ld-gc/start2.d: Likewise.
1576 * testsuite/ld-gc/stop.d: Likewise.
1577 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1578 * testsuite/ld-gc/start.s: Likewise.
1579 * testsuite/ld-gc/start2.s: Likewise.
1580
211bcd01
NA
15812021-03-02 Nick Alcock <nick.alcock@oracle.com>
1582
1583 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1584
b80e421f
AM
15852021-03-02 Alan Modra <amodra@gmail.com>
1586
1587 * testsuite/ld-powerpc/startstop.d,
1588 * testsuite/ld-powerpc/startstop.r,
1589 * testsuite/ld-powerpc/startstop.s: New test.
1590 * testsuite/ld-powerpc/powerpc.exp: Run it.
1591
f5b9c288
AM
15922021-03-02 Alan Modra <amodra@gmail.com>
1593
1594 * testsuite/ld-powerpc/weak1.d,
1595 * testsuite/ld-powerpc/weak1.r,
1596 * testsuite/ld-powerpc/weak1.s,
1597 * testsuite/ld-powerpc/weak1so.d,
1598 * testsuite/ld-powerpc/weak1so.r: New tests.
1599 * testsuite/ld-powerpc/powerpc.exp: Run them.
1600
ba6eb62f
NC
16012021-03-01 Hannes Domani <ssbssa@sourceware.org>
1602 Nick Clifton <nickc@redhat.com>
1603
1604 PR 27268
1605 * scripttempl/pe.sc: Add DWARF-5 section names.
1606 * scripttempl/pep.sc: Likewise.
1607
8ee10e86
AM
16082021-03-01 Alan Modra <amodra@gmail.com>
1609 Fangrui Song <maskray@google.com>
1610
1611 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1612 * lexsup.c (elf_static_list_options): Display help for them. Move
1613 help for -z stack-size to here from elf_shlib_list_options. Add
1614 help for -z start-stop-visibility and -z undefs.
1615 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1616 * NEWS: Mention -z start-stop-gc.
1617 * testsuite/ld-gc/start2.s,
1618 * testsuite/ld-gc/start2.d: New test.
1619 * testsuite/ld-gc/gc.exp: Run it.
1620
7824c1d2
AM
16212021-03-01 Alan Modra <amodra@gmail.com>
1622
1623 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1624 symbols undefweak if that was how they were referenced. Undo
1625 dynamic state too.
1626
6a1224ec
AM
16272021-03-01 Alan Modra <amodra@gmail.com>
1628
1629 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1630 * testsuite/ld-elf/pr27128a.d: Likewise.
1631 * testsuite/ld-elf/pr27128b.d: Likewise.
1632 * testsuite/ld-elf/pr27128c.d: Likewise.
1633 * testsuite/ld-elf/pr27128d.d: Likewise.
1634 * testsuite/ld-elf/pr27128e.d: Likewise.
1635
bfece756
AM
16362021-02-26 Alan Modra <amodra@gmail.com>
1637
1638 PR 27441
1639 * testsuite/ld-plugin/pr27441a.c,
1640 * testsuite/ld-plugin/pr27441b.c,
1641 * testsuite/ld-plugin/pr27441c.c,
1642 * testsuite/ld-plugin/pr27441c.d: New test.
1643 * testsuite/ld-plugin/lto.exp: Run it.
1644
3c27360b
JB
16452021-02-25 Jan Beulich <jbeulich@suse.com>
1646
1647 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1648
89753bbf
AM
16492021-02-21 Alan Modra <amodra@gmail.com>
1650
1651 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1652 defined in an object file.
1653 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1654 * testsuite/ld-scripts/defined5.d: Expect a warning.
1655
2f973f13
AM
16562021-02-19 Alan Modra <amodra@gmail.com>
1657
1658 * testsuite/lib/ld-lib.exp: Whitespace.
1659 (load_common_lib): Expand single use and delete this proc.
1660 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1661 Use -B for clang too.
1662
a364a116
AB
16632021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1664
1665 * testplugin.c (record_read_length): Remove debug fprintf.
1666
5b1f6c95
AM
16672021-02-14 Alan Modra <amodra@gmail.com>
1668
1669 * testsuite/ld-cdtest/cdtest.exp,
1670 * testsuite/ld-checks/checks.exp,
1671 * testsuite/ld-elf/binutils.exp,
1672 * testsuite/ld-elf/compress.exp,
1673 * testsuite/ld-elf/dwarf.exp,
1674 * testsuite/ld-elf/exclude.exp,
1675 * testsuite/ld-elf/frame.exp,
1676 * testsuite/ld-elf/indirect.exp,
1677 * testsuite/ld-elf/linux-x86.exp,
1678 * testsuite/ld-elf/sec-to-seg.exp,
1679 * testsuite/ld-elf/tls_common.exp,
1680 * testsuite/ld-elfcomm/elfcomm.exp,
1681 * testsuite/ld-elfvers/vers.exp,
1682 * testsuite/ld-elfvsb/elfvsb.exp,
1683 * testsuite/ld-elfweak/elfweak.exp,
1684 * testsuite/ld-ifunc/binutils.exp,
1685 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1686 * testsuite/ld-misc/defsym.exp,
1687 * testsuite/ld-mn10300/mn10300.exp,
1688 * testsuite/ld-plugin/lto.exp,
1689 * testsuite/ld-plugin/plugin.exp,
1690 * testsuite/ld-scripts/align.exp,
1691 * testsuite/ld-scripts/assert.exp,
1692 * testsuite/ld-scripts/crossref.exp,
1693 * testsuite/ld-scripts/defined.exp,
1694 * testsuite/ld-scripts/extern.exp,
1695 * testsuite/ld-scripts/log2.exp,
1696 * testsuite/ld-scripts/map-address.exp,
1697 * testsuite/ld-scripts/phdrs.exp,
1698 * testsuite/ld-scripts/phdrs2.exp,
1699 * testsuite/ld-scripts/script.exp,
1700 * testsuite/ld-scripts/section-flags.exp,
1701 * testsuite/ld-scripts/sizeof.exp,
1702 * testsuite/ld-scripts/weak.exp,
1703 * testsuite/ld-selective/selective.exp,
1704 * testsuite/ld-sh/sh.exp,
1705 * testsuite/ld-shared/shared.exp,
1706 * testsuite/ld-srec/srec.exp,
1707 * testsuite/ld-tic6x/tic6x.exp,
1708 * testsuite/ld-undefined/undefined.exp,
1709 * testsuite/ld-undefined/weak-undef.exp,
1710 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1711 perror. Instead report "unsupported" or "fail".
1712
c46b7066
NC
17132021-02-12 Nick Clifton <nickc@redhat.com>
1714
1715 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1716 following debug links.
1717
933feaf3
AM
17182021-02-11 Alan Modra <amodra@gmail.com>
1719
1720 * NEWS: Mention arm-symbianelf removal.
1721
a57d1773
AM
17222021-02-09 Alan Modra <amodra@gmail.com>
1723
1724 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1725 Don't include symbian dep file.
1726 * configure.tgt: Remove arm*-*-symbianelf* entry.
1727 * emulparams/armsymbian.sh: Delete.
1728 * ld.texi: Don't mention symbian.
1729 * scripttempl/armbpabi.sc: Delete.
1730 * testsuite/ld-arm/symbian-seg1.d: Delete.
1731 * testsuite/ld-arm/symbian-seg1.s: Delete.
1732 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1733 * Makefile.in: Regenerate.
1734 * po/BLD-POTFILES.in: Regenerate.
1735
38a143aa
L
17362021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1737
1738 PR ld/27358
1739 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1740 tests.
1741 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1742
35a01a04
NA
17432021-01-26 Nick Alcock <nick.alcock@oracle.com>
1744
1745 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1746 when appropriate.
1747
1a2f1b54
L
17482021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1749
1750 PR ld/19609
1751 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1752 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1753 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1754 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1755 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1756 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1757 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1758
37707bd8
L
17592021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1760
1761 PR ld/15146
1762 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1763 * testsuite/ld-plugin/pr15146.d: Restored.
1764 * testsuite/ld-plugin/pr15146a.c: Likewise.
1765 * testsuite/ld-plugin/pr15146b.c: Likewise.
1766 * testsuite/ld-plugin/pr15146c.c: Likewise.
1767 * testsuite/ld-plugin/pr15146d.c: Likewise.
1768
7d409ac0
AM
17692021-02-04 Alan Modra <amodra@gmail.com>
1770
1771 * testsuite/ld-plugin/pr27311d.c: New test.
1772 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1773 and link new test as pr27311-2.
1774
69551367
AM
17752021-02-03 Alan Modra <amodra@gmail.com>
1776
1777 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1778 Link with --as-needed.
1779
9918bff7
AM
17802021-02-02 Alan Modra <amodra@gmail.com>
1781
1782 * testsuite/ld-plugin/pr27311.d,
1783 * testsuite/ld-plugin/pr27311.ver,
1784 * testsuite/ld-plugin/pr27311a.c,
1785 * testsuite/ld-plugin/pr27311b.c,
1786 * testsuite/ld-plugin/pr27311c.c: New testcase.
1787 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1788 PR12982 entries.
1789
1f568f9a
EH
17902021-02-01 Emery Hemingway <ehmry@posteo.net>
1791
1792 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1793
fb6c220e
AM
17942021-02-01 Alan Modra <amodra@gmail.com>
1795
1796 * ldgram.y (defsym_expr): Use assignment rule.
1797 * ldlex.h (ldlex_defsym): Delete.
1798 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1799
40726f16
AM
18002021-02-01 Alan Modra <amodra@gmail.com>
1801
1802 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1803 * ldlex.h (ldlex_backup): Declare.
1804 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1805 chars, use SYMBOLNAMECHAR.
1806 (ldlex_backup): New function.
1807
a5f92c67
AM
18082021-02-01 Alan Modra <amodra@gmail.com>
1809
1810 * ldgram.y: Whitespace fixes.
1811
49daa38f
AM
18122021-02-01 Alan Modra <amodra@gmail.com>
1813
1814 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1815
c4566785
AM
18162021-01-29 Alan Modra <amodra@gmail.com>
1817
1818 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1819
53e556e5
L
18202021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1821
1822 PR ld/27259
1823 * testsuite/ld-elf/pr27259.d: New file.
1824 * testsuite/ld-elf/pr27259.s: Likewise.
1825
def97fb9
AM
18262021-01-28 Alan Modra <amodra@gmail.com>
1827
1828 PR 27259
1829 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1830 prevent endless looping of linked-to sections.
1831
2eda57ef
L
18322021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1833
1834 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1835
1c9c9b9b
AM
18362021-01-26 Alan Modra <amodra@gmail.com>
1837
1838 PR 27226
1839 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1840 * emulparams/elf64_ia64_vms.sh: Likewise.
1841 * emulparams/elf64mmix.sh: Likewise.
1842 * emulparams/elf_iamcu.sh: Likewise.
1843 * emulparams/elf_k1om.sh: Likewise.
1844 * emulparams/elf_l1om.sh: Likewise.
1845 * emulparams/mmo.sh: Likewise.
1846 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1847 * scripttempl/pdp11.sc: Use it.
1848 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1849 instead use .xe script. Support scripts from file system.
1850 * emultempl/beos.em: Support scripts from file system.
1851 * emultempl/pe.em: Likewise.
1852 * emultempl/pep.em: Likewise.
1853 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1854
9e42b976
FS
18552021-01-25 Fangrui Song <maskray@google.com>
1856
1857 PR ld/27230
1858 * scripttempl/DWARF.sc: Add .debug_* sections.
1859
b8df6900
NC
18602021-01-25 Nick Clifton <nickc@redhat.com>
1861
1862 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1863 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1864 .debug_addr into DWARF-5 section.
1865
c78eec44
AM
18662021-01-21 Alan Modra <amodra@gmail.com>
1867
1868 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1869
4bd7c902
AM
18702021-01-20 Alan Modra <amodra@gmail.com>
1871
1872 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1873 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1874 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1875 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1876 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1877 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1878 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1879 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1880 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1881 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1882 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1883 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1884 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1885 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1886 * testsuite/ld-powerpc/tlsso.r: Likewise.
1887 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1888 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1889
c98de297
NA
18902021-01-19 Nick Alcock <nick.alcock@oracle.com>
1891
1892 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1893 symbols by the optimizer.
1894 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1895
85e963f1
NC
18962021-01-19 Nelson Chu <nelson.chu@sifive.com>
1897
1898 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1899 if target is riscv little endian. Otherwise, return false.
1900 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1901 targets by [riscv_little_endian].
1902
326adec3
AM
19032021-01-18 Alan Modra <amodra@gmail.com>
1904
1905 PR 26378
1906 * ldlang.c (map_input_to_output_sections): Start with a read-only
1907 section for data statements.
1908 * testsuite/ld-elf/size-2.d: Adjust to suit.
1909
994b2513
L
19102021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1911
1912 PR ld/27193
1913 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1914 * testsuite/ld-i386/pr27193.dd: New file.
1915 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1916 * testsuite/ld-i386/pr27193b.s: Likewise.
1917
edf0f284
L
19182021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1919
1920 PR binutils/23460
1921 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1922 files to 20 for PR binutils/23460 test.
1923
75a933f3
L
19242021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1925
1926 PR ld/23169
1927 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1928 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1929 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1930 address.
1931
68b00778
L
19322021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1933
1934 * NEWS: Mention -z report-relative-reloc.
1935 * ld.texi: Document -z report-relative-reloc.
1936 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1937 * emulparams/elf_i386.sh: Likewse.
1938 * emulparams/elf_x86_64.sh: Likewse.
1939 * emulparams/x86-report-relative.sh: New file.
1940 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1941 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1942 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1943 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1944 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1945 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1946 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1947 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1948 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1949 report-reloc-1-x32.
1950
eb6e6af8
AM
19512021-01-16 Alan Modra <amodra@gmail.com>
1952
1953 PR 26002
1954 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1955 unversioned symbols.
1956 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1957
b800637e
NC
19582021-01-15 Nelson Chu <nelson.chu@sifive.com>
1959
1960 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1961 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1962 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1963 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1964 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1965 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1966
5a10699f
NC
19672021-01-14 Nick Clifton <nickc@redhat.com>
1968
1969 * po/fr.po: Updated French translation.
1970
271bea6a
MF
19712021-01-14 Mike Frysinger <vapier@gentoo.org>
1972
1973 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1974
4120e488
AM
19752021-01-14 Alan Modra <amodra@gmail.com>
1976
1977 PR 27160
1978 * ldelfgen.c (compare_link_order): Protect access of ELF section
1979 data.
1980 (add_link_order_input_section): Remove redundant NULL check.
1981 Use bfd_get_flavour.
1982 (ldelf_map_segments): Use bfd_get_flavour.
1983
b634d11d
L
19842021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1985
1986 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1987 before accessing ELF section data.
1988
5347ed60
AM
19892021-01-13 Alan Modra <amodra@gmail.com>
1990
1991 * Makefile.in: Regenerate.
1992
b209b5a6
AM
19932021-01-13 Alan Modra <amodra@gmail.com>
1994
1995 PR 27160
1996 * ldlang.h (lang_output_section_statement_type): Add data field.
1997 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1998 (statement_list): Declare.
1999 (lang_add_section): Adjust prototype.
2000 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
2001 * emultempl/armelf.em: Likewise.
2002 * emultempl/beos.em: Likewise.
2003 * emultempl/cskyelf.em: Likewise.
2004 * emultempl/hppaelf.em: Likewise.
2005 * emultempl/m68hc1xelf.em: Likewise.
2006 * emultempl/metagelf.em: Likewise.
2007 * emultempl/mipself.em: Likewise.
2008 * emultempl/mmo.em: Likewise.
2009 * emultempl/msp430.em: Likewise.
2010 * emultempl/nios2elf.em: Likewise.
2011 * emultempl/pe.em: Likewise.
2012 * emultempl/pep.em: Likewise.
2013 * emultempl/ppc64elf.em: Likewise.
2014 * emultempl/spuelf.em: Likewise.
2015 * emultempl/vms.em: Likewise.
2016 * ldelf.c: Likewise.
2017 * ldelfgen.c: Include ldctor.h.
2018 (struct os_sections): New.
2019 (add_link_order_input_section, link_order_scan): New functions.
2020 (compare_link_order, fixup_link_order): New functions.
2021 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
2022 * ldlang.c (statement_list): Make global.
2023 (output_section_callback_fast): Save pattern in tree node.
2024 (lang_add_section): Add pattern parameter, save in lang_input_section.
2025 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
2026 (lang_insert_orphan, output_section_callback): Likewise.
2027 (ldlang_place_orphan): Likewise.
2028 (gc_section_callback): Don't set section->pattern.
2029 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
2030 * testsuite/ld-elf/pr26256-3b.d: Likewise.
2031 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
2032
8c4645b4
AM
20332021-01-13 Alan Modra <amodra@gmail.com>
2034
2035 * ldlang.h (callback_t): Remove flag_info function parameter.
2036 * ldlang.c (walk_wild_consider_section): Adjust to suit.
2037 (walk_wild_section_general): Likewise.
2038 (output_section_callback_fast, output_section_callback): Likewise.
2039 (check_section_callback, gc_section_callback): Likewise.
2040 (find_relro_section_callback): Likewise.
2041
d546b610
L
20422021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2043
2044 PR binutils/26792
2045 * configure.ac: Use GNU_MAKE_JOBSERVER.
2046 * aclocal.m4: Regenerated.
2047 * configure: Likewise.
2048
c2e9a4a3
L
20492021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2050
2051 PR ld/27171
2052 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
2053 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
2054 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
2055 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
2056
83b33c6c
L
20572021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2058
2059 PR ld/27173
2060 * configure: Regenerated.
2061
c0f6e439
MJ
20622021-01-11 Matt Jenkins <matt@majenko.co.uk>
2063
2064 PR ld/27167
2065 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
2066 and mips64r5 to list of known mips targets.
2067
20682021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
a8aa72b9
NC
2069
2070 * po/pt_BR.po: Updated Brazilian Portuguese translation.
2071` * po/uk.po: Updated Ukranian translation.
2072
a4966cd9
L
20732021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2074
2075 * configure: Regenerated.
2076
0a94990b
L
20772021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2078
2079 PR ld/27166
2080 * testsuite/ld-x86-64/lam-u48.rd: New file.
2081 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
2082 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
2083
573fe3fb
NC
20842021-01-09 Nick Clifton <nickc@redhat.com>
2085
2086 * configure: Regenerate.
2087 * po/ld.pot: Regenerate.
2088
055bc77a
NC
20892021-01-09 Nick Clifton <nickc@redhat.com>
2090
2091 * 2.36 release branch crated.
2092
ba9e922f
L
20932021-01-08 H.J. Lu <hongjiu.lu@intel.com>
2094
2095 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
2096 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
2097
64307045
AM
20982021-01-09 Alan Modra <amodra@gmail.com>
2099
2100 * configure: Regenerate.
2101 * Makefile.in: Regenerate.
2102
f4782128
ST
21032021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2104
2105 * configure: Regenerate.
2106
d1bcae83
L
21072021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2108
2109 PR 27109
2110 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
2111 * testsuite/ld-elf/loadaddr3b.d: Likewise.
2112 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
2113 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
2114 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
2115 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
2116 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
2117 * testsuite/ld-i386/pr19636-1d.d: Likewise.
2118 * testsuite/ld-i386/pr19636-1l.d: Likewise.
2119 * testsuite/ld-i386/pr19636-2c.d: Likewise.
2120 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
2121 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
2122 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
2123 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
2124 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
2125 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
2126 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
2127 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
2128 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
2129 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
2130 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
2131 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
2132 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2133 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
2134 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2135 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
2136 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
2137 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
2138 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
2139 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
2140 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
2141 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
2142 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
2143 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
2144 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
2145 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
2146 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
2147 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
2148 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
2149 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
2150 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
2151 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
2152 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
2153 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
2154 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2155 * testsuite/ld-x86-64/pr21038b.d: Likewise.
2156 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2157 * testsuite/ld-x86-64/pr21038c.d: Likewise.
2158 * testsuite/ld-x86-64/pr23854.d: Likewise.
2159 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
2160 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
2161 * testsuite/ld-i386/plt-pic.pd: Likewise.
2162 * testsuite/ld-i386/plt-pic2.dd: Likewise.
2163 * testsuite/ld-i386/plt.pd: Likewise.
2164 * testsuite/ld-i386/plt2.dd: Likewise.
2165 * testsuite/ld-i386/tlsbin.rd: Likewise.
2166 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2167 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2168 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2169 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
2170 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2171 * testsuite/ld-i386/tlspic.rd: Likewise.
2172 * testsuite/ld-i386/tlspic2.rd: Likewise.
2173 * testsuite/ld-x86-64/mpx3.dd: Likewise.
2174 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
2175 * testsuite/ld-x86-64/mpx4.dd: Likewise.
2176 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
2177 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
2178 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
2179 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
2180 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
2181 * testsuite/ld-x86-64/plt.pd: Likewise.
2182 * testsuite/ld-x86-64/plt2.dd: Likewise.
2183 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2184 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2185 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2186 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2187 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
2188 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2189 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2190 * testsuite/ld-elf/sec64k.exp: Check
2191 is_elf_unused_section_symbols.
2192
dc200613
AM
21932021-01-07 Alan Modra <amodra@gmail.com>
2194
2195 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
2196 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
2197 * testsuite/ld-scripts/segment-start.d: Likewise.
2198
8e604ff0
AM
21992021-01-07 Alan Modra <amodra@gmail.com>
2200
2201 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
2202 about dynamic relocations in read-only sections.
2203 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
2204 * testsuite/ld-elf/ehdr_start.d: Likewise.
2205 * testsuite/ld-scripts/pr22267.d: Likewise.
2206 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
2207 pr20995 text.
2208 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
2209
4d4490b8
MC
22102021-01-07 Marcus Comstedt <marcus@mc.pp.se>
2211
2212 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
2213 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
2214
f526791a
AM
22152021-01-07 Alan Modra <amodra@gmail.com>
2216
2217 * po/BLD-POTFILES.in: Regenerate.
2218
4018f4e0
AM
22192021-01-07 Alan Modra <amodra@gmail.com>
2220
2221 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
2222 complain about relocs in read-only sections. Tidy ASFLAGS append.
2223
3677b729
AM
22242021-01-06 Alan Modra <amodra@gmail.com>
2225
2226 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
2227 base for some tests.
2228 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
2229 * testsuite/ld-sparc/gotop32.sd: Likewise.
2230 * testsuite/ld-sparc/gotop32.td: Likewise.
2231 * testsuite/ld-sparc/gotop64.dd: Likewise.
2232 * testsuite/ld-sparc/gotop64.sd: Likewise.
2233 * testsuite/ld-sparc/gotop64.td: Likewise.
2234 * testsuite/ld-sparc/tlsg32.sd: Likewise.
2235 * testsuite/ld-sparc/tlsg64.sd: Likewise.
2236 * testsuite/ld-sparc/tlspie32.dd: Likewise.
2237 * testsuite/ld-sparc/tlspie64.dd: Likewise.
2238 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
2239 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
2240 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
2241 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
2242 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
2243 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
2244 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
2245 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
2246 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
2247 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
2248 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
2249 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
2250 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
2251 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
2252 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
2253 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
2254 * testsuite/ld-sparc/wdispcall.dd: Likewise.
2255
73624512
AM
22562021-01-06 Alan Modra <amodra@gmail.com>
2257
2258 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
2259 * testsuite/ld-scripts/rgn-at11.d: Likewise.
2260
f36ce378
MC
22612021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2262
2263 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
2264 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
2265 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
2266 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
2267 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2268 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2269 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
2270 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
2271 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
2272 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
2273 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
2274 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
2275 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
2276 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
2277 to littleriscv.
2278 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
2279
fbc09e7a
MC
22802021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2281
2282 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
2283 riscv32be*-*-linux*, and riscv64be*-*-linux*.
2284 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
2285 eelf32briscv_ilp32.c.
2286 * Makefile.in: Regenerate.
2287 * emulparams/elf32briscv.sh: Added.
2288 * emulparams/elf32briscv_ilp32.sh: Likewise.
2289 * emulparams/elf32briscv_ilp32f.sh: Likewise.
2290 * emulparams/elf64briscv.sh: Likewise.
2291 * emulparams/elf64briscv_lp64.sh: Likewise.
2292 * emulparams/elf64briscv_lp64f.sh: Likewise.
2293
b4b6ea46
NA
22942021-01-05 Nick Alcock <nick.alcock@oracle.com>
2295
2296 * testsuite/ld-ctf/enum-forward.c: New test.
2297 * testsuite/ld-ctf/enum-forward.c: New results.
2298
37002871
NA
22992021-01-05 Nick Alcock <nick.alcock@oracle.com>
2300
2301 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2302 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2303 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2304 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2305 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2306 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2307 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2308 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2309 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2310 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2311 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2312 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2313 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2314 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2315 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2316 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2317 * testsuite/ld-ctf/cycle-1.d: Likewise.
2318 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2319 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2320 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2321 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2322 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2323 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2324 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2325 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2326 * testsuite/ld-ctf/forward.d: Likewise.
2327 * testsuite/ld-ctf/function.d: Likewise.
2328 * testsuite/ld-ctf/slice.d: Likewise.
2329 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2330 * testsuite/ld-ctf/enums.c: New test.
2331 * testsuite/ld-ctf/enums.d: New test.
2332
ffeece6a
NA
23332021-01-05 Nick Alcock <nick.alcock@oracle.com>
2334
2335 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
2336 changes.
2337 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2338 * testsuite/ld-ctf/forward.c: New test...
2339 * testsuite/ld-ctf/forward.d: ... and results.
2340
91e7ce2f
NA
23412021-01-05 Nick Alcock <nick.alcock@oracle.com>
2342
2343 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2344 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2345 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2346 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2347 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2348 * testsuite/ld-ctf/function.d: Likewise.
2349 * testsuite/ld-ctf/slice.d: Likewise.
2350
57f97d0e
NA
23512021-01-05 Nick Alcock <nick.alcock@oracle.com>
2352
2353 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2354 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2355 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2356 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2357 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2358 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2359 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2360 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2361 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2362 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2363 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2364 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2365 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2366 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2367 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2368 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2369 * testsuite/ld-ctf/cycle-1.d: Likewise.
2370 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2371 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2372 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2373 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2374 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2375 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2376 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2377 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2378 * testsuite/ld-ctf/function.d: Likewise.
2379 * testsuite/ld-ctf/slice.d: Likewise.
2380 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2381
b281a04f
AM
23822021-01-05 Alan Modra <amodra@gmail.com>
2383
2384 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
2385
40b11930
AM
23862021-01-05 Alan Modra <amodra@gmail.com>
2387
2388 PR ld/26256
2389 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
2390 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
2391
cd6d537c
L
23922021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2393
2394 PR ld/26256
2395 * ldlang.c (gc_section_callback): Set pattern.
2396 * testsuite/ld-elf/pr26256-1.s: New file.
2397 * testsuite/ld-elf/pr26256-1.t: Likewise.
2398 * testsuite/ld-elf/pr26256-1a.d: Likewise.
2399 * testsuite/ld-elf/pr26256-1b.d: Likewise.
2400 * testsuite/ld-elf/pr26256-2.s: Likewise.
2401 * testsuite/ld-elf/pr26256-2.t: Likewise.
2402 * testsuite/ld-elf/pr26256-2a.d: Likewise.
2403 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2404 * testsuite/ld-elf/pr26256-2b.d: Likewise.
2405 * testsuite/ld-elf/pr26256-3.s: Likewise.
2406 * testsuite/ld-elf/pr26256-3a.d: Likewise.
2407 * testsuite/ld-elf/pr26256-3a.t: Likewise.
2408 * testsuite/ld-elf/pr26256-3b.d: Likewise.
2409 * testsuite/ld-elf/pr26256-3b.t: Likewise.
2410
5b4293ba
AM
24112021-01-04 Alan Modra <amodra@gmail.com>
2412
2413 PR 26822
2414 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2415 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2416 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2417 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2418 * testsuite/ld-i386/tlsbin.rd: Likewise.
2419 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2420 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2421 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2422 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2423 * testsuite/ld-i386/tlspic.rd: Likewise.
2424 * testsuite/ld-i386/tlspic2.rd: Likewise.
2425 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2426 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2427 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2428 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2429 * testsuite/ld-plugin/pr17973.d: Likewise.
2430 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2431 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2432 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2433 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2434 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2435 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2436 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2437 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2438 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2439 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2440 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2441 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2442 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2443 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2444 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2445 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2446 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2447 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2448 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2449 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2450 * testsuite/ld-xtensa/tlspic.rd: Likewise.
2451
f9a6a8f0
AM
24522021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2453
2454 * configure.tgt: Correct comment grammar.
2455 * emultempl/m68hc1xelf.em: Likewise.
2456 * ld.texi: Correct grammar.
2457
250d07de
AM
24582021-01-01 Alan Modra <amodra@gmail.com>
2459
2460 Update year range in copyright notice of all files.
2461
c2795844 2462For older changes see ChangeLog-2020
3499769a 2463\f
d87bef3a 2464Copyright (C) 2021-2023 Free Software Foundation, Inc.
3499769a
AM
2465
2466Copying and distribution of this file, with or without modification,
2467are permitted in any medium without royalty provided the copyright
2468notice and this notice are preserved.
2469
2470Local Variables:
2471mode: change-log
2472left-margin: 8
2473fill-column: 74
2474version-control: never
2475End: