MIPS/LD: Fix memory fault linking non-PIC object in to shared library
[external/binutils.git] / ld / ChangeLog
1 2019-05-21  Faraz Shahbazker  <fshahbazker@wavecomp.com>
2
3         * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
4         * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
5         * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
6         * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
7         * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
8         * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
9         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
10
11 2019-05-21  Matthew Fortune  <matthew.fortune@mips.com>
12             Faraz Shahbazker  <fshahbazker@wavecomp.com>
13
14         * emultempl/mipself.em (compact_branches): New static variable.
15         (mips_create_output_section_statements): Call
16         _bfd_mips_elf_compact_branches.
17         (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
18         OPTION_NO_COMPACT_BRANCHES.
19         (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
20         no-compact-branches.
21         (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
22         --no-compact-branches.
23         (PARSE_AND_LIST_ARGS_CASES): Handle the above.
24         * ld.texinfo: Document --compact-branches, --no-compact-branches.
25         * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
26         * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
27         * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
28         * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
29         * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
30         * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
31         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
32
33 2019-05-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>
34
35         * testsuite/ld-arm/arm-elf.exp: Add tests
36         * testsuite/ld-arm/bfs-0.s: New test.
37         * testsuite/ld-arm/bfs-1.s: New test.
38         * testsuite/ld-arm/branch-futures.d: New test.
39
40 2019-05-21  Tamar Christina  <tamar.christina@arm.com>
41
42         PR ld/24373
43         * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
44         to flags.
45         * NEWS: Add changes to flag.
46         (PARSE_AND_LIST_OPTIONS): Update help descriptions.
47         (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
48         * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
49         * testsuite/ld-aarch64/erratum843419-adr.d: New test.
50         * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
51         * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
52         * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
53         * testsuite/ld-aarch64/erratum843419-far.s: New test.
54         * testsuite/ld-aarch64/erratum843419-full.d: New test.
55         * testsuite/ld-aarch64/erratum843419-near.s: New test.
56         * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
57
58 2019-05-21  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
59
60         PR ld/24571
61         * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
62         * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
63
64 2019-05-21  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
65
66         PR ld/24564
67         * testsuite/ld-avr/wraparound-range-boundary.d: New test.
68         * testsuite/ld-avr/wraparound-range-boundary.s: New test.
69
70 2019-05-20  Faraz Shahbazker  <fshahbazker@wavecomp.com>
71
72         PR 14798
73         * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
74         global code symbols.
75         * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
76
77 2019-05-17  Alan Modra  <amodra@gmail.com>
78
79         PR 24567
80         * plugin.c (plugin_notice): Do not let a common symbol override
81         a non-common definition in IR.
82
83 2019-05-09  Dimitar Dimitrov  <dimitar@dinux.eu>
84
85         * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
86         Rename.
87
88 2019-05-08  Pekka Seppänen  <pexu@sourceware.mail.kapsi.fi>
89
90         PR 24536
91         * ldbuildid.c (generate_build_id): Cast return value from
92         GetProcAddress in order to avoid a compile time warning.
93
94 2019-05-06  Alan Modra  <amodra@gmail.com>
95
96         * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
97
98 2019-05-04  Alan Modra  <amodra@gmail.com>
99
100         * testsuite/ld-scripts/fill.d: Don't xfail m32c
101         * testsuite/ld-scripts/fill16.d: Likewise.
102
103 2019-05-04  Alan Modra  <amodra@gmail.com>
104
105         PR 24511
106         * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
107         data section on hppa64.
108         * testsuite/ld-elf/pr14156b.d: Likewise.
109         * testsuite/ld-scripts/pr18963.t: Map standard sections to set
110         output section flags.
111         * testsuite/ld-scripts/sane1.t: Likewise.
112         * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
113         and __fini_array_start.  Define __start et al.
114         * testsuite/ld-elf/pr24511.d: New test.
115
116 2019-04-30  Alan Modra  <amodra@gmail.com>
117
118         * testsuite/ld-powerpc/elfv2exe.d: Update.
119         * testsuite/ld-powerpc/elfv2so.d: Update.
120         * testsuite/ld-powerpc/tocopt.d: Update.
121         * testsuite/ld-powerpc/tocopt.s: Update.
122         * testsuite/ld-powerpc/tocopt5.d: Update.
123         * testsuite/ld-powerpc/tocopt5.s: Update.
124         * testsuite/ld-powerpc/tocopt7.d: Update.
125         * testsuite/ld-powerpc/tocopt7.s: Update.
126         * testsuite/ld-powerpc/tocopt8.d: Update.
127         * testsuite/ld-powerpc/tocopt8.s: Update.
128
129 2019-04-30  Alan Modra  <amodra@gmail.com>
130
131         * ld.texi (How GNU properties are merged): Avoid pod2man error.
132         Correct example.
133
134 2019-04-26  H.J. Lu  <hongjiu.lu@intel.com>
135
136         PR ld/24486
137         * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
138         * testsuite/ld-plugin/pr24486a.c: New file.
139         * testsuite/ld-plugin/pr24486b.c: Likewise.
140         * testsuite/ld-plugin/pr24486c.c: Likewise.
141
142 2019-04-26  Nick Clifton  <nickc@redhat.com>
143
144         * po/ru.po: Updated Russian translation.
145
146 2019-04-26  Christopher Yeleighton  <giecrilj@stegny.2a.pl>
147
148         * ld.texi: Properly hyphenate the word "specific".
149
150 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
151
152         PR ld/24406
153         * ld.texi: Remove LTO warning from --wrap.
154         * plugin.c (get_symbols): Update resolution for wrapper and
155         wrapped symbols.
156         * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
157         * testsuite/ld-plugin/pr24406-1.c: New file.
158         * testsuite/ld-plugin/pr24406-2a.c: Likewise.
159         * testsuite/ld-plugin/pr24406-2b.c: Likewise.
160
161 2019-04-25  Sudakshina Das  <sudi.das@arm.com>
162
163         * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
164         * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
165         * testsuite/ld-aarch64/bti-plt-1.d: Update.
166         * testsuite/ld-aarch64/bti-plt-3.d: Update.
167         * testsuite/ld-aarch64/bti-plt-5.d: Update.
168         * testsuite/ld-aarch64/pac-plt-1.d: Update.
169         * testsuite/ld-aarch64/pac-plt-2.d: Update.
170
171 2019-04-24  Sandra Loosemore  <sandra@codesourcery.com>
172
173         * testsuite/config/default.exp: Use [check_compiler_available]
174         instead of [which $CC].
175         * testsuite/ld-auto-import/auto-import.exp: Likewise.
176         * testsuite/ld-cygwin/exe-export.exp: Likewise.
177         * testsuite/ld-elf/audit.exp: Likewise.
178         * testsuite/ld-elf/compress.exp: Likewise.
179         * testsuite/ld-elf/dwarf.exp: Likewise.
180         * testsuite/ld-elf/elf.exp: Likewise.
181         * testsuite/ld-elf/indirect.exp: Likewise.
182         * testsuite/ld-elf/linux-x86.exp: Likewise.
183         * testsuite/ld-elf/shared.exp: Likewise.
184         * testsuite/ld-elf/tls.exp: Likewise.
185         * testsuite/ld-elf/wrap.exp: Likewise.
186         * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
187         * testsuite/ld-elfvers/vers.exp: Likewise.
188         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
189         * testsuite/ld-elfweak/elfweak.exp: Likewise.
190         * testsuite/ld-gc/gc.exp: Likewise.
191         * testsuite/ld-i386/i386.exp: Likewise.
192         * testsuite/ld-i386/no-plt.exp: Likewise.
193         * testsuite/ld-i386/tls.exp: Likewise.
194         * testsuite/ld-ifunc/ifunc.exp: Likewise.
195         * testsuite/ld-mn10300/mn10300.exp: Likewise.
196         * testsuite/ld-pe/pe-compile.exp: Likewise.
197         * testsuite/ld-pe/pe-run.exp: Likewise.
198         * testsuite/ld-pe/pe-run2.exp: Likewise.
199         * testsuite/ld-pie/pie.exp: Likewise.
200         * testsuite/ld-plugin/lto.exp: Likewise.
201         * testsuite/ld-plugin/plugin.exp: Likewise.
202         * testsuite/ld-scripts/crossref.exp: Likewise.
203         * testsuite/ld-sh/sh.exp: Likewise.
204         * testsuite/ld-shared/shared.exp: Likewise.
205         * testsuite/ld-size/size.exp: Likewise.
206         * testsuite/ld-srec/srec.exp: Likewise.
207         * testsuite/ld-undefined/undefined.exp: Likewise.
208         * testsuite/ld-unique/unique.exp: Likewise.
209         * testsuite/ld-x86-64/mpx.exp: Likewise.
210         * testsuite/ld-x86-64/no-plt.exp: Likewise.
211         * testsuite/ld-x86-64/tls.exp: Likewise.
212         * testsuite/ld-x86-64/x86-64.exp: Likewise.
213         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
214         check_compiler_available before trying to use the compiler.
215         (run_cc_link_tests): Likewise.
216         (check_compiler_available): New.  Use it instead of [which $CC].
217
218 2019-04-23  Alan Modra  <amodra@gmail.com>
219
220         * Makefile.am (GENDEPDIR): New var, used..
221         (GENSCRIPTS): ..here.
222         * Makefile.in: Regenerate.
223         * genscripts.sh: Test for $DEPDIR set before every use.
224
225 2019-04-22  Matthew Fortune  <matthew.fortune@mips.com>
226
227         * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
228         for M5100.
229
230 2019-04-19  Alan Modra  <amodra@gmail.com>
231
232         * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
233         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
234         s12z to list of targets not supporting --gc-sections.
235
236 2019-04-17  H.J. Lu  <hongjiu.lu@intel.com>
237
238         * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
239         of pr18801.
240         * testsuite/ld-x86-64/x86-64.exp: Likewise.
241         * testsuite/ld-i386/pr18801.d: Removed.
242         * testsuite/ld-x86-64/pr18801.d: Likewise.
243         * testsuite/ld-i386/pr18801a.d: New file.
244         * testsuite/ld-i386/pr18801b.d: Likewise.
245         * testsuite/ld-x86-64/pr18801a.d: Likewise.
246         * testsuite/ld-x86-64/pr18801b.d: Likewise.
247         * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
248         * testsuite/ld-x86-64/pie2.d: Likewise.
249         * testsuite/ld-x86-64/pr19719.d: Likewise.
250         * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
251         * testsuite/ld-x86-64/pr19969.d: Likewise.
252         * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
253         * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
254         * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
255         * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
256         * testsuite/ld-x86-64/pr22791-1.err: Likewise.
257
258 2019-04-17  H.J. Lu  <hongjiu.lu@intel.com>
259
260         PR ld/24458
261         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
262         * testsuite/ld-x86-64/pr24458.s: New file.
263         * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
264         * testsuite/ld-x86-64/pr24458a.d: Likewise.
265         * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
266         * testsuite/ld-x86-64/pr24458b.d: Likewise.
267         * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
268         * testsuite/ld-x86-64/pr24458c.d: Likewise.
269
270 2019-04-17  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
271
272         * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
273         symbol when .lower.bss or .either.bss sections exist.
274         Define __crt0_movedata when .lower.data or .either.data sections exist.
275         * testsuite/gas/msp430/either-data-bss-sym.d: New test.
276         * testsuite/gas/msp430/low-data-bss-sym.d: New test.
277         * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
278         * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
279         * testsuite/gas/msp430/msp430.exp: Run new tests.
280         Enable large code model when running -mdata-region={upper,either}
281         tests.
282
283 2019-04-16  Alan Modra  <amodra@gmail.com>
284
285         * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
286         * testsuite/ld-scripts/section-match-1.d: Likewise.
287         * testsuite/ld-undefined/require-defined.exp: Likewise.
288
289 2019-04-15  Faraz Shahbazker  <fshahbazker@wavecomp.com>
290
291         * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
292         targets.
293
294 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
295
296         * testsuite/ld-arm/bfcsel.s: New.
297         * testsuite/ld-arm/bfcsel.d: New.
298         * testsuite/ld-arm/arm-elf.exp: Add above test.
299
300 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
301
302         * testsuite/ld-arm/bfl.s: New.
303         * testsuite/ld-arm/bfl.d: New.
304         * testsuite/ld-arm/arm-elf.exp: Add above test.
305
306 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
307
308         * testsuite/ld-arm/bf.s: New.
309         * testsuite/ld-arm/bf.d: New.
310         * testsuite/ld-arm/arm-elf.exp: Add above test.
311
312 2019-04-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
313
314         * testsuite/ld-arm/attr-merge-13.attr: New test.
315         * testsuite/ld-arm/attr-merge-13a.s: New test.
316         * testsuite/ld-arm/attr-merge-13b.s: New test.
317
318 2019-04-13  Alan Modra  <amodra@gmail.com>
319
320         * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter.  Add
321         DEPDIR parameter.
322         (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
323         (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
324         $GEN_DEPENDS.
325         (e*.c): Delete all dependencies, instead include dependencies
326         from $DEPDIR/*.Pc.
327         * Makefile.in: Regenerate.
328         * configure.ac (source_sh): Define and use function.
329         * configure: Regenerate.
330         * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
331         * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
332         * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
333         * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
334         * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
335         * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
336         * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
337         * emulparams/armelf_linux_eabi.sh,
338         * emulparams/armelf_linux_fdpiceabi.sh,
339         * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
340         * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
341         * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
342         * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
343         * emulparams/armelfb_linux_fdpiceabi.sh,
344         * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
345         * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
346         * emulparams/elf32_sparc_sol2.sh,
347         * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
348         * emulparams/elf32_tic6x_elf_be.sh,
349         * emulparams/elf32_tic6x_elf_le.sh,
350         * emulparams/elf32_tic6x_linux_be.sh,
351         * emulparams/elf32_tic6x_linux_le.sh,
352         * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
353         * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
354         * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
355         * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
356         * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
357         * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
358         * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
359         * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
360         * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
361         * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
362         * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
363         * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
364         * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
365         * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
366         * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
367         * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
368         * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
369         * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
370         * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
371         * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
372         * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
373         * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
374         * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
375         * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
376         * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
377         * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
378         * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
379         * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
380         * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
381         * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
382         * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
383         * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
384         * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
385         * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
386         * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
387         * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
388         * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
389         * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
390         * emulparams/elf_x86_64_cloudabi.sh,
391         * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
392         * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
393         * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
394         * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
395         * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
396         * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
397         * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
398         * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
399         * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
400         * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
401         * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
402         * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
403         * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
404         * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
405         * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
406         * emulparams/shl.sh, * emulparams/shlelf.sh,
407         * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
408         * emulparams/shlelf_vxworks.sh: Use source_sh.
409         * genscripts.sh: Adjust for changed parameters.  Emit dependencies
410         for e*.c to .deps/*.Pc.
411         (source_sh): New function, use it throughout to source scripts.
412         * genscrba.sh (source_em): Use source_sh.
413
414 2019-04-13  Alan Modra  <amodra@gmail.com>
415
416         * configure.ac (TDIRS): Build up tdirs in this variable and
417         AC_SUBST, also using AM_SUBST_NOTMAKE.
418         * configure: Regenerate.
419         * Makefile.am (DISTCLEANFILES): Remove tdirs.
420         * Makefile.in: Regenerate.
421
422 2019-04-12  Nick Clifton  <nickc@redhat.com>
423
424         PR 24450
425         * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
426         example of section attributes.
427
428 2019-04-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
429
430         * NEWS: Mention new option --no-print-map-discarded.
431         * ld.h (ld_config_type) <print_map_discarded>: New field.
432         * ldlang.c (lang_map): Conditionally output discarded sections
433         in map files based on configuration option.
434         * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
435         OPTION_NO_PRINT_MAP_DISCARDED>: New.
436         * ldmain.c (main): Enabled print_map_discarded by default.
437         * lexsup.c (ld_options): Add new command-line options.
438         (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
439         OPTION_PRINT_MAP_DISCARDED>: New cases.
440         * ld.texi: Document new options.
441         * testsuite/ld-gc/gc.exp: Add new test.
442         * testsuite/ld-gc/skip-map-discarded.s: New file.
443         * testsuite/ld-gc/skip-map-discarded.d: New file.
444         * testsuite/ld-gc/skip-map-discarded.map: New file.
445
446 2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
447
448         * ld.texi: Document -z cet-report=[none|warning|error].
449         * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
450         * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
451         tests.
452         * testsuite/ld-x86-64/x86-64.exp: Likewise.
453         * testsuite/ld-i386/property-x86-cet1.d: New file.
454         * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
455         * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
456         * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
457         * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
458         * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
459         * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
460         * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
461         * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
462         * testsuite/ld-i386/property-x86-cet6.d: Likewise.
463         * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
464         * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
465         * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
466         * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
467         * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
468         * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
469         * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
470         * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
471         * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
472         * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
473         * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
474         * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
475         * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
476         * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
477         * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
478         * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
479         * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
480         * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
481         * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
482         * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
483         * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
484
485 2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
486
487         * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New.  Set
488         to "-static-pie" if target compiler supports it.
489         * testsuite/ld-elf/elf.exp: Run -static-pie tests if
490         $STATIC_PIE_LDFLAGS isn't empty.
491         * testsuite/ld-ifunc/ifunc.exp: Likewise.
492
493 2019-04-11  Tamar Christina  <tamar.christina@arm.com>
494
495         PR ld/24302
496         * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
497         * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
498
499 2019-04-10  H.J. Lu  <hongjiu.lu@intel.com>
500
501         * scripttempl/elf.sc (CREATE_PIC): New.  Set for CREATE_SHLIB or
502         CREATE_PIE.
503         (__rel_iplt_start): Don't define for CREATE_PIC.
504         (__rel_iplt_end): Likewise.
505         (__rela_iplt_start): Likewise.
506         (__rela_iplt_end): Likewise.
507
508 2019-04-10  Alan Modra  <amodra@gmail.com>
509
510         * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
511         powerpc-nto.
512
513 2019-04-10  Alan Modra  <amodra@gmail.com>
514
515         * emultempl/cskyelf.em (csk_elf_before_parse): New function,
516         setting use_branch_stub false for linux.
517         (csky_elf_create_output_section_statements): Do emit this
518         function and all others in the file for linux, plus the branch
519         option control.  Disable branch stubs when non-ELF.
520
521 2019-04-10  Alan Modra  <amodra@gmail.com>
522
523         * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
524         (ecskyelf_linux.c): Depend on cskyelf.sh.
525         (eelf32microblazeel.c): Depend on elf32microblaze.sh.
526         * Makefile.in: Regenerate.
527         * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
528         (PAGE_SIZE): Don't define.
529         * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
530         the differing variable defs/undefs.
531         * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
532         * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
533         (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
534         (PAGE_SIZE): Don't define.
535         * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
536         leaving just the differing OUTPUT_FORMAT.
537
538 2019-04-10  Alan Modra  <amodra@gmail.com>
539
540         * po/BLD-POTFILES.in: Regenerate.
541
542 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
543
544         * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
545         lynxos and nto targets.
546
547 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
548
549         * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
550         (eelf_i386_chaos.c): Removed.
551         * Makefile.in: Regenerated.
552         * configure.tgt: Remove i[3-7]86-*-kaos*.
553         * emulparams/elf_i386_chaos.sh: Removed.
554
555 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
556
557         * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
558         * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
559
560 2019-04-08  Alan Modra  <amodra@gmail.com>
561
562         * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
563         * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
564         * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
565
566 2019-04-06  H.J. Lu  <hongjiu.lu@intel.com>
567
568         * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
569         (eelf_i386_sol2.c): Also depend on
570         $(srcdir)/emultempl/solaris2-x86.em.
571         (eelf_x86_64_sol2.c): Likewise.
572         * Makefile.in: Regenerated.
573         * emulparams/call_nop.sh: Set x86-specific linker options via
574         params.
575         * emulparams/cet.sh: Likewise.
576         * emulparams/reloc_overflow.sh: Likewise.
577         * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New.  Set to
578         "elf-x86".
579         * emulparams/elf_i386.sh: Likewise.
580         * emulparams/elf_i386_be.sh: Likewise.
581         * emulparams/elf_i386_chaos.sh: Likewise.
582         * emulparams/elf_i386_ldso.sh: Likewise.
583         * emulparams/elf_i386_vxworks.sh: Likewise.
584         * emulparams/elf_iamcu.sh: Likewise.
585         * emulparams/elf_k1om.sh: Likewise.
586         * emulparams/elf_l1om.sh: Likewise.
587         * emulparams/elf_x86_64.sh: Likewise.
588         * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
589         "solaris2-x86".
590         * emulparams/elf_x86_64_sol2.sh: Likewise.
591         * emultempl/elf-x86.em: New file.
592         * emultempl/solaris2-x86.em: Likewise.
593         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
594         set link_info.call_nop_byte.
595
596 2019-04-05  Alan Modra  <amodra@gmail.com>
597
598         * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
599         * testsuite/ld-powerpc/tlsopt5.d: Likewise.
600         * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
601
602 2019-04-03  Alan Modra  <amodra@gmail.com>
603
604         PR 24411
605         ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
606         (<EXPRESSION>"/DISCARD/"): New.
607
608 2019-04-03  Alan Modra  <amodra@gmail.com>
609
610         * ldlex.l: Formatting.
611         (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
612         (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
613         (NOCFILENAMECHAR): Remove duplicate chars.  Reorder.
614         (SYMBOLCHARN): Likewise.  Rename to SYMBOLNAMECHAR.
615         (<INPUTLIST>"$SYSROOT"..): Delete rule.
616
617 2019-03-29  Max Filippov  <jcmvbkbc@gmail.com>
618
619         * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
620         test definition.
621         * testsuite/ld-xtensa/xtensa.exp
622         (relax-undef-weak-pie-export-dynamic): Add new test.
623
624 2019-03-26  Martin Liska  <mliska@suse.cz>
625
626         * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
627         lto_visibility_str and use then to inform about plugin-symbols.
628         * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
629
630 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
631
632         * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
633         * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
634
635 2019-03-21  Sudakshina Das  <sudi.das@arm.com>
636
637         * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
638         * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
639         * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
640         * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
641         * testsuite/ld-aarch64/bti-warn.d: New test.
642
643 2019-03-21  Alan Modra  <amodra@gmail.com>
644
645         * testsuite/ld-elf/fini2.s: Reduce alignment.
646         * testsuite/ld-elf/fini3.s: Likewise.
647         * testsuite/ld-elf/finin.s: Likewise.
648         * testsuite/ld-elf/init2.s: Likewise.
649         * testsuite/ld-elf/init3.s: Likewise.
650         * testsuite/ld-elf/initn.s: Likewise.
651         * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
652         * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
653
654 2019-03-21  Alan Modra  <amodra@gmail.com>
655
656         * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
657         * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
658         * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
659         * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
660         * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
661         * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
662         * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
663         * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
664         * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
665         * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
666         * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
667         * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
668         * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
669         * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
670         * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
671         * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
672         * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
673         SORT_NONE to .init and .fini wildcards.
674         * scripttempl/elf32xc16x.sc,
675         * scripttempl/elf32xc16xl.sc,
676         * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
677         * scripttempl/elf_chaos.sc: Add .init output section.
678         * scripttempl/elfd30v.sc: Remove duplicate .init.
679         * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
680         * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
681         duplicate .init, and add .fini wildcard.
682         * scripttempl/ppcpe.sc (INIT, FINI): Delete.
683         * ldlang.c (update_wild_statements): Special case .init and
684         .fini in the wildcard, not the output section.
685
686 2019-03-21  Alan Modra  <amodra@gmail.com>
687
688         * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
689
690 2019-03-21  Alan Modra  <amodra@gmail.com>
691
692         * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
693         create_object_symbols_section.
694         * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
695
696 2019-03-18  Alan Modra  <amodra@gmail.com>
697
698         * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
699         * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
700         * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
701         * testsuite/ld-unique/pr21529.d: Remove csky from xfails
702
703 2019-03-15  Nick Clifton  <nickc@redhat.com>
704
705         PR 24262
706         * ld.texi (-plugin): Correct the path used to locate linker
707         plugins.
708
709 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
710
711         * NEWS: Document --pac-plt.
712         * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
713         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
714         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
715         * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
716         * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
717         * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
718         * testsuite/ld-aarch64/pac-plt-1.d: New test.
719         * testsuite/ld-aarch64/pac-plt-2.d: New test.
720         * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
721
722 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
723             Szabolcs Nagy  <szabolcs.nagy@arm.com>
724
725         * NEWS: Document --force-bti.
726         * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
727         (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
728         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
729         * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
730         * testsuite/ld-aarch64/bti-plt-1.d: New test.
731         * testsuite/ld-aarch64/bti-plt-1.s: New test.
732         * testsuite/ld-aarch64/bti-plt-2.d: New test.
733         * testsuite/ld-aarch64/bti-plt-3.d: New test.
734         * testsuite/ld-aarch64/bti-plt-4.d: New test.
735         * testsuite/ld-aarch64/bti-plt-5.d: New test.
736         * testsuite/ld-aarch64/bti-plt-6.d: New test.
737         * testsuite/ld-aarch64/bti-plt-7.d: New test.
738         * testsuite/ld-aarch64/bti-plt-so.s: New test.
739         * testsuite/ld-aarch64/bti-plt.ld: New test.
740
741 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
742
743         * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
744         GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
745         * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
746         * testsuite/ld-aarch64/property-bti-pac1.d: New test.
747         * testsuite/ld-aarch64/property-bti-pac1.s: New test.
748         * testsuite/ld-aarch64/property-bti-pac2.d: New test.
749         * testsuite/ld-aarch64/property-bti-pac2.s: New test.
750         * testsuite/ld-aarch64/property-bti-pac3.d: New test.
751
752 2019-03-13  H.J. Lu  <hongjiu.lu@intel.com>
753
754         PR ld/24322
755         * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
756         * testsuite/ld-x86-64/x86-64.exp: Likewise.
757         * testsuite/ld-i386/pr24322a.d: New file.
758         * testsuite/ld-i386/pr24322b.d: Likewise.
759         * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
760         * testsuite/ld-x86-64/pr24322a.d: Likewise.
761         * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
762         * testsuite/ld-x86-64/pr24322b.d: Likewise.
763         * testsuite/ld-x86-64/pr24322a.s: Likewise.
764         * testsuite/ld-x86-64/pr24322b.s: Likewise.
765         * testsuite/ld-x86-64/pr24322c.s: Likewise.
766
767 2019-03-06  Nick Bowler  <nbowler@draconx.ca>
768
769         PR 24289
770         * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
771         attributes during the first phase.
772
773 2019-03-01  Andreas Krebbel  <krebbel@linux.ibm.com>
774
775         This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
776         2019-01-14  Maamoun Tarsha  <maamountk@hotmail.com>
777
778         PR 20113
779         * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
780         * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
781         * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
782         * testsuite/ld-s390/tlsbin.dd: Likewise.
783         * testsuite/ld-s390/tlsbin.rd: Likewise.
784         * testsuite/ld-s390/tlsbin.sd: Likewise.
785         * testsuite/ld-s390/tlsbin_64.dd: Likewise.
786         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
787         * testsuite/ld-s390/tlsbin_64.sd: Likewise.
788         * testsuite/ld-s390/tlspic.dd: Likewise.
789         * testsuite/ld-s390/tlspic.rd: Likewise.
790         * testsuite/ld-s390/tlspic.sd: Likewise.
791         * testsuite/ld-s390/tlspic_64.dd: Likewise.
792         * testsuite/ld-s390/tlspic_64.rd: Likewise.
793         * testsuite/ld-s390/tlspic_64.sd: Likewise.
794         * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
795
796 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
797
798         PR ld/24276
799         * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
800         * testsuite/ld-x86-64/x86-64.exp: Likewise.
801         * testsuite/ld-i386/pr24276.dso: New file.
802         * testsuite/ld-i386/pr24276.warn: Likewise.
803         * testsuite/ld-x86-64/pr24276.dso: Likewise.
804         * testsuite/ld-x86-64/pr24276.warn: Likewise.
805
806 2019-02-20  Eric Tsai  <erictsai@cadence.com>
807
808         * testsuite/ld-xtensa/call_overflow.d: New test definition.
809         * testsuite/ld-xtensa/call_overflow1.s: New test source.
810         * testsuite/ld-xtensa/call_overflow2.s: New test source.
811         * testsuite/ld-xtensa/call_overflow3.s: New test source.
812         * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
813
814 2019-02-14  Thomas Schwinge  <thomas@codesourcery.com>
815
816         * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
817
818 2019-02-12  Nick Clifton  <nickc@redhat.com>
819
820         * po/fr.po: Updated French translation.
821
822 2019-02-09  Vineet Gupta  <vgupta@synopsys.com>
823
824         * emultempl/arclinux.em: Delete special INIT/FINI handling.
825
826 2019-02-07  Nick Clifton  <nickc@redhat.com>
827
828         PR 24175
829         * ld.texi (Options): Add missing word to the description of the
830         --start-group option.
831
832 2019-02-06  Alan Modra  <amodra@gmail.com>
833
834         PR ld/24008
835         * testsuite/ld-scripts/pr24008.d: Pass with extra target
836         defined symbols.
837
838 2019-02-05  H.J. Lu  <hongjiu.lu@intel.com>
839
840         PR ld/24151
841         * testsuite/ld-x86-64/pr24151a-x32.d: New file.
842         * testsuite/ld-x86-64/pr24151a.d: Likewise.
843         * testsuite/ld-x86-64/pr24151a.s: Likewise.
844         * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
845
846 2019-01-31  Alan Modra  <amodra@gmail.com>
847
848         * NEWS: Mention -t change.
849         * ld.texi (--trace/-t): Expand documentation a little.
850
851 2019-01-29  H.J. Lu  <hongjiu.lu@intel.com>
852
853         PR ld/24008
854         * testsuite/ld-scripts/defined.exp: Run pr24008.
855         * testsuite/ld-scripts/pr24008.d: New file.
856         * testsuite/ld-scripts/pr24008.map: Likewise.
857         * testsuite/ld-scripts/pr24008.s: Likewise.
858         * testsuite/ld-scripts/pr24008.t: Likewise.
859
860 2019-01-29  Eric Botcazou  <ebotcazou@adacore.com>
861
862         * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
863
864 2019-01-28  Alan Modra  <amodra@gmail.com>
865
866         PR 24008
867         * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
868         * ldexp.c (fold_name): Move expld.assign_name check later to
869         avoid an extra lookup.
870         (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
871         values, and don't clear expld.assign_name.
872         * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
873         (print_assignment): Resolve entire assignment expression.
874         Don't access symbol u.def unless symbol is defined.
875
876 2019-01-25  Nick Clifton  <nickc@redhat.com>
877
878         * po/bg.po: Updated Bulgarian translation.
879
880 2019-01-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
881
882         * ld.texi (--wrap): Add warning that LTO may make this feature
883         ineffective.
884
885 2019-01-21  Nick Clifton  <nickc@redhat.com>
886
887         * po/uk.po: Updated Ukranian translation.
888         * po/pr_BR.po: Updated Brazilian Portuguese translation.
889
890 2019-01-21  Nick Clifton  <nickc@redhat.com>
891
892         PR 24108
893         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
894         expected error message.
895
896 2019-01-19  Nick Clifton  <nickc@redhat.com>
897
898         * configure: Regenerate.
899         * po/ld.pot: Regenerate.
900
901 2018-06-24  Nick Clifton  <nickc@redhat.com>
902
903         2.32 branch created.
904
905 2019-01-16  Kito Cheng  <kito@andestech.com>
906
907         * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
908         section.
909         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
910         * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
911         * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
912         * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
913         * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
914         * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
915         * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
916         * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
917         * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
918         * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
919         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
920         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
921         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
922         * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
923         * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
924         * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
925         * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
926         * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
927         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
928         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
929         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
930         * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
931         * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
932         * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
933         * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
934         * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
935         * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
936         * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
937         * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
938         * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
939         * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
940         * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
941         * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
942         * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
943         * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
944         * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
945         * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
946
947 2019-01-14  Maamoun Tarsha  <maamountk@hotmail.com>
948
949         PR 20113
950         * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
951         * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
952         * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
953         * testsuite/ld-s390/tlsbin.dd: Likewise.
954         * testsuite/ld-s390/tlsbin.rd: Likewise.
955         * testsuite/ld-s390/tlsbin.sd: Likewise.
956         * testsuite/ld-s390/tlsbin_64.dd: Likewise.
957         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
958         * testsuite/ld-s390/tlsbin_64.sd: Likewise.
959         * testsuite/ld-s390/tlspic.dd: Likewise.
960         * testsuite/ld-s390/tlspic.rd: Likewise.
961         * testsuite/ld-s390/tlspic.sd: Likewise.
962         * testsuite/ld-s390/tlspic_64.dd: Likewise.
963         * testsuite/ld-s390/tlspic_64.rd: Likewise.
964         * testsuite/ld-s390/tlspic_64.sd: Likewise.
965         * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
966
967 2019-01-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
968
969         * ld.texi (--wrap): Add example to emphasise that only undefined
970         references are replaced by the linker.
971
972 2019-01-09  Nick Clifton  <nickc@redhat.com>
973
974         * po/es.po: Updated Spanish translation.
975
976 2019-01-09  Andrew Paprocki  <andrew@ishiboo.com>
977
978         * configure: Regenerate.
979
980 2019-01-08  Alan Modra  <amodra@gmail.com>
981
982         * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
983         generated source file names.
984         * testsuite/ld-m68k/m68k-got.exp: Likewise.
985
986 2019-01-01  Alan Modra  <amodra@gmail.com>
987
988         Update year range in copyright notice of all files.
989
990 For older changes see ChangeLog-2018
991 \f
992 Copyright (C) 2019 Free Software Foundation, Inc.
993
994 Copying and distribution of this file, with or without modification,
995 are permitted in any medium without royalty provided the copyright
996 notice and this notice are preserved.
997
998 Local Variables:
999 mode: change-log
1000 left-margin: 8
1001 fill-column: 74
1002 version-control: never
1003 End: