1 2019-08-20 Tamar Christina <tamar.christina@arm.com>
3 * testsuite/ld-arm/cortex-a8-fix-b-plt.d: Update Testcase.
4 * testsuite/ld-arm/cortex-a8-fix-b-rel-arm.d: Likewise.
5 * testsuite/ld-arm/cortex-a8-fix-bcc-plt.d: Likewise.
6 * testsuite/ld-arm/farcall-cond-thumb-arm.d: Likewise.
7 * testsuite/ld-arm/farcall-mixed-app.d: Likewise.
8 * testsuite/ld-arm/farcall-mixed-app2.d: Likewise.
9 * testsuite/ld-arm/farcall-mixed-lib-v4t.d: Likewise.
10 * testsuite/ld-arm/farcall-thumb-arm-pic-veneer.d: Likewise.
11 * testsuite/ld-arm/farcall-thumb-arm-short.d: Likewise.
12 * testsuite/ld-arm/farcall-thumb-arm.d: Likewise.
13 * testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
14 * testsuite/ld-arm/farcall-thumb-thumb.d: Likewise.
15 * testsuite/ld-arm/fix-arm1176-on.d: Likewise.
16 * testsuite/ld-arm/ifunc-10.dd: Likewise.
17 * testsuite/ld-arm/ifunc-2.dd: Likewise.
18 * testsuite/ld-arm/ifunc-4.dd: Likewise.
19 * testsuite/ld-arm/ifunc-6.dd: Likewise.
20 * testsuite/ld-arm/ifunc-8.dd: Likewise.
21 * testsuite/ld-arm/jump-reloc-veneers-long.d: Likewise.
22 * testsuite/ld-arm/mixed-app.d: Likewise.
23 * testsuite/ld-arm/thumb2-b-interwork.d: Likewise.
24 * testsuite/ld-arm/tls-longplt.d: Likewise.
25 * testsuite/ld-arm/tls-thumb1.d: Likewise.
27 2019-08-16 H.J. Lu <hongjiu.lu@intel.com>
30 * testsuite/ld-x86-64/pr24905-x32.d: New file.
31 * testsuite/ld-x86-64/pr24905.d: Likewise.
32 * testsuite/ld-x86-64/pr24905.s: Likewise.
33 * testsuite/ld-x86-64/pr24905.t: Likewise.
34 * testsuite/ld-x86-64/x86-64.exp: Run pr24905 and pr24905-x32.
36 2019-08-16 Christophe Lyon <christophe.lyon@linaro.org>
38 * emulparams/armelf.sh (OTHER_SECTIONS): Add support for noinit
41 2019-08-16 Alan Modra <amodra@gmail.com>
43 * emultempl/ppc32elf.em (ppc_before_allocation): Force running
44 prelim_size_sections before deciding whether branch trampolines
47 2019-08-15 Jim Wilson <jimw@sifive.com>
49 * testsuite/ld-riscv-elf/c-lui-2.d: New.
50 * testsuite/ld-riscv-elf/c-lui-2.ld: New.
51 * testsuite/ld-riscv-elf/c-lui-2.s: New.
52 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run the c-lui-2 test.
54 2019-08-10 Alan Modra <amodra@gmail.com>
56 * ldlang.h (enum statement_enum): Sort.
57 (union lang_statement_union): Sort.
59 2019-08-10 Alan Modra <amodra@gmail.com>
61 * ldlang.h (lang_common_statement_type): Delete.
62 (lang_object_symbols_statement_type): Delete.
63 (union lang_statement_union): Remove common_statement and
64 object_symbols_statement.
66 2019-08-10 Alan Modra <amodra@gmail.com>
68 * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop, exp_trinop),
69 (exp_unop, exp_nameop, exp_assop, exp_assert): Remove casts of
70 stat_alloc return value.
71 * ldlang.c (new_statement, new_afile, sort_def_symbol),
72 (lang_memory_region_lookup, lang_memory_region_alias),
73 (ldlang_add_undef, ldlang_add_require_defined, insert_pad),
74 (lang_add_gc_name, lang_new_phdr): Likewise.
75 * lexsup.c (set_segment_start): Likewise.
77 2019-08-10 Alan Modra <amodra@gmail.com>
79 * ldlang.h (lang_input_statement_type): Make next
80 and next_real_file a lang_input_statement_type pointer.
81 (lang_statement_append): Delete prototype.
82 (LANG_FOR_EACH_INPUT_STATEMENT): Update for lang_input_statement_type
84 * ldmain.c (add_archive_element): Likewise.
85 * ldlang.c: Likewise throughout.
86 (lang_statement_append): Make static. Make element and field
87 void pointers. Remove casts in calls.
88 (lang_check): Use a lang_input_statement_type pointer for "file".
89 (find_rescan_insertion): Similarly for "iter" and return value.
90 (lang_process): Similarly for "insert", "iter" and "temp".
91 * emultempl/spuelf.em (embedded_spu_file): Likewise.
92 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Expand
93 lang_statment_append call.
95 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
97 * emulparams/elf32bmip.sh: Add .MIPS.xhash section.
98 * emulparams/elf32bmipn32-defs.sh: Add .MIPS.xhash section.
99 * emulparams/elf64bmip-defs.sh: Add .MIPS.xhash section.
100 * emultempl/mipself.em: Remove mips_after_parse function.
101 * testsuite/ld-elf/hash.d: Update comment.
102 * testsuite/ld-mips-elf/hash1.d: New test.
103 * testsuite/ld-mips-elf/hash1.s: Ditto.
104 * testsuite/ld-mips-elf/hash1a.d: Remove.
105 * testsuite/ld-mips-elf/hash1b.d: Ditto.
106 * testsuite/ld-mips-elf/hash1c.d: Ditto
107 * testsuite/ld-mips-elf/hash2.d: New test.
108 * testsuite/ld-mips-elf/mips-elf.exp: New tests.
109 * testsuite/ld-mips-elf/start.s: New test.
111 2019-08-08 Nick Clifton <nickc@redhat.com>
114 * testsuite/ld-aarch64/bti-plt-2.d: Adjust for new output format
116 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
117 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
118 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
119 * testsuite/ld-aarch64/bti-warn.d: Likewise.
120 * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
121 * testsuite/ld-aarch64/property-bti-pac2.d: Likewise.
122 * testsuite/ld-aarch64/property-bti-pac3.d: Likewise.
123 * testsuite/ld-elf/x86-feature-1a.rd: Likewise.
124 * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
125 * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
126 * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
127 * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
128 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
129 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
130 * testsuite/ld-i386/pr23372a.d: Likewise.
131 * testsuite/ld-i386/pr23372c.d: Likewise.
132 * testsuite/ld-i386/pr23486a.d: Likewise.
133 * testsuite/ld-i386/pr23486b.d: Likewise.
134 * testsuite/ld-i386/pr23486c.d: Likewise.
135 * testsuite/ld-i386/pr23486d.d: Likewise.
136 * testsuite/ld-i386/pr24322a.d: Likewise.
137 * testsuite/ld-i386/pr24322b.d: Likewise.
138 * testsuite/ld-i386/property-x86-3.d: Likewise.
139 * testsuite/ld-i386/property-x86-4a.d: Likewise.
140 * testsuite/ld-i386/property-x86-5.d: Likewise.
141 * testsuite/ld-i386/property-x86-cet1.d: Likewise.
142 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
143 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
144 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
145 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
146 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
147 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
148 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
149 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
150 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
151 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
152 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
153 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
154 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
155 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
156 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
157 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
158 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
159 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
160 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
161 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
162 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
163 * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
164 * testsuite/ld-x86-64/pr23372a.d: Likewise.
165 * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
166 * testsuite/ld-x86-64/pr23372c.d: Likewise.
167 * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
168 * testsuite/ld-x86-64/pr23486a.d: Likewise.
169 * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
170 * testsuite/ld-x86-64/pr23486b.d: Likewise.
171 * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
172 * testsuite/ld-x86-64/pr23486c.d: Likewise.
173 * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
174 * testsuite/ld-x86-64/pr23486d.d: Likewise.
175 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
176 * testsuite/ld-x86-64/pr24322a.d: Likewise.
177 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
178 * testsuite/ld-x86-64/pr24322b.d: Likewise.
179 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
180 * testsuite/ld-x86-64/pr24458a.d: Likewise.
181 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
182 * testsuite/ld-x86-64/pr24458b.d: Likewise.
183 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
184 * testsuite/ld-x86-64/pr24458c.d: Likewise.
185 * testsuite/ld-x86-64/property-1.r: Likewise.
186 * testsuite/ld-x86-64/property-1a.r: Likewise.
187 * testsuite/ld-x86-64/property-2.r: Likewise.
188 * testsuite/ld-x86-64/property-2a.r: Likewise.
189 * testsuite/ld-x86-64/property-3.r: Likewise.
190 * testsuite/ld-x86-64/property-3a.r: Likewise.
191 * testsuite/ld-x86-64/property-4.r: Likewise.
192 * testsuite/ld-x86-64/property-4a.r: Likewise.
193 * testsuite/ld-x86-64/property-5.r: Likewise.
194 * testsuite/ld-x86-64/property-5a.r: Likewise.
195 * testsuite/ld-x86-64/property-6.r: Likewise.
196 * testsuite/ld-x86-64/property-7.r: Likewise.
197 * testsuite/ld-x86-64/property-7a.r: Likewise.
198 * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
199 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
200 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
201 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
202 * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
203 * testsuite/ld-x86-64/property-x86-5.d: Likewise.
204 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
205 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
206 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
207 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
208 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
209 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
210 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
211 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
212 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
213 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
214 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
215 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
216 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
217 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
218 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
219 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
220 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
221 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
222 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
223 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
224 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
225 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
226 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
227 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
228 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
229 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
230 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
231 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
232 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
233 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
234 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
235 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
236 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
237 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
238 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
239 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
241 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
243 * scripttempl/elf64bpf.sc: Adapted from elf.sc.
244 * emulparams/elf64bpf.sh (SCRIPT_NAME): Use elf64bpf.
246 * testsuite/ld-bpf/call-1.d: Do not expect a warning regarding an
247 undefined entry symbol.
248 * testsuite/ld-bpf/jump-1.d: Likewise.
249 * testsuite/ld-undefined/undefined.exp: Do not pass '-e entry' to
250 ld in BPF targets, and do not expect line number information.
251 * testsuite/ld-srec/srec.exp (run_srec_test): xfail s-record tests
254 2019-08-06 Alan Modra <amodra@gmail.com>
257 * ldlang.c (find_replacements_insert_point): Return "before" flag.
258 (find_next_input_statement): New function.
259 (lang_process): When placing recompiled LTO objects before a
260 claimed archive, place them immediately before in the statement
263 2019-08-06 Alan Modra <amodra@gmail.com>
266 * ldlang.c (plugin_undefs): New static var.
267 (open_input_bfds <lang_group_statement_enum>): Loop on
268 plugin_undefs and hitting plugin_insert point.
269 (lang_process <lto_plugin_active>): Set plugin_undefs.
271 2019-08-02 Alan Modra <amodra@gmail.com>
273 * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
275 2019-08-01 Alan Modra <amodra@gmail.com>
278 * ldlang.c (process_insert_statements): Add start of list
279 parameter. Use rather than lang_os_list.head. Process insert
280 statements inside group statements with a recursive call.
281 (lang_process): Adjust process_insert_statements call.
282 * lexsup.c (parse_args): Warn when adding missing --end-group.
284 2019-08-01 Alan Modra <amodra@gmail.com>
286 * ldlang.h (lang_os_list): Rename from lang_output_section_statement.
287 * ldlang.c: Likewise throughout file.
288 * emultempl/alphaelf.em: Likewise.
289 * emultempl/elf32.em: Likewise.
290 * emultempl/mmo.em: Likewise.
291 * emultempl/pe.em: Likewise.
292 * emultempl/pep.em: Likewise.
293 * emultempl/ppc32elf.em: Likewise.
294 * emultempl/spuelf.em: Likewise.
296 2019-07-26 Alan Modra <amodra@gmail.com>
298 * testsuite/ld-plugin/lto-3r.d: Accept D for powerpc64 descriptors.
299 * testsuite/ld-plugin/lto-5r.d: Likewise.
301 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
303 * testsuite/ld-plugin/lto-3r.d: Restored. Check foo instead
305 * testsuite/ld-plugin/lto-5r.d: Likewise.
306 * testsuite/ld-plugin/lto.exp: Run lto-3r and lto-5r tests.
308 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
310 * ld-arc/relax-local-pic.d: New test.
311 * ld-arc/relax-local-pic.s: New file.
313 2019-07-22 Martin Liska <mliska@suse.cz>
315 * testsuite/ld-plugin/lto-3r.d: Remove.
316 * testsuite/ld-plugin/lto-5r.d: Remove.
317 * testsuite/ld-plugin/lto.exp: Do not run lto-3r and lto-5r
320 2019-07-23 Alan Modra <amodra@gmail.com>
322 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Condition
323 SHF_GNU_MBIND on osabi. Set output elf_gnu_osabi_mbind.
325 2019-07-23 Alan Modra <amodra@gmail.com>
327 * testsuite/ld-elf/size-1.d,
328 * testsuite/ld-elf/size-1.s,
329 * testsuite/ld-elf/size-1.t: New test.
330 * testsuite/ld-elf/size-2.d,
331 * testsuite/ld-elf/size-2.s,
332 * testsuite/ld-elf/size-2.t: New test.
333 * testsuite/ld-scripts/size-1.d,
334 * testsuite/ld-scripts/size-1.s,
335 * testsuite/ld-scripts/size-1.t,
336 * testsuite/ld-scripts/size-2.s,
337 * testsuite/ld-scripts/size-2.d,
338 * testsuite/ld-scripts/size-2.t,
339 * testsuite/ld-scripts/size.exp: Delete.
341 2019-07-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
343 * ld/testsuite/ld-arm/cmse_main_sec_debug.d: Modify regexps to
344 allow for output from a arm-none-linux-gnueabihf target.
346 2019-07-20 Alan Modra <amodra@gmail.com>
349 * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
351 2019-07-19 Alan Modra <amodra@gmail.com>
353 * testsuite/ld-powerpc/tlsgd.d,
354 * testsuite/ld-powerpc/tlsgd.s,
355 * testsuite/ld-powerpc/tlsie.d,
356 * testsuite/ld-powerpc/tlsie.s,
357 * testsuite/ld-powerpc/tlsld.d,
358 * testsuite/ld-powerpc/tlsld.s: New tests.
359 * testsuite/ld-powerpc/powerpc.exp: Run them.
361 2019-07-19 Alan Modra <amodra@gmail.com>
363 * testsuite/ld-powerpc/tlsldopt.d: Rename from tlsld.d.
364 * testsuite/ld-powerpc/tlsldopt.s: Rename from tlsld.s.
365 * testsuite/ld-powerpc/tlsldopt32.d: Rename from tlsld32.d.
366 * testsuite/ld-powerpc/tlsldopt32.s: Rename from tlsld32.s.
367 * testsuite/ld-powerpc/powerpc.exp: Update.
369 2019-07-19 Alan Modra <amodra@gmail.com>
372 * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
374 2019-07-18 H.J. Lu <hongjiu.lu@intel.com>
377 * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
378 member of output section group when doing a relocatable link.
379 * testsuite/ld-elf/pr24819.d: New file.
380 * testsuite/ld-elf/pr24819.s: Likewise.
382 2019-07-13 Alan Modra <amodra@gmail.com>
384 * testsuite/ld-powerpc/tlsso.r: Update.
385 * testsuite/ld-powerpc/tlsso32.g: Update.
386 * testsuite/ld-powerpc/tlsso32.r: Update.
387 * testsuite/ld-powerpc/tlstocso.r: Update.
388 * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
389 * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
390 * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
391 * testsuite/ld-cris/tls-gd-1.d: Update.
392 * testsuite/ld-cris/tls-gd-1h.d: Update.
393 * testsuite/ld-cris/tls-gd-2.d: Update.
394 * testsuite/ld-cris/tls-gd-2h.d: Update.
395 * testsuite/ld-cris/tls-ie-10.d: Update.
396 * testsuite/ld-cris/tls-ie-11.d: Update.
397 * testsuite/ld-cris/tls-ie-8.d: Update.
398 * testsuite/ld-cris/tls-ie-9.d: Update.
399 * testsuite/ld-cris/tls-js1.d: Update.
400 * testsuite/ld-cris/tls-ld-4.d: Update.
401 * testsuite/ld-cris/tls-ld-5.d: Update.
402 * testsuite/ld-cris/tls-ld-6.d: Update.
403 * testsuite/ld-cris/tls-ld-7.d: Update.
404 * testsuite/ld-cris/tls-ldgd-14.d: Update.
405 * testsuite/ld-cris/tls-ldgd-15.d: Update.
406 * testsuite/ld-cris/tls-ldgdx-14.d: Update.
407 * testsuite/ld-cris/tls-ldgdx-15.d: Update.
408 * testsuite/ld-cris/tls-local-54.d: Update.
409 * testsuite/ld-cris/tls-local-60.d: Update.
410 * testsuite/ld-cris/tls-local-61.d: Update.
411 * testsuite/ld-cris/tls-local-63.d: Update.
412 * testsuite/ld-cris/tls-local-64.d: Update.
413 * testsuite/ld-cris/tls-ok-30.d: Update.
414 * testsuite/ld-cris/tls-ok-32.d: Update.
415 * testsuite/ld-cris/tls-ok-34.d: Update.
416 * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
417 * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
418 * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
419 * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
420 * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
421 * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
422 * testsuite/ld-mips-elf/tlslib-o32.got: Update.
423 * testsuite/ld-s390/tlspic.rd: Update.
424 * testsuite/ld-s390/tlspic_64.rd: Update.
425 * testsuite/ld-sparc/tlssunnopic32.rd: Update.
426 * testsuite/ld-sparc/tlssunnopic64.rd: Update.
427 * testsuite/ld-sparc/tlssunpic32.rd: Update.
428 * testsuite/ld-sparc/tlssunpic64.rd: Update.
430 2019-07-13 Alan Modra <amodra@gmail.com>
433 * ldlang.h (enum section_type): Add first_overlay_section.
434 * ldlang.c (lang_add_section): Adjust switch statement.
435 (map_input_to_output_sections): Likewise.
436 (lang_size_sections_1): Always set last_os for first overlay section.
437 (lang_leave_overlay): Set sectype to first_overlay_section.
439 2019-07-08 Alan Modra <amodra@gmail.com>
441 * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
442 * testsuite/ld-powerpc/callstub-2.d: Likewise.
444 2019-07-04 Jan Beulich <jbeulich@suse.com>
446 * testsuite/ld-elf/group9.s: Correct argument of .type.
448 2019-07-02 Nick Clifton <nickc@redhat.com>
451 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
452 LINKER_CREATED section flag when creating the stub section.
454 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
456 * testsuite/ld-arm/arm-elf.exp: Add tests.
457 * testsuite/ld-arm/cmse_main.s: New test.
458 * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
459 * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
461 2019-07-01 Nick Clifton <nickc@redhat.com>
464 * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
467 2019-06-28 Alan Modra <amodra@gmail.com>
469 * testsuite/ld-powerpc/callstub-1.d,
470 * testsuite/ld-powerpc/callstub-1.s: New test.
471 * testsuite/ld-powerpc/callstub-2.d,
472 * testsuite/ld-powerpc/callstub-2.s: New test.
473 * testsuite/ld-powerpc/powerpc.exp: Run them.
475 2019-06-25 Jan Beulich <jbeulich@suse.com>
477 * plugin.c (get_lto_kind, get_lto_resolution,
478 get_lto_visibility): Rename "index" to "idx".
480 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
483 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
484 * testsuite/ld-x86-64/pr24721-x32.d: New file.
485 * testsuite/ld-x86-64/pr24721.d: Likewise.
486 * testsuite/ld-x86-64/pr24721.map: Likewise.
487 * testsuite/ld-x86-64/pr24721a.s: Likewise.
488 * testsuite/ld-x86-64/pr24721b.s: Likewise.
490 2019-06-23 Alan Modra <amodra@gmail.com>
493 * testsuite/ld-powerpc/elfv2exe.d: Update.
494 * testsuite/ld-powerpc/elfv2so.d: Update.
496 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
498 * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
499 * testsuite/ld-aarch64/emit-relocs-22.d: New test.
500 * testsuite/ld-aarch64/emit-relocs-22.s: New test.
501 * testsuite/ld-aarch64/emit-relocs-23.d: New test.
502 * testsuite/ld-aarch64/emit-relocs-23.s: New test.
504 2019-06-14 Alan Modra <amodra@gmail.com>
506 * Makefile.in: Regenerate.
507 * configure: Regenerate.
509 2019-06-14 Alan Modra <amodra@gmail.com>
512 * testsuite/ld-alpha/tlsbin.rd: Update.
513 * testsuite/ld-alpha/tlsbinr.rd: Update.
514 * testsuite/ld-alpha/tlspic.rd: Update.
516 2019-06-07 Maciej W. Rozycki <macro@wdc.com>
518 * ld.texi (Options): Also document `-rpath' option restrictions
519 in the description of the option itself.
521 2019-06-06 Sudakshina Das <sudi.das@arm.com>
523 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
524 * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
525 * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
526 * testsuite/ld-aarch64/property-bti-pac4.s: New test.
528 2019-06-06 Sudakshina Das <sudi.das@arm.com>
530 * NEWS: Update options names.
531 * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
532 (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
533 (PARSE_AND_LIST_OPTIONS): Update to -z.
534 (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
535 (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
536 (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
537 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
538 * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
539 * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
540 * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
541 * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
542 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
543 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
544 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
545 * testsuite/ld-aarch64/bti-warn.d: Likewise.
546 * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
547 * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
549 2019-05-30 Nick Clifton <nickc@redhat.com>
552 * testsuite/ld-elf/ver_def.vd: Update expected output.
554 2019-05-30 Alan Modra <amodra@gmail.com>
557 * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
558 (EXTRA_EM_FILE): Define to genelf.
559 * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
561 2019-05-30 Alan Modra <amodra@gmail.com>
563 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
564 calls in optional "xfail" args.
565 (run_ld_link_exec_tests): Likewise.
567 (uses_genelf): Rename from is_generic_elf. Delete bogus semicolons.
568 * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
569 * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf. Delete
571 * testsuite/ld-elf/sec64k.exp: Use is_generic.
572 * testsuite/ld-elf/shared.exp: Likewise.
573 * testsuite/ld-discard/extern.d: Use is_generic in xfail.
574 * testsuite/ld-discard/start.d: Likewise.
575 * testsuite/ld-discard/static.d: Likewise.
576 * testsuite/ld-elf/attributes.d: Likewise.
577 * testsuite/ld-elf/group1.d: Likewise.
578 * testsuite/ld-elf/group3b.d: Likewise.
579 * testsuite/ld-elf/group8a.d: Likewise.
580 * testsuite/ld-elf/group8b.d: Likewise.
581 * testsuite/ld-elf/group9a.d: Likewise.
582 * testsuite/ld-elf/group9b.d: Likewise.
583 * testsuite/ld-elf/linkonce2.d: Likewise.
584 * testsuite/ld-elf/merge2.d: Likewise.
585 * testsuite/ld-elf/merge3.d: Likewise.
586 * testsuite/ld-elf/pr12851.d: Likewise.
587 * testsuite/ld-elf/pr12975.d: Likewise.
588 * testsuite/ld-elf/pr13177.d: Likewise.
589 * testsuite/ld-elf/pr13195.d: Likewise.
590 * testsuite/ld-elf/pr17550c.d: Likewise.
591 * testsuite/ld-elf/pr17550d.d: Likewise.
592 * testsuite/ld-elf/pr17615.d: Likewise.
593 * testsuite/ld-elf/pr21562a.d: Likewise.
594 * testsuite/ld-elf/pr21562b.d: Likewise.
595 * testsuite/ld-elf/pr21562c.d: Likewise.
596 * testsuite/ld-elf/pr21562d.d: Likewise.
597 * testsuite/ld-elf/pr21562i.d: Likewise.
598 * testsuite/ld-elf/pr21562j.d: Likewise.
599 * testsuite/ld-elf/pr21562k.d: Likewise.
600 * testsuite/ld-elf/pr21562l.d: Likewise.
601 * testsuite/ld-elf/pr21562m.d: Likewise.
602 * testsuite/ld-elf/pr21562n.d: Likewise.
603 * testsuite/ld-elf/pr22677.d: Likewise.
604 * testsuite/ld-elf/pr22836-1a.d: Likewise.
605 * testsuite/ld-elf/pr22836-1b.d: Likewise.
606 * testsuite/ld-elf/warn3.d: Likewise.
607 * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
608 targets rather than notarget.
609 * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
610 * testsuite/ld-elf/orphan-10.d: Likewise.
611 * testsuite/ld-elf/orphan-9.d: Likewise.
612 * testsuite/ld-elf/orphan-region.d: Likewise.
613 * testsuite/ld-elf/orphan.d: Likewise.
614 * testsuite/ld-elf/orphan3.d: Likewise.
615 * testsuite/ld-elf/pr20528a.d: Likewise.
616 * testsuite/ld-elf/pr20528b.d: Likewise.
617 * testsuite/ld-elf/pr23658-1a.d: Likewise.
618 * testsuite/ld-elf/pr23658-1b.d: Likewise.
619 * testsuite/ld-elf/pr349.d: Likewise.
620 * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
621 targets rather than notarget.
622 * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
624 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
626 * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
627 for pcrel_hi/pcrel_lo.
628 * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
629 * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
630 * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
631 * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
632 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
634 2019-05-28 Alan Modra <amodra@gmail.com>
637 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
638 the output is coff before accessing coff tdata.
639 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
641 2019-05-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
643 * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
644 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
646 2019-05-27 Alan Modra <amodra@gmail.com>
649 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
650 BFS_KEEP on group signature symbol.
652 2019-04-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
654 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
655 * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
656 * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
657 * testsuite/ld-aarch64/variant_pcs-now.d: New test.
658 * testsuite/ld-aarch64/variant_pcs-r.d: New test.
659 * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
660 * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
662 2019-05-24 Alan Modra <amodra@gmail.com>
664 * po/BLD-POTFILES.in: Regenerate.
666 2019-05-24 Alan Modra <amodra@gmail.com>
668 * testsuite/ld-powerpc/notoc2.d,
669 * testsuite/ld-powerpc/notoc2.s: New test.
670 * testsuite/ld-powerpc/powerpc.exp: Run it.
672 2019-05-24 Alan Modra <amodra@gmail.com>
674 * testsuite/ld-powerpc/pcrelopt.s,
675 * testsuite/ld-powerpc/pcrelopt.d,
676 * testsuite/ld-powerpc/pcrelopt.sec: New test.
677 * testsuite/ld-powerpc/powerpc.exp: Run it.
679 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
681 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
682 * Makefile.in (prefix): Regenerate.
683 * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
684 * emulparams/elf64bpf.sh: New file.
685 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
686 bpf-*-* to the list of targets not supporting gc-sections.
687 * testsuite/ld-bpf/bar.s: New file.
688 * testsuite/ld-bpf/jump-1.d: Likewise.
689 * testsuite/ld-bpf/foo.s: Likewise.
690 * testsuite/ld-bpf/call-1.d: Likewise.
691 * testsuite/ld-bpf/bpf.exp: Likewise.
692 * testsuite/ld-bpf/baz.s: Likewise.
694 2019-05-23 Alan Modra <amodra@gmail.com>
697 * ldfile.c (enum script_open_style): New.
698 (struct script_name_list): New.
699 (ldfile_open_command_file_1): Take a script_open_style param
700 rather than booleans. Adjust callers. Only fail when -T or
701 default -T script is invoked twice.
702 (ldfile_try_open_bfd): Revert last change.
704 2019-05-22 Julius Werner <jwerner@chromium.org>
705 Nick Clifton <nickc@redhat.com>
708 * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
709 is_script. If true check that the file has not already been
710 parsed as a linker script.
711 (ldfile_open_script_file): New function.
712 (ldfile_try_open_bfd): Use the new function in place of
713 ldfile_open_command_line.
714 * ldmain.c (main): Likewise.
715 * lexsup.c (parse_args): Use the new function for opening linker
716 scripts with the -T option.
717 * ldfile.h (ldfile_open_script_file): Add prototype.
719 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
721 * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
722 %tprel_hi and %tprel_lo relocations.
723 * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
724 * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
725 * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
726 * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
729 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
731 * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
732 * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
733 * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
734 * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
735 * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
736 * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
737 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
739 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
740 Faraz Shahbazker <fshahbazker@wavecomp.com>
742 * emultempl/mipself.em (compact_branches): New static variable.
743 (mips_create_output_section_statements): Call
744 _bfd_mips_elf_compact_branches.
745 (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
746 OPTION_NO_COMPACT_BRANCHES.
747 (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
749 (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
750 --no-compact-branches.
751 (PARSE_AND_LIST_ARGS_CASES): Handle the above.
752 * ld.texinfo: Document --compact-branches, --no-compact-branches.
753 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
754 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
755 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
756 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
757 * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
758 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
759 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
761 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
763 * testsuite/ld-arm/arm-elf.exp: Add tests
764 * testsuite/ld-arm/bfs-0.s: New test.
765 * testsuite/ld-arm/bfs-1.s: New test.
766 * testsuite/ld-arm/branch-futures.d: New test.
768 2019-05-21 Tamar Christina <tamar.christina@arm.com>
771 * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
773 * NEWS: Add changes to flag.
774 (PARSE_AND_LIST_OPTIONS): Update help descriptions.
775 (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
776 * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
777 * testsuite/ld-aarch64/erratum843419-adr.d: New test.
778 * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
779 * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
780 * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
781 * testsuite/ld-aarch64/erratum843419-far.s: New test.
782 * testsuite/ld-aarch64/erratum843419-full.d: New test.
783 * testsuite/ld-aarch64/erratum843419-near.s: New test.
784 * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
786 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
789 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
790 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
792 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
795 * testsuite/ld-avr/wraparound-range-boundary.d: New test.
796 * testsuite/ld-avr/wraparound-range-boundary.s: New test.
798 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
801 * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
803 * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
805 2019-05-17 Alan Modra <amodra@gmail.com>
808 * plugin.c (plugin_notice): Do not let a common symbol override
809 a non-common definition in IR.
811 2019-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
813 * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
816 2019-05-08 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
819 * ldbuildid.c (generate_build_id): Cast return value from
820 GetProcAddress in order to avoid a compile time warning.
822 2019-05-06 Alan Modra <amodra@gmail.com>
824 * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
826 2019-05-04 Alan Modra <amodra@gmail.com>
828 * testsuite/ld-scripts/fill.d: Don't xfail m32c
829 * testsuite/ld-scripts/fill16.d: Likewise.
831 2019-05-04 Alan Modra <amodra@gmail.com>
834 * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
835 data section on hppa64.
836 * testsuite/ld-elf/pr14156b.d: Likewise.
837 * testsuite/ld-scripts/pr18963.t: Map standard sections to set
838 output section flags.
839 * testsuite/ld-scripts/sane1.t: Likewise.
840 * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
841 and __fini_array_start. Define __start et al.
842 * testsuite/ld-elf/pr24511.d: New test.
844 2019-04-30 Alan Modra <amodra@gmail.com>
846 * testsuite/ld-powerpc/elfv2exe.d: Update.
847 * testsuite/ld-powerpc/elfv2so.d: Update.
848 * testsuite/ld-powerpc/tocopt.d: Update.
849 * testsuite/ld-powerpc/tocopt.s: Update.
850 * testsuite/ld-powerpc/tocopt5.d: Update.
851 * testsuite/ld-powerpc/tocopt5.s: Update.
852 * testsuite/ld-powerpc/tocopt7.d: Update.
853 * testsuite/ld-powerpc/tocopt7.s: Update.
854 * testsuite/ld-powerpc/tocopt8.d: Update.
855 * testsuite/ld-powerpc/tocopt8.s: Update.
857 2019-04-30 Alan Modra <amodra@gmail.com>
859 * ld.texi (How GNU properties are merged): Avoid pod2man error.
862 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
865 * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
866 * testsuite/ld-plugin/pr24486a.c: New file.
867 * testsuite/ld-plugin/pr24486b.c: Likewise.
868 * testsuite/ld-plugin/pr24486c.c: Likewise.
870 2019-04-26 Nick Clifton <nickc@redhat.com>
872 * po/ru.po: Updated Russian translation.
874 2019-04-26 Christopher Yeleighton <giecrilj@stegny.2a.pl>
876 * ld.texi: Properly hyphenate the word "specific".
878 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
881 * ld.texi: Remove LTO warning from --wrap.
882 * plugin.c (get_symbols): Update resolution for wrapper and
884 * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
885 * testsuite/ld-plugin/pr24406-1.c: New file.
886 * testsuite/ld-plugin/pr24406-2a.c: Likewise.
887 * testsuite/ld-plugin/pr24406-2b.c: Likewise.
889 2019-04-25 Sudakshina Das <sudi.das@arm.com>
891 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
892 * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
893 * testsuite/ld-aarch64/bti-plt-1.d: Update.
894 * testsuite/ld-aarch64/bti-plt-3.d: Update.
895 * testsuite/ld-aarch64/bti-plt-5.d: Update.
896 * testsuite/ld-aarch64/pac-plt-1.d: Update.
897 * testsuite/ld-aarch64/pac-plt-2.d: Update.
899 2019-04-24 Sandra Loosemore <sandra@codesourcery.com>
901 * testsuite/config/default.exp: Use [check_compiler_available]
902 instead of [which $CC].
903 * testsuite/ld-auto-import/auto-import.exp: Likewise.
904 * testsuite/ld-cygwin/exe-export.exp: Likewise.
905 * testsuite/ld-elf/audit.exp: Likewise.
906 * testsuite/ld-elf/compress.exp: Likewise.
907 * testsuite/ld-elf/dwarf.exp: Likewise.
908 * testsuite/ld-elf/elf.exp: Likewise.
909 * testsuite/ld-elf/indirect.exp: Likewise.
910 * testsuite/ld-elf/linux-x86.exp: Likewise.
911 * testsuite/ld-elf/shared.exp: Likewise.
912 * testsuite/ld-elf/tls.exp: Likewise.
913 * testsuite/ld-elf/wrap.exp: Likewise.
914 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
915 * testsuite/ld-elfvers/vers.exp: Likewise.
916 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
917 * testsuite/ld-elfweak/elfweak.exp: Likewise.
918 * testsuite/ld-gc/gc.exp: Likewise.
919 * testsuite/ld-i386/i386.exp: Likewise.
920 * testsuite/ld-i386/no-plt.exp: Likewise.
921 * testsuite/ld-i386/tls.exp: Likewise.
922 * testsuite/ld-ifunc/ifunc.exp: Likewise.
923 * testsuite/ld-mn10300/mn10300.exp: Likewise.
924 * testsuite/ld-pe/pe-compile.exp: Likewise.
925 * testsuite/ld-pe/pe-run.exp: Likewise.
926 * testsuite/ld-pe/pe-run2.exp: Likewise.
927 * testsuite/ld-pie/pie.exp: Likewise.
928 * testsuite/ld-plugin/lto.exp: Likewise.
929 * testsuite/ld-plugin/plugin.exp: Likewise.
930 * testsuite/ld-scripts/crossref.exp: Likewise.
931 * testsuite/ld-sh/sh.exp: Likewise.
932 * testsuite/ld-shared/shared.exp: Likewise.
933 * testsuite/ld-size/size.exp: Likewise.
934 * testsuite/ld-srec/srec.exp: Likewise.
935 * testsuite/ld-undefined/undefined.exp: Likewise.
936 * testsuite/ld-unique/unique.exp: Likewise.
937 * testsuite/ld-x86-64/mpx.exp: Likewise.
938 * testsuite/ld-x86-64/no-plt.exp: Likewise.
939 * testsuite/ld-x86-64/tls.exp: Likewise.
940 * testsuite/ld-x86-64/x86-64.exp: Likewise.
941 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
942 check_compiler_available before trying to use the compiler.
943 (run_cc_link_tests): Likewise.
944 (check_compiler_available): New. Use it instead of [which $CC].
946 2019-04-23 Alan Modra <amodra@gmail.com>
948 * Makefile.am (GENDEPDIR): New var, used..
949 (GENSCRIPTS): ..here.
950 * Makefile.in: Regenerate.
951 * genscripts.sh: Test for $DEPDIR set before every use.
953 2019-04-22 Matthew Fortune <matthew.fortune@mips.com>
955 * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
958 2019-04-19 Alan Modra <amodra@gmail.com>
960 * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
961 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
962 s12z to list of targets not supporting --gc-sections.
964 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
966 * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
968 * testsuite/ld-x86-64/x86-64.exp: Likewise.
969 * testsuite/ld-i386/pr18801.d: Removed.
970 * testsuite/ld-x86-64/pr18801.d: Likewise.
971 * testsuite/ld-i386/pr18801a.d: New file.
972 * testsuite/ld-i386/pr18801b.d: Likewise.
973 * testsuite/ld-x86-64/pr18801a.d: Likewise.
974 * testsuite/ld-x86-64/pr18801b.d: Likewise.
975 * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
976 * testsuite/ld-x86-64/pie2.d: Likewise.
977 * testsuite/ld-x86-64/pr19719.d: Likewise.
978 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
979 * testsuite/ld-x86-64/pr19969.d: Likewise.
980 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
981 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
982 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
983 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
984 * testsuite/ld-x86-64/pr22791-1.err: Likewise.
986 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
989 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
990 * testsuite/ld-x86-64/pr24458.s: New file.
991 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
992 * testsuite/ld-x86-64/pr24458a.d: Likewise.
993 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
994 * testsuite/ld-x86-64/pr24458b.d: Likewise.
995 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
996 * testsuite/ld-x86-64/pr24458c.d: Likewise.
998 2019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1000 * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
1001 symbol when .lower.bss or .either.bss sections exist.
1002 Define __crt0_movedata when .lower.data or .either.data sections exist.
1003 * testsuite/gas/msp430/either-data-bss-sym.d: New test.
1004 * testsuite/gas/msp430/low-data-bss-sym.d: New test.
1005 * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
1006 * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
1007 * testsuite/gas/msp430/msp430.exp: Run new tests.
1008 Enable large code model when running -mdata-region={upper,either}
1011 2019-04-16 Alan Modra <amodra@gmail.com>
1013 * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
1014 * testsuite/ld-scripts/section-match-1.d: Likewise.
1015 * testsuite/ld-undefined/require-defined.exp: Likewise.
1017 2019-04-15 Faraz Shahbazker <fshahbazker@wavecomp.com>
1019 * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
1022 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1024 * testsuite/ld-arm/bfcsel.s: New.
1025 * testsuite/ld-arm/bfcsel.d: New.
1026 * testsuite/ld-arm/arm-elf.exp: Add above test.
1028 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1030 * testsuite/ld-arm/bfl.s: New.
1031 * testsuite/ld-arm/bfl.d: New.
1032 * testsuite/ld-arm/arm-elf.exp: Add above test.
1034 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1036 * testsuite/ld-arm/bf.s: New.
1037 * testsuite/ld-arm/bf.d: New.
1038 * testsuite/ld-arm/arm-elf.exp: Add above test.
1040 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1042 * testsuite/ld-arm/attr-merge-13.attr: New test.
1043 * testsuite/ld-arm/attr-merge-13a.s: New test.
1044 * testsuite/ld-arm/attr-merge-13b.s: New test.
1046 2019-04-13 Alan Modra <amodra@gmail.com>
1048 * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter. Add
1050 (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
1051 (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
1053 (e*.c): Delete all dependencies, instead include dependencies
1055 * Makefile.in: Regenerate.
1056 * configure.ac (source_sh): Define and use function.
1057 * configure: Regenerate.
1058 * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
1059 * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
1060 * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
1061 * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
1062 * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
1063 * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
1064 * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
1065 * emulparams/armelf_linux_eabi.sh,
1066 * emulparams/armelf_linux_fdpiceabi.sh,
1067 * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
1068 * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
1069 * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
1070 * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
1071 * emulparams/armelfb_linux_fdpiceabi.sh,
1072 * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
1073 * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
1074 * emulparams/elf32_sparc_sol2.sh,
1075 * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
1076 * emulparams/elf32_tic6x_elf_be.sh,
1077 * emulparams/elf32_tic6x_elf_le.sh,
1078 * emulparams/elf32_tic6x_linux_be.sh,
1079 * emulparams/elf32_tic6x_linux_le.sh,
1080 * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
1081 * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
1082 * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
1083 * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
1084 * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
1085 * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
1086 * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
1087 * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
1088 * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
1089 * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
1090 * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
1091 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1092 * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
1093 * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
1094 * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
1095 * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
1096 * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
1097 * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
1098 * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
1099 * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
1100 * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
1101 * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
1102 * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
1103 * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
1104 * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
1105 * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
1106 * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
1107 * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
1108 * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
1109 * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
1110 * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
1111 * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
1112 * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
1113 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
1114 * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
1115 * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
1116 * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
1117 * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
1118 * emulparams/elf_x86_64_cloudabi.sh,
1119 * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
1120 * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
1121 * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
1122 * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
1123 * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
1124 * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
1125 * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
1126 * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
1127 * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
1128 * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
1129 * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
1130 * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
1131 * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
1132 * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
1133 * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
1134 * emulparams/shl.sh, * emulparams/shlelf.sh,
1135 * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
1136 * emulparams/shlelf_vxworks.sh: Use source_sh.
1137 * genscripts.sh: Adjust for changed parameters. Emit dependencies
1138 for e*.c to .deps/*.Pc.
1139 (source_sh): New function, use it throughout to source scripts.
1140 * genscrba.sh (source_em): Use source_sh.
1142 2019-04-13 Alan Modra <amodra@gmail.com>
1144 * configure.ac (TDIRS): Build up tdirs in this variable and
1145 AC_SUBST, also using AM_SUBST_NOTMAKE.
1146 * configure: Regenerate.
1147 * Makefile.am (DISTCLEANFILES): Remove tdirs.
1148 * Makefile.in: Regenerate.
1150 2019-04-12 Nick Clifton <nickc@redhat.com>
1153 * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
1154 example of section attributes.
1156 2019-04-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
1158 * NEWS: Mention new option --no-print-map-discarded.
1159 * ld.h (ld_config_type) <print_map_discarded>: New field.
1160 * ldlang.c (lang_map): Conditionally output discarded sections
1161 in map files based on configuration option.
1162 * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
1163 OPTION_NO_PRINT_MAP_DISCARDED>: New.
1164 * ldmain.c (main): Enabled print_map_discarded by default.
1165 * lexsup.c (ld_options): Add new command-line options.
1166 (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
1167 OPTION_PRINT_MAP_DISCARDED>: New cases.
1168 * ld.texi: Document new options.
1169 * testsuite/ld-gc/gc.exp: Add new test.
1170 * testsuite/ld-gc/skip-map-discarded.s: New file.
1171 * testsuite/ld-gc/skip-map-discarded.d: New file.
1172 * testsuite/ld-gc/skip-map-discarded.map: New file.
1174 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1176 * ld.texi: Document -z cet-report=[none|warning|error].
1177 * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
1178 * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
1180 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1181 * testsuite/ld-i386/property-x86-cet1.d: New file.
1182 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
1183 * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
1184 * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
1185 * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
1186 * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
1187 * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
1188 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
1189 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
1190 * testsuite/ld-i386/property-x86-cet6.d: Likewise.
1191 * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
1192 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
1193 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
1194 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
1195 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
1196 * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
1197 * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
1198 * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
1199 * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
1200 * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
1201 * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
1202 * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
1203 * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
1204 * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
1205 * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
1206 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
1207 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
1208 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
1209 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
1210 * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
1211 * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
1213 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1215 * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New. Set
1216 to "-static-pie" if target compiler supports it.
1217 * testsuite/ld-elf/elf.exp: Run -static-pie tests if
1218 $STATIC_PIE_LDFLAGS isn't empty.
1219 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1221 2019-04-11 Tamar Christina <tamar.christina@arm.com>
1224 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1225 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
1227 2019-04-10 H.J. Lu <hongjiu.lu@intel.com>
1229 * scripttempl/elf.sc (CREATE_PIC): New. Set for CREATE_SHLIB or
1231 (__rel_iplt_start): Don't define for CREATE_PIC.
1232 (__rel_iplt_end): Likewise.
1233 (__rela_iplt_start): Likewise.
1234 (__rela_iplt_end): Likewise.
1236 2019-04-10 Alan Modra <amodra@gmail.com>
1238 * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
1241 2019-04-10 Alan Modra <amodra@gmail.com>
1243 * emultempl/cskyelf.em (csk_elf_before_parse): New function,
1244 setting use_branch_stub false for linux.
1245 (csky_elf_create_output_section_statements): Do emit this
1246 function and all others in the file for linux, plus the branch
1247 option control. Disable branch stubs when non-ELF.
1249 2019-04-10 Alan Modra <amodra@gmail.com>
1251 * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
1252 (ecskyelf_linux.c): Depend on cskyelf.sh.
1253 (eelf32microblazeel.c): Depend on elf32microblaze.sh.
1254 * Makefile.in: Regenerate.
1255 * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
1256 (PAGE_SIZE): Don't define.
1257 * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
1258 the differing variable defs/undefs.
1259 * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
1260 * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
1261 (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
1262 (PAGE_SIZE): Don't define.
1263 * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
1264 leaving just the differing OUTPUT_FORMAT.
1266 2019-04-10 Alan Modra <amodra@gmail.com>
1268 * po/BLD-POTFILES.in: Regenerate.
1270 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1272 * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
1273 lynxos and nto targets.
1275 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1277 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
1278 (eelf_i386_chaos.c): Removed.
1279 * Makefile.in: Regenerated.
1280 * configure.tgt: Remove i[3-7]86-*-kaos*.
1281 * emulparams/elf_i386_chaos.sh: Removed.
1283 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1285 * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
1286 * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
1288 2019-04-08 Alan Modra <amodra@gmail.com>
1290 * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
1291 * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
1292 * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
1294 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1296 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
1297 (eelf_i386_sol2.c): Also depend on
1298 $(srcdir)/emultempl/solaris2-x86.em.
1299 (eelf_x86_64_sol2.c): Likewise.
1300 * Makefile.in: Regenerated.
1301 * emulparams/call_nop.sh: Set x86-specific linker options via
1303 * emulparams/cet.sh: Likewise.
1304 * emulparams/reloc_overflow.sh: Likewise.
1305 * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New. Set to
1307 * emulparams/elf_i386.sh: Likewise.
1308 * emulparams/elf_i386_be.sh: Likewise.
1309 * emulparams/elf_i386_chaos.sh: Likewise.
1310 * emulparams/elf_i386_ldso.sh: Likewise.
1311 * emulparams/elf_i386_vxworks.sh: Likewise.
1312 * emulparams/elf_iamcu.sh: Likewise.
1313 * emulparams/elf_k1om.sh: Likewise.
1314 * emulparams/elf_l1om.sh: Likewise.
1315 * emulparams/elf_x86_64.sh: Likewise.
1316 * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
1318 * emulparams/elf_x86_64_sol2.sh: Likewise.
1319 * emultempl/elf-x86.em: New file.
1320 * emultempl/solaris2-x86.em: Likewise.
1321 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
1322 set link_info.call_nop_byte.
1324 2019-04-05 Alan Modra <amodra@gmail.com>
1326 * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
1327 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1328 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
1330 2019-04-03 Alan Modra <amodra@gmail.com>
1333 ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
1334 (<EXPRESSION>"/DISCARD/"): New.
1336 2019-04-03 Alan Modra <amodra@gmail.com>
1338 * ldlex.l: Formatting.
1339 (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
1340 (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
1341 (NOCFILENAMECHAR): Remove duplicate chars. Reorder.
1342 (SYMBOLCHARN): Likewise. Rename to SYMBOLNAMECHAR.
1343 (<INPUTLIST>"$SYSROOT"..): Delete rule.
1345 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1347 * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
1349 * testsuite/ld-xtensa/xtensa.exp
1350 (relax-undef-weak-pie-export-dynamic): Add new test.
1352 2019-03-26 Martin Liska <mliska@suse.cz>
1354 * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
1355 lto_visibility_str and use then to inform about plugin-symbols.
1356 * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
1358 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1360 * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
1361 * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
1363 2019-03-21 Sudakshina Das <sudi.das@arm.com>
1365 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1366 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
1367 * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
1368 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
1369 * testsuite/ld-aarch64/bti-warn.d: New test.
1371 2019-03-21 Alan Modra <amodra@gmail.com>
1373 * testsuite/ld-elf/fini2.s: Reduce alignment.
1374 * testsuite/ld-elf/fini3.s: Likewise.
1375 * testsuite/ld-elf/finin.s: Likewise.
1376 * testsuite/ld-elf/init2.s: Likewise.
1377 * testsuite/ld-elf/init3.s: Likewise.
1378 * testsuite/ld-elf/initn.s: Likewise.
1379 * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
1380 * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
1382 2019-03-21 Alan Modra <amodra@gmail.com>
1384 * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
1385 * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
1386 * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
1387 * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
1388 * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
1389 * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
1390 * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
1391 * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
1392 * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
1393 * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
1394 * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
1395 * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
1396 * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
1397 * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
1398 * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
1399 * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
1400 * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
1401 SORT_NONE to .init and .fini wildcards.
1402 * scripttempl/elf32xc16x.sc,
1403 * scripttempl/elf32xc16xl.sc,
1404 * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
1405 * scripttempl/elf_chaos.sc: Add .init output section.
1406 * scripttempl/elfd30v.sc: Remove duplicate .init.
1407 * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
1408 * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
1409 duplicate .init, and add .fini wildcard.
1410 * scripttempl/ppcpe.sc (INIT, FINI): Delete.
1411 * ldlang.c (update_wild_statements): Special case .init and
1412 .fini in the wildcard, not the output section.
1414 2019-03-21 Alan Modra <amodra@gmail.com>
1416 * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
1418 2019-03-21 Alan Modra <amodra@gmail.com>
1420 * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
1421 create_object_symbols_section.
1422 * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
1424 2019-03-18 Alan Modra <amodra@gmail.com>
1426 * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
1427 * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
1428 * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
1429 * testsuite/ld-unique/pr21529.d: Remove csky from xfails
1431 2019-03-15 Nick Clifton <nickc@redhat.com>
1434 * ld.texi (-plugin): Correct the path used to locate linker
1437 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1439 * NEWS: Document --pac-plt.
1440 * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
1441 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
1442 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
1443 * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
1444 * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
1445 * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
1446 * testsuite/ld-aarch64/pac-plt-1.d: New test.
1447 * testsuite/ld-aarch64/pac-plt-2.d: New test.
1448 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
1450 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1451 Szabolcs Nagy <szabolcs.nagy@arm.com>
1453 * NEWS: Document --force-bti.
1454 * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
1455 (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
1456 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
1457 * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
1458 * testsuite/ld-aarch64/bti-plt-1.d: New test.
1459 * testsuite/ld-aarch64/bti-plt-1.s: New test.
1460 * testsuite/ld-aarch64/bti-plt-2.d: New test.
1461 * testsuite/ld-aarch64/bti-plt-3.d: New test.
1462 * testsuite/ld-aarch64/bti-plt-4.d: New test.
1463 * testsuite/ld-aarch64/bti-plt-5.d: New test.
1464 * testsuite/ld-aarch64/bti-plt-6.d: New test.
1465 * testsuite/ld-aarch64/bti-plt-7.d: New test.
1466 * testsuite/ld-aarch64/bti-plt-so.s: New test.
1467 * testsuite/ld-aarch64/bti-plt.ld: New test.
1469 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1471 * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
1472 GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
1473 * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
1474 * testsuite/ld-aarch64/property-bti-pac1.d: New test.
1475 * testsuite/ld-aarch64/property-bti-pac1.s: New test.
1476 * testsuite/ld-aarch64/property-bti-pac2.d: New test.
1477 * testsuite/ld-aarch64/property-bti-pac2.s: New test.
1478 * testsuite/ld-aarch64/property-bti-pac3.d: New test.
1480 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1483 * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
1484 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1485 * testsuite/ld-i386/pr24322a.d: New file.
1486 * testsuite/ld-i386/pr24322b.d: Likewise.
1487 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
1488 * testsuite/ld-x86-64/pr24322a.d: Likewise.
1489 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
1490 * testsuite/ld-x86-64/pr24322b.d: Likewise.
1491 * testsuite/ld-x86-64/pr24322a.s: Likewise.
1492 * testsuite/ld-x86-64/pr24322b.s: Likewise.
1493 * testsuite/ld-x86-64/pr24322c.s: Likewise.
1495 2019-03-06 Nick Bowler <nbowler@draconx.ca>
1498 * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
1499 attributes during the first phase.
1501 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1503 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1504 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1507 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1508 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1509 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1510 * testsuite/ld-s390/tlsbin.dd: Likewise.
1511 * testsuite/ld-s390/tlsbin.rd: Likewise.
1512 * testsuite/ld-s390/tlsbin.sd: Likewise.
1513 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1514 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1515 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1516 * testsuite/ld-s390/tlspic.dd: Likewise.
1517 * testsuite/ld-s390/tlspic.rd: Likewise.
1518 * testsuite/ld-s390/tlspic.sd: Likewise.
1519 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1520 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1521 * testsuite/ld-s390/tlspic_64.sd: Likewise.
1522 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1524 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1527 * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
1528 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1529 * testsuite/ld-i386/pr24276.dso: New file.
1530 * testsuite/ld-i386/pr24276.warn: Likewise.
1531 * testsuite/ld-x86-64/pr24276.dso: Likewise.
1532 * testsuite/ld-x86-64/pr24276.warn: Likewise.
1534 2019-02-20 Eric Tsai <erictsai@cadence.com>
1536 * testsuite/ld-xtensa/call_overflow.d: New test definition.
1537 * testsuite/ld-xtensa/call_overflow1.s: New test source.
1538 * testsuite/ld-xtensa/call_overflow2.s: New test source.
1539 * testsuite/ld-xtensa/call_overflow3.s: New test source.
1540 * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
1542 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1544 * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
1546 2019-02-12 Nick Clifton <nickc@redhat.com>
1548 * po/fr.po: Updated French translation.
1550 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
1552 * emultempl/arclinux.em: Delete special INIT/FINI handling.
1554 2019-02-07 Nick Clifton <nickc@redhat.com>
1557 * ld.texi (Options): Add missing word to the description of the
1558 --start-group option.
1560 2019-02-06 Alan Modra <amodra@gmail.com>
1563 * testsuite/ld-scripts/pr24008.d: Pass with extra target
1566 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1569 * testsuite/ld-x86-64/pr24151a-x32.d: New file.
1570 * testsuite/ld-x86-64/pr24151a.d: Likewise.
1571 * testsuite/ld-x86-64/pr24151a.s: Likewise.
1572 * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
1574 2019-01-31 Alan Modra <amodra@gmail.com>
1576 * NEWS: Mention -t change.
1577 * ld.texi (--trace/-t): Expand documentation a little.
1579 2019-01-29 H.J. Lu <hongjiu.lu@intel.com>
1582 * testsuite/ld-scripts/defined.exp: Run pr24008.
1583 * testsuite/ld-scripts/pr24008.d: New file.
1584 * testsuite/ld-scripts/pr24008.map: Likewise.
1585 * testsuite/ld-scripts/pr24008.s: Likewise.
1586 * testsuite/ld-scripts/pr24008.t: Likewise.
1588 2019-01-29 Eric Botcazou <ebotcazou@adacore.com>
1590 * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
1592 2019-01-28 Alan Modra <amodra@gmail.com>
1595 * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
1596 * ldexp.c (fold_name): Move expld.assign_name check later to
1597 avoid an extra lookup.
1598 (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
1599 values, and don't clear expld.assign_name.
1600 * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
1601 (print_assignment): Resolve entire assignment expression.
1602 Don't access symbol u.def unless symbol is defined.
1604 2019-01-25 Nick Clifton <nickc@redhat.com>
1606 * po/bg.po: Updated Bulgarian translation.
1608 2019-01-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
1610 * ld.texi (--wrap): Add warning that LTO may make this feature
1613 2019-01-21 Nick Clifton <nickc@redhat.com>
1615 * po/uk.po: Updated Ukranian translation.
1616 * po/pr_BR.po: Updated Brazilian Portuguese translation.
1618 2019-01-21 Nick Clifton <nickc@redhat.com>
1621 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
1622 expected error message.
1624 2019-01-19 Nick Clifton <nickc@redhat.com>
1626 * configure: Regenerate.
1627 * po/ld.pot: Regenerate.
1629 2018-06-24 Nick Clifton <nickc@redhat.com>
1631 2.32 branch created.
1633 2019-01-16 Kito Cheng <kito@andestech.com>
1635 * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
1637 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
1638 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
1639 * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
1640 * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
1641 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1642 * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
1643 * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
1644 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1645 * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
1646 * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
1647 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1648 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
1649 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
1650 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
1651 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
1652 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
1653 * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
1654 * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
1655 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
1656 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
1657 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
1658 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
1659 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
1660 * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
1661 * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
1662 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
1663 * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
1664 * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
1665 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
1666 * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
1667 * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
1668 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
1669 * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
1670 * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
1671 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
1672 * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
1673 * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
1675 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1678 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1679 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1680 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1681 * testsuite/ld-s390/tlsbin.dd: Likewise.
1682 * testsuite/ld-s390/tlsbin.rd: Likewise.
1683 * testsuite/ld-s390/tlsbin.sd: Likewise.
1684 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1685 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1686 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1687 * testsuite/ld-s390/tlspic.dd: Likewise.
1688 * testsuite/ld-s390/tlspic.rd: Likewise.
1689 * testsuite/ld-s390/tlspic.sd: Likewise.
1690 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1691 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1692 * testsuite/ld-s390/tlspic_64.sd: Likewise.
1693 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1695 2019-01-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1697 * ld.texi (--wrap): Add example to emphasise that only undefined
1698 references are replaced by the linker.
1700 2019-01-09 Nick Clifton <nickc@redhat.com>
1702 * po/es.po: Updated Spanish translation.
1704 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1706 * configure: Regenerate.
1708 2019-01-08 Alan Modra <amodra@gmail.com>
1710 * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
1711 generated source file names.
1712 * testsuite/ld-m68k/m68k-got.exp: Likewise.
1714 2019-01-01 Alan Modra <amodra@gmail.com>
1716 Update year range in copyright notice of all files.
1718 For older changes see ChangeLog-2018
1720 Copyright (C) 2019 Free Software Foundation, Inc.
1722 Copying and distribution of this file, with or without modification,
1723 are permitted in any medium without royalty provided the copyright
1724 notice and this notice are preserved.
1730 version-control: never