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