Automatic date update in version.in
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
75def2ab
MR
12018-03-29 Maciej W. Rozycki <macro@mips.com>
2
3 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
4 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
5
8b6a949a
MR
62018-03-28 Maciej W. Rozycki <macro@mips.com>
7
8 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
9 ATTRIBUTE_UNUSED from `abfd'.
10
d81270c3
MR
112018-03-28 Maciej W. Rozycki <macro@mips.com>
12
13 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
14 `_bfd_error_handler' call formatting.
15
60dceb8d 162018-03-28 Maciej W. Rozycki <macro@mips.com>
8205a328
MR
17
18 * elf32-mips.c (mips_info_to_howto_rel): Call
19 `mips_elf32_rtype_to_howto' directly rather than via
20 `->elf_backend_mips_rtype_to_howto'.
21
e04ef022
RL
222018-03-28 Renlin Li <renlin.li@arm.com>
23
24 PR ld/22970
25 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
26 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
27 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
28 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
29 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
30 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
31 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
32 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
33 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
34 (elfNN_aarch64_final_link_relocate): Support new relocations.
35 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
36 relocations.
37 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
38
84f1b9fb
RL
392018-03-28 Renlin Li <renlin.li@arm.com>
40
41 PR ld/22970
42 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
43 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
44 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
45 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
46 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
47 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
48 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
49 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
50 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
51 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
52 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
53 TLSLE_LDST16_TPREL_LO12,
54 TLSLE_LDST16_TPREL_LO12_NC,
55 TLSLE_LDST32_TPREL_LO12,
56 TLSLE_LDST32_TPREL_LO12_NC,
57 TLSLE_LDST64_TPREL_LO12,
58 TLSLE_LDST64_TPREL_LO12_NC,
59 TLSLE_LDST8_TPREL_LO12,
60 TLSLE_LDST8_TPREL_LO12_NC.
61 * bfd-in2.h: Regenerated.
62 * libbfd.h: Regenerated.
63
f8745e1c
EB
642018-03-28 Eric Botcazou <ebotcazou@adacore.com>
65
66 PR ld/22972
67 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
68 has_old_style_got_reloc.
69 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
70 relocations. Fix a couple of long lines.
71 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
72 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
73 GOT relocations.
74
bf54968b
L
752018-03-25 H.J. Lu <hongjiu.lu@intel.com>
76
77 PR ld/23000
78 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
79 ENDBR64 to the TLSDESC PLT entry.
80
0ccf57bd
AM
812018-03-21 Alan Modra <amodra@gmail.com>
82
83 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
84 symbols. Use size_t counts. Delete redundant opd test.
85
4bad6366
AM
862018-03-21 Alan Modra <amodra@gmail.com>
87
88 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
89
bac3c8c5
AM
902018-03-21 Alan Modra <amodra@gmail.com>
91
92 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
93 field unsigned.
94 (update_local_sym_info): Likewise for local_got_tls_masks.
95 (ppc_elf_tls_optimize): Likewise for lgot_masks.
96
6a3858a6
AM
972018-03-21 Alan Modra <amodra@gmail.com>
98
99 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
100 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
101 do in size_dynamic_sections.
102
675e2809
AM
1032018-03-21 Alan Modra <amodra@gmail.com>
104
105 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
106 without first checking array bounds.
107 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
108
416c34d6
L
1092018-03-20 H.J. Lu <hongjiu.lu@intel.com>
110
111 PR ld/22983
112 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
113 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
114
315aa1cf
NC
1152018-03-19 Nick Clifton <nickc@redhat.com>
116
117 * po/es.po: Updated Spanish translation.
118
0854d504
MF
1192018-03-15 Max Filippov <jcmvbkbc@gmail.com>
120
121 * elf32-xtensa.c (xlate_map_entry): Change types of address
122 fields from 'unsigned' to 'bfd_vma'.
123 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
124 the key argument to bsearch. Allow offsets past the end of a
125 section, use the last map entry for translation of such offsets.
126
f9671640
KLC
1272018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
128
129 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
130 Not support the target feature.
131 (nds32_elf_ex9_itb_base): Likewise.
132 (nds32_elf_ex9_import_table): Likewise.
133 (nds32_elf_ex9_finish): Likewise.
134 (nds32_elf_ex9_reloc_jmp): Likewise.
135 (nds32_elf_get_insn_with_reg): Likewise.
136 (nds32_get_local_syms): Likewise.
137 (nds32_elf_ex9_replace_instruction): Likewise.
138 (nds32_elf_ifc_calc): Likewise.
139 (nds32_elf_ifc_finish): Likewise.
140 (nds32_elf_ifc_replace): Likewise.
141 (nds32_elf_ifc_reloc): Likewise.
142
7dda8d3c
AM
1432018-03-14 Alan Modra <amodra@gmail.com>
144
145 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
146 sfpr size added before defining alias symbols.
147 (ppc64_elf_build_stubs): Add stub section padding before
148 copying sfpr contents and defining save/restore alias symbols.
149
9e223787
L
1502018-03-14 H.J. Lu <hongjiu.lu@intel.com>
151
152 PR ld/20882
153 * elflink.c (elf_gc_mark_debug_section): Also check the local
154 debug definition section.
155
3e33b239
NC
1562018-03-13 Nick Clifton <nickc@redhat.com>
157
158 PR 22113
159 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
160 function. Add an end address parameter. Check access of the data
161 pointer to make sure that they do not extend beyond the end
162 address. Return FALSE if any check fails. Add the end address
163 pointer to the ui structure.
164 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
165 codes to make sure that they do not extend beyond the end address
166 pointer. Print an error message and return immediately if any
167 check fails.
168
f657f8c4
NC
1692018-03-09 Nick Clifton <nickc@redhat.com>
170
171 * elf64-s390.c (elf_s390_relocate_section): Move check for
172 relocations against non-allocated sections to before the code that
173 handles ifunc relocations.
174 * elf32-s390.c (elf_s390_relocate_section): Likewise.
175 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
176 relocs against IFUNC symbols in non-allocated sections as relocs
177 against FUNC symbols.
178 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
179
347a8774
L
1802018-03-08 H.J. Lu <hongjiu.lu@intel.com>
181
182 PR ld/22929
183 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
184 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
185 relocation against FUNC symbol.
186 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
187
0c1ded8d
RL
1882018-03-07 Renlin Li <renlin.li@arm.com>
189
190 PR ld/20402
191 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
192 symbol, and don't emit relocation in specific case.
193
0118219e
AM
1942018-03-07 Alan Modra <amodra@gmail.com>
195
196 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
197 (mips_elf64_slurp_one_reloc_table): Pass on error.
198
dfb93f11
JC
1992018-03-03 James Cowgill <james.cowgill@mips.com>
200 Maciej W. Rozycki <macro@mips.com>
201
202 PR ld/21900
203 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
204 after calling `undefined_symbol' hook if this is an error
205 condition. Assume the value of 0 for the symbol requested
206 otherwise.
207
9a2ebffd
JW
2082018-03-02 Jim Wilson <jimw@sifive.com>
209
210 PR 22903
211 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
212 and nop instead of 4.
213 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
214 8 instead of 4.
215
788af978
JW
2162018-03-01 Jim Wilson <jimw@sifive.com>
217
218 PR 22756
219 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
220 else if instead of if.
221
5224fa03
AM
2222018-03-01 Alan Modra <amodra@gmail.com>
223
224 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
225
116acb2c
AM
2262018-02-28 Alan Modra <amodra@gmail.com>
227
228 PR 22887
229 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
230
eef10466
NC
2312018-02-28 Nick Clifton <nickc@redhat.com>
232
12c96342
NC
233 PR 22895
234 PR 22893
235 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
236 pointer. Drop unused abfd parameter. Check the size of the block
237 before initialising the data field. Return the end pointer if the
238 size is invalid.
239 (read_attribute_value): Adjust invocations of read_n_bytes.
240
eef10466
NC
241 PR 22894
242 * dwarf1.c (parse_die): Check the length of form blocks before
243 advancing the data pointer.
244
0d329c0a
AM
2452018-02-28 Alan Modra <amodra@gmail.com>
246
247 PR 22887
248 * aoutx.h (translate_symbol_table): Print an error message and set
249 bfd_error on finding an invalid name string offset.
250
f6aec96d
L
2512018-02-27 H.J. Lu <hongjiu.lu@intel.com>
252
253 * config.in: Regenerated.
254 * configure: Likewise.
255 * configure.ac: Add --enable-separate-code.
256 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
257 to 1 for Linux/x86 targets,
258 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
259 DEFAULT_LD_Z_SEPARATE_CODE is 1.
260
f3185997
NC
2612018-02-27 Nick Clifton <nickc@redhat.com>
262
e8f5af78
NC
263 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
264 message.
265 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
266 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
267 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
268 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
269 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
270 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
271 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
272 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
273 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
274
f3185997
NC
275 PR 22875
276 * elf-bfd.h (struct elf_backend_data): Change the return type of
277 the elf_info_to_howto and elf_info_to_howto_rel function pointers
278 to bfd_boolean.
279 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
280 value from the info_to_howto function and fail if that function
281 failed.
282 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
283 from the info_to_howto function.
284 (elf32_h8_relax_section): Likewise.
285 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
286 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
287 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
288 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
289 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
290 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
291 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
292 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
293 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
294 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
295 (riscv_elf_relocate_section): Likewise.
296 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
297 bfd_boolean. Issue an error message, set an error value and
298 return FALSE if the reloc is not recognized.
299 (elf_hppa_info_to_howto_rel): Likewise.
300 * elf-m10200.c (mn10200_info_to_howto): Likewise.
301 * elf-m10300.c (mn10300_info_to_howto): Likewise.
302 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
303 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
304 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
305 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
306 * elf32-bfin.c (bfin_info_to_howto): Likewise.
307 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
308 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
309 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
310 (cris_info_to_howto_rela): Likewise.
311 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
312 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
313 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
314 Likewise.
315 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
316 (elf32_dlx_info_to_howto_rel): Likewise.
317 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
318 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
319 * elf32-frv.c (frv_info_to_howto_rela)
320 (frvfdpic_info_to_howto_rel): Likewise.
321 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
322 * elf32-gen.c (elf_generic_info_to_howto)
323 (elf_generic_info_to_howto_rel): Likewise.
324 * elf32-h8300.c (elf32_h8_info_to_howto)
325 (elf32_h8_info_to_howto_rel): Likewise.
326 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
327 * elf32-i386.c (elf_i386_reloc_type_lookup)
328 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
329 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
330 Likewise.
331 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
332 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
333 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
334 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
335 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
336 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
337 Likewise.
338 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
339 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
340 * elf32-m68k.c (rtype_to_howto): Likewise.
341 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
342 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
343 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
344 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
345 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
346 Likewise.
347 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
348 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
349 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
350 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
351 Likewise.
352 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
353 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
354 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
355 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
356 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
357 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
358 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
359 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
360 * elf32-score.c (s3_bfd_score_info_to_howto)
361 (_bfd_score_info_to_howto): Likewise.
362 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
363 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
364 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
365 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
366 (elf32_tic6x_info_to_howto_rel): Likewise.
367 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
368 * elf32-v850.c (v850_elf_info_to_howto_rel)
369 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
370 * elf32-vax.c (rtype_to_howto): Likewise.
371 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
372 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
373 (elf32_wasm32_info_to_howto_rela): Likewise.
374 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
375 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
376 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
377 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
378 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
379 * elf64-gen.c (elf_generic_info_to_howto)
380 (elf_generic_info_to_howto_rel): Likewise.
381 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
382 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
383 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
384 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
385 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
386 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
387 Likewise.
388 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
389 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
390 Likewise.
391 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
392 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
393 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
394 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
395 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
396 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
397 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
398 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
399 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
400 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
401 Default to NULL.
402
1f4bace8
JW
4032018-02-26 Jim Wilson <jimw@sifive.com>
404 Stephan Schreiber <info@fs-driver.org>
405
406 PR 15904
407 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
408 call, set changed_contents and changed_relocs. Likewise after
409 successful ia64_elf_relax_br call.
410
6838f2be
AM
4112018-02-26 Alan Modra <amodra@gmail.com>
412
413 * elf.c (assign_file_positions_except_relocs): Don't segfault
414 when actual number of phdrs is less than allocated. Delete
415 outdated comment. Formatting.
416
38f14ab8
AM
4172018-02-26 Alan Modra <amodra@gmail.com>
418
419 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
420 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
421 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
422 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
423 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
424 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
425 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
426 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
427 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
428 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
429 error/warning messages.
430
6e05870c
AM
4312018-02-26 Alan Modra <amodra@gmail.com>
432
433 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
434 * syms.c: Standardize error/warning messages.
435
59d08d6c
AM
4362018-02-26 Alan Modra <amodra@gmail.com>
437
438 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
439 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
440 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
441 * peXXigen.c, * peicode.h: Standardize error/warning messages.
442
90b6238f
AM
4432018-02-26 Alan Modra <amodra@gmail.com>
444
445 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
446
2c1c9679
AM
4472018-02-26 Alan Modra <amodra@gmail.com>
448
449 * elfxx-mips.c: Standardize error/warning messages.
450
9793eb77
AM
4512018-02-26 Alan Modra <amodra@gmail.com>
452
453 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
454 * elflink.c: Standardize error/warning messages. Replace use of
455 linker callback einfo with _bfd_error_handler when possible.
456
0aa13fee
AM
4572018-02-26 Alan Modra <amodra@gmail.com>
458
459 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
460 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
461 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
462 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
463 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
464 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
465 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
466 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
467 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
468 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
469 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
470 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
471 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
472 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
473 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
474 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
475 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
476 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
477 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
478 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
479 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
480 unrecognized/unsupported reloc message.
481
cf97bcb0
AM
4822018-02-26 Alan Modra <amodra@gmail.com>
483
484 * elf32-ppc.c: Standardize error/warning messages. Use
485 _bfd_error_handler rather than einfo when einfo features not used.
486 * elf64-ppc.c: Likewise.
487
01f7e10c
AM
4882018-02-23 Alan Modra <amodra@gmail.com>
489
490 PR 22881
491 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
492 segment if no matching LOAD segment.
493
e859f655
KLC
4942018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
495
496 * elf32-nds32.h: Define mask for ict_model.
497
6e8d06db
JD
4982018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
499
500 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
501
b248d650
MR
5022018-02-19 Maciej W. Rozycki <macro@mips.com>
503
504 Revert
505 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
506
507 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
508 .reginfo section has wrong size.
509
6798f8bf
MR
5102018-02-19 Maciej W. Rozycki <macro@mips.com>
511
512 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
513 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
514 `.MIPS.abiflags' sections.
515 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
516 section's end.
517
8772de11
MR
5182018-02-19 Maciej W. Rozycki <macro@mips.com>
519
520 * section.c (SEC_FIXED_SIZE): New macro.
521 * bfd-in2.h: Regenerate.
522
4f7fd351
MR
5232018-02-19 Maciej W. Rozycki <macro@mips.com>
524
525 * section.c (SEC_HAS_GOT_REF): Remove macro.
526 * bfd-in2.h: Regenerate.
527
f2b740ac
AM
5282018-02-19 Alan Modra <amodra@gmail.com>
529
530 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
531 arguments.
532 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
533 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
534 (_bfd_riscv_relax_pc): Likewise and fix typos.
535 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
536 * libbfd.h: Regenerate.
537
8979927a
AM
5382018-02-19 Alan Modra <amodra@gmail.com>
539
540 * dwarf2.c (read_section): Don't use 'll' format modifier.
541 (find_abstract_instance): Likewise.
542 * elfcore.h (elf_core_file_p): Likewise.
543
2dcf00ce
AM
5442018-02-19 Alan Modra <amodra@gmail.com>
545
546 * bfd-in.h: Include inttypes.h or if not available define
547 PRId64, PRIu64 and PRIx64.
548 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
549 modifier to print bfd_vma.
550 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
551 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
552 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
553 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
554 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
555 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
556 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
557 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
558 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
559 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
560 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
561 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
562 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
563 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
564 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
565 and cast input to uint64_t, and similarly for Ld and Lu.
566 * bfd-in2.h: Regenerate.
567
c1c8c1ef
AM
5682018-02-19 Alan Modra <amodra@gmail.com>
569
570 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
571 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
572 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
573 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
574 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
575 * reloc.c: Replace use of %R and %T in format strings passed to
576 einfo and friends by %pR and %pT.
577
871b3ab2
AM
5782018-02-19 Alan Modra <amodra@gmail.com>
579
580 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
581 of %A and %B.
582 * aout-adobe.c: Update all messages using %A and %B.
583 * aout-cris.c: Likewise.
584 * aoutx.h: Likewise.
585 * archive.c: Likewise.
586 * binary.c: Likewise.
587 * cache.c: Likewise.
588 * coff-alpha.c: Likewise.
589 * coff-arm.c: Likewise.
590 * coff-i860.c: Likewise.
591 * coff-mcore.c: Likewise.
592 * coff-ppc.c: Likewise.
593 * coff-rs6000.c: Likewise.
594 * coff-sh.c: Likewise.
595 * coff-tic4x.c: Likewise.
596 * coff-tic54x.c: Likewise.
597 * coff-tic80.c: Likewise.
598 * coff64-rs6000.c: Likewise.
599 * coffcode.h: Likewise.
600 * coffgen.c: Likewise.
601 * cofflink.c: Likewise.
602 * coffswap.h: Likewise.
603 * compress.c: Likewise.
604 * cpu-arm.c: Likewise.
605 * ecoff.c: Likewise.
606 * elf-attrs.c: Likewise.
607 * elf-eh-frame.c: Likewise.
608 * elf-ifunc.c: Likewise.
609 * elf-m10300.c: Likewise.
610 * elf-properties.c: Likewise.
611 * elf-s390-common.c: Likewise.
612 * elf.c: Likewise.
613 * elf32-arc.c: Likewise.
614 * elf32-arm.c: Likewise.
615 * elf32-avr.c: Likewise.
616 * elf32-bfin.c: Likewise.
617 * elf32-cr16.c: Likewise.
618 * elf32-cr16c.c: Likewise.
619 * elf32-cris.c: Likewise.
620 * elf32-crx.c: Likewise.
621 * elf32-d10v.c: Likewise.
622 * elf32-d30v.c: Likewise.
623 * elf32-epiphany.c: Likewise.
624 * elf32-fr30.c: Likewise.
625 * elf32-frv.c: Likewise.
626 * elf32-gen.c: Likewise.
627 * elf32-hppa.c: Likewise.
628 * elf32-i370.c: Likewise.
629 * elf32-i386.c: Likewise.
630 * elf32-i960.c: Likewise.
631 * elf32-ip2k.c: Likewise.
632 * elf32-iq2000.c: Likewise.
633 * elf32-lm32.c: Likewise.
634 * elf32-m32c.c: Likewise.
635 * elf32-m32r.c: Likewise.
636 * elf32-m68hc11.c: Likewise.
637 * elf32-m68hc12.c: Likewise.
638 * elf32-m68hc1x.c: Likewise.
639 * elf32-m68k.c: Likewise.
640 * elf32-mcore.c: Likewise.
641 * elf32-mep.c: Likewise.
642 * elf32-metag.c: Likewise.
643 * elf32-microblaze.c: Likewise.
644 * elf32-moxie.c: Likewise.
645 * elf32-msp430.c: Likewise.
646 * elf32-mt.c: Likewise.
647 * elf32-nds32.c: Likewise.
648 * elf32-nios2.c: Likewise.
649 * elf32-or1k.c: Likewise.
650 * elf32-pj.c: Likewise.
651 * elf32-ppc.c: Likewise.
652 * elf32-rl78.c: Likewise.
653 * elf32-rx.c: Likewise.
654 * elf32-s390.c: Likewise.
655 * elf32-score.c: Likewise.
656 * elf32-score7.c: Likewise.
657 * elf32-sh-symbian.c: Likewise.
658 * elf32-sh.c: Likewise.
659 * elf32-sh64.c: Likewise.
660 * elf32-sparc.c: Likewise.
661 * elf32-spu.c: Likewise.
662 * elf32-tic6x.c: Likewise.
663 * elf32-tilepro.c: Likewise.
664 * elf32-v850.c: Likewise.
665 * elf32-vax.c: Likewise.
666 * elf32-visium.c: Likewise.
667 * elf32-wasm32.c: Likewise.
668 * elf32-xgate.c: Likewise.
669 * elf32-xtensa.c: Likewise.
670 * elf64-alpha.c: Likewise.
671 * elf64-gen.c: Likewise.
672 * elf64-hppa.c: Likewise.
673 * elf64-ia64-vms.c: Likewise.
674 * elf64-mmix.c: Likewise.
675 * elf64-ppc.c: Likewise.
676 * elf64-s390.c: Likewise.
677 * elf64-sh64.c: Likewise.
678 * elf64-sparc.c: Likewise.
679 * elf64-x86-64.c: Likewise.
680 * elfcode.h: Likewise.
681 * elfcore.h: Likewise.
682 * elflink.c: Likewise.
683 * elfnn-aarch64.c: Likewise.
684 * elfnn-ia64.c: Likewise.
685 * elfnn-riscv.c: Likewise.
686 * elfxx-mips.c: Likewise.
687 * elfxx-sparc.c: Likewise.
688 * elfxx-tilegx.c: Likewise.
689 * elfxx-x86.c: Likewise.
690 * hpux-core.c: Likewise.
691 * ieee.c: Likewise.
692 * ihex.c: Likewise.
693 * libbfd.c: Likewise.
694 * linker.c: Likewise.
695 * mach-o.c: Likewise.
696 * merge.c: Likewise.
697 * mmo.c: Likewise.
698 * oasys.c: Likewise.
699 * pdp11.c: Likewise.
700 * pe-mips.c: Likewise.
701 * peXXigen.c: Likewise.
702 * peicode.h: Likewise.
703 * reloc.c: Likewise.
704 * rs6000-core.c: Likewise.
705 * srec.c: Likewise.
706 * stabs.c: Likewise.
707 * vms-alpha.c: Likewise.
708 * xcofflink.c: Likewise.
709
dbc88fc1
AM
7102018-02-19 Alan Modra <amodra@gmail.com>
711
712 PR 22845
713 * elf.c (IS_TBSS): Define.
714 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
715 (assign_file_positions_for_non_load_sections): Revert last change.
716 Properly calculate load segment limits to compare against relro limits.
717
325ba6fb
AM
7182018-02-17 Alan Modra <amodra@gmail.com>
719
720 PR 22845
721 * elf.c (assign_file_positions_for_non_load_sections): Ignore
722 degenerate zero size PT_LOAD segments when finding one overlapping
723 the PT_GNU_RELRO segment.
724
d00dd7dc
AM
7252018-02-16 Alan Modra <amodra@gmail.com>
726
727 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
728 (_bfd_bool_bfd_true): Rename from bfd_true.
729 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
730 (_bfd_int_bfd_0): Rename from bfd_0.
731 (_bfd_uint_bfd_0): Rename from bfd_0u.
732 (_bfd_long_bfd_0): Rename from bfd_0l.
733 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
734 (_bfd_void_bfd): Rename from bfd_void.
735 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
736 (_bfd_bool_bfd_link_false_error),
737 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
738 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
739 (_bfd_bool_bfd_asection_bfd_asection_true),
740 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
741 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
742 * archive.c (_bfd_noarchive_get_elt_at_index),
743 (_bfd_noarchive_openr_next_archived_file),
744 (_bfd_noarchive_construct_extended_name_table),
745 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
746 (_bfd_noarchive_write_armap): New functions.
747 * archures.c (_bfd_nowrite_set_arch_mach): New function.
748 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
749 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
750 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
751 (alpha_ecoff_swap_coff_lineno_out),
752 (alpha_ecoff_swap_coff_reloc_out): New functions.
753 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
754 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
755 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
756 (mips_ecoff_swap_coff_lineno_out),
757 (mips_ecoff_swap_coff_reloc_out): New functions.
758 * coffcode.h (coff_set_alignment_hook): Replace define with
759 new function.
760 (symname_in_debug_hook): Likewise.
761 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
762 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
763 * elf.c (assign_file_positions_except_relocs): Test
764 elf_backend_allow_non_load_phdr for NULL.
765 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
766 _bfd_elf_link_omit_section_dynsym. Update uses.
767 (_bfd_elf_omit_section_dynsym_all): New function.
768 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
769 (_bfd_elf_omit_section_dynsym_default): Declare.
770 (_bfd_elf_omit_section_dynsym_all): Declare.
771 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
772 (_bfd_nolink_bfd_get_relocated_section_contents),
773 (_bfd_nolink_bfd_lookup_section_flags),
774 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
775 (_bfd_nolink_bfd_link_hash_table_create),
776 (_bfd_nolink_bfd_link_just_syms),
777 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
778 (_bfd_nolink_bfd_link_split_section),
779 (_bfd_nolink_section_already_linked),
780 (_bfd_nolink_bfd_define_common_symbol),
781 (_bfd_nolink_bfd_define_start_stop): New functions.
782 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
783 (_bfd_norelocs_bfd_reloc_name_lookup),
784 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
785 * section.c (_bfd_nowrite_set_section_contents): New function.
786 * syms.c (_bfd_nosymbols_canonicalize_symtab),
787 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
788 (_bfd_nosymbols_get_symbol_version_string),
789 (_bfd_nosymbols_bfd_is_local_label_name),
790 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
791 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
792 (_bfd_nosymbols_bfd_make_debug_symbol),
793 ( _bfd_nosymbols_read_minisymbols),
794 ( _bfd_nosymbols_minisymbol_to_symbol),
795 (_bfd_nodynamic_get_synthetic_symtab): New functions.
796 * libbfd-in.h: Declare new functions. Update existing defines,
797 removing casts.
798 * aix386-core.c: Update to use new hooks. Formatting.
799 * aout-adobe.c: Likewise.
800 * aout-arm.c: Likewise.
801 * aout-target.h: Likewise.
802 * aout-tic30.c: Likewise.
803 * aoutf1.h: Likewise.
804 * binary.c: Likewise.
805 * bout.c: Likewise.
806 * cisco-core.c: Likewise.
807 * coff-alpha.c: Likewise.
808 * coff-i386.c: Likewise.
809 * coff-i860.c: Likewise.
810 * coff-i960.c: Likewise.
811 * coff-ia64.c: Likewise.
812 * coff-mips.c: Likewise.
813 * coff-ppc.c: Likewise.
814 * coff-rs6000.c: Likewise.
815 * coff-sh.c: Likewise.
816 * coff-tic30.c: Likewise.
817 * coff-tic54x.c: Likewise.
818 * coff-x86_64.c: Likewise.
819 * coff64-rs6000.c: Likewise.
820 * coffcode.h: Likewise.
821 * elf-m10300.c: Likewise.
822 * elf32-cr16.c: Likewise.
823 * elf32-lm32.c: Likewise.
824 * elf32-m32r.c: Likewise.
825 * elf32-metag.c: Likewise.
826 * elf32-score.c: Likewise.
827 * elf32-score7.c: Likewise.
828 * elf32-tilepro.c: Likewise.
829 * elf32-xstormy16.c: Likewise.
830 * elf32-xtensa.c: Likewise.
831 * elf64-alpha.c: Likewise.
832 * elf64-hppa.c: Likewise.
833 * elf64-ia64-vms.c: Likewise.
834 * elf64-mmix.c: Likewise.
835 * elf64-sh64.c: Likewise.
836 * elfnn-ia64.c: Likewise.
837 * elfxx-sparc.c: Likewise.
838 * elfxx-target.h: Likewise.
839 * elfxx-tilegx.c: Likewise.
840 * elfxx-x86.h: Likewise.
841 * hp300hpux.c: Likewise.
842 * hppabsd-core.c: Likewise.
843 * hpux-core.c: Likewise.
844 * i386msdos.c: Likewise.
845 * i386os9k.c: Likewise.
846 * ieee.c: Likewise.
847 * ihex.c: Likewise.
848 * irix-core.c: Likewise.
849 * libaout.h: Likewise.
850 * libecoff.h: Likewise.
851 * mach-o-target.c: Likewise.
852 * mach-o.c: Likewise.
853 * mipsbsd.c: Likewise.
854 * mmo.c: Likewise.
855 * netbsd-core.c: Likewise.
856 * nlm-target.h: Likewise.
857 * oasys.c: Likewise.
858 * osf-core.c: Likewise.
859 * pdp11.c: Likewise.
860 * pe-mips.c: Likewise.
861 * pe-x86_64.c: Likewise.
862 * pef.c: Likewise.
863 * plugin.c: Likewise.
864 * ppcboot.c: Likewise.
865 * ptrace-core.c: Likewise.
866 * sco5-core.c: Likewise.
867 * som.c: Likewise.
868 * sparclynx.c: Likewise.
869 * srec.c: Likewise.
870 * tekhex.c: Likewise.
871 * trad-core.c: Likewise.
872 * verilog.c: Likewise.
873 * versados.c: Likewise.
874 * vms-alpha.c: Likewise.
875 * vms-lib.c: Likewise.
876 * wasm-module.c: Likewise.
877 * xsym.c: Likewise.
878 * libbfd.h: Regenerate.
879
2a0d9853
JW
8802018-02-15 Jim Wilson <jimw@sifive.com>
881
09ca4b9d
JW
882 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
883 symbols whose section address is zero.
884
2a0d9853
JW
885 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
886 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
887 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
888 Add %X%P to error messages.
889
e513bd38
EB
8902018-02-15 Eric Botcazou <ebotcazou@adacore.com>
891
892 PR ld/22832
893 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
894 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
895 and assert that the result of the call is not NULL.
896
12ef3f5a
NC
8972018-02-14 Nick Clifton <nickc@redhat.com>
898
899 PR 22823
900 Revert previous delta. Add extra casts to avoid compile time
901 warnings instead.
902 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
903 cast to avoid warning from gcc v8 compiler.
904 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
905 (_bfd_generic_bfd_set_private_flags): Likewise.
906 (_bfd_generic_bfd_copy_private_section_data): Likewise.
907 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
908 (_bfd_generic_bfd_copy_private_header_data): Likewise.
909 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
910 (_bfd_noarchive_construct_extended_name_table): Likewise.
911 (_bfd_noarchive_truncate_arname): Likewise.
912 (_bfd_noarchive_write_ar_hdr): Likewise.
913 (_bfd_noarchive_get_elt_at_index): Likewise.
914 (_bfd_nosymbols_canonicalize_symtab): Likewise.
915 (_bfd_nosymbols_print_symbol): Likewise.
916 (_bfd_nosymbols_get_symbol_info): Likewise.
917 (_bfd_nosymbols_get_symbol_version_string): Likewise.
918 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
919 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
920 (_bfd_nosymbols_get_lineno): Likewise.
921 (_bfd_nosymbols_find_nearest_line): Likewise.
922 (_bfd_nosymbols_find_line): Likewise.
923 (_bfd_nosymbols_find_inliner_info): Likewise.
924 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
925 (_bfd_nosymbols_read_minisymbols): Likewise.
926 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
927 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
928 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
929 (_bfd_nowrite_set_arch_mach): Likewise.
930 (_bfd_nowrite_set_section_contents): Likewise.
931 (_bfd_nolink_sizeof_headers): Likewise.
932 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
933 (_bfd_nolink_bfd_relax_section): Likewise.
934 (_bfd_nolink_bfd_gc_sections): Likewise.
935 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
936 (_bfd_nolink_bfd_merge_sections): Likewise.
937 (_bfd_nolink_bfd_is_group_section): Likewise.
938 (_bfd_nolink_bfd_discard_group): Likewise.
939 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
940 (_bfd_nolink_bfd_link_add_symbols): Likewise.
941 (_bfd_nolink_bfd_link_just_syms): Likewise.
942 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
943 (_bfd_nolink_bfd_final_link): Likewise.
944 (_bfd_nolink_bfd_link_split_section): Likewise.
945 (_bfd_nolink_section_already_linked): Likewise.
946 (_bfd_nolink_bfd_define_common_symbol): Likewise.
947 (_bfd_nolink_bfd_define_start_stop): Likewise.
948 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
949 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
950 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
951 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
952 * libbfd.c (bfd_false_any): Delete.
953 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
954 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
955 * libbfd.h (extern): Regenerate
956 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
957 cast to avoid warning from gcc v8 compiler.
958 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
959 * binary.c (binary_get_symbol_info): Likewise.
960 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
961 * coff-mips.c (mips_ecoff_backend_data): Likewise.
962 * coffcode.h (coff_set_alignment_hook): Likewise.
963 (symname_in_debug_hook): Likewise.
964 (bfd_coff_backend_data bigobj_swap_table): Likewise.
965 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
966 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
967 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
968 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
969 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
970 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
971 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
972 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
973 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
974 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
975 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
976 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
977 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
978 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
979 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
980 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
981 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
982 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
983 (bfd_elfNN_bfd_set_private_flags): Likewise.
984 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
985 (elf_backend_init_index_section): Likewise.
986 (elf_backend_allow_non_load_phdr): Likewise.
987 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
988 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
989 * ieee.c (ieee_construct_extended_name_table): Likewise.
990 (ieee_write_armap): Likewise.
991 (ieee_write_ar_hdr): Likewise.
992 (ieee_bfd_is_target_special_symbol): Likewise.
993 * ihex.c (ihex_canonicalize_symtab): Likewise.
994 (ihex_bfd_is_target_special_symbol): Likewise.
995 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
996 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
997 (_bfd_ecoff_set_alignment_hook): Likewise.
998 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
999 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
1000 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
1001 * oasys.c (oasys_construct_extended_name_table): Likewise.
1002 (oasys_write_armap): Likewise.
1003 (oasys_write_ar_hdr): Likewise.
1004 (oasys_bfd_is_target_special_symbol): Likewise.
1005 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
1006 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
1007 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
1008 * som.c (som_bfd_is_target_special_symbol): Likewise.
1009 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
1010 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
1011 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
1012 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
1013 (versados_bfd_reloc_name_lookup): Likewise.
1014 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
1015 (vms_bfd_define_start_stop): Likewise.
1016 (alpha_vms_bfd_is_target_special_symbol): Likewise.
1017 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
1018 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
1019
451875b4
L
10202018-02-14 H.J. Lu <hongjiu.lu@intel.com>
1021
1022 PR ld/22842
1023 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
1024 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
1025 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
1026 R_X86_64_PC32 reloc against dynamic function in data section.
1027 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
1028 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
1029 against dynamic function in data section.
1030 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
1031 function address only if pcrel_plt is true.
1032 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
1033 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
1034 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
1035 PC-relative relocation against a function definition in data
1036 secton in PIE. Remove the obsolete comments.
1037 (elf_x86_link_hash_table): Add pcrel_plt.
1038
1031c264
L
10392018-02-13 H.J. Lu <hongjiu.lu@intel.com>
1040
1041 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
1042 instead of bfd_link_pic, for building shared library.
1043
bd7ab16b
L
10442018-02-13 H.J. Lu <hongjiu.lu@intel.com>
1045
1046 PR gas/22791
1047 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
1048 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
1049 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
1050 against protected function in shared object.
1051
80c96350
ST
10522018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
1053
1054 PR 22828
1055 * po/ru.po: Fix typo in Russian translation.
1056
87993319
MR
10572018-02-13 Maciej W. Rozycki <macro@mips.com>
1058
1059 * wasm-module.c (wasm_scan_name_function_section): Rename
1060 `index' local variable to `idx'.
1061
68d20676
NC
10622018-02-13 Nick Clifton <nickc@redhat.com>
1063
1064 PR 22823
1065 Fix compile time warnings generated by gcc version 8.
1066 * libbfd-in.h: Remove extraneous text from prototypes.
1067 Add prototypes for bfd_false_any, bfd_true_any,
1068 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
1069 bfd_n1_any, bfd_void_any.
1070 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
1071 function.
1072 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
1073 (_bfd_generic_bfd_set_private_flags): Likewise.
1074 (_bfd_generic_bfd_copy_private_section_data): Likewise.
1075 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
1076 (_bfd_generic_bfd_copy_private_header_data): Likewise.
1077 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
1078 (_bfd_noarchive_construct_extended_name_table): Likewise.
1079 (_bfd_noarchive_truncate_arname): Likewise.
1080 (_bfd_noarchive_write_ar_hdr): Likewise.
1081 (_bfd_noarchive_get_elt_at_index): Likewise.
1082 (_bfd_nosymbols_canonicalize_symtab): Likewise.
1083 (_bfd_nosymbols_print_symbol): Likewise.
1084 (_bfd_nosymbols_get_symbol_info): Likewise.
1085 (_bfd_nosymbols_get_symbol_version_string): Likewise.
1086 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
1087 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
1088 (_bfd_nosymbols_get_lineno): Likewise.
1089 (_bfd_nosymbols_find_nearest_line): Likewise.
1090 (_bfd_nosymbols_find_line): Likewise.
1091 (_bfd_nosymbols_find_inliner_info): Likewise.
1092 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
1093 (_bfd_nosymbols_read_minisymbols): Likewise.
1094 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
1095 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
1096 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
1097 (_bfd_nowrite_set_arch_mach): Likewise.
1098 (_bfd_nowrite_set_section_contents): Likewise.
1099 (_bfd_nolink_sizeof_headers): Likewise.
1100 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
1101 (_bfd_nolink_bfd_relax_section): Likewise.
1102 (_bfd_nolink_bfd_gc_sections): Likewise.
1103 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
1104 (_bfd_nolink_bfd_merge_sections): Likewise.
1105 (_bfd_nolink_bfd_is_group_section): Likewise.
1106 (_bfd_nolink_bfd_discard_group): Likewise.
1107 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
1108 (_bfd_nolink_bfd_link_add_symbols): Likewise.
1109 (_bfd_nolink_bfd_link_just_syms): Likewise.
1110 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
1111 (_bfd_nolink_bfd_final_link): Likewise.
1112 (_bfd_nolink_bfd_link_split_section): Likewise.
1113 (_bfd_nolink_section_already_linked): Likewise.
1114 (_bfd_nolink_bfd_define_common_symbol): Likewise.
1115 (_bfd_nolink_bfd_define_start_stop): Likewise.
1116 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
1117 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
1118 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
1119 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
1120 * libbfd.c (bfd_false_any): New function. Like bfd_false but
1121 accepts one or more arguments.
1122 (bfd_true_any): Likewise.
1123 (bfd_nullvoidptr_any): Likewise.
1124 (bfd_0_any): Likewise.
1125 (bfd_0u_any): Likewise.
1126 (bfd_0l_any): Likewise.
1127 (_bfd_n1_any): Likewise.
1128 (bfd_void_any): Likewise.
1129 * libbfd.h (extern): Regenerate
1130 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
1131 based dummy function.
1132 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
1133 * binary.c (binary_get_symbol_info): Likewise.
1134 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
1135 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1136 * coffcode.h (coff_set_alignment_hook): Likewise.
1137 (symname_in_debug_hook): Likewise.
1138 (bfd_coff_backend_data bigobj_swap_table): Likewise.
1139 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
1140 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
1141 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
1142 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
1143 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
1144 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
1145 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
1146 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
1147 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
1148 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
1149 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
1150 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
1151 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
1152 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
1153 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
1154 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
1155 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
1156 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
1157 (bfd_elfNN_bfd_set_private_flags): Likewise.
1158 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
1159 (elf_backend_init_index_section): Likewise.
1160 (elf_backend_allow_non_load_phdr): Likewise.
1161 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
1162 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
1163 * ieee.c (ieee_construct_extended_name_table): Likewise.
1164 (ieee_write_armap): Likewise.
1165 (ieee_write_ar_hdr): Likewise.
1166 (ieee_bfd_is_target_special_symbol): Likewise.
1167 * ihex.c (ihex_canonicalize_symtab): Likewise.
1168 (ihex_bfd_is_target_special_symbol): Likewise.
1169 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
1170 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
1171 (_bfd_ecoff_set_alignment_hook): Likewise.
1172 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
1173 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
1174 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
1175 * oasys.c (oasys_construct_extended_name_table): Likewise.
1176 (oasys_write_armap): Likewise.
1177 (oasys_write_ar_hdr): Likewise.
1178 (oasys_bfd_is_target_special_symbol): Likewise.
1179 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
1180 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
1181 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
1182 * som.c (som_bfd_is_target_special_symbol): Likewise.
1183 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
1184 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
1185 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
1186 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
1187 (versados_bfd_reloc_name_lookup): Likewise.
1188 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
1189 (vms_bfd_define_start_stop): Likewise.
1190 (alpha_vms_bfd_is_target_special_symbol): Likewise.
1191 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
1192 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
1193 * elf32-arc.c (get_replace_function): Assign replacement function
1194 to func pointer.
1195 * elf32-i370.c (i370_noop): Update prototype.
1196
6e5e9d58
AM
11972018-02-13 Alan Modra <amodra@gmail.com>
1198
1199 PR 22836
1200 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
1201 relocation sections. If size reduces to just the flag word,
1202 remove that too and mark with SEC_EXCLUDE.
1203 * elflink.c (bfd_elf_final_link): Strip empty group sections.
1204
f2731e0c
AM
12052018-02-13 Alan Modra <amodra@gmail.com>
1206
1207 PR 22829
1208 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
1209 PT_GNU_RELRO setup.
1210
830db048
ZF
12112018-02-12 Zebediah Figura <z.figura12@gmail.com>
1212
1213 * i386msdos.c (msdos_mkobject); New function.
1214 (msdos_object_p): New function.
1215 (i386_msdos_vec): Use msdos_object_p as the check_format
1216 function.
1217 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
1218 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
1219 IMAGE_NT_SIGNATURE.
1220 * peXXigen.c: Likewise.
1221 * coff-ia64.c: Likewise.
1222
94fe5757
NC
12232018-02-12 Nick Clifton <nickc@redhat.com>
1224
1225 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
1226 assignment.
0b8683b7 1227 * elf32-arc.c (elf_arc_relocate_section): Likewise.
94fe5757 1228
d805612e 12292018-02-09 Eric Botcazou <ebotcazou@adacore.com>
a8735c82
EB
1230
1231 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
1232 (sparc_elf_append_rela): Assert that there is enough room in section.
1233 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
1234 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
1235 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
1236 For a symbol subject to a GOT relocation, reserve a slot in the
1237 relocation section if the symbol isn't dynamic and we are in PIC mode.
1238 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
1239 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
1240 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
1241 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
1242 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
1243 resolved_to_zero. Do not generate a dynamic GOT relocation for an
1244 undefined weak symbol with non-default visibility. Remove superfluous
1245 'else' and fix formatting.
1246
3b4c3844
L
12472018-02-09 H.J. Lu <hongjiu.lu@intel.com>
1248
1249 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
1250 is_solaris.
1251 (i386_elf32_sol2_vec): Don't declare.
1252 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
1253 Don't set need_global_offset_table.
1254 (elf_i386_solaris_arch_bed): New.
1255 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
1256 Solaris.
1257 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
1258 target_os != is_nacl instead of target_os == is_normal.
1259 (x86_64_elf64_sol2_vec): Don't declare.
1260 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
1261 is_nacl instead of target_os == is_normal. Don't set
1262 need_global_offset_table.
1263 (elf_x86_64_solaris_arch_bed): New.
1264 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
1265 Solaris.
1266 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
1267 _GLOBAL_OFFSET_TABLE_ for Solaris.
1268 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
1269 need_global_offset_table.
1270 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
1271 (elf_x86_link_hash_table): Remove need_global_offset_table.
1272 (elf_x86_init_table): Likewise.
1273
15b23f36
L
12742018-02-08 H.J. Lu <hongjiu.lu@intel.com>
1275
1276 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
1277 Remove prototype.
1278 (i386_elf32_sol2_vec): Declared.
1279 (elf_i386_link_setup_gnu_properties): Set
1280 need_global_offset_table with info->output_bfd->xvec.
1281 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
1282 Remove prototype.
1283 (x86_64_elf64_sol2_vec): Declared.
1284 (elf_x86_64_link_setup_gnu_properties): Set
1285 need_global_offset_table with info->output_bfd->xvec.
1286
dc11dea2
L
12872018-02-08 H.J. Lu <hongjiu.lu@intel.com>
1288
1289 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
1290 New prototype.
1291 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
1292 for Solaris.
1293 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
1294 New prototype.
1295 (elf_x86_64_link_setup_gnu_properties): Set
1296 need_global_offset_table for Solaris.
1297 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
1298 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
1299 (_bfd_x86_elf_link_setup_gnu_properties): Copy
1300 need_global_offset_table.
1301 * elfxx-x86.h (elf_x86_link_hash_table): Add
1302 need_global_offset_table.
1303 (elf_x86_init_table): Likewise.
1304
3f48fe4a
JW
13052018-02-08 Jim Wilson <jimw@sifive.com>
1306
1307 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
1308 change.
1309
ef135d43
NC
13102018-02-08 Nick Clifton <nickc@redhat.com>
1311
1312 PR 22788
1313 * elf.c (elf_parse_notes): Reject notes with excessuively large
1314 alignments.
1315
407aa07c
AM
13162018-02-07 Alan Modra <amodra@gmail.com>
1317
1318 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
1319 * elf32-ppc.c: Remove speculation barrier support.
1320 * elf32-ppc.h: Likewise.
1321 * elf64-ppc.c: Likewise.
1322 * elf64-ppc.h: Likewise.
1323
ed01220c
JW
13242018-02-06 Jim Wilson <jimw@sifive.com>
1325
1326 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
1327 callback to report an error.
1328
c20c30f6
EB
13292018-02-06 Eric Botcazou <ebotcazou@adacore.com>
1330
1331 PR ld/22263
1332 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
1333 into call to !bfd_link_executable and tidy up.
1334 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
1335 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
1336 !bfd_link_executable.
1337 <R_SPARC_TLS_IE_HI22>: Likewise.
1338 <GOT relocations>: Remove useless code, tidy and merge related blocks.
1339 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
1340 !bfd_link_executable.
1341 <R_SPARC_WPLT30>: Tidy up.
1342 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
1343 !bfd_link_executable.
1344 (allocate_dynrelocs): Likewise.
1345 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
1346 <R_SPARC_TLS_GD_HI22>: Merge into...
1347 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
1348 sparc_elf_tls_transition and remove redundant code.
1349 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
1350 !bfd_link_executable.
1351 <R_SPARC_TLS_LDO_HIX22>: Likewise.
1352 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
1353 <R_SPARC_TLS_LDM_CALL>: Likewise.
1354 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
1355 <R_SPARC_TLS_GD_ADD>: Likewise.
1356 <R_SPARC_TLS_LDM_ADD>: Likewise.
1357 <R_SPARC_TLS_LDO_ADD>: Likewise.
1358 <R_SPARC_TLS_IE_LD>: Likewise.
1359
46d09186
NC
13602018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
1361
1362 PR 22789
1363 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
1364 functions failed to find the function name, try the generic elf
1365 find function instead.
1366
8278e7ce
SDJ
13672018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
1368
1369 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
1370 'memcpy' instead of 'strncpy' when writing the magic number.
1371
64e234d4
NC
13722018-02-06 Nick Clifton <nickc@redhat.com>
1373
1374 PR 22794
1375 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
1376 section before attempting to read it in.
1377 (bfd_get_alt_debug_link_info): Likewise.
1378
422f3d3d
PC
13792018-02-06 Paul Carroll <pcarroll@codesourcery.com>
1380
1381 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
1382 line information in addition to name, if they can be found.
1383
279b2f94
RL
13842018-02-05 Renlin Li <renlin.li@arm.com>
1385
1386 PR ld/22764
1387 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
1388 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
1389 check for writeable section as well.
1390
cd048363
L
13912018-02-05 H.J. Lu <hongjiu.lu@intel.com>
1392
1393 PR ld/22782
1394 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
1395 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
1396 undefined weak symbol to 0.
1397 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
1398 if _GLOBAL_OFFSET_TABLE_ is referenced.
1399 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
1400 got_referenced instead of ref_regular_nonweak. Remove the
1401 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
1402 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
1403
e65b1a78
MR
14042018-02-05 Maciej W. Rozycki <macro@mips.com>
1405
1406 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
1407 initialize `hi_reloc'.
1408
2d6dda71
MR
14092018-02-05 Maciej W. Rozycki <macro@mips.com>
1410
1411 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
1412 SHT_MIPS_REGINFO sections don't assert the correct size and
1413 report an error instead.
1414
75506100
MR
14152018-02-05 Maciej W. Rozycki <macro@mips.com>
1416
1417 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
1418 status from `->elf_backend_section_processing'.
1419
7f02625e
JW
14202018-02-02 Jim Wilson <jimw@sifive.com>
1421
1422 PR ld/22756
1423 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
1424 If link_info->wrap_hash, check for a duplicate symbol and ignore.
1425 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
1426 Pass new argument to riscv_relax_delete_bytes.
1427 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
1428 ATTRIBUTE_UNUSED from link_info parameter.
1429
d830549d
AM
14302018-02-02 Alan Modra <amodra@gmail.com>
1431
1432 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
1433 emitted for toc sequence optimization. Set and use "howto" later.
1434
e99955cd
SM
14352018-02-01 Simon Marchi <simon.marchi@ericsson.com>
1436
1437 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
1438 arithmetic on NULL pointer.
1439 * elflink.c (_bfd_elf_archive_symbol_lookup,
1440 elf_link_add_archive_symbols): Likewise.
1441
bf3077a6
MM
14422018-01-31 Michael Matz <matz@suse.de>
1443
1444 * elflink.c (bfd_elf_define_start_stop): Fix check of
1445 def_dynamic.
1446
823143c6
L
14472018-01-31 H.J. Lu <hongjiu.lu@intel.com>
1448
1449 PR ld/21964
1450 * elflink.c (bfd_elf_define_start_stop): Check if __start and
1451 __stop symbols are referenced by shared objects.
1452
76cb3a89
AM
14532018-01-30 Alan Modra <amodra@gmail.com>
1454
1455 PR 22758
1456 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
1457 segment when demand paged with lma on the same page. Test this
1458 before load/non-load, executable/non-executable,
1459 writable/non-writable tests and simplify. Delete bogus relro
1460 condition in writable/non-writable test. Delete outdated
1461 comment. Formatting.
1462
36b8fda5
AM
14632018-01-30 Alan Modra <amodra@gmail.com>
1464
1465 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
1466 symbols dynamic.
1467
eb77f6a4
AM
14682018-01-29 Alan Modra <amodra@gmail.com>
1469
1470 PR 22741
1471 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
1472 range before converting to a symbol table pointer.
1473
7d73b4c8
NC
14742018-01-27 Nick Clifton <nickc@redhat.com>
1475
1476 * po/ru.po: Updated Russian translation.
1477
32253bb7
AM
14782018-01-26 Alan Modra <amodra@gmail.com>
1479
1480 * elflink.c (bfd_elf_define_start_stop): Override symbols when
1481 they are defined dynamically.
1482
ba21f564
AM
14832018-01-26 Alan Modra <amodra@gmail.com>
1484
1485 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
1486 .branch_lt changes size.
1487
38e64b0e
AM
14882018-01-25 Alan Modra <amodra@gmail.com>
1489
1490 PR 22746
1491 * elfcode.h (elf_object_p): Avoid integer overflow.
1492
bb363086
EB
14932018-01-25 Eric Botcazou <ebotcazou@adacore.com>
1494
1495 PR ld/22727
1496 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
1497 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
1498
1499 Revert
1500 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
1501
1502 PR ld/22263
1503 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
1504 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
1505 bfd_link_executable for TLS check.
1506 (_bfd_sparc_elf_check_relocs): Likewise.
1507 (allocate_dynrelocs): Likewise.
1508 (_bfd_sparc_elf_relocate_section): Likewise.
1509
1daf502a
RL
15102018-01-24 Renlin Li <renlin.li@arm.com>
1511
1512 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
1513 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
1514 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
1515 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
1516 BFD_RELOC_AARCH64_MOVW_PREL_G3.
1517 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1518 (_bfd_aarch64_elf_resolve_relocation): Likewise.
1519
32247401
RL
15202018-01-24 Renlin Li <renlin.li@arm.com>
1521
1522 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
1523 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
1524 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
1525 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
1526 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
1527 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
1528 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
1529 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
1530 BFD_RELOC_AARCH64_MOVW_PREL_G3.
1531 * bfd-in2.h: Regenerate.
1532 * libbfd.h: Regenerate.
1533
1c5e4ee9
MR
15342018-01-23 Maciej W. Rozycki <macro@mips.com>
1535
1536 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
1537 `mips_elf32_section_processing' comment reference.
1538
8a1b824a
L
15392018-01-20 H.J. Lu <hongjiu.lu@intel.com>
1540
1541 PR ld/22721
1542 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
1543 versioned __tls_get_addr symbol.
1544
ee3fbc1e
NC
15452018-01-19 Nick Clifton <nickc@redhat.com>
1546
1547 * po/fr.po: Updated French translation.
1548
691d2e9a
AM
15492018-01-18 Alan Modra <amodra@gmail.com>
1550
1551 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
1552 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
1553 (ppc64_elf_build_stubs): Likewise.
1554
4bfce128
NC
15552018-01-17 Nick Clifton <nickc@redhat.com>
1556
1557 * po/ru.po: Updated Russian translation.
1558 * po/uk/po: Updated Ukranian translation.
1559
c75bc4f7
AM
15602018-01-17 Alan Modra <amodra@gmail.com>
1561
1562 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
1563
1be5d8d3
AM
15642018-01-17 Alan Modra <amodra@gmail.com>
1565
1566 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
1567 (CRSETEQ, BEQCTRM): Define.
1568 (is_nonpic_glink_stub): Don't check bctr.
1569 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
1570 (ppc_elf_relax_section): Size speculation barrier.
1571 (output_bctr): New function.
1572 (write_glink_stub): Use output_bctr.
1573 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
1574 (ppc_elf_finish_dynamic_symbol): Likewise.
1575 (ppc_elf_finish_dynamic_sections): Use output_bctr.
1576 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
1577 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
1578 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
1579 (size_global_entry_stubs): Handle speculation barrier sizing.
1580 (plt_stub_size): Likewise.
1581 (output_bctr): New function.
1582 (build_plt_stub, build_tls_get_addr_stub): Output speculation
1583 barrier.
1584 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
1585 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
1586 (build_global_entry_stubs): Output speculation barrier.
1587 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
1588 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
1589
9e390558
AM
15902018-01-17 Alan Modra <amodra@gmail.com>
1591
1592 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
1593 __tls_get_addr_opt, and alignment sizing.
1594 (TLS_GET_ADDR_GLINK_SIZE): Delete.
1595 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
1596 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
1597 or 8 insns.
1598 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
1599 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
1600 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
1601 by PLT reloc count.
1602 (write_glink_stub): Handle __tls_get_addr_opt stub.
1603 Pad out to size given by GLINK_ENTRY_SIZE.
1604 (ppc_elf_relocate_section): Adjust write_glink_stub call.
1605 (ppc_elf_finish_dynamic_symbol): Likewise.
1606 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
1607 insn array since so many need rewriting.
1608 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
1609 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
1610 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
1611 nops. Adjust all uses.
1612 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
1613 in glink_vma calculation.
1614 (struct ppc_link_hash_table): Add global_entry section pointer.
1615 (create_linkage_sections): Create separate section for global
1616 entry stubs.
1617 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
1618 (size_global_entry_stubs): Handle sizing for aligned stubs.
1619 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
1620 and don't stash end of glink branch table in rawsize.
1621 (ppc_build_one_stub): Rewrite stub size calculations.
1622 (build_global_entry_stubs): Use new section.
1623 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
1624 Build lazy link stubs out to end of section. Build global entry
1625 stubs in new section.
1626
616dcb87
NC
16272018-01-15 Nick Clifton <nickc@redhat.com>
1628
1629 * po/uk.po: Updated Ukranian translation.
1630
3957a496
NC
16312018-01-13 Nick Clifton <nickc@redhat.com>
1632
1633 * po/bfd.pot: Regenerated.
1634
769c7ea5
NC
16352018-01-13 Nick Clifton <nickc@redhat.com>
1636
1637 * version.m4: Bump version to 2.30.51
1638 * configure: Regenerate.
1639
faf766e3
NC
16402018-01-13 Nick Clifton <nickc@redhat.com>
1641
1642 2.30 branch created.
1643
564e11c9
JW
16442018-01-12 Jens Widell <jl@opera.com>
1645
1646 * elf.c (setup_group): Optimize search for group by remembering
1647 last found group and restarting search at that index.
1648 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
1649
a78eea16
AM
16502018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
1651
1652 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
1653 bfd_link_common_skip_none in switch.
1654
87e79a65
AM
16552018-01-12 Alan Modra <amodra@gmail.com>
1656
1657 PR ld/22649
1658 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
1659 references on forced local symbols.
1660
58807c48
VI
16612018-01-12 Vlad Ivanov <vlad@ivanov.email>
1662
1663 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
1664 .reginfo section has wrong size.
1665
2888249f
L
16662018-01-11 H.J. Lu <hongjiu.lu@intel.com>
1667
1668 PR ld/22393
1669 * elf.c (_bfd_elf_map_sections_to_segments): When generating
1670 separate code and read-only data LOAD segments, create a new
1671 LOAD segment if the previous section contains text and the
1672 current section doesn't or vice versa. Don't put a writable
1673 section in a read-only segment if there is a RELRO segment.
1674
d664fd41
L
16752018-01-11 H.J. Lu <hongjiu.lu@intel.com>
1676
1677 PR ld/22649
1678 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
1679 references on forced local symbols.
1680
8b6f4cd3
L
16812018-01-11 H.J. Lu <hongjiu.lu@intel.com>
1682
1683 PR ld/22677
1684 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
1685 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
1686
9c70c522 16872018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
6cef73f9
KLC
1688
1689 PR 22662
1690 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
1691
ddb2bbcf
JB
16922018-01-03 John Baldwin <jhb@FreeBSD.org>
1693
1694 * elf.c (elfcore_grok_freebsd_note): Handle
1695 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
1696 NT_FREEBSD_PROCSTAT_VMMAP.
1697
219d1afa
AM
16982018-01-03 Alan Modra <amodra@gmail.com>
1699
1700 Update year range in copyright notice of all files.
1701
1e563868 1702For older changes see ChangeLog-2017
3499769a 1703\f
1e563868 1704Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
1705
1706Copying and distribution of this file, with or without modification,
1707are permitted in any medium without royalty provided the copyright
1708notice and this notice are preserved.
1709
1710Local Variables:
1711mode: change-log
1712left-margin: 8
1713fill-column: 74
1714version-control: never
1715End:
This page took 0.214685 seconds and 4 git commands to generate.