Support PLT16 relocs against local symbols
[external/binutils.git] / ld / ChangeLog
1 2018-04-09  Alan Modra  <amodra@gmail.com>
2
3         * emulparams/elf32ppc.sh (OTHER_RELRO_SECTIONS_2): Add .branch_lt.
4         (OTHER_GOT_RELOC_SECTIONS): Add .rela.branch_lt.
5         * testsuite/ld-powerpc/elfv2so.d: Update for symbol/stub reordering.
6         * testsuite/ld-powerpc/relbrlt.d: Likewise.
7         * testsuite/ld-powerpc/relbrlt.s: Likewise.
8         * testsuite/ld-powerpc/tlsso.r: Likewise.
9         * testsuite/ld-powerpc/tlstocso.r: Likewise.
10
11 2018-04-09  Alan Modra  <amodra@gmail.com>
12
13         * ppc32elf.em (ppc_finish): Call ppc_finish_symbols.
14
15 2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
16
17         PR gas/22318
18         * configure: Regenerated.
19
20 2018-04-05  Nick Clifton  <nickc@redhat.com>
21
22         PR 23030
23         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Make sure
24         that the .IA_64.unwind_info and .IA_64.unwind sections are not
25         subject to garbage collection.
26
27 2018-04-04  Eric Botcazou  <ebotcazou@adacore.com>
28
29         * deffile.h (def_file_add_import_from): Declare.
30         (def_file_add_import_at): Likewise.
31         * deffilep.y (fill_in_import): New function extracted from...
32         (def_file_add_import): ...here.  Call it.
33         (def_file_add_import_from): New function.
34         (def_file_add_import_at): Likewise.
35         * pe-dll.c (pe_implied_import_dll): Use an optimized version of the
36         insertion loop for imported symbols if possible.
37
38 2018-04-04  Eric Botcazou  <ebotcazou@adacore.com>
39
40         * emultempl/pe.em (U_SIZE): Delete.
41         (pe_data_import_dll): Likewise.
42         (make_import_fixup): Return void, take 4th parameter and pass it down
43         in call to pe_create_import_fixup.
44         (pe_find_data_imports): Move to...
45         (gld_${EMULATION_NAME}_after_open): Run the stdcall fixup pass after
46         the auto-import pass and add a guard before running the latter.
47         * emultempl/pep.em (U_SIZE): Delete.
48         (pep_data_import_dll): Likewise.
49         (make_import_fixup): Return void, take 4th parameter and pass it down
50         in call to pe_create_import_fixup.
51         (pep_find_data_imports): Move to...
52         (gld_${EMULATION_NAME}_after_open): Run the stdcall fixup pass after
53         the auto-import pass and add a guard before running the latter.
54         * pe-dll.c (runtime_pseudp_reloc_v2_init): Change type to bfd_boolean.
55         (pe_walk_relocs_of_symbol): Rename into...
56         (pe_walk_relocs): ...this.  Add 2 more parameters,4th parameter to the
57         callback prototype and pass 4th parameter in calls to the callback.
58         If the import hash table is present, invoke the callback on the reloc
59         if the symbol name is in the table.
60         (pe_find_data_imports): ...here.  Take 2 parameters.  Build an import
61         hash table for the pseudo-relocation support version 2.  When it is
62         built, walk the relocations only once at the end; when it is not, do
63         not build a fixup when the symbol isn't part of an import table.
64         Issue the associated warning only after a first fixup is built.
65         (tmp_seq2): Delete.
66         (make_singleton_name_imp): Likewise.
67         (make_import_fixup_mark): Return const char * and a stable string.
68         (make_import_fixup_entry): Do not deal with the pseudo-relocation
69         support version 2.
70         (make_runtime_pseudo_reloc): Factor out code and fix formatting.
71         (pe_create_import_fixup): Add 5th parameter.  Clearly separate the
72         pseudo-relocation support version 2 from the rest.  Fix formatting.
73         * pe-dll.h (pe_walk_relocs_of_symbol): Delete.
74         (pe_find_data_imports): Declare.
75         (pe_create_import_fixup): Add 5th parameter.
76         * pep-dll.c (pe_data_import_dll): Delete.
77         (pe_find_data_imports): Define.
78         (pe_walk_relocs_of_symbol): Delete.
79         * pep-dll.h (pep_walk_relocs_of_symbol): Delete.
80         (pep_find_data_imports): Declare.
81         (pep_create_import_fixup): Add 5th parameter.
82         * ld.texinfo (--enable-auto-import): Adjust to new implementation.
83
84 2018-04-04  Nick Clifton  <nickc@redhat.com>
85
86         * po/es.po: Updated Spanish translation.
87
88 2018-04-03  Maciej W. Rozycki  <macro@mips.com>
89
90         * testsuite/ld-mips-elf/comm-data.exp: Correct support for
91         `mips*-*-kfreebsd*-gnu' targets.
92
93 2018-03-23  Renlin Li  <renlin.li@arm.com>
94
95         PR ld/22970
96         * testsuite/ld-aarch64/aarch64-elf.exp: Update to run new tests.
97         * testsuite/ld-aarch64/emit-relocs-552-overflow.d: New.
98         * testsuite/ld-aarch64/emit-relocs-552-overflow.s: New.
99         * testsuite/ld-aarch64/emit-relocs-552.d: New.
100         * testsuite/ld-aarch64/emit-relocs-552.s: New.
101         * testsuite/ld-aarch64/emit-relocs-553.d: New.
102         * testsuite/ld-aarch64/emit-relocs-553.s: New.
103         * testsuite/ld-aarch64/emit-relocs-554-overflow.d: New.
104         * testsuite/ld-aarch64/emit-relocs-554-overflow.s: New.
105         * testsuite/ld-aarch64/emit-relocs-554.d: New.
106         * testsuite/ld-aarch64/emit-relocs-554.s: New.
107         * testsuite/ld-aarch64/emit-relocs-555.d: New.
108         * testsuite/ld-aarch64/emit-relocs-555.s: New.
109         * testsuite/ld-aarch64/emit-relocs-556-overflow.d: New.
110         * testsuite/ld-aarch64/emit-relocs-556-overflow.s: New.
111         * testsuite/ld-aarch64/emit-relocs-556.d: New.
112         * testsuite/ld-aarch64/emit-relocs-556.s: New.
113         * testsuite/ld-aarch64/emit-relocs-557.d: New.
114         * testsuite/ld-aarch64/emit-relocs-557.s: New.
115         * testsuite/ld-aarch64/emit-relocs-558-overflow.d: New.
116         * testsuite/ld-aarch64/emit-relocs-558-overflow.s: New.
117         * testsuite/ld-aarch64/emit-relocs-558.d: New.
118         * testsuite/ld-aarch64/emit-relocs-558.s: New.
119         * testsuite/ld-aarch64/emit-relocs-559.d: New.
120         * testsuite/ld-aarch64/emit-relocs-559.s: New.
121         * testsuite/ld-aarch64/emit-relocs-112-overflow.d: New.
122         * testsuite/ld-aarch64/emit-relocs-112-overflow.s: New.
123         * testsuite/ld-aarch64/emit-relocs-112.d: New.
124         * testsuite/ld-aarch64/emit-relocs-112.s: New.
125         * testsuite/ld-aarch64/emit-relocs-113.d: New.
126         * testsuite/ld-aarch64/emit-relocs-113.s: New.
127         * testsuite/ld-aarch64/emit-relocs-114-overflow.d: New.
128         * testsuite/ld-aarch64/emit-relocs-114-overflow.s: New.
129         * testsuite/ld-aarch64/emit-relocs-114.d: New.
130         * testsuite/ld-aarch64/emit-relocs-114.s: New.
131         * testsuite/ld-aarch64/emit-relocs-115.d: New.
132         * testsuite/ld-aarch64/emit-relocs-115.s: New.
133         * testsuite/ld-aarch64/emit-relocs-116-overflow.d: New.
134         * testsuite/ld-aarch64/emit-relocs-116-overflow.s: New.
135         * testsuite/ld-aarch64/emit-relocs-116.d: New.
136         * testsuite/ld-aarch64/emit-relocs-116.s: New.
137         * testsuite/ld-aarch64/emit-relocs-117.d: New.
138         * testsuite/ld-aarch64/emit-relocs-117.s: New.
139         * testsuite/ld-aarch64/emit-relocs-118-overflow.d: New.
140         * testsuite/ld-aarch64/emit-relocs-118-overflow.s: New.
141         * testsuite/ld-aarch64/emit-relocs-118.d: New.
142         * testsuite/ld-aarch64/emit-relocs-118.s: New.
143         * testsuite/ld-aarch64/emit-relocs-119.d: New.
144         * testsuite/ld-aarch64/emit-relocs-119.s: New.
145
146 2018-03-28  Eric Botcazou  <ebotcazou@adacore.com>
147
148         PR ld/22972
149         * testsuite/ld-sparc/sparc.exp: Add test for mixed GOTDATA/GOT relocs.
150         * testsuite/ld-sparc/gotop-hidden.c: New file.
151         * testsuite/ld-sparc/got-hidden32.s: Likewise.
152         * testsuite/ld-sparc/got-hidden64.s: Likewise.
153         * testsuite/ld-sparc/pass.out: Likewise.
154
155 2018-03-25  H.J. Lu  <hongjiu.lu@intel.com>
156
157         PR ld/23000
158         * testsuite/ld-x86-64/tlsdesc.pd: Updated.
159
160 2018-03-23  Nick Clifton  <nickc@redhat.com>
161
162         PR 22948
163         * emultempl/pe.em (open_dynamic_archive): Add libXXX.lib template
164         to library name list.
165         * emultempl/pep.em (open_dynamic_archive): Likewise.
166         * ld.texinfo (WIN32): Update documentation.
167
168 2018-03-20  Roland McGrath  <mcgrathr@google.com>
169
170         * testsuite/ld-elf/shared.exp (pr20995-2): XFAIL on aarch64*-*-elf*,
171         another target without RELRO.
172
173 2018-03-20  H.J. Lu  <hongjiu.lu@intel.com>
174
175         * testsuite/ld-plugin/pr22983.d: Allow leading underscore as
176         well as extra lines between symbols.
177
178 2018-03-20  Maciej W. Rozycki  <macro@mips.com>
179
180         * testsuite/ld-gc/gc.exp: Remove extraneous LD flags from the
181         personality test.
182
183 2018-03-20  H.J. Lu  <hongjiu.lu@intel.com>
184
185         PR ld/22983
186         * testsuite/ld-plugin/lto.exp: Run PR ld/22983 test.
187         * testsuite/ld-plugin/pr22983.d: New file.
188         * testsuite/ld-plugin/pr22983.t: Likewise.
189         * testsuite/ld-plugin/pr22983a.c: Likewise.
190         * testsuite/ld-plugin/pr22983b.c: Likewise.
191
192 2018-03-15  Andreas Schwab  <schwab@suse.de>
193
194         PR ld/22949
195         * emultempl/riscvelf.em (riscv_elf_before_allocation): Don't
196         enable relaxation in relocatable link.
197
198 2018-03-15  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
199
200         * emultempl/nds32elf.em (nds32_elf_after_allocation): Remove
201         unsupported target feature.
202
203 2018-03-14  H.J. Lu  <hongjiu.lu@intel.com>
204
205         PR ld/20882
206         * testsuite/ld-gc/pr20882.d: Also dump and check .debug_abbrev
207         section.
208         * testsuite/ld-gc/pr20882b.s: Add .debug_abbrev section.
209
210 2018-03-14  H.J. Lu  <hongjiu.lu@intel.com>
211
212         * testsuite/ld-gc/gc.exp: Fix a typo: $LFLAGS -> $LDFLAGS.
213
214 2018-03-13  Nick Clifton  <nickc@redhat.com>
215
216         * po/pt_BR.po: Updated Brazilian Portuguese translation.
217
218 2018-03-09  Nick Clifton  <nickc@redhat.com>
219
220         * testsuite/ld-ifunc/ifuncmod5.s: New test.  Checks that targets
221         that support IFUNC symbols can handle relocations against those
222         symbols in NOTE sections.
223         * testsuite/ld-ifunc/ifuncmod5.d: New file:  Driver for the new
224         test.
225         * testsuite/ld-ifunc/ifunc.exp: Run the new test.
226
227 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
228
229         PR ld/22929
230         * testsuite/ld-i386/i386.exp: Run PR ld/22929 test.
231         * testsuite/ld-x86-64/x86-64.exp: Likewise.
232         * testsuite/ld-i386/pr22929.d: New file.
233         * testsuite/ld-i386/pr22929.s: Likewise.
234         * testsuite/ld-x86-64/pr22929.d: Likewise.
235         * testsuite/ld-x86-64/pr22929.s: Likewise.
236
237 2018-03-07  Max Filippov  <jcmvbkbc@gmail.com>
238
239         * emulparams/elf32xtensa.sh (COMMONPAGESIZE): Define.
240
241 2018-03-07  Renlin Li  <renlin.li@arm.com>
242
243         PR ld/20402
244         * testsuite/ld-aarch64/aarch64-elf.exp: Run new test.
245         * testsuite/ld-aarch64/pr20402.s: New.
246         * testsuite/ld-aarch64/pr20402.d: New.
247
248 2018-03-06  Jim Wilson  <jimw@sifive.com>
249
250         PR 22920
251         * emultempl/riscvelf.em (riscv_create_output_section_statements): New.
252         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): New.
253         * testsuite/ld-elf/pr21884.d (#notarget): Add riscv*-*-*.
254         * testsuite/ld-unique/pr21529.d (#notarget): Likewise.
255         * testsuite/ld-srec/srec.exp (run_srec_test): For riscv*-*-* target,
256         call setup_xfail.
257
258 2018-03-03  James Cowgill  <james.cowgill@mips.com>
259             Maciej W. Rozycki  <macro@mips.com>
260
261         PR ld/21900
262         * testsuite/ld-mips-elf/undefined-warn.d: New test.
263         * testsuite/ld-mips-elf/undefined.s: Add padding at the end.
264         * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
265
266 2018-03-02  Jim Wilson  <jimw@sifive.com>
267
268         PR 22903
269         * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
270         Give stub_sec 8 byte alignment.
271         * emulparams/aarch64cloudabi.sh (NOP): Set to 0x1f2003d5.
272         * emulparams/aarch64elf.sh (NOP): Likewise.
273         * emulparams/aarch64elf32.sh (NOP): Likewise.
274         * emulparams/aarch64fbsd.sh (NOP): Likewise.
275         * emulparams/aarch64linux.sh (NOP): Likewise.
276         * emulparams/aarch64linux32.sh (NOP): Likewise.
277         * testsuite/ld-aarch64/erratum835769.d: Adjust for added nop.
278         * testsuite/ld-aarch64/erratum843419.d: Likewise.
279         * testsuite/ld-aarch64/farcall-b-defsym.d: Likewise.
280         * testsuite/ld-aarch64/farcall-b-none-function.d: Likewise.
281         * testsuite/ld-aarch64/farcall-b-plt.d: Likewise.
282         * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
283         * testsuite/ld-aarch64/farcall-b.d: Likewise.
284         * testsuite/ld-aarch64/farcall-back.d: Likewise.
285         * testsuite/ld-aarch64/farcall-bl-defsym.d: Likewise.
286         * testsuite/ld-aarch64/farcall-bl-none-function.d: Likewise.
287         * testsuite/ld-aarch64/farcall-bl-plt.d: Likewise.
288         * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
289         * testsuite/ld-aarch64/farcall-bl.d: Likewise.
290
291 2018-03-01  Alan Modra  <amodra@gmail.com>
292
293         * configure.ac (ALL_LINGUAS): Add ja.  Sort.
294         * configure: Regenerate.
295
296 2018-02-28  Douglas B Rupp  <rupp@adacore.com>
297
298         * ldmain.c (main): Remove directory separator, if any, from the
299         end of the canonicalized sysroot.
300
301 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
302
303         * NEWS: Mention --enable-separate-code.
304         * configure.ac: Add --enable-separate-code.
305         (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED.
306         * configure.tgt: Default ac_default_ld_z_separate_code to 1 for
307         Linux/x86 targets.
308         * config.in: Regenerated.
309         * configure: Likewise.
310         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
311         link_info.separate_code DEFAULT_LD_Z_SEPARATE_CODE.
312
313 2018-02-26  Alan Modra  <amodra@gmail.com>
314
315         * emulparams/call_nop.sh, * emulparams/cet.sh,
316         * emulparams/elf32mcore.sh, * emultempl/aarch64elf.em
317         * emultempl/aix.em, * emultempl/alphaelf.em, * emultempl/armcoff.em,
318         * emultempl/armelf.em, * emultempl/avrelf.em, * emultempl/beos.em,
319         * emultempl/bfin.em, * emultempl/cr16elf.em, * emultempl/elf32.em,
320         * emultempl/elf-generic.em, * emultempl/hppaelf.em,
321         * emultempl/linux.em, * emultempl/lnk960.em,
322         * emultempl/m68hc1xelf.em, * emultempl/m68kcoff.em,
323         * emultempl/m68kelf.em, * emultempl/metagelf.em,
324         * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
325         * emultempl/mmo.em, * emultempl/msp430.em, * emultempl/nds32elf.em,
326         * emultempl/nios2elf.em, * emultempl/pe.em, * emultempl/pep.em,
327         * emultempl/ppc32elf.em, * emultempl/ppc64elf.em,
328         * emultempl/scoreelf.em, * emultempl/sh64elf.em,
329         * emultempl/spuelf.em, * emultempl/sunos.em, * emultempl/tic6xdsbt.em,
330         * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
331         * emultempl/vxworks.em, * emultempl/xtensaelf.em, * ldcref.c,
332         * ldctor.c, * ldexp.c, * ldfile.c, * ldgram.y, * ldlang.c,
333         * ldmain.c, * ldmisc.c, * ldwrite.c, * lexsup.c, * mri.c, * pe-dll.c,
334         * plugin.c: Standardize error/warning messages.
335         * testsuite/ld-arc/jli-overflow.err,
336         * testsuite/ld-arm/cmse-implib-errors.out,
337         * testsuite/ld-arm/cmse-new-earlier-later-implib.out,
338         * testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out,
339         * testsuite/ld-arm/cmse-new-wrong-implib.out,
340         * testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out,
341         * testsuite/ld-arm/cmse-veneers-wrong-entryfct.out,
342         * testsuite/ld-arm/vxworks1-static.d,
343         * testsuite/ld-cris/tls-err-20x.d, * testsuite/ld-cris/tls-err-29.d,
344         * testsuite/ld-cris/tls-err-31.d, * testsuite/ld-cris/tls-err-33.d,
345         * testsuite/ld-cris/tls-err-35.d, * testsuite/ld-cris/tls-err-37.d,
346         * testsuite/ld-cris/tls-err-39.d, * testsuite/ld-cris/tls-err-41.d,
347         * testsuite/ld-cris/tls-err-43.d, * testsuite/ld-cris/tls-err-45.d,
348         * testsuite/ld-cris/tls-err-47.d, * testsuite/ld-cris/tls-err-49.d,
349         * testsuite/ld-cris/tls-err-51.d, * testsuite/ld-cris/tls-err-67.d,
350         * testsuite/ld-elf/dwarf2.err, * testsuite/ld-elf/dwarf3.err,
351         * testsuite/ld-elf/orphan-5.l, * testsuite/ld-elf/orphan-6.l,
352         * testsuite/ld-i386/vxworks1-static.d,
353         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d,
354         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d,
355         * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d,
356         * testsuite/ld-mips-elf/bal-jalx-pic-n32.d,
357         * testsuite/ld-mips-elf/bal-jalx-pic-n64.d,
358         * testsuite/ld-mips-elf/bal-jalx-pic.d,
359         * testsuite/ld-mips-elf/jal-global-overflow-1.d,
360         * testsuite/ld-mips-elf/jal-local-overflow-1.d,
361         * testsuite/ld-mips-elf/mode-change-error-1.d,
362         * testsuite/ld-mips-elf/unaligned-branch-2.d,
363         * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d,
364         * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d,
365         * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d,
366         * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d,
367         * testsuite/ld-mips-elf/unaligned-branch-micromips.d,
368         * testsuite/ld-mips-elf/unaligned-branch-mips16.d,
369         * testsuite/ld-mips-elf/unaligned-branch-r6-1.d,
370         * testsuite/ld-mips-elf/unaligned-branch-r6-2.d,
371         * testsuite/ld-mips-elf/unaligned-branch.d,
372         * testsuite/ld-mips-elf/unaligned-jalx-1.d,
373         * testsuite/ld-mips-elf/unaligned-jalx-3.d,
374         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d,
375         * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d,
376         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d,
377         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d,
378         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d,
379         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d,
380         * testsuite/ld-mips-elf/unaligned-jump-micromips.d,
381         * testsuite/ld-mips-elf/unaligned-jump-mips16.d,
382         * testsuite/ld-mips-elf/unaligned-jump.d,
383         * testsuite/ld-mips-elf/unaligned-ldpc-1.d,
384         * testsuite/ld-mips-elf/unaligned-lwpc-1.d,
385         * testsuite/ld-mips-elf/undefined.d,
386         * testsuite/ld-mips-elf/vxworks1-static.d,
387         * testsuite/ld-mmix/bpo-20.d, * testsuite/ld-mmix/bpo-20m.d,
388         * testsuite/ld-mmix/bpo-7.d, * testsuite/ld-mmix/bpo-7m.d,
389         * testsuite/ld-mmix/bpo-8.d, * testsuite/ld-mmix/bpo-8m.d,
390         * testsuite/ld-mmix/greg-17.d, * testsuite/ld-mmix/greg-18.d,
391         * testsuite/ld-mmix/greg-8.d, * testsuite/ld-mmix/greg-9.d,
392         * testsuite/ld-plugin/plugin-14.d, * testsuite/ld-plugin/plugin-15.d,
393         * testsuite/ld-plugin/plugin-16.d, * testsuite/ld-plugin/plugin-20.d,
394         * testsuite/ld-plugin/plugin-21.d, * testsuite/ld-plugin/plugin-22.d,
395         * testsuite/ld-plugin/plugin-23.d, * testsuite/ld-plugin/plugin-6.d,
396         * testsuite/ld-plugin/plugin-7.d, * testsuite/ld-plugin/plugin-8.d,
397         * testsuite/ld-powerpc/aix-weak-3-32.d,
398         * testsuite/ld-powerpc/aix-weak-3-64.d,
399         * testsuite/ld-powerpc/vxworks1-static.d,
400         * testsuite/ld-sh/vxworks1-static.d,
401         * testsuite/ld-sparc/vxworks1-static.d,
402         * testsuite/ld-undefined/undefined.exp,
403         * testsuite/ld-x86-64/pie1.d: Update for changed errors and warnings.
404         * testsuite/ld-elf/warn1.d, * testsuite/ld-elf/warn2.d: Correct regex.
405
406 2018-02-26  Alan Modra  <amodra@gmail.com>
407
408         * Makefile.am (EMULATION_FILES, POTFILES): Delete.
409         (SRC_POTFILES, BLD_POTFILES): Define.
410         (po/POTFILES.in): Delete rule.
411         (po/SRC-POTFILES.in, po/BLD-POTFILES.in): New rules.
412         * configure.ac: Add AC_CONFIG_COMMANDS to create po/Makefile.
413         * po/Make-in (DISTFILES): Remove POTFILES.in, add SRC-POTFILES.in
414         and BLD-POTFILES.in.
415         (POTFILES): Delete.
416         (SRC-POTFILES, BLD-POTFILES): Define place marker.
417         (ld.pot): Build from SRC-POTFILES plus BLD-POTFILES.
418         (distclean, maintainer-clean): Tidy up new files.
419         (POTFILES, POTFILES.in): Delete rules.
420         (SRC-POTFILES, BLD-POTFILES, SRC-POTFILES.in, BLD-POTFILES.in):
421         New rules.
422         (Makefile): Depend on SRC-POTFILES and BLD-POTFILES.
423         * po/SRC-POTFILES.in: Rename from po/POTFILES.in.
424         * po/BLD-POTFILES.in: New file.
425         * Makefile.in: Regenerate.
426         * configure: Regenerate.
427
428 2018-02-26  Alan Modra  <amodra@gmail.com>
429
430         * testsuite/ld-cris/pcrelcp-1.d,
431         * testsuite/ld-mmix/start-2.d: Update.
432
433 2018-02-26  Alan Modra  <amodra@gmail.com>
434
435         * testsuite/ld-arm/cmse-implib-errors.out,
436         * testsuite/ld-arm/cmse-new-earlier-later-implib.out,
437         * testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out,
438         * testsuite/ld-arm/cmse-new-wrong-implib.out,
439         * testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out,
440         * testsuite/ld-arm/cmse-veneers-wrong-entryfct.out,
441         * testsuite/ld-cris/badgotr1.d,
442         * testsuite/ld-cris/tls-err-24.d,
443         * testsuite/ld-cris/tls-err-25.d,
444         * testsuite/ld-cris/tls-err-26.d,
445         * testsuite/ld-cris/tls-err-27.d,
446         * testsuite/ld-cris/tls-err-28.d,
447         * testsuite/ld-cris/tls-err-40.d,
448         * testsuite/ld-cris/tls-err-44.d,
449         * testsuite/ld-cris/tls-err-48.d,
450         * testsuite/ld-cris/tls-err-52.d,
451         * testsuite/ld-cris/tls-err-53.d,
452         * testsuite/ld-cris/tls-err-55.d,
453         * testsuite/ld-cris/tls-err-56.d,
454         * testsuite/ld-cris/tls-err-62.d,
455         * testsuite/ld-cris/tls-err-65.d,
456         * testsuite/ld-cris/tls-err-77.d,
457         * testsuite/ld-elf/empty-implib.out,
458         * testsuite/ld-elf/indirect.exp: Update.
459
460 2018-02-26  Alan Modra  <amodra@gmail.com>
461
462         * testsuite/ld-aarch64/reloc-overflow-bad.d,
463         * testsuite/ld-arm/attr-merge-9.out,
464         * testsuite/ld-arm/attr-merge-arch-2.d,
465         * testsuite/ld-arm/attr-merge-unknown-1.d,
466         * testsuite/ld-arm/attr-merge-unknown-2.d,
467         * testsuite/ld-arm/attr-merge-unknown-2r.d,
468         * testsuite/ld-arm/attr-merge-unknown-3.d,
469         * testsuite/ld-arm/cmse-implib-errors.out,
470         * testsuite/ld-arm/cmse-new-earlier-later-implib.out,
471         * testsuite/ld-arm/cmse-new-implib-no-output.out,
472         * testsuite/ld-arm/cmse-new-implib-not-sg-in-implib.out,
473         * testsuite/ld-arm/cmse-new-implib.out,
474         * testsuite/ld-arm/cmse-new-wrong-implib.out,
475         * testsuite/ld-arm/cmse-veneers-no-gnu_sgstubs.out,
476         * testsuite/ld-arm/cmse-veneers-wrong-entryfct.out,
477         * testsuite/ld-arm/group-relocs-alu-bad-2.d,
478         * testsuite/ld-arm/group-relocs-alu-bad.d,
479         * testsuite/ld-arm/group-relocs-ldc-bad-2.d,
480         * testsuite/ld-arm/group-relocs-ldc-bad.d,
481         * testsuite/ld-arm/group-relocs-ldr-bad-2.d,
482         * testsuite/ld-arm/group-relocs-ldr-bad.d,
483         * testsuite/ld-arm/group-relocs-ldrs-bad-2.d,
484         * testsuite/ld-arm/group-relocs-ldrs-bad.d,
485         * testsuite/ld-arm/stm32l4xx-cannot-fix-far-ldm.d: Update.
486
487 2018-02-26  Alan Modra  <amodra@gmail.com>
488
489         * testsuite/ld-mips-elf/attr-gnu-4-12.d,
490         * testsuite/ld-mips-elf/attr-gnu-4-13.d,
491         * testsuite/ld-mips-elf/attr-gnu-4-14.d,
492         * testsuite/ld-mips-elf/attr-gnu-4-16.d,
493         * testsuite/ld-mips-elf/attr-gnu-4-17.d,
494         * testsuite/ld-mips-elf/attr-gnu-4-18.d,
495         * testsuite/ld-mips-elf/attr-gnu-4-19.d,
496         * testsuite/ld-mips-elf/attr-gnu-4-21.d,
497         * testsuite/ld-mips-elf/attr-gnu-4-23.d,
498         * testsuite/ld-mips-elf/attr-gnu-4-24.d,
499         * testsuite/ld-mips-elf/attr-gnu-4-25.d,
500         * testsuite/ld-mips-elf/attr-gnu-4-26.d,
501         * testsuite/ld-mips-elf/attr-gnu-4-27.d,
502         * testsuite/ld-mips-elf/attr-gnu-4-28.d,
503         * testsuite/ld-mips-elf/attr-gnu-4-29.d,
504         * testsuite/ld-mips-elf/attr-gnu-4-31.d,
505         * testsuite/ld-mips-elf/attr-gnu-4-32.d,
506         * testsuite/ld-mips-elf/attr-gnu-4-34.d,
507         * testsuite/ld-mips-elf/attr-gnu-4-35.d,
508         * testsuite/ld-mips-elf/attr-gnu-4-36.d,
509         * testsuite/ld-mips-elf/attr-gnu-4-37.d,
510         * testsuite/ld-mips-elf/attr-gnu-4-38.d,
511         * testsuite/ld-mips-elf/attr-gnu-4-39.d,
512         * testsuite/ld-mips-elf/attr-gnu-4-41.d,
513         * testsuite/ld-mips-elf/attr-gnu-4-42.d,
514         * testsuite/ld-mips-elf/attr-gnu-4-43.d,
515         * testsuite/ld-mips-elf/attr-gnu-4-45.d,
516         * testsuite/ld-mips-elf/attr-gnu-4-46.d,
517         * testsuite/ld-mips-elf/attr-gnu-4-47.d,
518         * testsuite/ld-mips-elf/attr-gnu-4-48.d,
519         * testsuite/ld-mips-elf/attr-gnu-4-49.d,
520         * testsuite/ld-mips-elf/attr-gnu-4-52.d,
521         * testsuite/ld-mips-elf/attr-gnu-4-53.d,
522         * testsuite/ld-mips-elf/attr-gnu-4-54.d,
523         * testsuite/ld-mips-elf/attr-gnu-4-58.d,
524         * testsuite/ld-mips-elf/attr-gnu-4-59.d,
525         * testsuite/ld-mips-elf/attr-gnu-4-61.d,
526         * testsuite/ld-mips-elf/attr-gnu-4-62.d,
527         * testsuite/ld-mips-elf/attr-gnu-4-63.d,
528         * testsuite/ld-mips-elf/attr-gnu-4-64.d,
529         * testsuite/ld-mips-elf/attr-gnu-4-68.d,
530         * testsuite/ld-mips-elf/attr-gnu-4-69.d,
531         * testsuite/ld-mips-elf/attr-gnu-4-71.d,
532         * testsuite/ld-mips-elf/attr-gnu-4-72.d,
533         * testsuite/ld-mips-elf/attr-gnu-4-73.d,
534         * testsuite/ld-mips-elf/attr-gnu-4-74.d,
535         * testsuite/ld-mips-elf/attr-gnu-4-78.d,
536         * testsuite/ld-mips-elf/attr-gnu-4-79.d,
537         * testsuite/ld-mips-elf/attr-gnu-4-81.d,
538         * testsuite/ld-mips-elf/attr-gnu-4-89.d,
539         * testsuite/ld-mips-elf/attr-gnu-8-12.d,
540         * testsuite/ld-mips-elf/attr-gnu-8-21.d,
541         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d,
542         * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d,
543         * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d,
544         * testsuite/ld-mips-elf/bal-jalx-pic-n32.d,
545         * testsuite/ld-mips-elf/bal-jalx-pic-n64.d,
546         * testsuite/ld-mips-elf/bal-jalx-pic.d,
547         * testsuite/ld-mips-elf/mode-change-error-1.d,
548         * testsuite/ld-mips-elf/unaligned-branch-2.d,
549         * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d,
550         * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d,
551         * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d,
552         * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d,
553         * testsuite/ld-mips-elf/unaligned-branch-micromips.d,
554         * testsuite/ld-mips-elf/unaligned-branch-mips16.d,
555         * testsuite/ld-mips-elf/unaligned-branch-r6-1.d,
556         * testsuite/ld-mips-elf/unaligned-branch-r6-2.d,
557         * testsuite/ld-mips-elf/unaligned-branch.d,
558         * testsuite/ld-mips-elf/unaligned-jalx-1.d,
559         * testsuite/ld-mips-elf/unaligned-jalx-3.d,
560         * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d,
561         * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d,
562         * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d,
563         * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d,
564         * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d,
565         * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d,
566         * testsuite/ld-mips-elf/unaligned-jump-micromips.d,
567         * testsuite/ld-mips-elf/unaligned-jump-mips16.d,
568         * testsuite/ld-mips-elf/unaligned-jump.d: Update.
569
570 2018-02-26  Alan Modra  <amodra@gmail.com>
571
572         * testsuite/ld-elf/indirect.exp,
573         * testsuite/ld-elf/pr22649-2ab-mips.msg,
574         * testsuite/ld-elf/pr22649-2cd-mips.msg,
575         * testsuite/ld-elf/pr22649.msg,
576         * testsuite/ld-elf/tls_common.exp,
577         * testsuite/ld-elfcomm/elfcomm.exp,
578         * testsuite/ld-arm/attr-merge-incompatible.d,
579         * testsuite/ld-tic6x/attr-compatibility-gnu-other.d,
580         * testsuite/ld-tic6x/attr-compatibility-other-gnu.d,
581         * testsuite/ld-tic6x/attr-compatibility-other-other.d,
582         * testsuite/ld-i386/warn1.d: Update expected error/warning messages.
583
584 2018-02-26  Alan Modra  <amodra@gmail.com>
585
586         * testsuite/ld-powerpc/attr-gnu-12-21.d,
587         * testsuite/ld-powerpc/attr-gnu-4-12.d,
588         * testsuite/ld-powerpc/attr-gnu-4-13.d,
589         * testsuite/ld-powerpc/attr-gnu-4-21.d,
590         * testsuite/ld-powerpc/attr-gnu-4-23.d,
591         * testsuite/ld-powerpc/attr-gnu-4-31.d,
592         * testsuite/ld-powerpc/attr-gnu-4-32.d,
593         * testsuite/ld-powerpc/attr-gnu-8-23.d: Update.
594
595 2018-02-21  Alan Modra  <amodra@gmail.com>
596
597         * testsuite/ld-elf/group8b.d: Run test on ia64.  Use xfail rather
598         than notarget.
599         * testsuite/ld-elf/pr12851.d: Likewise.
600         * testsuite/ld-elf/pr12975.d: Likewise.
601         * testsuite/ld-elf/pr13177.d: Likewise.
602         * testsuite/ld-elf/pr13195.d: Likewise.
603         * testsuite/ld-elf/pr17615.d: Likewise.
604         * testsuite/ld-elf/pr21562a.d: Likewise.
605         * testsuite/ld-elf/pr21562b.d: Likewise.
606         * testsuite/ld-elf/pr21562c.d: Likewise.
607         * testsuite/ld-elf/pr21562d.d: Likewise.
608         * testsuite/ld-elf/pr21562i.d: Likewise.
609         * testsuite/ld-elf/pr21562j.d: Likewise.
610         * testsuite/ld-elf/pr21562k.d: Likewise.
611         * testsuite/ld-elf/pr21562l.d: Likewise.
612         * testsuite/ld-elf/pr21562m.d: Likewise.
613         * testsuite/ld-elf/pr21562n.d: Likewise.
614         * testsuite/ld-elf/group9a.d: Run test on ia64 and alpha.  Use xfail
615         rather than notarget.
616         * testsuite/ld-elf/group9b.d: Likewise.
617         * testsuite/ld-elf/pr22677.d: Likewise.
618
619 2018-02-19  Maciej W. Rozycki  <macro@mips.com>
620
621         * testsuite/ld-mips-elf/reginfo-0.d: New test.
622         * testsuite/ld-mips-elf/reginfo-0r.d: New test.
623         * testsuite/ld-mips-elf/reginfo-1.d: New test.
624         * testsuite/ld-mips-elf/reginfo-1r.d: New test.
625         * testsuite/ld-mips-elf/reginfo-2.d: New test.
626         * testsuite/ld-mips-elf/reginfo-2r.d: New test.
627         * testsuite/ld-mips-elf/mips-abiflags-0.d: New test.
628         * testsuite/ld-mips-elf/mips-abiflags-0r.d: New test.
629         * testsuite/ld-mips-elf/mips-abiflags-1.d: New test.
630         * testsuite/ld-mips-elf/mips-abiflags-1r.d: New test.
631         * testsuite/ld-mips-elf/mips-abiflags-2.d: New test.
632         * testsuite/ld-mips-elf/mips-abiflags-2r.d: New test.
633         * testsuite/ld-mips-elf/reginfo-0.ld: New test linker script.
634         * testsuite/ld-mips-elf/reginfo-1.ld: New test linker script.
635         * testsuite/ld-mips-elf/mips-abiflags-0.ld: New test linker
636         script.
637         * testsuite/ld-mips-elf/mips-abiflags-1.ld: New test linker
638         script.
639         * testsuite/ld-mips-elf/reginfo-1.s: New test source.
640         * testsuite/ld-mips-elf/reginfo-2.s: New test source.
641         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
642
643 2018-02-19  Maciej W. Rozycki  <macro@mips.com>
644
645         * ldlang.c (insert_pad): Do not change output section's size if
646         SEC_FIXED_SIZE is set in the flags.
647         (size_input_section): Likewise.
648         (lang_size_sections_1): Likewise.
649         (lang_reset_memory_regions): Likewise.
650
651 2018-02-19  Alan Modra  <amodra@gmail.com>
652
653         * ldmisc.c (vfinfo) Handle %pI, %pR, %pS and %pT in place of
654         %I, %R, %S and %T.
655         * ldcref.c, * ldctor.c, * ldemul.c, * ldexp.c, * ldgram.y,
656         * ldlang.c, * ldlex.l, * ldmain.c, * ldmisc.c, * pe-dll.c,
657         * emultempl/sh64elf.em: Replace use of of %I, %R, %S and %T in
658         format strings passed to einfo and friends by %pI, %pR, %pS and %pT.
659
660 2018-02-19  Alan Modra  <amodra@gmail.com>
661
662         * ldmisc.c (vfinfo): Handle %pA and %pB in place of %A and %B.
663         * ldcref.c: Update all messages using %A and %B.
664         * ldexp.c: Likewise.
665         * ldlang.c: Likewise.
666         * ldmain.c: Likewise.
667         * ldmisc.c: Likewise.
668         * pe-dll.c: Likewise.
669         * plugin.c: Likewise.
670         * emultempl/beos.em: Likewise.
671         * emultempl/cr16elf.em: Likewise.
672         * emultempl/elf32.em: Likewise.
673         * emultempl/m68kcoff.em: Likewise.
674         * emultempl/m68kelf.em: Likewise.
675         * emultempl/mmo.em: Likewise.
676         * emultempl/nds32elf.em: Likewise.
677         * emultempl/pe.em: Likewise.
678         * emultempl/pep.em: Likewise.
679         * emultempl/spuelf.em: Likewise.
680         * emultempl/sunos.em: Likewise.
681         * emultempl/xtensaelf.em: Likewise.
682
683 2018-02-19  H.J. Lu  <hongjiu.lu@intel.com>
684
685         PR ld/22845
686         * testsuite/ld-elf/frame.exp: Skip if -shared isn't supported.
687         Add tests for "-z noseparate-code" and "-z separate-code".
688         Remove unsupported -shared check.
689
690 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
691
692         PR ld/22845
693         * testsuite/ld-elf/ehdr_start.d: Pass --build-id to ld.
694
695 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
696
697         PR ld/22845
698         * testsuite/ld-elf/binutils.exp (tls_opts): Add tests for
699         "-z noseparate-code" and "-z separate-code".
700
701 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
702
703         PR ld/22845
704         * ld-elf/eh4.d: Pass -z max-page-size=0x200000 -z noseparate-code
705         to ld.
706
707 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
708
709         * testsuite/ld-x86-64/bnd-branch-1-now.d: Add  -z
710         max-page-size=0x200000 -z noseparate-code.
711         * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
712         * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
713         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
714         * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
715         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
716         * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
717         * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
718         * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
719         * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
720         * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
721         * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
722         * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
723         * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
724         * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
725         * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
726         * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
727         * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
728         * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
729         * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
730         * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
731         * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
732         * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
733         * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
734         * testsuite/ld-x86-64/load1a.d: Likewise.
735         * testsuite/ld-x86-64/load1b.d: Likewise.
736         * testsuite/ld-x86-64/load1c.d: Likewise.
737         * testsuite/ld-x86-64/load1d.d: Likewise.
738         * testsuite/ld-x86-64/pie3.d: Likewise.
739         * testsuite/ld-x86-64/pr14207.d: Likewise.
740         * testsuite/ld-x86-64/pr17618.d: Likewise.
741         * testsuite/ld-x86-64/pr19162.d: Likewise.
742         * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
743         * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
744         * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
745         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
746         * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
747         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
748         * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
749         * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
750         * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
751         * testsuite/ld-x86-64/pr20830a.d: Likewise.
752         * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
753         * testsuite/ld-x86-64/pr20830b.d: Likewise.
754         * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
755         * testsuite/ld-x86-64/pr21038a.d: Likewise.
756         * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
757         * testsuite/ld-x86-64/pr21038b.d: Likewise.
758         * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
759         * testsuite/ld-x86-64/pr21038c.d: Likewise.
760
761 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
762
763         * testsuite/ld-x86-64/bnd-ifunc-1.d: Updated.
764         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
765
766 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
767
768         * testsuite/ld-x86-64/mpx.exp: Add -z max-page-size=0x200000
769         -z noseparate-code.
770
771 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
772
773         * testsuite/ld-x86-64/x86-64.exp: Add -z noseparate-code
774         -z max-page-size=0x200000, excluding NaCl target.
775
776 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
777
778         * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
779         * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
780         * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
781         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
782         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
783         * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
784         * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
785
786 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
787
788         * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Add
789          -z max-page-size=0x200000 -z noseparate-code.
790         * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
791         * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
792         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
793         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
794         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
795         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
796
797 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
798
799         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated for i386.
800         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
801         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
802
803 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
804
805         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
806         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
807         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
808
809 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
810
811         * testsuite/ld-i386/ibt-plt-1.d: Add -z noseparate-code.
812         * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
813         * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
814         * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
815         * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
816         * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
817         * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
818         * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
819         * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
820         * testsuite/ld-i386/load1.d: Likewise.
821         * testsuite/ld-i386/pie1.d: Likewise.
822         * testsuite/ld-i386/pr20244-1a.d: Likewise.
823         * testsuite/ld-i386/pr20244-1b.d: Likewise.
824         * testsuite/ld-i386/pr20244-2a.d: Likewise.
825         * testsuite/ld-i386/pr20244-2b.d: Likewise.
826         * testsuite/ld-i386/pr20244-2c.d: Likewise.
827         * testsuite/ld-i386/pr20244-4a.d: Likewise.
828         * testsuite/ld-i386/pr20244-4b.d: Likewise.
829         * testsuite/ld-i386/pr20830.d: Likewise.
830
831 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
832
833         * testsuite/ld-i386/pr19636-1a.d: Updated.
834         * testsuite/ld-i386/pr19636-1b.d: Likewise.
835         * testsuite/ld-i386/pr19636-1j.d: Likewise.
836         * testsuite/ld-i386/pr19636-1k.d: Likewise.
837         * testsuite/ld-i386/pr19636-2a.d: Likewise.
838         * testsuite/ld-i386/pr19636-2b.d: Likewise.
839
840 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
841
842         * testsuite/ld-i386/i386.exp: Add -z noseparate-code.
843
844 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
845
846         * testsuite/ld-elf/pr19162.d: Add -z noseparate-code.
847         * testsuite/ld-elf/textaddr1.d: Likewise.
848         * testsuite/ld-elf/textaddr2.d: Likewise.
849         * testsuite/ld-elf/textaddr4.d: Likewise.
850         * testsuite/ld-elf/textaddr6.d: Likewise.
851
852 2018-02-15  Jim Wilson  <jimw@sifive.com>
853
854         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run pcrel-lo-addend test.
855         * testsuite/ld-riscv-elf/pcrel-lo-addend.d: New.
856         * testsuite/ld-riscv-elf/pcrel-lo-addend.s: New.
857
858 2018-02-14  H.J. Lu  <hongjiu.lu@intel.com>
859
860         PR ld/22842
861         * testsuite/ld-i386/i386.exp: Run PR ld/22842 tests.
862         * testsuite/ld-x86-64/x86-64.exp: Likewise.
863         * testsuite/ld-i386/pr22842a.c: New file.
864         * testsuite/ld-i386/pr22842b.S: Likewise.
865         * testsuite/ld-x86-64/pr22842a.c: Likewise.
866         * testsuite/ld-x86-64/pr22842a.rd: Likewise.
867         * testsuite/ld-x86-64/pr22842b.S: Likewise.
868         * testsuite/ld-x86-64/pr22842b.rd: Likewise.
869
870 2018-02-14  Maciej W. Rozycki  <macro@mips.com>
871
872         * ldlex.h (ldlex_command): Remove prototype.
873
874 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
875
876         * testsuite/ld-x86-64/x86-64.exp: Replace pr22393-2a.so and
877         pr22393-2a-now.so with pr22393-3a.so and pr22393-3a-now.so.
878
879 2018-02-14  H.J. Lu  <hongjiu.lu@intel.com>
880
881         PR 22836
882         * testsuite/ld-elf/pr22836-1.s: New file.
883         * testsuite/ld-elf/pr22836-1a.d: Likewise.
884         * testsuite/ld-elf/pr22836-1b.d: Likewise.
885
886 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
887
888         PR gas/22791
889         * testsuite/ld-x86-64/mpx1c.rd: Updated.
890         * testsuite/ld-x86-64/pr22791-1.err: New file.
891         * testsuite/ld-x86-64/pr22791-1a.c: Likewise.
892         * testsuite/ld-x86-64/pr22791-1b.s: Likewise.
893         * testsuite/ld-x86-64/pr22791-2.rd: Likewise.
894         * testsuite/ld-x86-64/pr22791-2a.s: Likewise.
895         * testsuite/ld-x86-64/pr22791-2b.c: Likewise.
896         * testsuite/ld-x86-64/pr22791-2c.s: Likewise.
897         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/22791 tests.
898
899 2018-02-13  Alan Modra  <amodra@gmail.com>
900
901         PR 22836
902         * testsuite/ld-elf/pr22836-2.d,
903         * testsuite/ld-elf/pr22836-2.s: New test.
904
905 2018-02-13  Alan Modra  <amodra@gmail.com>
906
907         * testsuite/ld-x86-64/pr14207.d: Adjust relro p_filesz.
908
909 2018-02-07  Alan Modra  <amodra@gmail.com>
910
911         Revert 2018-01-17  Alan Modra  <amodra@gmail.com>
912         * emultempl/ppc32elf.em: Remove --speculate-indirect-jumps support.
913         * emultempl/ppc64elf.em: Likesize
914         * ld.texinfo: Likewise
915         * testsuite/ld-powerpc/elfv2exe.d,
916         * testsuite/ld-powerpc/elfv2so.d,
917         * testsuite/ld-powerpc/relbrlt.d,
918         * testsuite/ld-powerpc/powerpc.exp: Likewise.
919
920 2018-02-06  Eric Botcazou  <ebotcazou@adacore.com>
921
922         * testsuite/ld-elf/tls.exp (AFLAGS_PIC): Define on SPARC.
923         (pr22263-1): Pass AFLAGS_PIC to the assembler.
924         * testsuite/ld-sparc/tlspie32.s: Add test for other 3 transitions.
925         * testsuite/ld-sparc/tlspie32.dd: Adjust to above.
926         * testsuite/ld-sparc/tlspie64.s: Add test for other 3 transitions.
927         * testsuite/ld-sparc/tlspie64.dd: Adjust to above.
928
929 2018-02-05  Renlin Li  <renlin.li@arm.com>
930
931         PR ld/22764
932         * testsuite/ld-aarch64/emit-relocs-258.s: Define symbol as an address.
933         * testsuite/ld-aarch64/emit-relocs-259.s: Likewise.
934         * testsuite/ld-aarch64/pr22764.s: New.
935         * testsuite/ld-aarch64/pr22764.d: New.
936
937 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
938
939         PR ld/22782
940         * testsuite/ld-i386/discarded1.s: Replace mov with div.
941         * testsuite/ld-x86-64/discarded1.s: Likewise.
942         * testsuite/ld-i386/i386.exp: Run pr22782.
943         * testsuite/ld-i386/load1-nacl.d: Updated for removing
944         _GLOBAL_OFFSET_TABLE_ from output.
945         * testsuite/ld-i386/load1.d: Likewise.
946         * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
947         * testsuite/ld-x86-64/load1a.d: Likewise.
948         * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
949         * testsuite/ld-x86-64/load1b.d: Likewise.
950         * testsuite/ld-i386/pr22782.d: New file.
951         * testsuite/ld-i386/pr22782.s: Likewise.
952         * testsuite/ld-x86-64/pr22782.s: Likewise.
953         * testsuite/ld-x86-64/pr22782a.d: Likewise.
954         * testsuite/ld-x86-64/pr22782b.d: Likewise.
955         * testsuite/ld-x86-64/x86-64.exp: Run pr22782a and pr22782b.
956
957 2018-02-05  Nick Clifton  <nickc@redhat.com>
958
959         * po/pt_BR.po: Updated Brazilian Portuguese translation.
960
961 2018-02-04  H.J. Lu  <hongjiu.lu@intel.com>
962
963         * testsuite/ld-i386/lea1d.d: Replace -Sw with -SW.
964         * testsuite/ld-i386/lea1e.d: Likewise.
965         * testsuite/ld-i386/lea1f.d: Likewise.
966         * testsuite/ld-x86-64/lea1g.d: Likewise.
967         * testsuite/ld-x86-64/lea1h.d: Likewise.
968         * testsuite/ld-x86-64/lea1i.d: Likewise.
969         * testsuite/ld-x86-64/lea1j.d: Likewise.
970         * testsuite/ld-x86-64/lea1k.d: Likewise.
971         * testsuite/ld-x86-64/lea1l.d: Likewise.
972
973 2018-02-03  Nick Clifton  <nickc@redhat.com>
974
975         PR 22762
976         * scripttempl/pe.sc: Remove PROVIDE()s from __CTOR_LIST__ and
977         __DTOR_LIST__ symbols.  Add a comment explaining why this is
978         necessary.
979         * scripttemp/pep.sc: Likewise.
980         * ld.texinfo (PROVIDE): Add a note about the effect of common
981         symbols.
982
983 2018-02-03  Sandra Loosemore  <sandra@codesourcery.com>
984
985         * emulparams/nios2elf.sh (GENERATE_SHLIB_SCRIPT): Don't set.
986
987 2018-02-02  Maciej W. Rozycki  <macro@mips.com>
988
989         * testsuite/ld-elf/shared.exp: Add $AFLAGS_PIC throughout to PIC
990         assembly builds where missing and remove `tic6x-*-*' XFAIL
991         markings accordingly.
992
993 2018-02-01  Simon Marchi  <simon.marchi@ericsson.com>
994
995         * ldexp.c (fold_name, exp_fold_tree_1): Avoid pointer arithmetic
996         on NULL pointer.
997
998 2018-01-31  H.J. Lu  <hongjiu.lu@intel.com>
999
1000         * testsuite/ld-elf/pr21964-5.c (my_var): Mark as used.
1001
1002 2018-01-31  Maciej W. Rozycki  <macro@mips.com>
1003
1004         * testsuite/ld-elf/shared.exp: Fix a typo s/scrip/script/.
1005
1006 2018-01-31  Maciej W. Rozycki  <macro@mips.com>
1007
1008         * testsuite/ld-elf/comm-data.exp: Pass `-call_shared' to links
1009         involving a shared library for `mips*vr4100*-*-elf*',
1010         `mips*vr4300*-*-elf*' and `mips*vr5000*-*-elf*' targets.
1011         * testsuite/ld-elf/provide-hidden.exp: Likewise.
1012         * testsuite/ld-elf/shared.exp: Likewise.
1013         * testsuite/ld-gc/gc.exp: Likewise.
1014         * testsuite/ld-mips-elf/comm-data.exp: Likewise.
1015
1016 2018-01-31  Maciej W. Rozycki  <macro@mips.com>
1017
1018         * testsuite/ld-elf/elf.exp: Move shared library tests over to...
1019         * testsuite/ld-elf/shared.exp: ... here.
1020
1021 2018-01-31  Michael Matz  <matz@suse.de>
1022
1023         * testsuite/ld-elf/pr21964-5.c: New test.
1024         * testsuite/ld-elf/shared.exp: Run it.
1025
1026 2018-01-31  H.J. Lu  <hongjiu.lu@intel.com>
1027
1028         PR ld/21964
1029         * testsuite/ld-elf/pr21964-4.c: New file.
1030         * testsuite/ld-elf/shared.exp: Run pr21964-4 test on Linux.
1031
1032 2018-01-30  Alan Modra  <amodra@gmail.com>
1033
1034         * testsuite/ld-gc/stop.d,
1035         * testsuite/ld-gc/stop.s: New test.
1036         * testsuite/ld-gc/gc.exp: Run it.
1037
1038 2018-01-30  Maciej W. Rozycki  <macro@mips.com>
1039
1040         PR ld/22649
1041         * testsuite/ld-elf/pr22649-2ab-mips.msg: New stderr output.
1042         * testsuite/ld-elf/pr22649-2cd-mips.msg: New stderr output.
1043         * testsuite/ld-elf/shared.exp: Use the new outputs with
1044         `mips*-*-*' targets.
1045
1046 2018-01-30  Maciej W. Rozycki  <macro@mips.com>
1047
1048         * testsuite/ld-elf/comm-data1.sd: Alternatively accept
1049         `PRC[0xff02]' in place of a regular section index.
1050         * testsuite/ld-elf/pr21703-shared.sd: Likewise `PRC[0xff01]'.
1051
1052 2018-01-29  Alan Modra  <amodra@gmail.com>
1053
1054         * testsuite/ld-elf/pr21964-3a.c: New file.
1055         * testsuite/ld-elf/pr21964-3c.c: New file.
1056         * testsuite/ld-elf/shared.exp: Run new __start/__stop testcase.
1057
1058 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
1059
1060         * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
1061         (pr22269-1): Pass AFLAGS_PIC to the assembler.
1062
1063 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
1064
1065         * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
1066
1067 2018-01-29  Maciej W. Rozycki  <macro@mips.com>
1068
1069         * testsuite/ld-mips-elf/comm-data.exp: Correct support for
1070         targets using non-traditional MIPS emulation or having a limited
1071         selection of ABIs available.  Don't force big endianness, use
1072         defaults.
1073
1074 2018-01-29  H.J. Lu  <hongjiu.lu@intel.com>
1075
1076         PR ld/22732
1077         * testsuite/config/default.exp (STATIC_LDFLAGS): New.  Set to
1078         "-static" if target compiler supports it.
1079         * testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
1080         tests if target compiler doesn't support it.
1081         * testsuite/ld-ifunc/ifunc.exp: Likewise.
1082         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
1083         (run_cc_link_tests): Likewise.
1084
1085 2018-01-27  H.J. Lu  <hongjiu.lu@intel.com>
1086
1087         PR ld/22751
1088         * testsuite/config/default.exp (INT128_CFLAGS): New.
1089         * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
1090         Run ld/22751 tests.
1091         * testsuite/ld-plugin/pr22751.c: New file.
1092         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
1093         ld trailing options.
1094
1095 2018-01-28  Alan Modra  <amodra@gmail.com>
1096
1097         PR 22751
1098         * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
1099         set.
1100
1101 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
1102
1103         * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
1104         `mipself'.
1105
1106 2018-01-25  Eric Botcazou  <ebotcazou@adacore.com>
1107
1108         * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
1109         Link with a version script.
1110         (32-bit: TLS -fpie): New test.
1111         (64-bit: Helper shared library): Link with a version script.
1112         (64-bit: TLS -fpie): New test.
1113         (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
1114         * testsuite/ld-sparc/tlslib.ver: New file.
1115         * testsuite/ld-sparc/tlspie32.dd: Likewise.
1116         * testsuite/ld-sparc/tlspie32.s: Likewise.
1117         * testsuite/ld-sparc/tlspie64.dd: Likewise.
1118         * testsuite/ld-sparc/tlspie64.s: Likewise.
1119         * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
1120         * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
1121         * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1122         * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1123         * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
1124         * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1125
1126 2018-01-24  Renlin Li  <renlin.li@arm.com>
1127
1128         * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
1129         * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
1130         * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
1131         * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
1132         * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
1133         * testsuite/ld-aarch64/emit-relocs-288.d: New.
1134         * testsuite/ld-aarch64/emit-relocs-288.s: New.
1135         * testsuite/ld-aarch64/emit-relocs-289.d: New.
1136         * testsuite/ld-aarch64/emit-relocs-289.s: New.
1137         * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
1138         * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
1139         * testsuite/ld-aarch64/emit-relocs-290.d: New.
1140         * testsuite/ld-aarch64/emit-relocs-290.s: New.
1141         * testsuite/ld-aarch64/emit-relocs-291.d: New.
1142         * testsuite/ld-aarch64/emit-relocs-291.s: New.
1143         * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
1144         * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
1145         * testsuite/ld-aarch64/emit-relocs-292.d: New.
1146         * testsuite/ld-aarch64/emit-relocs-292.s: New.
1147         * testsuite/ld-aarch64/emit-relocs-293.d: New.
1148         * testsuite/ld-aarch64/emit-relocs-293.s: New.
1149
1150 2018-01-20  H.J. Lu  <hongjiu.lu@intel.com>
1151
1152         PR ld/22721
1153         * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
1154         * testsuite/ld-plugin/pr22721.t: New file.
1155         * testsuite/ld-plugin/pr22721a.s: Likewise.
1156         * testsuite/ld-plugin/pr22721b.c: Likewise.
1157
1158 2018-01-18  H.J. Lu  <hongjiu.lu@intel.com>
1159
1160         * testsuite/ld-elf/group1.d: Also xfail Solaris.
1161
1162 2018-01-18  H.J. Lu  <hongjiu.lu@intel.com>
1163
1164         * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
1165         PLT/GOT order/layout for Solaris/x86 targets.
1166         * testsuite/ld-elf/linkinfo1b.d: Likewise.
1167
1168 2018-01-18  H.J. Lu  <hongjiu.lu@intel.com>
1169
1170         PR ld/22728
1171         * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
1172         into ...
1173         (elf_solaris2_before_allocation): This.
1174         (LDEMUL_AFTER_ALLOCATION): Removed.
1175
1176 2018-01-18  Alan Modra  <amodra@gmail.com>
1177
1178         * emultempl/ppc32elf.em: Support optional --plt-align arg.
1179         * emultempl/ppc64elf.em: Support negative --plt-align arg.
1180
1181 2018-01-17  Alan Modra  <amodra@gmail.com>
1182
1183         * emultempl/ppc32elf.em (params): Init new field.
1184         (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
1185         (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
1186         (PARSE_AND_LIST_LONGOPTS): Handle new options.
1187         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1188         (PARSE_AND_LIST_OPTIONS): Likewise.
1189         * emultempl/ppc64elf.em (params): Init new field.
1190         (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
1191         (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
1192         (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
1193         (PARSE_AND_LIST_OPTIONS): Likewise.
1194         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1195         * ld.texinfo (--no-plt-thread-safe): Correct itemx.
1196         (--speculate-indirect-jumps): Document.
1197         * testsuite/ld-powerpc/elfv2exe.d,
1198         * testsuite/ld-powerpc/elfv2so.d,
1199         * testsuite/ld-powerpc/relbrlt.d,
1200         * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
1201         speculation barriers on various tests.
1202
1203 2018-01-17  Alan Modra  <amodra@gmail.com>
1204
1205         * emultempl/ppc32elf.em (params): Init new field.
1206         (enum ppc32_opt): New enum to define OPTION_* values.  Add
1207         OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
1208         (PARSE_AND_LIST_LONGOPTS): Handle new options.
1209         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1210         (PARSE_AND_LIST_OPTIONS): Likewise.  Break up help output.
1211         * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
1212         correctly for negative --plt-stub-align.
1213         * testsuite/ld-powerpc/elfv2exe.d,
1214         * testsuite/ld-powerpc/elfv2so.d,
1215         * testsuite/ld-powerpc/relbrlt.d,
1216         * testsuite/ld-powerpc/relbrlt.s,
1217         * testsuite/ld-powerpc/tlsexe.d,
1218         * testsuite/ld-powerpc/tlsexe.r,
1219         * testsuite/ld-powerpc/tlsexe32.d,
1220         * testsuite/ld-powerpc/tlsexe32.g,
1221         * testsuite/ld-powerpc/tlsexe32.r,
1222         * testsuite/ld-powerpc/tlsexetoc.d,
1223         * testsuite/ld-powerpc/tlsexetoc.r,
1224         * testsuite/ld-powerpc/tlsopt5_32.d,
1225         * testsuite/ld-powerpc/tlsso.d,
1226         * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
1227
1228 2018-01-16  Nick Clifton  <nickc@redhat.com>
1229
1230         * po/pt_BR.po: Updated Brazilian Portuguese translation.
1231
1232 2018-01-15  Nick Clifton  <nickc@redhat.com>
1233
1234         * po/uk.po: Updated Ukranian translation.
1235
1236 2018-01-13  Nick Clifton  <nickc@redhat.com>
1237
1238         * po/ld.pot: Regenerated.
1239
1240 2018-01-13  Nick Clifton  <nickc@redhat.com>
1241
1242         * configure: Regenerate.
1243
1244 2018-01-13  Nick Clifton  <nickc@redhat.com>
1245
1246         2.30 branch created.
1247         * NEWS: Add marker for 2.30.
1248
1249 2018-01-12  Alan Modra  <amodra@gmail.com>
1250
1251         * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
1252         initialization" for currently failing targets.
1253
1254 2018-01-12  Alan Modra  <amodra@gmail.com>
1255
1256         PR ld/22649
1257         * testsuite/ld-elf/pr22649.msg: Allow other messages.
1258         * testsuite/ld-elf/shared.exp: Check that --gc-sections is
1259         supported before running ld/22649 tests.
1260
1261 2018-01-12  Nick Clifton  <nickc@redhat.com>
1262
1263         * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
1264         as the opposite of "-z defs".
1265         * ld.texinfo: Document the new option.  Update the description of
1266         the -z defs option to make it clear that it does generate an error
1267         if an undefined symbol reference is found in an object file whilst
1268         creating a shared library.
1269         * NEWS: Document this new feature.
1270
1271 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1272
1273         * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
1274         "-z separate-code".
1275         * testsuite/ld-elf/pr22393-2b.rd: Likewise.
1276         * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
1277         * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
1278
1279 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1280
1281         PR ld/22393
1282         * testsuite/ld-x86-64/pr22393-3a.c: New file.
1283         * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
1284         * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
1285         * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
1286         * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
1287         -z max-page-size=0x1000.
1288
1289 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1290
1291         PR ld/22393
1292         * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
1293         * testsuite/ld-elf/pr22393-1.s: New file.
1294         * testsuite/ld-elf/pr22393-1a.d: Likewise.
1295         * testsuite/ld-elf/pr22393-1b.d: Likewise.
1296         * testsuite/ld-elf/pr22393-1c.d: Likewise.
1297         * testsuite/ld-elf/pr22393-1d.d: Likewise.
1298         * testsuite/ld-elf/pr22393-1e.d: Likewise.
1299         * testsuite/ld-elf/pr22393-1f.d: Likewise.
1300         * testsuite/ld-elf/pr22393-2a.c: Likewise.
1301         * testsuite/ld-elf/pr22393-2a.rd: Likewise.
1302         * testsuite/ld-elf/pr22393-2b.c: Likewise.
1303         * testsuite/ld-elf/pr22393-2b.rd: Likewise.
1304         * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
1305
1306 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1307
1308         PR ld/22393
1309         * NEWS: Mention "-z separate-code".
1310         * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
1311         builtin linker scripts and return linker scripts from disk for
1312         "-z separate-code".
1313         (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
1314         and "-z noseparate-code".
1315         * genscripts.sh: Generate linker scripts for "-z separate-code".
1316         (LD_FLAG): Set to *textonly for "-z separate-code".
1317         * ld.texinfo: Document "-z separate-code".
1318         * lexsup.c (elf_shlib_list_options): Add linker help messsages
1319         for "-z separate-code" and "-z noseparate-code".
1320         * scripttempl/elf.sc (SEPARATE_TEXT): New
1321         (TEXT_SEGMENT_ALIGN): Likewise.
1322         Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
1323         ${MAXPAGESIZE}.
1324
1325 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1326
1327         PR ld/22649
1328         * testsuite/ld-elf/pr22649-1.s: New file.
1329         * testsuite/ld-elf/pr22649-2a.s: Likewise.
1330         * testsuite/ld-elf/pr22649-2b.s: Likewise.
1331         * testsuite/ld-elf/pr22649.msg: Likewise.
1332         * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
1333
1334 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1335
1336         PR ld/22677
1337         * scripttempl/elf.sc (PREINIT_ARRAY): New.
1338         Don't add .preinit_array for ld -r.
1339         * testsuite/ld-elf/pr22677.d: New file.
1340         * testsuite/ld-elf/pr22677.s: Likewise.
1341
1342 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
1343
1344         * ldexp.h (union etree_union): Remove defsym field.
1345         * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
1346         parameter.
1347         (exp_assign): Remove passing of defsym parameter.
1348         (exp_defsym): Likewise.
1349         (exp_provide): Likewise.
1350
1351 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
1352
1353         * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
1354         nodes are ignored in the tree walk, and move the location at which
1355         we change provide nodes into provided nodes.
1356         (exp_init_os): Add etree_provided.
1357         * testsuite/ld-scripts/provide-6.d: New file.
1358         * testsuite/ld-scripts/provide-6.t: New file.
1359         * testsuite/ld-scripts/provide-7.d: New file.
1360         * testsuite/ld-scripts/provide-7.t: New file.
1361         * testsuite/ld-scripts/provide-8.d: New file.
1362         * testsuite/ld-scripts/provide-8.t: New file.
1363
1364 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
1365
1366         * testsuite/ld-scripts/provide-3.d: Add xfail directive.
1367         * testsuite/ld-scripts/provide-4.d: Use new map file name.
1368         * testsuite/ld-scripts/provide-5.d: Use new map file name.
1369         * testsuite/ld-scripts/provide-4-map.d: Renamed to...
1370         * testsuite/ld-scripts/provide-4.map: ...this.
1371         * testsuite/ld-scripts/provide-5-map.d: Renamed to...
1372         * testsuite/ld-scripts/provide-5.map: ...this.
1373         * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
1374         file, and run tests in a loop.
1375
1376 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
1377
1378         * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
1379         PROVIDE statements.
1380         * testsuite/ld-scripts/provide-4.map: Update expected output.
1381         * testsuite/ld-scripts/provide-5.map: Likewise.
1382
1383 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1384
1385         PR ld/22696
1386         * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
1387
1388 2018-01-09  Jim Wilson  <jimw@sifive.com>
1389
1390         * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
1391         (#alltargets): Renamed from #target.  Add shared.
1392         * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
1393         Document alltargets option.  Add support for alltargets option.
1394         (istarget): Add support for shared target.
1395
1396 2018-01-08  Jim Wilson  <jimw@sifive.com>
1397
1398         * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared.  Check for _start
1399         instead of .text.
1400         * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
1401         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
1402         tests, add call to check_shared_lib_support.
1403
1404 2018-01-05  Jim Wilson  <jimw@sifive.com>
1405
1406         * testsuite/ld-riscv-elf/disas-jalr.d: New.
1407         * testsuite/ld-riscv-elf/disas-jalr.s: New.
1408         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
1409
1410         * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
1411         case on $target, and don't set for riscv*-elf targets.
1412         (GENERATE_PIE_SCRIPT): Likewise.
1413
1414 2018-01-03  Alan Modra  <amodra@gmail.com>
1415
1416         Update year range in copyright notice of all files.
1417
1418 For older changes see ChangeLog-2017
1419 \f
1420 Copyright (C) 2018 Free Software Foundation, Inc.
1421
1422 Copying and distribution of this file, with or without modification,
1423 are permitted in any medium without royalty provided the copyright
1424 notice and this notice are preserved.
1425
1426 Local Variables:
1427 mode: change-log
1428 left-margin: 8
1429 fill-column: 74
1430 version-control: never
1431 End: