3 * testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.
5 2017-04-07 gingold <gingold@gingold-Precision-7510>
7 * testsuite/ld-pe/pe.exp: New test.
8 * testsuite/ld-pe/weakdef-1.s: New test source.
9 * testsuite/ld-pe/weakdef-1.d: New test.
13 * testsuite/ld-elf/mbind1a.d: Remove matches for PT_LOAD segments.
14 * testsuite/ld-elf/mbind1b.d: Likewise.
15 * testsuite/ld-elf/mbind1c.d: Likewise.
20 * testsuite/ld-elf/shared.exp: Change xfails to kfails and fix
21 indentation issue introduced with last commit.
26 * testsuite/ld-elf/shared.exp: Xfail all PR21233 tests but the
27 first test for cris*-*-*.
32 * ldlang.c (insert_undefined): Set `mark' for ELF symbols.
33 * testsuite/ld-elf/pr21233.sd: New test.
34 * testsuite/ld-elf/pr21233-l.sd: New test.
35 * testsuite/ld-elf/pr21233.ld: New test linker script.
36 * testsuite/ld-elf/pr21233-e.ld: New test linker script.
37 * testsuite/ld-elf/pr21233.s: New test source.
38 * testsuite/ld-elf/pr21233-l.s: New test source.
39 * testsuite/ld-elf/shared.exp: Run the new tests.
43 * NEWS: Mention support for ELF SHF_GNU_MBIND and
45 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
46 input GNU_MBIND sections with the same type, attributes and
47 sh_info field into a single output GNU_MBIND section.
48 * testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
49 * testsuite/ld-elf/mbind1.s: New file.
50 * testsuite/ld-elf/mbind1a.d: Likewise.
51 * testsuite/ld-elf/mbind1b.d: Likewise.
52 * testsuite/ld-elf/mbind1c.d: Likewise.
53 * testsuite/ld-elf/mbind2a.s: Likewise.
54 * testsuite/ld-elf/mbind2b.c: Likewise.
58 * NEWS: Mention support for ELF GNU program properties.
59 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
60 ELF setup_gnu_properties.
61 * testsuite/ld-i386/i386.exp: Run property tests for Linux/i386.
62 * testsuite/ld-i386/pass.c: New file.
63 * testsuite/ld-i386/property-1.r: Likewise.
64 * testsuite/ld-i386/property-2.r: Likewise.
65 * testsuite/ld-i386/property-3.r: Likewise.
66 * testsuite/ld-i386/property-4.r: Likewise.
67 * testsuite/ld-i386/property-5.r: Likewise.
68 * testsuite/ld-i386/property-6.r: Likewise.
69 * testsuite/ld-i386/property-6a.c: Likewise.
70 * testsuite/ld-i386/property-6b.c: Likewise.
71 * testsuite/ld-i386/property-6c.S: Likewise.
72 * testsuite/ld-i386/property-7.r: Likewise.
73 * testsuite/ld-i386/property-no-copy.S: Likewise.
74 * testsuite/ld-i386/property-stack.S: Likewise.
75 * testsuite/ld-i386/property-unsorted-1.S: Likewise.
76 * testsuite/ld-i386/property-unsorted-2.S: Likewise.
77 * testsuite/ld-i386/property-x86-1.S: Likewise.
78 * testsuite/ld-i386/property-x86-2.S: Likewise.
79 * testsuite/ld-x86-64/pass.c: Likewise.
80 * testsuite/ld-x86-64/property-1.r: Likewise.
81 * testsuite/ld-x86-64/property-2.r: Likewise.
82 * testsuite/ld-x86-64/property-3.r: Likewise.
83 * testsuite/ld-x86-64/property-4.r: Likewise.
84 * testsuite/ld-x86-64/property-5.r: Likewise.
85 * testsuite/ld-x86-64/property-6.r: Likewise.
86 * testsuite/ld-x86-64/property-6a.c: Likewise.
87 * testsuite/ld-x86-64/property-6b.c: Likewise.
88 * testsuite/ld-x86-64/property-6c.S: Likewise.
89 * testsuite/ld-x86-64/property-7.r: Likewise.
90 * testsuite/ld-x86-64/property-no-copy.S: Likewise.
91 * testsuite/ld-x86-64/property-stack.S: Likewise.
92 * testsuite/ld-x86-64/property-unsorted-1.S: Likewise.
93 * testsuite/ld-x86-64/property-unsorted-2.S: Likewise.
94 * testsuite/ld-x86-64/property-x86-1.S: Likewise.
95 * testsuite/ld-x86-64/property-x86-2.S: Likewise.
96 * testsuite/ld-x86-64/x86-64.exp: Run property tests for
102 * testsuite/ld-cris/pr16044.d, testsuite/ld-cris/dso-1c.s,
103 testsuite/ld-cris/dso-2b.s, testsuite/ld-cris/dso-4.s: New test.
107 * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
108 false for nios2-*-elf.
110 2017-03-21 gingold <gingold@gingold-Precision-7510>
112 * ldlang.c (lang_check_section_addresses): Check only for
117 * testsuite/ld-elf/sec64k.exp: Don't run on h8300 and ip2k.
121 * testsuite/ld-checks/checks.exp (overflow_check): Disable for
126 * ldlang.c (lang_check_section_addresses): Use addr_mask to
132 * testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
136 * ldlang.c (lang_check_section_addresses): Check for address space
138 * testsuite/ld-checks/checks.exp (overflow_check): New procedure
139 * testsuite/ld-checks/over.s: New test source.
140 * testsuite/ld-checks/over.d: New test.
141 * testsuite/ld-checks/over2.s: New test source.
142 * testsuite/ld-checks/over2.d: New test.
146 * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
151 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
152 sysroot for -rpath search.
156 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
157 Only prefix absolute paths with sysroot. Handle DOS paths.
158 (gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
159 (gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
160 (gld${EMULATION_NAME}_after_open): Short-circuit NULL path
161 searches. Rename variable. Simplify get_runpath search.
165 * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
170 * ld.texinfo (Orphan Sections): Mention that not all targets
172 * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
173 * testsuite/ld-elf/orphan-10.d: Likewise.
177 * ldlang.c (lang_size_sections_1): Shortcut loop only after
178 tracking changes to the default regions LMA.
179 * testsuite/ld-elf/orphan-9.ld: Extend header comment.
180 * testsuite/ld-elf/orphan-10.d: New file.
181 * testsuite/ld-elf/orphan-10.s: New file.
182 * NEWS: Mention change in behaviour.
186 * ldlang.c (lang_leave_output_section_statement): Move lma_region
188 (lang_propagate_lma_regions): ...this new function.
189 (lang_process): Call new function.
190 * testsuite/ld-elf/orphan-9.d: New file.
191 * testsuite/ld-elf/orphan-9.ld: New file.
192 * testsuite/ld-elf/orphan-9.s: New file.
193 * NEWS: Mention change in behaviour.
197 * ldlang.c (open_input_bfds): Check that lang_assignment_statement
198 is not an assert before referencing defsym.
202 * testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
203 * testsuite/ld-elf/eh6.d: Likewise.
204 * testsuite/ld-alpha/tlsbin.dd: Likewise.
205 * testsuite/ld-alpha/tlsbin.td: Likewise.
206 * testsuite/ld-alpha/tlsbinr.dd: Likewise.
207 * testsuite/ld-alpha/tlspic.dd: Likewise.
208 * testsuite/ld-alpha/tlspic.rd: Likewise.
209 * testsuite/ld-alpha/tlspic.sd: Likewise.
210 * testsuite/ld-alpha/tlspic.td: Likewise.
211 * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
212 * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
213 * testsuite/ld-mips-elf/eh-frame3.d: Likewise.
214 * testsuite/ld-x86-64/pr20830a.d: Likewise.
215 * testsuite/ld-x86-64/pr21038a.d: Likewise.
216 * testsuite/ld-x86-64/pr21038b.d: Likewise.
217 * testsuite/ld-x86-64/pr21038c.d: Likewise.
222 * pe-dll.c (generate_edata): Fail if the input file(s) require too
227 * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
232 * testsuite/ld-elf/merge.d: xfail for nios.
236 * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
237 limits of addpcis range.
241 * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
243 * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
244 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
249 * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
250 (.rodata): New section.
251 (.data): Remove .rodata*.
255 * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
256 Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
257 defining HPUX where necessary. Define HPUX for implib tests.
258 * testsuite/ld-elf/comm-data4.d: Run for hpux.
259 * testsuite/ld-elf/endsym.d: Likewise.
260 * testsuite/ld-elf/linkoncerdiff.d: Likewise.
261 * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
262 * testsuite/ld-elf/comm-data5.s: Likewise.
263 * testsuite/ld-elf/endsym.s: Likewise.
264 * testsuite/ld-elf/pr14170c.s: Likewise.
265 * testsuite/ld-elf/symbol3.s: Likewise.
266 * testsuite/ld-elf/implib.s: Likewise. Don't start directives
268 * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
269 * testsuite/ld-elf/warn3.d: Run for hpux.
270 * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
271 * testsuite/ld-scripts/rgn-at11.d: Likewise.
272 * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
276 * testsuite/ld-elf/ver_def.vd: New test.
277 * testsuite/ld-elf/ver_def-tic6x.vd: New test.
278 * testsuite/ld-elf/ver_def.ld: New test linker script.
279 * testsuite/ld-elf/ver_def.ver: New test version script.
280 * testsuite/ld-elf/ver_def.s: New test source.
281 * testsuite/ld-elf/readelf.exp: New test script.
285 * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
287 * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
288 * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
289 * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
293 * testsuite/ld-mips-elf/jalr4.dd: New test.
294 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
299 * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
301 * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
302 and sdarel reloc fix.
307 * testsuite/ld-elf/pr20828-d.sd: New test.
308 * testsuite/ld-elf/pr20828-e.sd: New test.
309 * testsuite/ld-elf/pr20828-v.od: New test.
310 * testsuite/ld-elf/pr20828-v.ver: New test version script.
311 * testsuite/ld-elf/pr20828-v.ld: New test linker script.
312 * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
314 * testsuite/ld-elf/shared.exp: Run the new tests.
318 * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
319 about non-void function returning without a result.
324 * scripttempl/pe.sc: Don't combine sections for ld -r.
325 * scripttempl/pep.sc: Likewise.
330 * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
331 rather than using OTHER_SECTIONS.
332 * emulparams/elf32mt.sh: Likewise.
333 * emulparams/elf32rx.sh: Likewise.
334 * emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to
336 * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
337 rather than using OTHER_SECTIONS.
338 * emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges.
339 * emulparams/shelf64.sh: Unset OTHER_SECTIONS.
340 * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
341 * emulparams/shelf_uclinux.sh: Likewise.
342 * emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS
343 to define _stack, not OTHER_SECTIONS.
344 * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
345 TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL.
346 * scripttempl/arclinux.sc: Likewise.
347 * scripttempl/elf64hppa.sc: Likewise.
348 * scripttempl/elfxtensa.sc: Likewise.
349 * scripttempl/nds32elf.sc: Likewise.
350 * scripttempl/armbpabi.sc: Move STACK before debug sections.
351 * scripttempl/elf_chaos.sc: Likewise.
352 * scripttempl/elfarc.sc: Delete STACK.
353 * scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION,
354 TINY_BSS_SECTION, and .stack before debug sections.
359 * ld.texinfo (Options): Add missing @item entry for --pop-state.
363 * testsuite/ld-elf/dwarf2.err: Accept other errors between the
364 multiple definition errors.
368 * testsuite/ld-elf/dwarf2.err: Add missing newline at end.
369 * testsuite/ld-elf/dwarf3.err: Likewise. Allow match without filename.
373 * testsuite/ld-elf/shared.exp: Update expected results.
374 * testsuite/ld-elf/dwarf2.err: Likewise
378 * testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
379 * testsuite/ld-elf/dwarf2.err: New file.
380 * testsuite/ld-elf/dwarf2a.c: New file.
381 * testsuite/ld-elf/dwarf2b.c: New file.
382 * testsuite/ld-elf/dwarf3.c: New file.
383 * testsuite/ld-elf/dwarf3.err: New file.
387 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
388 error, warning_output, and error_output actions. Remove separate
390 * testsuite/ld-elf/shared.exp (build_tests): Updated to use
392 * testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
396 * testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
397 from void pointers to function pointers.
398 * testsuite/ld-elf/pr18718.c: Update to suit.
399 * testsuite/ld-elf/pr18720a.c: Update to suit.
404 * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
405 * testsuite/ld-elf/loadaddr2.d: Likewise.
406 * testsuite/ld-elf/loadaddr3a.d: Likewise.
407 * testsuite/ld-scripts/rgn-at5.d: Likewise.
411 * testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
412 * testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
417 * testsuite/ld-i386/i386.exp: Run pr21168.
418 * testsuite/ld-i386/pr21168a.c: New file.
419 * testsuite/ld-i386/pr21168b.S: Likewise.
424 * testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
426 * testsuite/ld-i386/pr20244-4.s: New file.
427 * testsuite/ld-i386/pr20244-4a.d: Likewise.
428 * testsuite/ld-i386/pr20244-4b.d: Likewise.
429 * testsuite/ld-i386/pr20244-4c.d: Likewise.
433 * ldmisc.c (vfinfo): Don't print the function name again either
434 if no source file name has been found both now and previously.
435 * testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
436 * testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
437 * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
438 * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
439 * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
440 * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
441 * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
442 * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
443 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
444 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
446 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
448 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
450 * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
451 * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
453 * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
455 * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
456 * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
457 * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
458 * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
459 * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
460 * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
461 * testsuite/ld-powerpc/tocopt.out: Likewise.
462 * testsuite/ld-powerpc/tocopt7.out: Likewise.
466 * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
470 * testsuite/ld-scripts/sysroot-prefix.exp
471 (get_base_dir_for_scripts): New function.
472 (run_sysroot_prefix_test): Use get_base_dir_for_scripts.
476 * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
477 _gp to __global_pointer$
481 * configure.tgt (arc*-*-linux*): Change the default linker
482 emulation based on --with-cpu selection.
483 * NEWS: Mention new configuration option.
487 * testsuite/ld-elf/compress.exp: Don't print to stdout for all
492 * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
496 * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
501 * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
502 * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
503 dlopen support into "dlopen_run_tests". These tests include dl1*main
505 (dlopen_run_tests): New and only run it when check_libdl_available
506 returns true. XFAIL on *-*-netbsdelf*.
510 * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
511 presentation of relocation addends.
512 * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
513 * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
514 * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
518 * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
520 * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
521 * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
525 * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
526 Append $board_cflags to link commands.
530 * testsuite/ld-scripts/print-memory-usage-1.l: Relax
531 check for digit in second decimal place.
536 * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
541 * ldmain.c (add_archive_element): Eliminate string buffer.
542 * ldlang.c (lang_print_asneeded): Likewise.
546 * emultempl/mipself.em (ignore_branch_isa): New variable.
547 (mips_create_output_section_statements): Rename
548 `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
549 add `ignore_branch_isa' argument.
550 (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
551 OPTION_NO_IGNORE_BRANCH_ISA enum values.
552 (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
553 "no-ignore-branch-isa" options.
554 (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
555 `--no-ignore-branch-isa'.
556 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
557 OPTION_NO_IGNORE_BRANCH_ISA.
559 * ld.texinfo (Options specific to MIPS targets): Add
560 `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
561 (ld and the MIPS family): Likewise.
563 * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
564 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
565 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
566 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
567 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
568 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
570 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
572 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
577 Fix long-standing buglet and fallout from now-default initfini-array.
578 * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
579 (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
583 * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
590 * ld.texinfo (Options): Extend documentation of the --plugin
591 option. Include a description of where the plugins should be
596 * po/sr.po: New Serbian translation.
597 * configure.ac (ALL_LINGUAS): Add sr.
598 * configure: Regenerate.
602 * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
603 (bfin-*-rtems*): Move to (bfin*-*-elf*).
604 (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
605 (m68*-*-rtems*): Move to (m68*-*-elf*).
606 (mips*-*-rtems*): Move to (mips*-*-elf*).
607 (or1k*-*-rtems*): Move to (or1k*-*-elf*).
608 (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
609 (sparc*-*-rtems*): Move to (sparc*-*-elf*).
610 (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
614 * configure.tgt (h8300-*-rtemscoff*): Remove.
615 (i960-*-rtems*): Likewise.
616 (m68*-*-rtemscoff*): Likewise.
617 (sh-*-rtemscoff*): Likewise.
621 * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
622 add implicit version nodes if an anonymous version tag is being
627 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
628 "Compile 8a", "Compile 8b"...
629 (lto_compile_elf_tests): ...to here. Always run these tests.
630 (lto_run_elf_tests): Move "LTO 7"...
631 (lto_run_elf_shared_tests): ...to here. Restrict these tests on
632 environment where share library is supported.
636 * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
638 * testsuite/ld-powerpc/tlsexe.d: Likewise.
639 * testsuite/ld-powerpc/tlsexe.g: Likewise.
643 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
644 * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
645 * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
646 * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
647 * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
648 * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
649 * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
650 * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
651 * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
652 * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
653 * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
654 * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
655 * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
659 * po/ga.po: Updated Irish translation.
664 * testsuite/ld-elf/pr20828.ld: Add `.plt'.
669 * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
670 `fdata' and `edata' respectively.
671 * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
672 * testsuite/ld-elf/pr20828-a.sd: Likewise.
673 * testsuite/ld-elf/pr20828-b.sd: Likewise.
674 * testsuite/ld-elf/pr20828-c.sd: Likewise.
679 * testsuite/ld-elf/pr20828-1.sd: Remove test.
680 * testsuite/ld-elf/pr20828-a.sd: New test.
681 * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
682 * testsuite/ld-elf/pr20828-b.sd: ... this.
683 * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
684 * testsuite/ld-elf/pr20828-c.sd: ... this.
685 * testsuite/ld-elf/shared.exp: Adjust accordingly.
689 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
690 board_cflags as gcc is used as linker driver.
691 * testsuite/ld-unique/unique.exp: Likewise
695 * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
696 * testsuite/ld-aarch64/func-in-so.s: New test source file.
697 * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
698 * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
702 * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
707 * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
708 `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
713 * testsuite/ld-elf/pr20828-1.sd: New test.
714 * testsuite/ld-elf/pr20828-2a.sd: New test.
715 * testsuite/ld-elf/pr20828-2b.sd: New test.
716 * testsuite/ld-elf/pr20828.ld: New test linker script.
717 * testsuite/ld-elf/pr20828.ver: New test version script.
718 * testsuite/ld-elf/pr20828.s: New test source.
719 * testsuite/ld-elf/shared.exp: Run the new test.
724 * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
725 relocation pairing link test.
729 * testsuite/ld-unique/unique.exp: Filter shared lib cases in
730 uniqeue.exp, as not all targets have such support.
734 * po/sv.po: Updated Swedish translation.
739 * testsuite/ld-x86-64/pr21038b.d: Updated.
740 * testsuite/ld-x86-64/pr21038c.d: New file.
741 * testsuite/ld-x86-64/pr21038c.s: Likewise.
742 * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
747 * testsuite/ld-x86-64/pr21038a.d: New file.
748 * testsuite/ld-x86-64/pr21038a.s: Likewise.
749 * testsuite/ld-x86-64/pr21038b.d: Likewise.
750 * testsuite/ld-x86-64/pr21038b.s: Likewise.
751 * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
755 * configure.tgt: Add entries for x86-redox and x86_64-redox.
759 * testsuite/ld-x86-64/pr20830b.d: Updated.
763 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
764 * testsuite/ld-x86-64/pr20830.d: Renamed to ...
765 * testsuite/ld-x86-64/pr20830a.d: This. Updated.
766 * testsuite/ld-x86-64/pr20830b.d: New file.
767 * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
773 * testsuite/ld-i386/i386.exp: Run pr20830.
774 * testsuite/ld-x86-64/x86-64.exp: Likewise.
775 * testsuite/ld-i386/pr20830.d: New file.
776 * testsuite/ld-i386/pr20830.s: Likewise.
777 * testsuite/ld-x86-64/pr20830.d: Likewise.
778 * testsuite/ld-x86-64/pr20830.s: Likewise.
782 * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
783 -Wl,--as-needed to $CC.
784 * testsuite/ld-i386/tls.exp: Likewise.
788 * po/sv.po: Updated Swedish translation.
793 * Makefile.am: Add earclinux_nps.c target and add to
794 ALL_EMULATION_SOURCES.
795 * Makefile.in: Likewise, regenerated.
796 * configure.tgt: Add arclinux_nps as an extra emulation for
797 arc*-*-elf* and arc*-*-linux*.
798 * emulparams/arc-nps.sh: New file.
799 * emulparams/arclinux_nps.sh: New file.
800 * testsuite/ld-arc/arclinux-nps.d,
801 * testsuite/ld-arc/arclinux-nps.s: New test.
806 * ldlex.l (option): Add noyywrap
808 * ldlex.h (yywrap): Delete prototype.
812 * testsuite/ld-elf/audit.exp: Check for shared lib support.
813 * testsuite/ld-elf/compress.exp: Likewise.
814 * testsuite/ld-elf/dwarf.exp: Likewise.
815 * testsuite/ld-elf/shared.exp: Likewise.
816 * testsuite/ld-elf/wrap.exp: Likewise.
817 * testsuite/ld-ifunc/ifunc.exp: Likewise.
818 * testsuite/ld-plugin/lto.exp: Check $CXX exists.
822 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
823 allow test to continue after compilation errors.
824 (run_cc_link_tests): Likewise.
828 * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
829 (epruelf.c): Remove unneeded dependencies.
830 * Makefile.in: Regenerate
834 * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
836 * testsuite/ld-elfweak/elfweak.exp: Likewise.
837 * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
841 * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
842 * testsuite/ld-pie/pie.exp: Likewise.
843 * testsuite/ld-plugin/lto.exp: Likewise.
847 * Makefile.am (bootstrap): Delete rule.
848 (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
849 (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
850 (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
851 * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
852 (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
853 * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
854 * Makefile.in: Regenerate.
855 * configure: Regenerate.
856 * testsuite/config/default.exp (get_link_files): Delete.
857 (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
859 (ld_simple_link): Delete.
860 * testsuite/lib/ld-lib.exp (default_ld_link): Delete
861 (default_ld_simple_link): Rename to default_ld_link.
862 (ld_simple_link_defsyms): Rename to ld_link_defsyms.
863 (run_ld_link_tests): Use ld_link, not ld_simple_link.
864 (run_cc_link_tests): Likewise.
865 (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
866 Don't run exe when not native, and return unsupported.
867 * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
868 Link ld1 etc. using $CC.
869 * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
870 * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
871 * testsuite/ld-cygwin/exe-export.exp: Likewise.
872 * testsuite/ld-elf/binutils.exp: Likewise.
873 * testsuite/ld-elf/eh-group.exp: Likewise.
874 * testsuite/ld-elf/exclude.exp: Likewise.
875 * testsuite/ld-elf/frame.exp: Likewise.
876 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
877 * testsuite/ld-elf/tls_common.exp: Likewise.
878 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
879 * testsuite/ld-fastcall/fastcall.exp: Likewise.
880 * testsuite/ld-gc/gc.exp: Likewise.
881 * testsuite/ld-ifunc/binutils.exp: Likewise.
882 * testsuite/ld-mep/mep.exp: Likewise.
883 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
884 * testsuite/ld-mn10300/mn10300.exp: Likewise.
885 * testsuite/ld-nios2/nios2.exp: Likewise.
886 * testsuite/ld-pe/pe-compile.exp: Likewise.
887 * testsuite/ld-pe/pe-run.exp: Likewise.
888 * testsuite/ld-pe/pe-run2.exp: Likewise.
889 * testsuite/ld-plugin/plugin.exp: Likewise.
890 * testsuite/ld-scripts/align.exp: Likewise.
891 * testsuite/ld-scripts/alignof.exp: Likewise.
892 * testsuite/ld-scripts/assert.exp: Likewise.
893 * testsuite/ld-scripts/defined.exp: Likewise.
894 * testsuite/ld-scripts/extern.exp: Likewise.
895 * testsuite/ld-scripts/log2.exp: Likewise.
896 * testsuite/ld-scripts/map-address.exp: Likewise.
897 * testsuite/ld-scripts/phdrs.exp: Likewise.
898 * testsuite/ld-scripts/phdrs2.exp: Likewise.
899 * testsuite/ld-scripts/script.exp: Likewise.
900 * testsuite/ld-scripts/section-flags.exp: Likewise.
901 * testsuite/ld-scripts/sizeof.exp: Likewise.
902 * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
903 * testsuite/ld-scripts/weak.exp: Likewise.
904 * testsuite/ld-selective/selective.exp: Likewise.
905 * testsuite/ld-sh/sh.exp: Likewise.
906 * testsuite/ld-sh/sh64/relax.exp: Likewise.
907 * testsuite/ld-sh/sh64/relfail.exp: Likewise.
908 * testsuite/ld-srec/srec.exp: Likewise.
909 * testsuite/ld-tic6x/tic6x.exp: Likewise.
910 * testsuite/ld-undefined/weak-undef.exp: Likewise.
911 * testsuite/ld-versados/versados.exp: Likewise.
912 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
913 * testsuite/ld-xtensa/coalesce.exp: Likewise.
914 * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
915 * testsuite/ld-xtensa/lcall.exp: Likewise.
916 * testsuite/ld-elf/audit.exp: Run non-native too.
917 * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
919 * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
920 not ld_simple_link. Add -Wl,--no-as-needed to some tests.
921 * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
922 * testsuite/ld-elf/indirect.exp: Run non-native too. Add
923 -Wl,--no-as-needed to most tests.
924 * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
925 to simplify quoting. Set run_tests using [list] rather than
926 brace assignment to expand $extralibs. Add -Wl,--no-as-needed
927 to many test. Prefix ld options with -Wl,.
928 (mix_pic_and_non_pic): Don't run exe if not native.
929 * testsuite/ld-elf/wrap.exp: Run non-native too. Add
930 -Wl,--no-as-needed and prefix ld options with -Wl,.
931 * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
933 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
934 (visibility_test): Don't run exe if not native.
935 * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
937 (build_exec): Don't run exe if not native.
938 * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
939 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
940 to some tests and prefix ld options with -Wl,. Expect GNU
941 for hppa-linux even when no ifuncs. Delete cleanup.
942 * testsuite/ld-pie/pie.exp: Run non-native too.
943 * testsuite/ld-plugin/lto.exp: Likewise.
944 * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
946 (shared_test): Don't run exe if not native.
947 * testsuite/ld-size/size.exp: Run non-native too. Add
948 -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
949 * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
950 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
951 to some tests and prefix ld options with -Wl,. Expect GNU
952 for hppa-linux even when no unique syms. Delete cleanup.
953 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
954 tests and prefix ld options with -Wl,.
955 * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
956 Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
960 * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
965 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
966 (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
967 * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
972 Update year range in copyright notice of all files.
974 For older changes see ChangeLog-2016
976 Copyright (C) 2017 Free Software Foundation, Inc.
978 Copying and distribution of this file, with or without modification,
979 are permitted in any medium without royalty provided the copyright
980 notice and this notice are preserved.
986 version-control: never