Automatic date update in version.in
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
80c135e5
TP
12016-06-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
2 Tony Wang <tony.wang@arm.com>
3
4 * elf32-arm.c (elf32_arm_stub_long_branch_thumb2_only): Define stub
5 sequence.
6 (stub_long_branch_thumb2_only): Define stub.
7 (arm_stub_is_thumb): Add case for arm_stub_long_branch_thumb2_only.
8 (arm_stub_long_branch_thumb2_only): Likewise.
9 (arm_type_of_stub): Use arm_stub_long_branch_thumb2_only for Thumb-2
10 capable targets.
11
4f26fb3a
JM
122016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com>
13
14 * archures.c (bfd_mach_sparc_v8plusc): Define.
15 (bfd_mach_sparc_v9c): Likewise.
16 (bfd_mach_sparc_v8plusd): Likewise.
17 (bfd_mach_sparc_v9d): Likewise.
18 (bfd_mach_sparc_v8pluse): Likewise.
19 (bfd_mach_sparc_v9e): Likewise.
20 (bfd_mach_sparc_v8plusv): Likewise
21 (bfd_mach_sparc_v9v): Likewise.
22 (bfd_mach_sparc_v8plusm): Likewise.
23 (bfd_mach_sparc_v9m): Likewise.
24 (bfd_mach_sparc_v9_p): Adapt to v8plusm and v9m.
25 (bfd_mach_sparc_64bit_p): Likewise.
26 * bfd-in2.h: Regenerate.
27 * cpu-sparc.c (arch_info_struct): Add entries for
28 bfd_mach_sparc_v8plus{c,d,e,v,m} and bfd_mach_sparc_v9{c,d,e,v,m}.
29 * aoutx.h (machine_type): Handle bfd_mach_sparc_v8plus{c,d,e,v,m}
30 and bfd_mach_sparc_v9{c,d,e,v,m}.
31 * elf32-sparc.c (elf32_sparc_final_write_processing): Likewise.
32 * elfxx-sparc.c (_bfd_sparc_elf_object_p): Likewise.
33
ca45f6e9
L
342016-06-16 H.J. Lu <hongjiu.lu@intel.com>
35
36 * elf32-i386.c (elf_i386_check_relocs): Don't check undefined
37 symbols for relocations against IFUNC symbols.
38 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
39
f92339b8
MK
402016-06-16 Marcin Kościelnicki <koriakin@0x04.net>
41
42 * elf32-s390.c (elf_s390_finish_dynamic_sections): Include
43 .rela.iplt in DT_PLTRELSZ.
44 * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise,
45 for DT_PLTRELSZ and DT_RELASZ as well.
46
081b1afe
L
472016-06-16 H.J. Lu <hongjiu.lu@intel.com>
48
49 * elf32-i386.c (elf_i386_check_relocs): Skip relocations in
50 non-loaded, non-alloced sections.
51 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
52
4c23f2ff
L
532016-06-15 H.J. Lu <hongjiu.lu@intel.com>
54
55 * elf32-i386.c (elf_i386_check_relocs): Check SEC_ALLOC before
56 allocating dynamic relocation.
57 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
58
31eef93e
SKS
592016-06-14 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
60
61 PR ld/20254
62 * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust reloc
63 offsets until reloc_toaddr.
64
c428ce9d
L
652016-06-14 H.J. Lu <hongjiu.lu@intel.com>
66
67 * elf32-i386.c (elf_i386_reloc_type_class): Check R_386_IRELATIVE.
68 Don't check symbol type for STN_UNDEF symbol index.
69 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Check
70 R_X86_64_IRELATIVE. Don't check symbol type for STN_UNDEF symbol
71 index.
72
60a019a0
TP
732016-06-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
74
75 * elf32-arm.c (using_thumb_only): Force review of arch check logic for
76 new architecture.
77 (using_thumb2): Try Tag_THUMB_ISA_use first and check
78 for exact arch value then. Force review of arch check logic for new
79 architecture.
80 (arch_has_arm_nop): Update and fix arch check logic. Force review of
81 that logic for new architecture.
82 (arch_has_thumb2_nop): Remove.
83 (elf32_arm_tls_relax): Use using_thumb2 instead of above function.
84 (elf32_arm_final_link_relocate): Likewise but using thumb2.
85
3860d2b4
AM
862016-06-14 Alan Modra <amodra@gmail.com>
87
88 * bfd-in.h (bfd_my_archive): Delete.
89 * bfd-in2.h: Regenerate.
90
b0cffb47
AM
912016-06-14 Alan Modra <amodra@gmail.com>
92
93 PR ld/20241
94 * archive.c (open_nested_file): Set my_archive.
95 * bfd.c (_bfd_default_error_handler <%B>): Exclude archive file name
96 for thin archives.
97 * bfdio.c (bfd_tell): Don't adjust origin for thin archives.
98 (bfd_seek): Likewise.
99 * bfdwin.c (bfd_get_file_window): Likewise.
100 * cache.c (cache_bmmap): Likewise.
101 (bfd_cache_lookup_worker): Don't look in my_archive for thin archives.
102 * mach-o.c (bfd_mach_o_follow_dsym): Don't open my_archive for
103 thin archives.
104 * plugin.c (try_claim): Likewise.
105 * xcofflink.c (xcoff_link_add_dynamic_symbols): Use import path of
106 file within thin archive, not the archive.
107
712ec279
L
1082016-06-13 H.J. Lu <hongjiu.lu@intel.com>
109
110 PR ld/20244
111 * elf32-i386.c (elf_i386_relocate_section): Add the .got.plt
112 section address for R_386_GOT32/R_386_GOT32X relocations against
113 IFUNC symbols if there is no base register and return error for
114 PIC.
115
ca8c86ef
L
1162016-06-13 H.J. Lu <hongjiu.lu@intel.com>
117
118 * elf32-i386.c (elf_i386_relocate_section): Simplify IFUNC
119 GOT32 adjustment for static executables.
120
0c9663cb
MR
1212016-06-13 Maciej W. Rozycki <macro@imgtec.com>
122
123 * elf32-mips.c (elf_mips_gnu_pcrel32): Update comment.
124
815dc1bc
CZ
1252016-06-13 Cupertino Miranda <cmiranda@synospsy.com>
126
127 * elf32-arc.c (elf_arc_relocate_section): Fixed condition.
128
3b63d2ce
CM
1292016-06-13 Cupertino Miranda <cmiranda@synospsy.com>
130
131 * elf32-arc.c (elf_arc_finish_dynamic_sections): Changed.
132
2ab2f40d
CM
1332016-06-13 Cupertino Miranda <cmiranda@synospsy.com>
134
135 * elf32-arc.c (arc_local_data, arc_local_data): Removed.
136 (SECTSTART): Changed.
137 (elf_arc_relocate_section): Fixed mistake in PIE related
138 condition.
139 (elf_arc_size_dynamic_sections): Changed DT_RELENT to DT_RELAENT.
140
0f7f3789
CM
1412016-06-13 Cupertino Miranda <cmiranda@synospsy.com>
142
143 * elf32-arc.c (elf32_arc_reloc_type_class): Defined function to
144 enable support for "-z combreloc" and DT_RELACOUNT.
145 (elf_backend_reloc_type_class): Likewise
146
74d7f0aa
L
1472016-06-11 H.J. Lu <hongjiu.lu@intel.com>
148
149 PR ld/20244
150 * elf32-i386.c (elf_i386_relocate_section): When relocating
151 R_386_GOT32, return error without a base register for PIC and
152 subtract the .got.plt section address only with a base register.
153
ef53be89
AM
1542016-06-10 Alan Modra <amodra@gmail.com>
155
156 * elf-strtab.c (struct strtab_save): Use size_t for "size".
157 (struct elf_strtab_hash): Likewise for "size" and "alloced".
158 (_bfd_elf_strtab_init): Formatting.
159 (_bfd_elf_strtab_add): Return size_t rather than bfd_size_type.
160 (_bfd_elf_strtab_addref): Take size_t idx param.
161 (_bfd_elf_strtab_delref, _bfd_elf_strtab_refcount): Likewise.
162 (_bfd_elf_strtab_offset): Likewise.
163 (_bfd_elf_strtab_clear_all_refs): Use size_t idx.
164 (_bfd_elf_strtab_save): Use size_t "idx" and "size" vars.
165 (_bfd_elf_strtab_restore, _bfd_elf_strtab_emit): Similarly.
166 (_bfd_elf_strtab_finalize): Similarly.
167 * elf-bfd.h (_bfd_elf_strtab_add): Update prototypes.
168 (_bfd_elf_strtab_addref, _bfd_elf_strtab_delref): Likewise.
169 (_bfd_elf_strtab_refcount, _bfd_elf_strtab_offset): Likewise.
170 * elf.c (bfd_elf_get_elf_syms): Calculate symbol buffer size
171 using bfd_size_type.
172 (bfd_section_from_shdr): Delete amt.
173 (_bfd_elf_init_reloc_shdr): Likewise.
174 (_bfd_elf_link_assign_sym_version): Likewise.
175 (assign_section_numbers): Use size_t reloc_count.
176 * elflink.c (struct elf_symbuf_head): Use size_t "count".
177 (bfd_elf_link_record_dynamic_symbol): Use size_t for some vars.
178 (elf_link_is_defined_archive_symbol): Likewise.
179 (elf_add_dt_needed_tag): Likewise.
180 (elf_finalize_dynstr): Likewise.
181 (elf_link_add_object_symbols): Likewise.
182 (bfd_elf_size_dynamic_sections): Likewise.
183 (elf_create_symbuf): Similarly.
184 (bfd_elf_match_symbols_in_sections): Likewise.
185 (elf_link_swap_symbols_out): Likewise.
186 (elf_link_check_versioned_symbol): Likewise.
187 (bfd_elf_gc_record_vtinherit): Likewise.
188 (bfd_elf_gc_common_finalize_got_offsets): Likewise.
189
5c41dbc3
DC
1902016-06-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
191
192 PR ld/20221
193 * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust syms
194 and relocs only if shrinking occurred.
195
6eaa7fb5
L
1962016-06-08 H.J. Lu <hongjiu.lu@intel.com>
197
198 * elf64-i386.c (elf_i386_link_hash_entry): Add tls_get_addr.
199 (elf_i386_link_hash_newfunc): Initialize tls_get_addr to 2.
200 (elf_i386_check_tls_transition): Check indirect call and direct
201 call with the addr32 prefix for general and local dynamic models.
202 Set the tls_get_addr feild.
203 (elf_i386_convert_load_reloc): Always use addr32 prefix for
204 indirect ___tls_get_addr call via GOT.
205 (elf_i386_relocate_section): Handle GD->LE, GD->IE and LD->LE
206 transitions with indirect call and direct call with the addr32
207 prefix.
208
3b67f094
MK
2092016-06-07 Marcin Kościelnicki <koriakin@0x04.net>
210
211 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Fix comment.
212 * elf64-s390.c (elf_s390x_plt_entry): Fix comment.
213 (elf_s390_relocate_section): Fix comment.
214 (elf_s390_finish_dynamic_sections): Fix initialization of fixed
215 .got.plt entries.
216
161db279
AK
2172016-06-07 Ulrich Weigand <ulrich.weigand@de.ibm.com>
218
219 * elf64-s390.c (elf_s390_finish_dynamic_sections): Subtract plt
220 section offset when calculation the larl operand in the first PLT
221 entry.
222
14b57c7c
AM
2232016-06-07 Alan Modra <amodra@gmail.com>
224
225 * cpu-powerpc.c (powerpc_compatible): Allow bfd_mach_ppc_vle entry
226 to match other 32-bit archs.
227 * elf32-ppc.c (_bfd_elf_ppc_set_arch): New function.
228 (ppc_elf_object_p): Call it.
229 (ppc_elf_special_sections): Use APUINFO_SECTION_NAME. Fix
230 overlong line.
231 (APUINFO_SECTION_NAME, APUINFO_LABEL): Don't define here.
232 * elf64-ppc.c (ppc64_elf_object_p): Call _bfd_elf_ppc_set_arch.
233 * bfd-in.h (_bfd_elf_ppc_at_tls_transform,
234 _bfd_elf_ppc_at_tprel_transform): Move to..
235 * elf-bfd.h: ..here.
236 (_bfd_elf_ppc_set_arch): Declare.
237 * bfd-in2.h: Regenerate.
238
e2cbcd91
L
2392016-06-06 H.J. Lu <hongjiu.lu@intel.com>
240
241 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add tls_get_addr.
242 (elf_x86_64_link_hash_newfunc): Initialize tls_get_addr to 2.
243 (elf_x86_64_check_tls_transition): Check indirect call and
244 direct call with the addr32 prefix for general and local dynamic
245 models. Set the tls_get_addr feild.
246 (elf_x86_64_convert_load_reloc): Always use addr32 prefix for
247 indirect __tls_get_addr call via GOT.
248 (elf_x86_64_relocate_section): Handle GD->LE, GD->IE and LD->LE
249 transitions with indirect call and direct call with the addr32
250 prefix.
251
2ac27cd3
CG
2522016-06-04 Christian Groessler <chris@groessler.org>
253
254 * coff-z8k.c (extra_case): Fix range check for R_JR relocation.
255
99914dfd
NC
2562016-06-02 Nick Clifton <nickc@redhat.com>
257
258 PR target/20088
259 * cpu-arm.c (processors): Add "arm_any" type to match any ARM
260 architecture.
261 (arch_info_struct): Likewise.
262 (architectures): Likewise.
263
4ad0bb5f
VG
2642016-06-02 Vineet Gupta <Vineet.Gupta1@synopsys.com>
265
266 * config.bfd: Replace -uclibc with *.
267
3ddf1bdd
L
2682016-06-02 H.J. Lu <hongjiu.lu@intel.com>
269
270 * elf64-x86-64.c: Replace data32 with data16 in comments.
271
5b677558
AM
2722016-05-31 Alan Modra <amodra@gmail.com>
273
274 PR ld/20159
275 PR ld/16467
276 * elflink.c (_bfd_elf_merge_symbol): Revert PR16467 change.
277 (_bfd_elf_add_default_symbol): Don't indirect to/from defined
278 symbol given a version by a script different to the version
279 of the symbol being added.
280 (elf_link_add_object_symbols): Use _bfd_elf_strtab_save and
281 _bfd_elf_strtab_restore. Don't fudge dynstr references.
282 * elf-strtab.c (_bfd_elf_strtab_restore_size): Delete.
283 (struct strtab_save): New.
284 (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): New functions.
285 * elf-bfd.h (_bfd_elf_strtab_restore_size): Delete.
286 (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): Declare.
287
1fe0971e
TS
2882016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
289
290 * elf32-hppa.h: Add extern "C".
291 * elf32-nds32.h: Likewise.
292 * elf32-tic6x.h: Likewise.
293
885a1087
NC
2942016-06-01 Nick Clifton <nickc@redhat.com>
295
296 * po/sr.po: New Serbian translation.
297 * configure.ac (ALL_LINGUAS): Add sr.
298 * configure: Regenerate.
299
99aefae6
MR
3002016-05-28 Maciej W. Rozycki <macro@imgtec.com>
301
302 * elfxx-mips.c (b_reloc_p): New function.
303 (_bfd_mips_elf_relocate_section) <bfd_reloc_outofrange>: Handle
304 branch relocations.
305
77434823
MR
3062016-05-28 Maciej W. Rozycki <macro@imgtec.com>
307
308 * elfxx-mips.c (mips_elf_calculate_relocation): <R_MIPS16_26>
309 <R_MIPS_26, R_MICROMIPS_26_S1>: Drop the region bits of the
310 reloc location from calculation, treat the addend as signed with
311 local non-section symbols and enable overflow detection.
312
1a72702b
AM
3132016-05-28 Alan Modra <amodra@gmail.com>
314
315 * aoutx.h: Adjust linker callback calls throughout file,
316 removing dead code.
317 * bout.c: Likewise.
318 * coff-alpha.c: Likewise.
319 * coff-arm.c: Likewise.
320 * coff-h8300.c: Likewise.
321 * coff-h8500.c: Likewise.
322 * coff-i960.c: Likewise.
323 * coff-mcore.c: Likewise.
324 * coff-mips.c: Likewise.
325 * coff-ppc.c: Likewise.
326 * coff-rs6000.c: Likewise.
327 * coff-sh.c: Likewise.
328 * coff-tic80.c: Likewise.
329 * coff-w65.c: Likewise.
330 * coff-z80.c: Likewise.
331 * coff-z8k.c: Likewise.
332 * coff64-rs6000.c: Likewise.
333 * cofflink.c: Likewise.
334 * ecoff.c: Likewise.
335 * elf-bfd.h: Likewise.
336 * elf-m10200.c: Likewise.
337 * elf-m10300.c: Likewise.
338 * elf32-arc.c: Likewise.
339 * elf32-arm.c: Likewise.
340 * elf32-avr.c: Likewise.
341 * elf32-bfin.c: Likewise.
342 * elf32-cr16.c: Likewise.
343 * elf32-cr16c.c: Likewise.
344 * elf32-cris.c: Likewise.
345 * elf32-crx.c: Likewise.
346 * elf32-d10v.c: Likewise.
347 * elf32-epiphany.c: Likewise.
348 * elf32-fr30.c: Likewise.
349 * elf32-frv.c: Likewise.
350 * elf32-ft32.c: Likewise.
351 * elf32-h8300.c: Likewise.
352 * elf32-hppa.c: Likewise.
353 * elf32-i370.c: Likewise.
354 * elf32-i386.c: Likewise.
355 * elf32-i860.c: Likewise.
356 * elf32-ip2k.c: Likewise.
357 * elf32-iq2000.c: Likewise.
358 * elf32-lm32.c: Likewise.
359 * elf32-m32c.c: Likewise.
360 * elf32-m32r.c: Likewise.
361 * elf32-m68hc1x.c: Likewise.
362 * elf32-m68k.c: Likewise.
363 * elf32-mep.c: Likewise.
364 * elf32-metag.c: Likewise.
365 * elf32-microblaze.c: Likewise.
366 * elf32-moxie.c: Likewise.
367 * elf32-msp430.c: Likewise.
368 * elf32-mt.c: Likewise.
369 * elf32-nds32.c: Likewise.
370 * elf32-nios2.c: Likewise.
371 * elf32-or1k.c: Likewise.
372 * elf32-ppc.c: Likewise.
373 * elf32-s390.c: Likewise.
374 * elf32-score.c: Likewise.
375 * elf32-score7.c: Likewise.
376 * elf32-sh.c: Likewise.
377 * elf32-sh64.c: Likewise.
378 * elf32-spu.c: Likewise.
379 * elf32-tic6x.c: Likewise.
380 * elf32-tilepro.c: Likewise.
381 * elf32-v850.c: Likewise.
382 * elf32-vax.c: Likewise.
383 * elf32-visium.c: Likewise.
384 * elf32-xstormy16.c: Likewise.
385 * elf32-xtensa.c: Likewise.
386 * elf64-alpha.c: Likewise.
387 * elf64-hppa.c: Likewise.
388 * elf64-ia64-vms.c: Likewise.
389 * elf64-mmix.c: Likewise.
390 * elf64-ppc.c: Likewise.
391 * elf64-s390.c: Likewise.
392 * elf64-sh64.c: Likewise.
393 * elf64-x86-64.c: Likewise.
394 * elflink.c: Likewise.
395 * elfnn-aarch64.c: Likewise.
396 * elfnn-ia64.c: Likewise.
397 * elfxx-mips.c: Likewise.
398 * elfxx-sparc.c: Likewise.
399 * elfxx-tilegx.c: Likewise.
400 * linker.c: Likewise.
401 * pdp11.c: Likewise.
402 * pe-mips.c: Likewise.
403 * reloc.c: Likewise.
404 * reloc16.c: Likewise.
405 * simple.c: Likewise.
406 * vms-alpha.c: Likewise.
407 * xcofflink.c: Likewise.
408 * elf32-rl78.c (get_symbol_value, get_romstart, get_ramstart): Delete
409 status param. Adjust calls to these and linker callbacks throughout.
410 * elf32-rx.c: (get_symbol_value, get_gp, get_romstart,
411 get_ramstart): Delete status param. Adjust calls to these and
412 linker callbacks throughout.
413
bc27bb05
MR
4142016-05-27 Maciej W. Rozycki <macro@imgtec.com>
415
416 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS16_26>
417 <R_MIPS_26, R_MICROMIPS_26_S1>: Include the addend in JALX's
418 target alignment verification.
419
ceab86af
MR
4202016-05-27 Maciej W. Rozycki <macro@imgtec.com>
421
422 * elfxx-mips.c (mips_elf_calculate_relocation): Also use the
423 section name if `bfd_elf_string_from_elf_section' returns an
424 empty string.
425
ed53407e
MR
4262016-05-26 Maciej W. Rozycki <macro@imgtec.com>
427
428 * elfxx-mips.c (_bfd_mips_elf_relocate_section)
429 <bfd_reloc_outofrange>: Use the `%X%H' rather than `%C' format
430 for message. Continue processing rather than returning failure.
431
de341542 4322016-05-25 Maciej W. Rozycki <macro@imgtec.com>
ed53407e 433
de341542
MR
434 * elfxx-mips.c (_bfd_mips_elf_relocate_section)
435 <bfd_reloc_outofrange>: Call `->einfo' rather than `->warning'.
436 Call `bfd_set_error'.
437
e6cc316a
L
4382016-05-25 H.J. Lu <hongjiu.lu@intel.com>
439
440 PR binutils/14625
441 * archive.c (bfd_slurp_armap): Replace
442 bfd_elf64_archive_slurp_armap with
443 _bfd_archive_64_bit_slurp_armap.
444 (bsd_write_armap): Call _bfd_archive_64_bit_write_armap if
445 BFD64 is defined and the archive is too big.
446 (coff_write_armap): Likewise.
447 * archive64.c (bfd_elf64_archive_slurp_armap): Renamed to ...
448 (_bfd_archive_64_bit_slurp_armap): This.
449 (bfd_elf64_archive_write_armap): Renamed to ...
450 (_bfd_archive_64_bit_write_armap): This.
451 * configure.ac: Add --enable-64-bit-archive.
452 (want_64_bit_archive): New. Set to true by default for 64-bit
453 MIPS and s390 ELF targets.
454 (USE_64_BIT_ARCHIVE): New AC_DEFINE.
455 * config.in: Regenerated.
456 * configure: Likewise.
457 * elf64-mips.c (bfd_elf64_archive_functions): Removed.
458 (bfd_elf64_archive_slurp_armap): Likewise.
459 (bfd_elf64_archive_write_armap): Likewise.
460 (bfd_elf64_archive_slurp_extended_name_table): Likewise.
461 (bfd_elf64_archive_construct_extended_name_table): Likewise.
462 (bfd_elf64_archive_truncate_arname): Likewise.
463 (bfd_elf64_archive_read_ar_hdr): Likewise.
464 (bfd_elf64_archive_write_ar_hdr): Likewise.
465 (bfd_elf64_archive_openr_next_archived_file): Likewise.
466 (bfd_elf64_archive_get_elt_at_index): Likewise.
467 (bfd_elf64_archive_generic_stat_arch_elt): Likewise.
468 (bfd_elf64_archive_update_armap_timestamp): Likewise.
469 * elf64-s390.c (bfd_elf64_archive_functions): Removed.
470 (bfd_elf64_archive_slurp_armap): Likewise.
471 (bfd_elf64_archive_write_armap): Likewise.
472 (bfd_elf64_archive_slurp_extended_name_table): Likewise.
473 (bfd_elf64_archive_construct_extended_name_table): Likewise.
474 (bfd_elf64_archive_truncate_arname): Likewise.
475 (bfd_elf64_archive_read_ar_hdr): Likewise.
476 (bfd_elf64_archive_write_ar_hdr): Likewise.
477 (bfd_elf64_archive_openr_next_archived_file): Likewise.
478 (bfd_elf64_archive_get_elt_at_index): Likewise.
479 (bfd_elf64_archive_generic_stat_arch_elt): Likewise.
480 (bfd_elf64_archive_update_armap_timestamp): Likewise.
481 * elfxx-target.h (TARGET_BIG_SYM): Use _bfd_archive_64_bit on
482 BFD_JUMP_TABLE_ARCHIVE if USE_64_BIT_ARCHIVE is defined and
483 bfd_elfNN_archive_functions isn't defined.
484 (TARGET_LITTLE_SYM): Likewise.
485 * libbfd-in.h (_bfd_archive_64_bit_slurp_armap): New prototype.
486 (_bfd_archive_64_bit_write_armap): Likewise.
487 (_bfd_archive_64_bit_slurp_extended_name_table): New macro.
488 (_bfd_archive_64_bit_construct_extended_name_table): Likewise.
489 (_bfd_archive_64_bit_truncate_arname): Likewise.
490 (_bfd_archive_64_bit_read_ar_hdr): Likewise.
491 (_bfd_archive_64_bit_write_ar_hdr): Likewise.
492 (_bfd_archive_64_bit_openr_next_archived_file): Likewise.
493 (_bfd_archive_64_bit_get_elt_at_index): Likewise.
494 (_bfd_archive_64_bit_generic_stat_arch_elt): Likewise.
495 (_bfd_archive_64_bit_update_armap_timestamp): Likewise.
496 * libbfd.h: Regenerated.
497 * plugin.c (plugin_vec): Use _bfd_archive_64_bit on
498 BFD_JUMP_TABLE_ARCHIVE if USE_64_BIT_ARCHIVE is defined.
499
b95a0a31
L
5002016-05-25 H.J. Lu <hongjiu.lu@intel.com>
501
502 PR ld/20103
503 * cofflink.c (coff_link_check_archive_element): Return TRUE if
504 linker add_archive_element callback returns FALSE.
505 * ecoff.c (ecoff_link_check_archive_element): Likewise.
506 * elf64-ia64-vms.c (elf64_vms_link_add_archive_symbols): Skip
507 archive element if linker add_archive_element callback returns
508 FALSE.
509 * elflink.c (elf_link_add_archive_symbols): Likewise.
510 * pdp11.c (aout_link_check_ar_symbols): Likewise.
511 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Likewise.
512 * xcofflink.c (xcoff_link_check_dynamic_ar_symbols): Likewise.
513 (xcoff_link_check_ar_symbols): Likewise.
514
7db9a74e
MR
5152016-05-24 Maciej W. Rozycki <macro@imgtec.com>
516
517 * elfxx-mips.c (_bfd_mips_elf_relocate_section)
518 <bfd_reloc_outofrange>: Unify error reporting code.
519
b7f28d87
JW
5202016-05-23 Jim Wilson <jim.wilson@linaro.org>
521
522 * elfnn-aarch64.c: Unconditionally enable R_AARCH64_NULL and
523 R_AARCH64_NONE. Use HOWTO64 for R_AARCH64_NULL.
524 * relocs.c: Add BFD_RELOC_AARCH64_NULL.
525 * bfd-in2.h: Regenerate.
526 * libbfd.h: Likewise.
527
a2bea324
KS
5282016-05-23 Kuba Sejdak <jakub.sejdak@phoesys.com>
529
530 * config.bfd: Add entry for arm-phoenix.
531
d7c5bd02
TP
5322016-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
533
534 * elf32-arm.c (arm_dedicated_stub_section_padding): New function.
535 (elf32_arm_size_stubs): Declare stub_type in a more outer scope and
536 account for padding for stub section requiring one.
537 (elf32_arm_build_stubs): Add comment to stress the importance of
538 zeroing veneer section content.
539
daa4adae
TP
5402016-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
541
542 * bfd-in.h (bfd_elf32_arm_keep_private_stub_output_sections): Declare
543 bfd hook.
544 * bfd-in2.h: Regenerate.
545 * elf32-arm.c (arm_dedicated_stub_output_section_required): New
546 function.
547 (arm_dedicated_stub_output_section_required_alignment): Likewise.
548 (arm_dedicated_stub_output_section_name): Likewise.
549 (arm_dedicated_stub_input_section_ptr): Likewise.
550 (elf32_arm_create_or_find_stub_sec): Add stub type parameter and
551 function description comment. Add support for dedicated output stub
552 section to given stub types.
553 (elf32_arm_add_stub): Add a stub type parameter and pass it down to
554 elf32_arm_create_or_find_stub_sec.
555 (elf32_arm_create_stub): Pass stub type down to elf32_arm_add_stub.
556 (elf32_arm_size_stubs): Pass stub type when calling
557 elf32_arm_create_or_find_stub_sec for Cortex-A8 erratum veneers.
558 (bfd_elf32_arm_keep_private_stub_output_sections): New function.
559
52bf37dd
L
5602016-05-20 H.J. Lu <hongjiu.lu@intel.com>
561
562 * elf32-i386.c (elf_i386_check_relocs): Don't check R_386_GOT32
563 when setting need_convert_load.
564
17c6c9d9
MR
5652016-05-20 Maciej W. Rozycki <macro@imgtec.com>
566
567 * elfxx-mips.c (mips_elf_read_rel_addend): Adjust the addend for
568 microMIPS JALX.
569
7d4d9709
L
5702016-05-19 H.J. Lu <hongjiu.lu@intel.com>
571
572 PR ld/20117
573 * elf32-i386.c (elf_i386_convert_load_reloc): Don't check
574 R_386_GOT32X.
575 (elf_i386_convert_load): Don't convert R_386_GOT32.
576
606851fb
AM
5772016-05-20 Alan Modra <amodra@gmail.com>
578
579 PR gas/20118
580 * elf.c (elf_fake_sections): Set sh_entsize for SHT_INIT_ARRAY,
581 SHT_FINI_ARRAY, and SHT_PREINIT_ARRAY.
582
3c8adaca
CZ
5832016-05-19 Cupertino Miranda <cmiranda@synopsys.com>
584
585 * elf32-arc.c (arc_elf_final_write_processing): Changed.
586 (debug_arc_reloc): Likewise.
587 (elf_arc_relocate_section): Likewise.
588 (elf_arc_check_relocs): Likewise.
589 (elf_arc_adjust_dynamic_symbol): Likewise.
590 (elf_arc_add_symbol_hook): Likewise.
591
6b200de0
MR
5922016-05-19 Maciej W. Rozycki <macro@imgtec.com>
593
594 * config.bfd: Remove `am34-*-linux*' support.
595
57e7d118
AM
5962016-05-19 Alan Modra <amodra@gmail.com>
597
598 * elf64-ppc.c (allocate_dynrelocs): Allocate got and other dynamic
599 relocs before plt relocs.
600
9f284bf9
AM
6012016-05-19 Alan Modra <amodra@gmail.com>
602
603 * elf64-ppc.c (ppc64_elf_branch_reloc): Check for NULL owner
604 before dereferencing.
605
50498060
NC
6062016-05-18 Nick Clifton <nickc@redhat.com>
607
608 * po/sv.po: Updated Swedish translation.
609
7f991970
AM
6102016-05-18 Alan Modra <amodra@gmail.com>
611
612 * elf32-arm.c (elf32_arm_size_stubs): Free or cache local syms
613 for each BFD. Don't goto error_ret_free_local from outside loop.
614
a43942db
MR
6152016-05-17 Maciej W. Rozycki <macro@imgtec.com>
616
617 * elf-s390-common.c (elf_s390_add_symbol_hook): Remove
618 STB_GNU_UNIQUE handling.
619 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
620 * elf32-arm.c (elf32_arm_add_symbol_hook): Likewise.
621 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
622 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
623 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
624 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
625 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
626 * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
627 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
628 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Likewise.
629 * elf32-i386.c (elf_i386_add_symbol_hook): Remove function.
630 (elf_backend_add_symbol_hook): Remove macro.
631 * elflink.c (elf_link_add_object_symbols): Set `has_gnu_symbols'
632 for STB_GNU_UNIQUE symbols.
633
71de3413
MR
6342016-05-16 Maciej W. Rozycki <macro@imgtec.com>
635
636 * elf32-v850.c (v850_elf_copy_notes): New function, factored out
637 from...
638 (v850_elf_copy_private_bfd_data): ... here. Call the new
639 function and `_bfd_elf_copy_private_bfd_data'.
640
2168b268
L
6412016-05-13 H.J. Lu <hongjiu.lu@intel.com>
642
643 PR ld/20093
644 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Don't convert
645 GOTPCREL relocation against large section.
646
4ade44b7
AM
6472016-05-13 Alan Modra <amodra@gmail.com>
648
649 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_sections): Use
650 linker dynamic sections in calculating size and address of
2168b268 651 dynamic tags rather than using output sections. Remove asserts.
4ade44b7
AM
652 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Likewise.
653 * elf32-cr16.c (_bfd_cr16_elf_finish_dynamic_sections): Likewise.
654 * elf32-cris.c (elf_cris_finish_dynamic_sections): Likewise.
655 * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
656 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Likewise.
657 * elf32-m32r.c (m32r_elf_finish_dynamic_sections): Likewise.
658 * elf32-m68k.c (elf_m68k_finish_dynamic_sections): Likewise.
659 * elf32-metag.c (elf_metag_finish_dynamic_sections): Likewise.
660 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Likewise.
661 * elf32-nds32.c (nds32_elf_finish_dynamic_sections): Likewise.
662 * elf32-nios2.c (nios2_elf32_finish_dynamic_sections): Likewise.
663 * elf32-or1k.c (or1k_elf_finish_dynamic_sections): Likewise.
664 * elf32-s390.c (elf_s390_finish_dynamic_sections): Likewise.
665 * elf32-score.c (s3_bfd_score_elf_finish_dynamic_sections): Likewise.
666 * elf32-score7.c (s7_bfd_score_elf_finish_dynamic_sections): Likewise.
667 * elf32-vax.c (elf_vax_finish_dynamic_sections): Likewise.
668 * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Likewise.
669 * elf64-alpha.c (elf64_alpha_finish_dynamic_sections): Likewise.
670 * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise.
671 * elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise.
672 * elflink.c (bfd_elf_final_link): Likewise.
673 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise.
674 * elfxx-sparc.c (sparc_finish_dyn): Likewise. Adjust error message.
675 * elf32-arc.c (GET_SYMBOL_OR_SECTION): Remove ASSERT arg and
676 don't set doit. Look up dynobj section.
677 (elf_arc_finish_dynamic_sections): Adjust GET_SYMBOL_OR_SECTION
678 invocation and dynamic tag vma calculation. Don't test
679 boolean var == TRUE.
680 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_sections): Fix
681 DT_JMPREL calc.
682
c8e44c6d
AM
6832016-05-13 Alan Modra <amodra@gmail.com>
684
685 * elflink.c (elf_link_sort_relocs): Wrap overlong lines. Fix
686 octets_per_byte. Put dynamic .rela.plt last in link orders.
687 Assign output_offset for reloc sections rather than writing
688 sorted relocs from block corresponding to output_offset.
689
1997c994
AM
6902016-05-12 Alan Modra <amodra@gmail.com>
691
692 * elf-bfd.h (elf_reloc_type_class): Put reloc_class_plt last.
693
8f4f9071
MF
6942016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
695
696 * elfxx-mips.c (print_mips_ases): Add DSPR3.
697
a464198b
AM
6982016-05-11 Alan Modra <amodra@gmail.com>
699
700 * elf32-hppa.c (elf32_hppa_init_stub_bfd): New function.
701 (elf32_hppa_check_relocs): Don't set dynobj.
702 (elf32_hppa_size_stubs): Test !SEC_LINKER_CREATED for stub sections.
703 (elf32_hppa_build_stubs): Likewise.
704 * elf32-hppa.h (elf32_hppa_init_stub_bfd): Declare.
705
3bd43ebc
AM
7062016-05-11 Alan Modra <amodra@gmail.com>
707
708 PR 20060
709 * elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local.
710 * elf32-ppc.c (ppc_elf_tls_setup): Likewise.
711
4e7fbb34
JW
7122016-05-10 Jiong Wang <jiong.wang@arm.com>
713
714 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Remove redundant
715 aarch64_tls_transition check.
716
4f4faa4d
TP
7172016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
718
719 * elf32-arm.c (enum elf32_arm_stub_type): New max_stub_type
720 enumerator.
721 (arm_stub_sym_claimed): New function.
722 (elf32_arm_create_stub): Use veneered symbol name and section if
723 veneer needs to claim its symbol, and keep logic unchanged otherwise.
724 (arm_stub_claim_sym): New function.
725 (arm_map_one_stub): Call arm_stub_claim_sym if veneer needs to claim
726 veneered symbol, otherwise create local symbol as before.
727
39d911fc
TP
7282016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
729
730 * elf32-arm.c (elf32_arm_size_stubs): Use new macros
731 ARM_GET_SYM_BRANCH_TYPE and ARM_SET_SYM_BRANCH_TYPE to respectively get
732 and set branch type of a symbol.
733 (bfd_elf32_arm_process_before_allocation): Likewise.
734 (elf32_arm_relocate_section): Likewise and fix identation along the
735 way.
736 (allocate_dynrelocs_for_symbol): Likewise.
737 (elf32_arm_finish_dynamic_symbol): Likewise.
738 (elf32_arm_swap_symbol_in): Likewise.
739 (elf32_arm_swap_symbol_out): Likewise.
740
6bde4c52
TP
7412016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
742
743 * bfd-in.h (elf32_arm_size_stubs): Add an output section parameter.
744 * bfd-in2.h: Regenerated.
745 * elf32-arm.c (struct elf32_arm_link_hash_table): Add an output section
746 parameter to add_stub_section callback.
747 (elf32_arm_create_or_find_stub_sec): Get output section from link_sec
748 and pass it down to add_stub_section.
749 (elf32_arm_add_stub): Set section to stub_sec if NULL before using it
750 for error message.
751 (elf32_arm_size_stubs): Add output section parameter to
752 add_stub_section function pointer parameter.
753
b715f643
TP
7542016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
755
756 * elf32-arm.c (elf32_arm_create_stub): New function.
757 (elf32_arm_size_stubs): Use elf32_arm_create_stub for stub creation.
758
8d9d9490
TP
7592016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
760
761 * elf32-arm.c (enum elf32_arm_stub_type): Delete
762 arm_stub_a8_veneer_lwm enumerator.
763 (arm_stub_a8_veneer_lwm): New unsigned constant to replace
764 aforementioned enumerator.
765 (struct elf32_arm_stub_hash_entry): Delete target_addend
766 field and add source_value.
767 (struct a8_erratum_fix): Delete addend field and add target_offset.
768 (stub_hash_newfunc): Initialize source_value field amd remove
769 initialization for target_addend.
770 (arm_build_one_stub): Stop special casing Thumb relocations: promote
771 the else to being always executed, moving the
772 arm_stub_a8_veneer_b_cond specific code in it. Remove
773 stub_entry->target_addend from points_to computation.
774 (cortex_a8_erratum_scan): Store in a8_erratum_fix structure the offset
775 to target symbol from start of section rather than the offset from the
776 stub address.
777 (elf32_arm_size_stubs): Set stub_entry's source_value and target_value
778 fields from struct a8_erratum_fix's offset and target_offset
779 respectively.
780 (make_branch_to_a8_stub): Rename target variable to loc. Compute
781 veneered_insn_loc and loc using stub_entry's source_value.
782
15afaa63
TP
7832016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
784
785 (elf32_arm_merge_eabi_attributes): Add merging logic for
786 Tag_DSP_extension.
787
66a36822
PC
7882016-05-10 Pip Cet <pipcet@gmail.com>
789
790 PR ld/20059
791 * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type):
792 Define as _bfd_generic_copy_link_hash_symbol_type when using
793 generic hash table.
794
315350be
NC
7952016-05-09 Nick Clifton <nickc@redhat.com>
796
797 PR binutils/20063
798 * elf.c (bfd_elf_get_elf_syms): Check for out of range sh_link
799 field before accessing sections array.
800
9239bbd3
CM
8012016-05-09 Christophe Monat <christophe.monat@st.com>
802
803 PR ld/20030
804 * elf32-arm.c (is_thumb2_vldm): Account for T1 (DP) encoding.
805 (stm32l4xx_need_create_replacing_stub): Rename ambiguous nb_regs
806 to nb_words.
807 (create_instruction_vldmia): Add is_dp to disambiguate SP/DP
808 encoding.
809 (create_instruction_vldmdb): Likewise.
810 (stm32l4xx_create_replacing_stub_vldm): is_dp detects DP encoding,
811 uses it to re-encode.
812
73597c18
NC
8132016-05-09 Nick Clifton <nickc@redhat.com>
814
815 PR 19938
816 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Revert accidental
817 commit.
818
ae1bb197
AM
8192016-05-09 Alan Modra <amodra@gmail.com>
820
821 * elf64-ppc.c (ppc64_elf_init_stub_bfd): Remove redundant NULL check.
822
97196564
L
8232016-05-06 H.J. Lu <hongjiu.lu@intel.com>
824
825 PR ld/17550
826 * elf-bfd.h (elf_link_hash_entry): Update comments for indx,
827 documenting that indx == -3 if symbol is defined in a discarded
828 section.
829 * elflink.c (elf_link_add_object_symbols): Set indx to -3 if
830 symbol is defined in a discarded section.
831 (elf_link_output_extsym): Strip a global symbol defined in a
832 discarded section.
833
030e823c
L
8342016-05-06 H.J. Lu <hongjiu.lu@intel.com>
835
836 * elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel
837 MCU.
838
c175a657
L
8392016-05-05 H.J. Lu <hongjiu.lu@intel.com>
840
841 * elf32-i386.c (elf_i386_convert_load): Extract the GOT load
842 conversion to ...
843 (elf_i386_convert_load_reloc): This. New function.
844 * elf64-x86-64.c (elf_x86_64_convert_load): Extract the GOT load
845 conversion to ...
846 (elf_x86_64_convert_load_reloc): This. New function.
847
bedfd056
L
8482016-05-05 H.J. Lu <hongjiu.lu@intel.com>
849
850 * elf32-i386.c (elf_i386_check_tls_transition): Remove abfd.
851 Don't check if contents == NULL.
852 (elf_i386_tls_transition): Add from_relocate_section. Check
853 from_relocate_section instead of contents != NULL. Update
854 elf_i386_check_tls_transition call.
855 (elf_i386_check_relocs): Cache the section contents if
856 keep_memory is FALSE. Pass FALSE as from_relocate_section to
857 elf_i386_tls_transition.
858 (elf_i386_relocate_section): Pass TRUE as from_relocate_section
859 to elf_i386_tls_transition.
860 (elf_backend_caches_rawsize): New.
861 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Don't check
862 if contents == NULL.
863 (elf_x86_64_tls_transition): Add from_relocate_section. Check
864 from_relocate_section instead of contents != NULL.
865 (elf_x86_64_check_relocs): Cache the section contents if
866 keep_memory is FALSE. Pass FALSE as from_relocate_section to
867 elf_x86_64_tls_transition.
868 (elf_x86_64_relocate_section): Pass TRUE as from_relocate_section
869 to elf_x86_64_tls_transition.
870 (elf_backend_caches_rawsize): New.
871
6d6a648c
MR
8722016-05-03 Maciej W. Rozycki <macro@imgtec.com>
873
874 PR 10549
875 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Handle
876 STB_GNU_UNIQUE.
877
1f56df9d
JW
8782016-05-03 Jiong Wang <jiong.wang@arm.com>
879
880 * bfd-in.h (bfd_elf64_aarch64_set_options): Update prototype.
881 * bfd-in2.h (bfd_elf64_aarch64_set_options): Likewise.
882 * elfnn-aarch64.c (bfd_elfNN_aarch64_set_options): Initialize
883 no_apply_dynamic_relocs.
884 (elfNN_aarch64_final_link_relocate): Apply absolute relocations even though
885 dynamic relocations generated.
886
493f652c
L
8872016-04-29 H.J. Lu <hongjiu.lu@intel.com>
888
889 * elf32-i386.c (elf_i386_size_dynamic_sections): Move interp
890 setting to ...
891 (elf_i386_create_dynamic_sections): Here.
892 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Move
893 interp setting to ...
894 (elf_x86_64_create_dynamic_sections): Here.
895
e62b9723
L
8962016-04-29 H.J. Lu <hongjiu.lu@intel.com>
897
898 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take GOT_RELOC
899 and replace (EH)->has_got_reloc with GOT_RELOC.
900 (elf_i386_fixup_symbol): Pass has_got_reloc to
901 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
902 (elf_i386_allocate_dynrelocs): Likewise.
903 (elf_i386_relocate_section): Likewise.
904 (elf_i386_finish_dynamic_symbol): Likewise.
905 (elf_i386_convert_load): Pass TRUE to
906 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
907 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take
908 GOT_RELOC and replace (EH)->has_got_reloc with GOT_RELOC.
909 (elf_x86_64_fixup_symbol): Pass has_got_reloc to
910 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
911 (elf_x86_64_allocate_dynrelocs): Likewise.
912 (elf_x86_64_relocate_section): Likewise.
913 (elf_x86_64_finish_dynamic_symbol): Likewise.
914 (elf_x86_64_convert_load): Pass TRUE to
915 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
916
c337a162
L
9172016-04-29 H.J. Lu <hongjiu.lu@intel.com>
918
919 * elf32-i386.c (check_relocs_failed): New.
920 (elf_i386_check_relocs): Set check_relocs_failed on error.
921 (elf_i386_relocate_section): Skip if check_relocs failed.
922
afd9acee
L
9232016-04-29 H.J. Lu <hongjiu.lu@intel.com>
924
925 * elf64-x86-64.c (elf_x86_64_check_relocs): Set
926 check_relocs_failed on error.
927
5522f910
NC
9282016-04-29 Nick Clifton <nickc@redhat.com>
929
930 PR 19938
931 * elf-bfd.h (struct elf_backend_data): Rename
932 elf_backend_set_special_section_info_and_link to
933 elf_backend_copy_special_section_fields.
934 * elfxx-target.h: Likewise.
935 * elf.c (section_match): Ignore the SHF_INFO_LINK flag when
936 comparing section flags.
937 (copy_special_section_fields): New function.
938 (_bfd_elf_copy_private_bfd_data): Copy the EI_ABIVERSION field.
939 Perform two scans over special sections. The first one looks for
940 a direct mapping between the output section and an input section.
941 The second scan looks for a possible match based upon section
942 characteristics.
943 * elf32-arm.c (elf32_arm_copy_special_section_fields): New
944 function. Handle setting the sh_link field of SHT_ARM_EXIDX
945 sections.
946 * elf32-i386.c (elf32_i386_set_special_info_link): Rename to
947 elf32_i386_copy_solaris_special_section_fields.
948 * elf32-sparc.c (elf32_sparc_set_special_section_info_link):
949 Rename to elf32_sparc_copy_solaris_special_section_fields.
950 * elf64-x86-64.c (elf64_x86_64_set_special_info_link): Rename to
951 elf64_x86_64_copy_solaris_special_section_fields.
952
786a118c
NC
9532016-04-28 Nick Clifton <nickc@redhat.com>
954
955 * po/zh_CN.po: Updated Chinese (simplified) translation.
956
91f8bf69
L
9572016-04-27 H.J. Lu <hongjiu.lu@intel.com>
958
959 PR ld/20006
960 * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections
961 when estimating distances between output sections.
962
a6a4679f
AM
9632016-04-27 Alan Modra <amodra@gmail.com>
964
965 * elflink.c (_bfd_elf_is_start_stop): New function.
966 (_bfd_elf_gc_mark_rsec): Use it.
967 * elf-bfd.h (_bfd_elf_is_start_stop): Declare.
968
28cc9170
TS
9692016-04-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
970
971 * elf32-rx.c (rx_set_section_contents): Avoid arithmetic on void *.
972 * mmo.c (mmo_get_section_contents): Likewise.
973 (mmo_set_section_contents): Likewise.
974
d5486c43
L
9752016-04-26 H.J. Lu <hongjiu.lu@intel.com>
976
977 * elf-bfd.h (elf_link_hash_table): Update comments for
978 dynsymcount.
979 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for
980 the unused NULL entry at the head of dynamic symbol table.
981 (bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0
982 checks.
983
6645479e
L
9842016-04-21 H.J. Lu <hongjiu.lu@intel.com>
985
986 * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker
987 created file from dynobj.
988
6cd255ca
L
9892016-04-21 H.J. Lu <hongjiu.lu@intel.com>
990
991 * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a
992 normal input file if possible.
993
4f3b23b3
NC
9942016-04-21 Nick Clifton <nickc@redhat.com>
995
996 * aout-adobe.c: Use _bfd_generic_link_check_relocs.
997 * aout-target.h: Likewise.
998 * aout-tic30.c: Likewise.
999 * binary.c: Likewise.
1000 * bout.c: Likewise.
1001 * coff-alpha.c: Likewise.
1002 * coff-rs6000.c: Likewise.
1003 * coff64-rs6000.c: Likewise.
1004 * coffcode.h: Likewise.
1005 * i386msdos.c: Likewise.
1006 * i386os9k.c: Likewise.
1007 * ieee.c: Likewise.
1008 * ihex.c: Likewise.
1009 * libbfd-in.h: Likewise.
1010 * libecoff.h: Likewise.
1011 * mach-o-target.c: Likewise.
1012 * mmo.c: Likewise.
1013 * nlm-target.h: Likewise.
1014 * oasys.c: Likewise.
1015 * pef.c: Likewise.
1016 * plugin.c: Likewise.
1017 * ppcboot.c: Likewise.
1018 * som.c: Likewise.
1019 * srec.c: Likewise.
1020 * tekhex.c: Likewise.
1021 * versados.c: Likewise.
1022 * vms-alpha.c: Likewise.
1023 * xsym.c: Likewise.
1024 * elfxx-target.h: Use _bfd_elf_link_check_relocs.
1025 * linker.c (bfd_link_check_relocs): New function.
1026 (_bfd_generic_link_check_relocs): New function.
1027 * targets.c (BFD_JUMP_TABLE_LINK): Add initialization of
1028 _bfd_link_check_relocs field.
1029 (struct bfd_target)L Add _bfd_link_check_relocs field.
1030 * bfd-in2.h: Regenerate.
1031 * libbfd.h: Regenerate.
1032
e66cdd68
L
10332016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1034
1035 * elf32-i386.c (elf_i386_gc_sweep_hook): Removed.
1036 (elf_backend_gc_sweep_hook): Likewise.
1037 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
1038 (elf_backend_gc_sweep_hook): Likewise.
1039
5ce03cea
L
10402016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1041
1042 * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations
1043 in excluded sections
1044
338c190a
L
10452016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1046
1047 PR ld/19969
1048 * elf64-x86-64.c (check_relocs_failed): New.
1049 (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs.
1050 Support relocation agaist local symbol. Set check_relocs_failed.
1051 (elf_x86_64_check_relocs): Use elf_x86_64_need_pic. Check
1052 R_X86_64_32 relocation overflow.
1053 (elf_x86_64_relocate_section): Skip if check_relocs failed.
1054 Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic.
1055
466ee2af
L
10562016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1057
1058 * elf32-i386.c (elf_i386_check_relocs): Call
1059 _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol.
1060 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1061
d9689752
L
10622016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1063
1064 * elf-bfd.h (_bfd_elf_link_check_relocs): New.
1065 * elflink.c (_bfd_elf_link_check_relocs): New function.
1066 (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs
1067 if check_relocs_after_open_input is FALSE.
1068
e6c7cdec
TS
10692016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1070
1071 * cache.c: Update old style function definitions.
1072 * elf32-m68k.c: Likewise.
1073 * elf64-mmix.c: Likewise.
1074 * stab-syms.c: Likewise.
1075
b98e6871
TS
10762016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1077
1078 * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
1079
6fd8e7c2
L
10802016-04-15 H.J. Lu <hongjiu.lu@intel.com>
1081
1082 * Makefile.in: Regenerated with automake 1.11.6.
1083 * aclocal.m4: Likewise.
1084 * doc/Makefile.in: Likewise.
1085
4b0c052e
AB
10862016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
1087
1088 * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry.
1089 * bfd-in2.h: Regenerate.
1090 * libbfd.h: Regenerate.
1091 * elf32-arc.c: Add 'opcode/arc.h' include.
1092 (struct arc_relocation_data): Add symbol_name.
1093 (arc_special_overflow_checks): New function.
1094 (arc_do_relocation): Use arc_special_overflow_checks, reindent as
1095 required, add an extra comment.
1096 (elf_arc_relocate_section): Setup symbol_name in reloc_data.
1097
33cbe6c0
AB
10982016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all
1101 entries.
1102 (elf_arc_relocate_section): Update enum uses.
1103 (elf_arc_check_relocs): Likewise.
1104 (elf_arc_finish_dynamic_symbol): Likewise.
1105
7634c4e6
L
11062016-04-14 H.J. Lu <hongjiu.lu@intel.com>
1107
1108 * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with
1109 "sh_link".
1110
84865015
NC
11112016-04-14 Nick Clifton <nickc@redhat.com>
1112
1113 PR target/19938
1114 * elf-bbfd.h (struct elf_backend_data): New field:
1115 elf_strtab_flags.
1116 New field: elf_backend_set_special_section_info_and_link
1117 * elfxx-target.h (elf_backend_strtab_flags): Define if not already
1118 defined.
1119 (elf_backend_set_special_section_info_and_link): Define if not
1120 already defined.
1121 (elfNN_bed): Use elf_backend_set_special_section_info_and_link and
1122 elf_backend_strtab_flags macros to initialise fields in structure.
1123 * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS
1124 being set even if SHF_MERGE is not set.
1125 (elf_fake_sections): Likewise.
1126 (section_match): New function. Matches two ELF sections based
1127 upon fixed characteristics.
1128 (find_link): New function. Locates a section in a BFD that
1129 matches a section in a different BFD.
1130 (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link
1131 fields of reserved sections.
1132 (bfd_elf_compute_section_file_positions): Set the flags for the
1133 .shstrtab section based upon the elf_strtab_flags field in the
1134 elf_backend_data structure.
1135 (swap_out_syms): Likewise for the .strtab section.
1136 * elflink.c (bfd_elf_final_link): Set the flags for the
1137 .strtab section based upon the elf_strtab_flags field in the
1138 elf_backend_data structure.
1139 * elf32-i386.c (elf32_i386_set_special_info_link): New function.
1140 (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris
1141 targets.
1142 (elf_backend_set_special_section_info_and_link): Define for
1143 Solaris targets.
1144 * elf32-sparc.c: Likewise.
1145 * elf64-x86-64.c: Likewise.
1146
2df3368d
L
11472016-04-11 H.J. Lu <hongjiu.lu@intel.com>
1148
1149 PR ld/19939
1150 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer
1151 to bfd_boolean.
1152 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated.
1153 Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc
1154 applies to read-only section.
1155 * elf32-i386.c (elf_i386_link_hash_table): Add
1156 readonly_dynrelocs_against_ifunc.
1157 (elf_i386_allocate_dynrelocs): Updated.
1158 (elf_i386_size_dynamic_sections): Issue an error for read-only
1159 segment with dynamic IFUNC relocations only if
1160 readonly_dynrelocs_against_ifunc is TRUE.
1161 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
1162 readonly_dynrelocs_against_ifunc.
1163 (elf_x86_64_allocate_dynrelocs): Updated.
1164 (elf_x86_64_size_dynamic_sections): Issue an error for read-only
1165 segment with dynamic IFUNC relocations only if
1166 readonly_dynrelocs_against_ifunc is TRUE.
1167 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
1168 Updated.
1169
15dd01b1
TP
11702016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
1171
1172 * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be
1173 a fall through from error_ret_free_internal. Free local_syms in
1174 error_ret_free_local if allocated from bfd_elf_get_elf_syms ().
1175
1e5885b7
CZ
11762016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
1177
1178 * elf32-arc.c (plt_do_relocs_for_symbol): Changed.
1179 (relocate_plt_for_entry): Likewise.
1180
b3aee839
CZ
11812016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
1182
1183 * elf32-arc.c (elf_arc_check_relocs): Changed
1184
094fb063
CZ
11852016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
1186
1187 * elf32-arc.c (name_for_global_symbol): Changed assert.
1188 (get_replace_function): Created.:
1189 (struct arc_relocation_data): Changed to signed types.
1190 (defines S, L, P, PDATA): Casted to signed type.
1191 (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise.
1192 (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed.
1193 (arc_do_relocation): Changed.
1194
94e5c971
CZ
11952016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
1196
1197 * elf32-arc.c (name_for_global_symbol): Added assert to check for
1198 symbol index.
1199 (elf_arc_relocate_section): Added and changed asserts, validating
1200 the synamic symbol index.
1201 (elf_arc_finish_dynamic_symbol): Do not fill the dynamic
1202 relocation if symbol has dynindx set to -1.
1203
1f599d0e
MR
12042016-04-05 Maciej W. Rozycki <macro@imgtec.com>
1205
1206 * elflink.c (elf_link_add_object_symbols): Always turn hidden
1207 and internal symbols which have a dynamic index into local
1208 ones.
1209
67f101ee
NC
12102016-04-04 Nick Clifton <nickc@redhat.com>
1211
1212 PR 19872
1213 * dwarf2.c (parse_comp_unit): Skip warning about unrecognised
1214 version number if the version is zero.
1215
7b15fa7a
AM
12162016-04-01 Alan Modra <amodra@gmail.com>
1217
1218 PR 19886
1219 * elflink.c (on_needed_list): Recursively check needed status.
1220 (elf_link_add_object_symbols): Adjust.
1221
024ea11b
SKS
12222016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1223
1224 * elf32-avr.c (avr_elf32_load_records_from_section): Free
1225 internal_relocs only if they aren't cached.
1226
ed3056eb
NC
12272016-03-29 Nick Clifton <nickc@redhat.com>
1228
1229 PR 17334
1230 * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax
1231 assertion on the size of the got section to allow it to be bigger
1232 than the number of relocs.
1233
e2b4fc91
TS
12342016-03-29 Toni Spets <toni.spets@iki.fi>
1235
1236 PR 19878
1237 * coffcode.h (coff_write_object_contents): Revert accidental
1238 2014-11-10 change.
1239
a97fbc7e
AM
12402016-03-22 Alan Modra <amodra@gmail.com>
1241
1242 PR 19850
1243 * dwarf2.c (read_attribute_value): Skip info_ptr check for
1244 DW_FORM_flag_present.
1245
9780e045
NC
12462016-03-22 Nick Clifton <nickc@redhat.com>
1247
96254e5c
NC
1248 * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an
1249 architecture name for backwards compatibility.
1250
7769fa97
NC
1251 * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible
1252 unbounded stack use.
1253
9780e045
NC
1254 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a
1255 sufficiently recent version of GCC.
1256 * configure: Regenerate.
1257
6f4c0a42
AM
12582016-03-22 Alan Modra <amodra@gmail.com>
1259
1260 PR 19851
1261 * plugin.c (try_load_plugin): Avoid -Wstack-usage warning.
1262
8699fc3e
AB
12632016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * archures.c (bfd_mach_arc_nps400): Define.
1266 * bfd-in2.h: Regenerate.
1267 * cpu-arc.c (arch_info_struct): New entry for nps400, renumber
1268 some existing entries to make space.
1269 * elf32-arc.c (arc_elf_object_p): Add nps400 case.
1270 (arc_elf_final_write_processing): Likewise.
1271
a9522a21
AB
12722016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of
1275 EF_ARC_CPU_GENERIC.
1276 (arc_elf_final_write_processing): Don't bother setting cpu field
1277 in e_flags, this will have been set elsewhere.
1278
c0334580
AB
12792016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1280
1281 * elf32-arc.c (arc_elf_final_write_processing): Switch to using
1282 EF_ARC_MACH_MSK.
1283
e1fa0163
NC
12842016-03-21 Nick Clifton <nickc@redhat.com>
1285
1286 * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144
1287 * configure: Regenerate.
1288 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of
1289 alloca with call to xmalloc.
1290 * elf32-nds32.c: Likewise.
1291 * elf64-hppa.c: Likewise.
1292 * elfxx-mips.c: Likewise.
1293 * pef.c: Likewise.
1294 * pei-x86_64.c: Likewise.
1295 * som.c: Likewise.
1296 * xsym.c: Likewise.
1297
4e0c91e4
L
12982016-03-15 H.J. Lu <hongjiu.lu@intel.com>
1299
1300 PR ld/19827
1301 * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
1302 locally in PIE.
1303 (elf_i386_relocate_section): Likewise.
1304 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1305 (elf_x86_64_relocate_section): Likewise.
1306
4c10bbaa
L
13072016-03-15 H.J. Lu <hongjiu.lu@intel.com>
1308
1309 PR ld/19807
1310 * elf64-x86-64.c (elf_x86_64_relocate_section): Check
1311 no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S
1312 relocation overflow check.
1313
fbe48798
L
13142016-03-14 H.J. Lu <hongjiu.lu@intel.com>
1315
1316 * bfd-in2.h: Regenerated.
1317
37b01f6a
DG
13182016-03-11 Dan Gissel <dgisselq@ieee.org>
1319
1320 PR 19713
1321 * elf.c (_bfd_elf_section_offset): Ensure that the returned offset
1322 uses bytes not octets.
1323 * elflink.c (resolve_section): Likewise.
1324 Add a bfd parameter.
1325 (eval_section): Pass the input_bfd to resolve_section.
1326 (bfd_elf_perform_complex_relocation): Convert byte offset to
1327 octets before read and writing values.
1328 (elf_link_input_bfd): Add byte to octet conversions.
1329 (elf_reloc_link_order): Likewise.
1330 (elf_fixup_link_order): Likewise.
1331 (bfd_elf_final_link): Likewise.
1332 * reloc.c (_bfd_final_link_relocate): Likewise.
1333 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
1334
3ed4ff97
NC
13352016-03-10 Nick Clifton <nickc@redhat.com>
1336
1337 * config.bfd: Mark the i370 target as obsolete.
1338
4b05e0a7
PA
13392016-03-09 Pedro Alves <palves@redhat.com>
1340
1341 * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old
1342 gcc ABI)" to printable name.
1343 * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead
1344 of "v850-rh850" as printable name.
1345
26c62da0
LW
13462016-03-09 Leon Winter <winter-gcc@bfw-online.de>
1347
1348 PR ld/19623
1349 * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
1350 relocations against absolute symbols.
1351
03ee8583
AM
13522016-03-09 Alan Modra <amodra@gmail.com>
1353
1354 PR binutils/19775
1355 * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero
1356 length elements in the archive.
1357
9c1d7a08
L
13582016-03-08 H.J. Lu <hongjiu.lu@intel.com>
1359
1360 PR ld/19789
1361 * elflink.c (elf_link_add_object_symbols): Create dynamic sections
1362 for -E/--dynamic-list only when not relocatable.
1363
d1ed1c7d
L
13642016-03-08 H.J. Lu <hongjiu.lu@intel.com>
1365
1366 PR ld/19784
1367 * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
1368 count for locally defined local IFUNC symbols in shared object.
1369 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1370
202ac193
L
13712016-03-08 H.J. Lu <hongjiu.lu@intel.com>
1372
1373 PR ld/19579
1374 * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
1375 together.
1376
72f3b6aa
CZ
13772016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
1378 Andrew Burgess <andrew.burgess@embecosm.com>
1379
1380 * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32.
1381 (arc_bfd_put_32): Becomes an alias for bfd_put_32.
1382 (arc_elf_howto_init): Added assert to validate relocations.
1383 (get_middle_endian_relocation): Delete.
1384 (middle_endian_convert): New function.
1385 (ME): Redefine, now does nothing.
1386 (IS_ME): New define.
1387 (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO'
1388 definition to call middle_endian_convert. Add a new local
1389 variable and make use of this throughout. Added call to
1390 arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations.
1391
4fc87424
NC
13922016-03-07 Nick Clifton <nickc@redhat.com>
1393
1394 PR binutils/19775
1395 * archive.c (bfd_generic_openr_next_archived_file): Allow zero
1396 length elements in the archive.
1397
18f822a0
JW
13982016-03-07 Jiong Wang <jiong.wang@arm.com>
1399
1400 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got
1401 section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced.
1402
07492f66
L
14032016-03-04 H.J. Lu <hongjiu.lu@intel.com>
1404
1405 PR ld/19579
1406 * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
1407 executable as definition if the new definition comes from a
1408 shared library.
1409
70a5df4f
AM
14102016-03-02 Alan Modra <amodra@gmail.com>
1411
1412 * Makefile.in: Regenerate.
1413 * po/SRC-POTFILES.in: Regenerate.
1414
841fdfcd
CZ
14152016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
1416
1417 * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
1418 relocation addend when sections get merged.
1419
7e458899
CZ
14202016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
1421
1422 * elf32-arc.c (arc_elf_final_write_processing): Add condition to
1423 the flag change.
1424 (elf_arc_relocate_section): Fixes and conditions to support PIE.
1425 Assert for code sections dynamic relocs.
1426
c5e3a364
RL
14272016-02-26 Renlin Li <renlin.li@arm.com>
1428
1429 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
1430 check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.
1431
bae420ef
L
14322016-02-26 H.J. Lu <hongjiu.lu@intel.com>
1433
1434 PR ld/19609
1435 * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
1436 load with locally bound symbols if PIC is false or there is no
1437 base register. Optimize branch to 0 if PIC is false.
1438 (elf_i386_relocate_section): Don't generate dynamic relocations
1439 against undefined weak symbols if PIC is false.
1440 * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
1441 if we can't estimate relocation overflow with --no-relax.
1442 Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
1443 symbols if PIC is false. Optimize branch to 0 if PIC is false.
1444 (elf_x86_64_relocate_section): Don't generate dynamic relocations
1445 against undefined weak symbols if PIC is false.
1446
11e5f1ec
L
14472016-02-26 H.J. Lu <hongjiu.lu@intel.com>
1448
1449 PR ld/19645
1450 * bfd.c (bfd): Change flags to 20 bits.
1451 (BFD_CONVERT_ELF_COMMON): New.
1452 (BFD_USE_ELF_STT_COMMON): Likewise.
1453 (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
1454 BFD_USE_ELF_STT_COMMON.
1455 (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
1456 * configure.ac: Remove --enable-elf-stt-common.
1457 * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
1458 common symbol depending on BFD_CONVERT_ELF_COMMON and
1459 BFD_USE_ELF_STT_COMMON.
1460 * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
1461 STT_COMMON.
1462 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
1463 STT_COMMON.
1464 (elf_link_convert_common_type): New function.
1465 (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
1466 common symbol depending on BFD_CONVERT_ELF_COMMON and
1467 BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx.
1468 * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
1469 and BFD_USE_ELF_STT_COMMON to object_flags.
1470 (TARGET_LITTLE_SYM): Likewise.
1471 * syms.c (BSF_KEEP_G): Renamed to ...
1472 (BSF_ELF_COMMON): This.
1473 * bfd-in2.h: Regenerated.
1474 * config.in: Likewise.
1475 * configure: Likewise.
1476
aec6b87e
L
14772016-02-26 H.J. Lu <hongjiu.lu@intel.com>
1478
1479 PR ld/19636
1480 PR ld/19704
1481 PR ld/19719
1482 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
1483 (elf_i386_link_hash_entry): Add has_got_reloc and
1484 has_non_got_reloc.
1485 (elf_i386_link_hash_table): Add interp.
1486 (elf_i386_link_hash_newfunc): Initialize has_got_reloc and
1487 has_non_got_reloc.
1488 (elf_i386_copy_indirect_symbol): Copy has_got_reloc and
1489 has_non_got_reloc.
1490 (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
1491 (elf_i386_fixup_symbol): New function.
1492 (elf_i386_pie_finish_undefweak_symbol): Likewise.
1493 (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
1494 relocations and discard relocations against resolved undefined
1495 weak symbols in executable. Don't make resolved undefined weak
1496 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
1497 relocation against undefined weak symbols in PIE.
1498 (elf_i386_size_dynamic_sections): Set interp to .interp section.
1499 (elf_i386_relocate_section): Don't generate dynamic relocations
1500 against resolved undefined weak symbols in PIE, except for
1501 R_386_PC32.
1502 (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
1503 dynamic PLT/GOT relocations for resolved undefined weak symbols.
1504 Don't generate dynamic relocation against resolved undefined weak
1505 symbol in executable.
1506 (elf_i386_finish_dynamic_sections): Call
1507 elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
1508 (elf_backend_fixup_symbol): New.
1509 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
1510 (elf_x86_64_link_hash_entry): Add has_got_reloc and
1511 has_non_got_reloc.
1512 (elf_x86_64_link_hash_table): Add interp.
1513 (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
1514 has_non_got_reloc.
1515 (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
1516 has_non_got_reloc.
1517 (elf_x86_64_check_relocs): Set has_got_reloc and
1518 has_non_got_reloc.
1519 (elf_x86_64_fixup_symbol): New function.
1520 (elf_x86_64_pie_finish_undefweak_symbol): Likewise.
1521 (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
1522 relocations and discard relocations against resolved undefined
1523 weak symbols in executable. Don't make resolved undefined weak
1524 symbols in executable dynamic.
1525 (elf_x86_64_size_dynamic_sections): Set interp to .interp section.
1526 (elf_x86_64_relocate_section): Check relocation overflow for
1527 dynamic relocations against unresolved weak undefined symbols.
1528 Don't generate dynamic relocations against resolved weak
1529 undefined symbols in PIE.
1530 (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
1531 dynamic PLT/GOT relocations for resolved undefined weak symbols.
1532 Don't generate dynamic relocation against resolved undefined weak
1533 symbol in executable.
1534 (elf_x86_64_finish_dynamic_sections): Call
1535 elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
1536 (elf_backend_fixup_symbol): New.
1537
b32547cd
AM
15382016-02-26 Alan Modra <amodra@gmail.com>
1539
1540 * elf64-ppc.c (create_linkage_sections): Create sfpr when
1541 save_restore_funcs, rest of sections when not relocatable.
1542 (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
1543 (sfpr_define): Define all symbols on emitted code.
1544 (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
1545 when relocatable. Move sfpr_define loop earlier.
1546
ef77d6af
L
15472016-02-24 H.J. Lu <hongjiu.lu@intel.com>
1548
1549 * elf64-x86-64.c (elf_x86_64_need_pic): New function.
1550 (elf_x86_64_relocate_section): Use it. Replace
1551 x86_64_elf_howto_table[r_type] with howto.
1552
0f550b3d
L
15532016-02-24 H.J. Lu <hongjiu.lu@intel.com>
1554
1555 PR ld/19698
1556 * elflink.c (bfd_elf_record_link_assignment): Set versioned if
1557 symbol version is unknown.
1558
13f42277
L
15592016-02-24 H.J. Lu <hongjiu.lu@intel.com>
1560
1561 * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
1562 to (bfd_vma) -1 when setting needs_plt to 0.
1563 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
1564
6b3b0ab8
L
15652016-02-23 H.J. Lu <hongjiu.lu@intel.com>
1566
1567 * elflink.c (bfd_elf_record_link_assignment): Check for shared
1568 library, instead of PIC, and don't check PDE when making linker
1569 assigned symbol dynamic.
1570
17733f5b
FS
15712016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com>
1572
1573 * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment
1574 ABIVERSION for non-executable stack.
1575
47993b4a
RF
15762016-02-23 Rich Felker <bugdal@aerifal.cx>
1577
1578 PR target/19516
1579 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
1580 Always produce a RELATIVE reloc for a local symbol.
1581
2d8dcb81
HPN
15822016-02-23 Hans-Peter Nilsson <hp@axis.com>
1583
1584 Fix test-case ld-elf/pr19617b
1585 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1586 discard unused non-function symbols when --dynamic-list-data.
1587
1a6e6083
L
15882016-02-22 H.J. Lu <hongjiu.lu@intel.com>
1589
1590 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the
1591 dynsym section, even if it is empty, with dynamic sections.
1592
75c1920b
L
15932016-02-22 H.J. Lu <hongjiu.lu@intel.com>
1594
1595 * syms.c: Remove BSF_COMMON from comments.
1596 * bfd-in2.h: Regenerated.
1597
9a228467
JW
15982016-02-22 Jiong Wang <jiong.wang@arm.com>
1599
1600 * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
1601 for destination. Remove useless function parameters.
1602 (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
1603
73768414
NC
16042016-02-19 Nick Clifton <nickc@redhat.com>
1605
e517df3d
NC
1606 PR ld/19629
1607 * aoutx.h (aout_link_add_symbols): Check for out of range string
1608 table offsets.
1609
73768414
NC
1610 PR ld/19628
1611 * reloc.c (bfd_generic_get_relocated_section_contents): Stop
1612 processing if we encounter a reloc without an associated symbol.
1613
bf89386a
L
16142016-02-18 H.J. Lu <hongjiu.lu@intel.com>
1615
1616 PR ld/19617
1617 * elflink.c (elf_link_add_object_symbols): Always create dynamic
1618 sections for -E/--dynamic-list.
1619
8f79b794
L
16202016-02-17 H.J. Lu <hongjiu.lu@intel.com>
1621
1622 * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined
1623 to bfd_true.
1624
64bfc258
JM
16252016-02-16 Joseph Myers <joseph@codesourcery.com>
1626
1627 * plugin.c (plugin_vec): Set match priority to 255.
1628 * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When
1629 matching against the plugin vector, take priority from there not
1630 from TEMP.
1631
9fb71ee4
NC
16322016-02-15 Nick Clifton <nickc@redhat.com>
1633
1634 * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values
1635 for length and type fields. Use a signed value for the
1636 suffix_length field.
1637
32875eb1
L
16382016-02-10 H.J. Lu <hongjiu.lu@intel.com>
1639
1640 PR ld/19601
1641 * elf32-i386.c (elf_i386_relocate_section): Mask off the least
1642 significant bit in GOT offset for R_386_GOT32X.
1643
83da6e74
NC
16442016-02-10 Nick Clifton <nickc@redhat.com>
1645
1646 PR 19405
1647 * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
1648 immediate values.
1649 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
1650 number of messages about FDE encoding preventing .eh_frame_hdr
1651 generation.
1652
027e9c75
NC
16532016-02-09 Nick Clifton <nickc@redhat.com>
1654
609332f1
NC
1655 * oasys.c (oasys_archive_p): Fix indentation.
1656 * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned
1657 constant for left shifting.
1658
027e9c75
NC
1659 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
1660 helpful warning message to explain why certain AArch64 relocs
1661 might overflow.
1662
6f57d046
SM
16632016-02-05 Simon Marchi <simon.marchi@ericsson.com>
1664
1665 * pe-mips.c (coff_mips_reloc): Fix formatting.
1666
bdbca4e6
CM
16672016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
1668
1669 * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
1670 to bfd_mach_arc_arc600.
1671
4f038ee5
AM
16722016-02-04 Alan Modra <amodra@gmail.com>
1673
1674 * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
1675 for big-endian.
1676
4a539596
L
16772016-02-02 H.J. Lu <hongjiu.lu@intel.com>
1678
1679 PR ld/19542
1680 * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
fb06f1c0 1681 distances in the compressed_size field of the output section.
4a539596 1682
85fabe71
AM
16832016-02-02 Alan Modra <amodra@gmail.com>
1684
1685 * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
1686 ELFv2 entry optimization.
1687
14f2c699
L
16882016-02-02 H.J. Lu <hongjiu.lu@intel.com>
1689
1690 PR binutils/19547
1691 * elf.c (assign_section_numbers): Clear HAS_RELOC if there are
1692 no relocations in relocatable files.
1693
aef28989
L
16942016-02-01 H.J. Lu <hongjiu.lu@intel.com>
1695
1696 PR ld/19553
1697 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
1698 if a symbol from a library loaded via DT_NEEDED doesn't match
1699 the symbol referenced by regular object.
1700
655ed9ea
NS
17012016-02-01 Nathaniel Smith <njs@pobox.com>
1702
1703 * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both
1704 CODE and DATA.
1705
ec1f73bb
AM
17062016-02-01 Alan Modra <amodra@gmail.com>
1707
1708 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on
1709 an out of range reloc_index.
1710 * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise.
1711
b6471e6e
KR
17122016-02-01 Kamil Rytarowski <n54@gmx.com>
1713
1714 * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo.
1715 (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c.
1716 * Makefile.in: Regenerated.
1717
0bc7245a
JK
17182016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1719
1720 * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation.
1721
6d4b2867
JDA
17222016-01-31 John David Anglin <danglin@gcc.gnu.org>
1723
1724 PR ld/19526
1725 * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
1726 files.
1727 * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
1728
d9e3b590
L
17292016-01-30 H.J. Lu <hongjiu.lu@intel.com>
1730
1731 PR ld/19539
1732 * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
1733 against STT_GNU_IFUNC symbol only with dynamic symbols.
1734 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
1735
bf150a0b
L
17362016-01-28 H.J. Lu <hongjiu.lu@intel.com>
1737
1738 PR binutils/19523
1739 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
1740 decompress debug sections.
1741
840855c5
MR
17422016-01-25 Maciej W. Rozycki <macro@imgtec.com>
1743
1744 * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to
1745 `dynindx'.
1746
cf466c2a
NC
17472016-01-25 Nick Clifton <nickc@redhat.com>
1748
1749 PR target/19435
1750 * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
1751 dsym filename buffer.
1752
eb6b0cf4
MR
17532016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1754
1755 * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation.
1756
e67f83e5
MR
17572016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1758
1759 * elfxx-mips.c (BZ16_REG): Correct calculation.
1760
23a42089
NC
17612016-01-21 Nick Clifton <nickc@redhat.com>
1762
1763 * elf32-arc.c (ADD_RELA): Fix compile time warning errors by
1764 changing the type of _loc to be bfd_byte *.
1765 (elf_arc_finish_dynamic_symbol): Likewise.
1766
aebf9be7
NC
17672016-01-21 Nick Clifton <nickc@redhat.com>
1768
1769 PR ld/19455
1770 * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
1771 class of the linker stub bfd.
1772 (elf32_arm_check_relocs): Skip check for pic format after
1773 processing a vxWorks R_ARM_ABS12 reloc.
1774 * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
1775 reporting a class mismatch.
1776
2f340668
JW
17772016-01-21 Jiong Wang <jiong.wang@arm.com>
1778
1779 * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
1780 veneer for sym_sec != input_sec.
1781 (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
1782 (elfNN_aarch64_final_link_relocate): Take rela addend into account when
1783 calculation destination.
1784
aeb70569
AM
17852016-01-21 Alan Modra <amodra@gmail.com>
1786
1787 * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
1788 (swap_linux_prpsinfo64_out): New function.
1789 (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1790 (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
1791 * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset.
1792 (elfcore_write_linux_prpsinfo64): Likewise.
1793 * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
1794 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1795 (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
1796
de64ce13
AM
17972016-01-21 Alan Modra <amodra@gmail.com>
1798
1799 * elf-linux-core.h: Rename from elf-linux-psinfo.h.
1800 * elf.c: Adjust #include.
1801 * elf32-ppc.c: Don't #include elf-linux-psinfo.h
1802 * Makefile.am (SOURCE_HFILES): Update.
1803 * Makefile.in: Regenerate.
1804 * po/SRC-PORFILES.in: Regenerate.
1805
c603b11b
AM
18062016-01-21 Alan Modra <amodra@gmail.com>
1807
1808 * configure.ac: Move corefile selection later in file. Move
1809 tdefaults code immediately after other target vector code.
1810 * configure: Regenerate.
1811
91f68a68
MG
18122016-01-20 Mickael Guene <mickael.guene@st.com>
1813
1814 * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread
1815 section using '.text.noread' pattern.
1816
5b2c414d
JB
18172016-01-19 John Baldwin <jhb@FreeBSD.org>
1818
1819 * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
1820
34e967a5
MC
18212016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
1822 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
1823
1824 * arc-plt.def: New file.
1825 * arc-plt.h: Likewise.
1826 * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
1827 elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
1828 elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
1829 elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
1830 (name_for_global_symbol): Added.
1831 (ADD_RELA): Helper to create dynamic relocs.
1832 (new_got_entry_to_list): Create a new got entry in linked list.
1833 (symbol_has_entry_of_type): Search for specific type of entry in
1834 list.
1835 (is_reloc_for_GOT): return FALSE for any TLS related relocs.
1836 (is_reloc_for_TLS, arc_elf_set_private_flags)
1837 (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
1838 (arc_elf_merge_private_bfd_data): New functions.
1839 (debug_arc_reloc): Cleaned debug info printing.
1840 (PDATA reloc): Changed not to perform address alignment.
1841 (reverse_me): Added. Fix for ARC_32 relocs.
1842 (arc_do_relocation): Return bfd_reloc_of when no relocation should
1843 occur.
1844 (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
1845 Changed function to access an array of list of GOT entries instead
1846 of just an array of offsets.
1847 (elf_arc_relocate_section): Added support for PIC and TLS related relocations.
1848 (elf_arc_check_relocs): Likewise.
1849 (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
1850 (elf_arc_finish_dynamic_sections): Likewise
1851 (arc_create_dynamic_sections): Modified conditions to create
1852 dynamic sections.
1853 (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
1854 (plt_do_relocs_for_symbol, relocate_plt_for_symbol)
1855 (relocate_plt_for_entry): Changed to support new way to define PLT
1856 related code.
1857 (add_symbol_to_plt): Likewise.
1858 (arc_elf_link_hash_table_create): New function.
1859
9ae678af
NC
18602016-01-18 Nick Clifton <nickc@redhat.com>
1861
1862 PR ld/19440
1863 * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external
1864 section number into internal section number.
1865 * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise.
1866 * coffswap.h (coff_swap_sym_in): Likewise.
1867 * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise.
1868 * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal
1869 section number field is big enough to hold the external value.
1870
5c14705f
AM
18712016-01-17 Alan Modra <amodra@gmail.com>
1872
1873 * configure: Regenerate.
1874
ac06903d
YU
18752016-01-12 Yury Usishchev <y.usishchev@samsung.com>
1876
1877 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
1878 when address in first unwind entry does not match start of
1879 section.
1880
109575d7
JW
18812016-01-08 Richard Sandiford <richard.sandiford@arm.com>
1882 Jiong Wang <jiong.wang@arm.com>
1883
1884 PR ld/19368
1885 * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
1886 reloc_class_ifunc.
1887
b05a65d0
AB
18882016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
1889
1890 * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
1891 place 'R_' before the reloc name returned.
1892 (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before
1893 the relocation string.
1894
a3dc0a7f
MR
18952016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1896
1897 * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function,
1898 factored out from...
1899 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1900
d537eeb5
MR
19012016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1902
1903 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move
1904 attribute check after ELF file header flag check.
1905
43d223b5
MR
19062016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1907
1908 * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
1909 return status from `_bfd_elf_merge_object_attributes'.
1910
b2e9744f
MR
19112016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1912
1913 * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function,
1914 factored out from...
1915 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1916
28d45e28
MR
19172016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1918
1919 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the
1920 handling of input MIPS ABI flags together.
1921
23ba6f18
MR
19222016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1923
1924 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress
1925 attribute checks for null input.
1926
cf8502c1
MR
19272016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1928
1929 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local
1930 pointers to target data.
1931
dcb1c796
MR
19322016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1933
1934 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
1935 an FP ABI warning.
1936
6f2750fe
AM
19372016-01-01 Alan Modra <amodra@gmail.com>
1938
1939 Update year range in copyright notice of all files.
1940
3499769a
AM
1941For older changes see ChangeLog-2015 and doc/ChangeLog-0415
1942\f
1943Copyright (C) 2016 Free Software Foundation, Inc.
1944
1945Copying and distribution of this file, with or without modification,
1946are permitted in any medium without royalty provided the copyright
1947notice and this notice are preserved.
1948
1949Local Variables:
1950mode: change-log
1951left-margin: 8
1952fill-column: 74
1953version-control: never
1954End:
This page took 0.174154 seconds and 4 git commands to generate.