]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
Default elf_backend_post_process_headers to set OSABI
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
78245035
L
12013-12-17 H.J. Lu <hongjiu.lu@intel.com>
2
3 * elf-bfd.h (_bfd_elf_set_osabi): Renamed to ...
4 (_bfd_elf_post_process_headers): This.
5 * elf.c (_bfd_elf_compute_section_file_positions): Always
6 call elf_backend_post_process_headers.
7 (_bfd_elf_set_osabi): Renamed to ...
8 (_bfd_elf_post_process_headers): This.
9 * elf32-hppa.c (elf_backend_post_process_headers): Removed.
10 * elf32-i370.c (elf_backend_post_process_headers): Likewise.
11 * elf32-msp430.c (elf_backend_post_process_headers): Likewise.
12 * elf32-ppc.c (elf_backend_post_process_headers): Likewise.
13 * elf32-sparc.c (elf_backend_post_process_headers): Likewise.
14 * elf64-hppa.c (elf_backend_post_process_headers): Likewise.
15 * elf64-ppc.c (elf_backend_post_process_headers): Likewise.
16 * elf64-sparc.c (elf_backend_post_process_headers): Likewise.
17 * elf64-x86-64.c (elf_backend_post_process_headers): Likewise.
18 * (elf_backend_post_process_headers): Likewise.
19 * (elf_backend_post_process_headers): Likewise.
20 * elf32-i386.c (elf_backend_post_process_headers): Don't
21 define as _bfd_elf_set_osabi.
22 (elf_i386_fbsd_post_process_headers): Updated.
23 * elf32-mips.c (elf_fbsd_post_process_headers): Removed.
24 (elf_backend_post_process_headers): Likewise.
25 * elf32-tic6x.c (elf32_tic6x_set_osabi): Removed.
26 (elf_backend_post_process_headers): Likewise.
27 * elf64-mips.c (elf_fbsd_post_process_headers): Removed.
28 (elf_backend_post_process_headers): Likewise.
29 * elfn32-mips.c (elf_fbsd_post_process_headers): Removed.
30 (elf_backend_post_process_headers): Likewise.
31 * elfnn-aarch64.c (elfNN_aarch64_post_process_headers): Updated.
32 * elfxx-target.h (elf_backend_post_process_headers): Default
33 to _bfd_elf_post_process_headers.
34
e2349352
L
352013-12-17 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR binutils/16318
38 * elf32-arm.c (elf32_arm_copy_private_bfd_data): Call
39 _bfd_elf_copy_private_bfd_data.
40 * elf32-bfin.c (bfin_elf_copy_private_bfd_data): Removed.
41 (elf32_bfinfdpic_copy_private_bfd_data): Likewise.
42 (bfd_elf32_bfd_copy_private_bfd_data): Don't define.
43 * elf32-frv.c (frv_elf_copy_private_bfd_data): Removed.
44 (elf32_frvfdpic_copy_private_bfd_data): Likewise.
45 (bfd_elf32_bfd_copy_private_bfd_data): Don't define.
46 * elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Removed.
47 (bfd_elf32_bfd_copy_private_bfd_data): Don't define.
48 * elf32-lm32.c (lm32_elf_copy_private_bfd_data): Removed.
49 (lm32_elf_fdpic_copy_private_bfd_data): Call
50 _bfd_elf_copy_private_bfd_data.
51 * elf32-mep.c (mep_elf_copy_private_bfd_data): Removed.
52 (bfd_elf32_bfd_copy_private_bfd_data): Don't define.
53 * elf32-msp430.c (elf32_msp430_copy_private_bfd_data): Removed.
54 (bfd_elf32_bfd_copy_private_bfd_data): Don't define.
55 * elf32-mt.c (mt_elf_copy_private_bfd_data): Removed.
56 (bfd_elf32_bfd_copy_private_bfd_data): Don't define.
57 * elf32-sh.c (sh_elf_set_private_flags): Removed.
58 (sh_elf_copy_private_data): Call _bfd_elf_copy_private_bfd_data
59 and sh_elf_set_mach_from_flags.
60 * elfnn-aarch64.c (elfNN_aarch64_copy_private_bfd_data): Removed.
61 (bfd_elfNN_bfd_copy_private_bfd_data): Don't define.
62
337e86d7
L
632013-12-17 H.J. Lu <hongjiu.lu@intel.com>
64
65 * peXXigen.c (rsrc_process_section): Rename index to indx.
66
5879bb8f
NC
672013-12-17 Nick Clifton <nickc@redhat.com>
68
69 * peXXigen.c: Include wchar.h if available.
70 Include safe-ctype.h.
71 (HighBitSet, SetHighBit, WithoutHighBit): New macros.
72 (pe_print_resource_entries): Rename to
73 rsrc_print_resource_entries. Handle names that are not RVAs.
74 (pe_print_resource_directory): Rename to
75 rsrc_print_resource_directory.
76 (pe_print_rsrc): Rename to rsrc_print_section. Corrupt
77 computation of RVA bias.
78 (rsrc_count_entries): New function.
79 (rsrc_count_directory): New function.
80 (rsrc_parse_entry): New function.
81 (rsrc_parse_entries): New function.
82 (rsrc_parse_directory): New function.
83 (rsrc_write_string): New function.
84 (rsrc_compute_rva): New function.
85 (rsrc_write_leaf): New function.
86 (rsrc_write_entry): New function.
87 (rsrc_write_directory): New function.
88 (u16_mbtouc): New function.
89 (rsrc_cmp): New function.
90 (rsrc_print_name): New function.
91 (rsrc_resource_name): New function.
92 (rsrc_merge_string_entries): New function.
93 (rsrc_sort_entries): New function.
94 (rsrc_attach_chain): New function.
95 (rsrc_merge): New function.
96 (rsrc_process_section): New function - merges the contents of a
97 .rsrc section.
98 (_bfd_XXi_final_link_postscript): Call rsrc_process_section.
99 * configure.in (AC_CHECK_HEADERS): Add wchar.h
100 * config.in: Regenerate.
101 * configure: Regenerate.
102
1a1fb627
AS
1032013-12-16 Andreas Schwab <schwab@suse.de>
104
105 * elf64-ppc.c (ppc64_elf_relocate_section): Add newline to error
106 message.
107
57fa7b8c
AM
1082013-12-14 Alan Modra <amodra@gmail.com>
109
110 * elflink.c (_bfd_elf_merge_symbol): If merging a new weak
111 symbol that will be skipped, we don't have a new definition.
112
35c08157
KLC
1132013-12-13 Kuan-Lin Chen <kuanlinchentw@gmail.com>
114 Wei-Cheng Wang <cole945@gmail.com>
115
116 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add nds32
117 files.
118 * Makefile.in: Regenerate.
119 * archures.c (bfd_nds32_arch): Add nds32 target.
120 * bfd-in2.h: Regenerate.
121 * config.bfd (nds32*le-*-linux): Add bfd_elf32_nds32lelin_vec
122 and bfd_elf32_nds32belin_vec.
123 (nds32*be-*-linux*): Likewise.
124 (nds32*le-*-*): Add bfd_elf32_nds32le_vec and bfd_elf32_nds32be_vec.
125 (nds32*be-*-*): Likewise.
126 * configure.in (bfd_elf32_nds32be_vec): Add elf32-nds32.lo.
127 (bfd_elf32_nds32le_vec): Likewise.
128 (bfd_elf32_nds32belin_vec): Likewise.
129 (bfd_elf32_nds32lelin_vec): Likewise.
130 * configure: Regenerate.
131 * cpu-nds32.c: New file for nds32.
132 * elf-bfd.h: Add NDS32_ELF_DATA.
133 * elf32-nds32.c: New file for nds32.
134 * elf32-nds32.h: New file for nds32.
135 * libbfd.h: Regenerate.
136 * reloc.c: Add relocations for nds32.
137 * targets.c (bfd_elf32_nds32be_vec): New declaration for nds32.
138 (bfd_elf32_nds32le_vec): Likewise.
139 (bfd_elf32_nds32belin_vec): Likewise.
140 (bfd_elf32_nds32lelin_vec): Likewise.
141
57b828ef
L
1422013-12-12 H.J. Lu <hongjiu.lu@intel.com>
143
144 PR binutils/16318
145 * elf.c (_bfd_elf_copy_private_bfd_data): Remove BFD_ASSERT.
146 Set e_flags only if elf_flags_init is FALSE. Copy EI_OSABI
147 field.
148
84b66498
L
1492013-12-12 H.J. Lu <hongjiu.lu@intel.com>
150
151 * elf32-sh.c (bfd_elf32_bfd_set_private_bfd_flags): Removed.
152
58e7ebac
L
1532013-12-12 H.J. Lu <hongjiu.lu@intel.com>
154
155 * elf.c (assign_file_positions_except_relocs): Set e_type in ELF
156 header to ET_EXEC for -pie -Ttext-segment=.
157
68c88cd4
AM
1582013-12-08 Alan Modra <amodra@gmail.com>
159
bc58135a 160 * elflink.c (_bfd_elf_add_default_symbol): Set dynamic_def
68c88cd4
AM
161 and ref_dynamic_nonweak when chaining together indirect
162 symbols.
163
2b597f54
TG
1642013-12-06 Tristan Gingold <gingold@adacore.com>
165
166 * pei-x86_64.c (pex64_xdata_print_uwd_codes): Add argument rf.
167 Display epilog opcode.
168 (pex64_dump_xdata): Add argument rf; make addr a local variable.
169 Adjust call to pex64_xdata_print_uwd_codes.
170 (pex64_bfd_print_pdata): Display code range, adjust call to
171
b30a5d18
TG
1722013-12-05 Tristan Gingold <gingold@adacore.com>
173
174 * mach-o.c (bfd_mach_o_mkobject_init): Use bfd_zalloc.
175
11a6da56
NC
1762013-12-03 Nick Clifton <nickc@redhat.com>
177
178 * peXXigen.c (pe_print_resource_entries): New function: Displays
179 an entry in a .rsrc section.
180 (pe_print_resource_directory): New function: Displays a directory
181 in a .rsrc section.
182 (pe_print_rsrc): New function: Displays the contents of .rsrc
183 section.
184 (_bfd_XX_print_private_bfd_data_common): Call pe_print_rsrc.
185
00f412ee
AM
1862013-12-03 Alan Modra <amodra@gmail.com>
187
188 * elf64-ppc.c (ppc_build_one_stub <ppc_stub_plt_branch_r2off>):
189 Don't omit saving of r2 for ELFv2. Don't addi 2,2,0.
190 (ppc_size_one_stub <ppc_stub_plt_branch_r2off>): Adjust to suit.
191
2c3f079f
AM
1922013-12-03 Alan Modra <amodra@gmail.com>
193
194 * elf64-ppc.c (ppc64_elf_link_just_syms): Remove .got check.
195 Handle ELFv2.
196
49206388
WN
1972013-11-26 Will Newton <will.newton@linaro.org>
198
199 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol):
200 Handle STT_GNU_IFUNC symbols correctly in static links.
201
b1ee0cc4
WN
2022013-11-26 Will Newton <will.newton@linaro.org>
203
204 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Ensure
205 PLT_INDEX is calculated using correct header size.
206
0cb112f7
CF
2072013-11-22 Cory Fields <cory@coryfields.com>
208
209 * libcoff-in.h: Add insert_timestamp flag to the pe_data struct.
210 * libcoff.h: Regenerate.
211 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Only use a real
212 timestamp if --insert-timestamp was used.
213
33aa641a
RM
2142013-11-19 Roland McGrath <mcgrathr@google.com>
215
216 * elf-nacl.c (nacl_modify_segment_map): Calculate SIZEOF_HEADERS
217 when not doing linking (i.e. INFO is a null pointer).
218
0c723101
L
2192013-11-19 H.J. Lu <hongjiu.lu@intel.com>
220
221 * elf64-x86-64.c (elf_x86_64_section_from_shdr): Re-indent.
222
c3320543
L
2232013-11-17 H.J. Lu <hongjiu.lu@intel.com>
224
225 * elf64-x86-64.c (x86_64_elf_howto_table): Add R_X86_64_PC32_BND
226 and R_X86_64_PLT32_BND.
227 (R_X86_64_standard): Replace R_X86_64_RELATIVE64 with
228 R_X86_64_PLT32_BND.
229 (IS_X86_64_PCREL_TYPE): Add R_X86_64_PLT32_BND.
230 (x86_64_reloc_map): Add BFD_RELOC_X86_64_PC32_BND and
231 BFD_RELOC_X86_64_PLT32_BND.
232 (elf_x86_64_check_relocs): Handle R_X86_64_PC32_BND and
233 R_X86_64_PLT32_BND.
234 (elf_x86_64_gc_sweep_hook): Likewise.
235 (elf_x86_64_relocate_section): Likewise.
236 * reloc.c (bfd_reloc_code_real): Add BFD_RELOC_X86_64_PC32_BND
237 and BFD_RELOC_X86_64_PLT32_BND.
238 * bfd-in2.h: Regenerated.
239 * libbfd.h: Likewise.
240
bb81b736
L
2412013-11-15 H.J. Lu <hongjiu.lu@intel.com>
242
243 * elf32-i386.c (elf_i386_allocate_dynrelocs): Make room for
244 PLT0 directly.
245 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
246
57460bcf
NC
2472013-11-14 Nick Clifton <nickc@redhat.com>
248
249 PR ld/16017
250 * elf32-arm.c (elf32_arm_populate_plt_entry): Return a boolean
251 value, TRUE for success, FALSE for failure.
252 Fail if attempting to create a PLT entry for a thumb only target.
253 (elf32_arm_final_link_relocate): Check result of calling
254 elf32_arm_populate_plt_entry.
255 (elf32_arm_finish_dynamic_symbol): Likewise.
256
31fc8a0b
NC
2572013-11-14 Guy Martin <gmsoft@tuxicoman.be>
258
259 PR ld/16082
260 * elf32-hppa.c (elf32_hppa_hide_symbol): Remove old version
261 information when forcing a symbol to be local.
262
da0781dc
YZ
2632013-11-13 Yufeng Zhang <yufeng.zhang@arm.com>
264
265 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Use
266 R_AARCH64_TLS_DTPMOD64 instead of R_AARCH64_TLS_DTPMOD;
267 likewise for R_AARCH64_TLS_DTPREL and R_AARCH64_TLS_TPREL.
268
3b570dee
YZ
2692013-11-12 Matthew Leach <Matthew.Leach@arm.comm>
270
271 * elfxx-aarch64.c (_bfd_aarch64_elf_grok_prstatus): Fix hard-coded
272 size of struct elf_prstatus.
273
14b5f73f
AM
2742013-11-11 Alan Modra <amodra@gmail.com>
275
276 * elf64-ppc.c (allocate_dynrelocs): Revert 2013-11-04 change.
277
afe397ea
AM
2782013-11-11 Ulrich Weigand <uweigand@de.ibm.com>
279
280 * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_REFERENCES_LOCAL
281 here, not SYMBOL_CALLS_LOCAL.
282 (ppc64_elf_relocate_section): Likewise.
283 (size_global_entry_stubs): Set undefined symbols on their global
284 entry stubs here..
285 (build_global_entry_stubs): ..rather than here.
286 (ppc64_elf_build_stubs): Don't reset glink->size before calling
287 build_global_entry_stubs.
288
64b384e1
RM
2892013-11-07 Roland McGrath <mcgrathr@google.com>
290
291 * archures.c (bfd_mach_i386_nacl): Fix definition so it doesn't
292 collide with bfd_mach_l1om.
293 * bfd-in2.h: Regenerate.
294
295 * elf32-i386.c (elf32_i386_nacl_elf_object_p): New function.
296 (elf_backend_object_p): Use that in elf32-i386-nacl definition.
297 * elf64-x86-64.c (elf64_x86_64_nacl_elf_object_p): New function.
298 (elf_backend_object_p): Use that in elf64-x86-64-nacl definition.
299 (elf32_x86_64_nacl_elf_object_p): New function.
300 (elf_backend_object_p): Use that in elf32-x86-64-nacl definition.
301
2bc56d66
DD
3022013-11-05 DJ Delorie <dj@redhat.com>
303
304 * elf32-rl78.c (elf32_rl78_relax_delete_bytes): Make sure relocs
305 are loaded before trying to use them.
306
62d887d4
L
3072013-11-05 H.J. Lu <hongjiu.lu@intel.com>
308 Bernhard Rosenkränzer <bernhard.rosenkranzer@linaro.org>
309
310 PR ld/4409
311 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add an argument for
312 error ignored.
313 * elf-m10200.c (mn10200_elf_relocate_section): Updated.
314 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
315 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
316 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
317 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
318 (bfin_relocate_section): Likewise.
319 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
320 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
321 * elf32-cris.c (cris_elf_relocate_section): Likewise.
322 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
323 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
324 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
325 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
326 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
327 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
328 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
329 * elf32-i386.c (elf_i386_relocate_section): Likewise.
330 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
331 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
332 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
333 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
334 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
335 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
336 * elf32-metag.c (elf_metag_relocate_section): Likewise.
337 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
338 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
339 * elf32-mep.c (mep_elf_relocate_section): Likewise.
340 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
341 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
342 * elf32-mt.c (mt_elf_relocate_section): Likewise.
343 * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
344 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
345 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
346 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
347 * elf32-rx.c (rx_elf_relocate_section): Likewise.
348 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
349 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
350 * elf32-s390.c (elf_s390_relocate_section): Likewise.
351 * elf32-v850.c (v850_elf_relocate_section): Likewise.
352 * elf32-vax.c (elf_vax_relocate_section): Likewise.
353 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
354 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
355 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
356 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
357 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
358 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
359 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
360 * elf64-s390.c (elf_s390_relocate_section): Likewise.
361 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
362 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
363 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
364 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
365
366 * elfnn-ia64.c (elfNN_ia64_relocate_section): Skip if error
367 from RELOC_FOR_GLOBAL_SYMBOL in executable is ignored.
368
dba6fa9b
AM
3692013-11-05 Alan Modra <amodra@gmail.com>
370
371 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Make .TOC. defined and
372 hidden.
373 (ppc64_elf_set_toc): Adjust.
374
33e44f2e
AM
3752013-11-05 Alan Modra <amodra@gmail.com>
376
377 * elf64-ppc.c (struct ppc_link_hash_table): Remove got, plt, relplt,
378 iplt, reliplt. Update all references to use elf.sgot, elf.splt,
379 elf.srelplt, elf.iplt and elf.irelplt.
380
25153ba0
SL
3812013-11-03 Sandra Loosemore <sandra@codesourcery.com>
382
25153ba0
SL
383 * elf32-niso2.c (nios2_elf32_do_hi16_relocate): Remove incorrect
384 ATTRIBUTE_UNUSED from parameter.
385 (nios2_elf_do_lo16_relocate): Likewise.
386 (nios2_elf32_do_hiadj16_relocate): Likewise.
387 (nios2_elf32_do_pcrel_lo16_relocate): Likewise.
388 (nios2_elf32_do_pcrel_hiadj16_relocate): Likewise.
389 (nios2_elf32_do_pcrel16_relocate): Likewise.
390 (nios2_elf32_do_call26_relocate): Likewise.
391 (nios2_elf32_do_gprel_relocate): Likewise.
392 (nios2_elf32_do_ujmp_relocate): Likewise.
393 (nios2_elf32_do_cjmp_relocate): Likewise.
394 (nios2_elf32_do_callr_relocate): Likewise.
395 (nios2_elf32_gc_mark_hook): Likewise.
396
52a82034
AM
3972013-11-04 Alan Modra <amodra@gmail.com>
398
399 * elf64-ppc.c (ppc64_elf_relocate_section): Edit global entry
400 prologue to non-PIC in non-PIC executables.
401
a345bc8d
AM
4022013-11-04 Alan Modra <amodra@gmail.com>
403
404 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Copy
405 pointer_equality_needed flag.
406 (ppc64_elf_check_relocs): For ELFv2 arrange to emit plt
407 entries for references to functions in shared libraries on
408 non-call relocs.
409 (readonly_dynrelocs): Split into function of the same name and..
410 (maybe_set_textrel): ..this new function. Update call.
411 (ppc64_elf_adjust_dynamic_symbol): Don't emit dynrelocs for
412 ELFv2 in most cases if we have a plt entry. Use new
413 readonly_relocs.
414 (allocate_dynrelocs): For ELFv2, don't allocate dynreloc space
415 for ifunc in static executables.
416 (size_global_entry_stubs): New function.
417 (ppc64_elf_size_dynamic_sections): Call size_global_entry_stubs.
418 Save end of glink branch table.
419 (ppc64_elf_hash_symbol): New function.
420 (build_global_entry_stubs): New function.
421 (ppc64_elf_build_stubs): Call build_global_entry_stubs. Adjust
422 glink sizing.
423 (ppc64_elf_relocate_section): Tidy plt16/32/64 reloc code.
424 (ppc64_elf_finish_dynamic_symbol): For ELFv2, adjust symbols
425 defined on plt code.
426
cacce40b
AM
4272013-11-02 Alan Modra <amodra@gmail.com>
428
429 * opncls.c (_bfd_new_bfd): Don't init vars already zeroed.
430
8b974ba3
AM
4312013-11-02 Alan Modra <amodra@gmail.com>
432
433 * elf64-ppc.c (ppc64_elf_next_input_section): Always set toc_off
434 to value for object file.
435
86e0565d
RM
4362013-11-01 Roland McGrath <mcgrathr@google.com>
437
438 * elf-nacl.c (segment_eligible_for_headers): Drop requirement that
439 some section have SEC_HAS_CONTENTS set. It's not set for
440 .note.gnu.build-id, and a segment of only read-only SHT_NOBITS
441 sections is implausible and not really supportable anyway.
442
e8910a83
AM
4432013-10-30 Alan Modra <amodra@gmail.com>
444
445 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Use new DT_PPC_OPT
446 tag to specify tls optimisation.
447 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
448 (ppc64_elf_finish_dynamic_sections): Specify whether multiple
449 toc pointers are used via DT_PPC64_OPT.
450
a078d95a
AM
4512013-10-30 Alan Modra <amodra@gmail.com>
452
453 * elf64-ppc.c (STK_LR, STK_TOC, STK_LINKER): Define.
454 (savegpr0_tail, restgpr0_tail, savefpr0_tail, restfpr0_tail)
455 build_plt_stub, build_tls_get_addr_stub, ppc_build_one_stub,
456 ppc64_elf_relocate_section): Use new defines.
457
b9e5796b
AM
4582013-10-30 Alan Modra <amodra@gmail.com>
459
460 * elf64-ppc.c (PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE): Add htab
461 parameter and adjust for ELFv2. Update all uses.
462 (PLT_CALL_STUB_SIZE): Delete.
463 (ppc64_elf_get_synthetic_symtab): Support new glink layout.
464 (allocate_dynrelocs): Likewise.
465 (plt_stub_size, build_plt_stub): Adjust for ELFv2.
466 (get_r2off): Return 0 for ELFv2 -R.
467 (ppc_build_one_stub, ppc_size_one_stub): Adjust for ELFv2.
468 (ppc64_elf_size_stubs): Likewise.
469 (ppc64_elf_build_stubs): Add new ELFv2 glink.
470
6911b7dc
AM
4712013-10-30 Alan Modra <amodra@gmail.com>
472 Ulrich Weigand <uweigand@de.ibm.com>
473
474 * elf64-ppc.c (struct ppc_stub_hash_entry): Add "other".
475 (stub_hash_newfunc): Init new ppc_stub_hash_entry field, and one
476 we forgot, "plt_ent".
477 (ppc64_elf_add_symbol_hook): Check ELFv1 objects don't have
478 st_other bits only valid in ELFv2.
479 (ppc64_elf_merge_symbol_attribute): New function.
480 (ppc_type_of_stub): Add local_off param to test branch range.
481 (ppc_build_one_stub): Adjust destinations for ELFv2 locals.
482 (ppc_size_one_stub, toc_adjusting_stub_needed): Similarly.
483 (ppc64_elf_size_stubs): Pass local_off to ppc_type_of_stub.
484 Set "other" field.
485 (ppc64_elf_relocate_section): Adjust destination for ELFv2 local
486 calls.
487
ee67d69a
AM
4882013-10-30 Alan Modra <amodra@gmail.com>
489
490 * elf64-ppc.c (abiversion, set_abiversion): New functions.
491 (ppc64_elf_get_synthetic_symtab): Handle ELFv2 objects without .opd.
492 (struct ppc_link_hash_table): Add opd_abi.
493 (ppc64_elf_check_relocs): Check no .opd with ELFv2.
494 (ppc64_elf_merge_private_bfd_data): New function.
495 (ppc64_elf_print_private_bfd_data): New function.
496 (ppc64_elf_tls_setup): Set htab->opd_abi.
497 (ppc64_elf_size_dynamic_sections): Don't emit OPD related dynamic
498 tags for ELFv2.
499 (ppc_build_one_stub): Use R_PPC64_IRELATIVE for ELFv2 ifunc.
500 (ppc64_elf_finish_dynamic_symbol): Likewise
501
71a39c98
AM
5022013-10-30 Alan Modra <amodra@gmail.com>
503
504 * elf64-ppc.c (build_plt_stub): Switch stubs to use r11 as base
505 reg and r12 as destination.
506 (ppc_build_one_stub): Likewise.
507 (ppc64_elf_build_stubs): Likewise for glink.
508
f9c6b907
AM
5092013-10-30 Alan Modra <amodra@gmail.com>
510
511 * reloc.c (BFD_RELOC_PPC64_ADDR16_HIGH, BFD_RELOC_PPC64_ADDR16_HIGHA,
512 BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA,
513 BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA): New.
514 * elf64-ppc.c (ppc64_elf_howto_raw): Add entries for new relocs.
515 Make all _HA and _HI relocs report signed overflow.
516 (ppc64_elf_reloc_type_lookup): Handle new relocs.
517 (must_be_dyn_reloc, ppc64_elf_check_relocs): Likewise.
518 (dec_dynrel_count, ppc64_elf_relocate_section): Likewise.
519 (ppc64_elf_relocate_section): Don't apply 0x8000 adjust to
520 R_PPC64_TPREL16_HIGHER, R_PPC64_TPREL16_HIGHEST,
521 R_PPC64_DTPREL16_HIGHER, and R_PPC64_DTPREL16_HIGHEST.
522 * libbfd.h: Regenerate.
523 * bfd-in2.h: Regenerate.
524
70cc877f
RM
5252013-10-29 Roland McGrath <mcgrathr@google.com>
526
527 * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Correct 9-byte nop
528 sequence to match what the assembler generates.
529
34a79995
JB
5302013-10-29 Jan Beulich <jbeulich@suse.com>
531
532 * elflink.c (struct elf_outext_info): Add field file_sym_done.
533 (bfd_elf_final_link): Initialize new field. Move fake STT_FILE
534 symbol emission from here ...
535 (elf_link_output_extsym): ... to here.
536
240d6706
NC
5372013-10-24 Nick Clifton <nickc@redhat.com>
538
539 PR binutils/15994
540 * dwarf2.c (lookup_address_in_line_info_table): Change return type
541 to be the range of addresses covered by the table.
542 (comp_unit_find_nearest_line): Likewise.
543 (find_line): Search all CUs. Select the one that matches and
544 covers the smallest address range.
545
6dd38d79
HPN
5462013-10-18 Hans-Peter Nilsson <hp@axis.com>
547
548 * elf32-cris.c (cris_elf_check_relocs): Don't assume
549 a registered dynobj means that a .got has been created.
550
fb8a5684
AM
5512013-10-17 Alan Modra <amodra@gmail.com>
552
553 PR 16056
554 * elf.c (copy_elf_program_header): Only consider SEC_ALLOC sections
555 when finding lowest_section.
556
b60bf9be
CF
5572013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
558
559 * elfxx-mips.c (mips_elf_obj_tdata): Add abi_msa_bfd.
560 (mips_elf_merge_obj_attributes): Set abi_msa_bfd to the first object
561 file that has a Tag_GNU_MIPS_ABI_MSA attribute.
562 Merge Tag_GNU_MIPS_ABI_MSA attributes.
563
b2e951ec
NC
5642013-10-14 Nick Clifton <nickc@redhat.com>
565
566 * gen-aout.c (main): Fix formatting. Close file.
567
c5d6fa44
RS
5682013-10-13 Richard Sandiford <rdsandiford@googlemail.com>
569
570 * elfxx-mips.c (mips_use_local_got_p): New function.
571 (mips_elf_count_got_symbols, mips_elf_calculate_relocation): Use it.
572 (_bfd_mips_elf_check_relocs): Set pointer_equality_needed for
573 GOT and absolute references.
574
0e4894b9
RM
5752013-10-09 Roland McGrath <mcgrathr@google.com>
576
9a757e4d
RM
577 * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Cast switch
578 expression to int to silence over-eager compiler warnings.
579
1c1479bf
RM
580 * xcofflink.c (_bfd_xcoff_bfd_final_link): Don't touch EREL in
581 loop that doesn't use (or initialize) it.
582
0e4894b9
RM
583 * elfxx-tilegx.c (tilegx32_plt_tail_entry, tilegx32_plt_tail_entry):
584 Move second const qualifier so it applies to the pointer.
585
b707aa49
NC
5862013-10-09 Nick Clifton <nickc@redhat.com>
587
588 PR binutils/16022
589 * elf32-rx.c (rx_dump_symtab): Add missing break statements.
590
6e114b15
TT
5912013-10-09 Tom Tromey <tromey@redhat.com>
592
593 * opncls.c (get_alt_debug_link_info_shim): Update type of 'len'.
594
6d490cdb
NC
5952013-10-09 Nick Clifton <nickc@redhat.com>
596
597 PR ld/16021
598 * elf32-rl78.c (rl78_dump_symtab): Delete.
599 (rl78_get_reloc): Delete.
600
acd13123
TT
6012013-10-09 Tom Tromey <tromey@redhat.com>
602
603 * bfd-in2.h: Rebuild.
604 * opncls.c (bfd_get_alt_debug_link_info): Change type of
605 buildid_len to bfd_size_type.
606
86879d88
SDJ
6072013-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
608
609 PR binutils/15993
610 * elf32-m32c.c (dump_symtab): Add missing "break;" statement on each
611 "case". Reindent "switch" statements.
612
dc294be5
TT
6132013-10-08 Tom Tromey <tromey@redhat.com>
614
615 * bfd-in2.h: Rebuild.
616 * opncls.c (bfd_get_alt_debug_link_info): Add buildid_len
617 parameter. Change type of buildid_out. Update.
618 (get_alt_debug_link_info_shim): New function.
619 (bfd_follow_gnu_debuglink): Use it.
620
5bb7df2e
AS
6212013-10-08 Andreas Schwab <schwab@suse.de>
622
623 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Add DT_DEBUG also
624 for PIE executables.
625
e0eebf97
JBG
6262013-10-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
627
628 * configure: Regenerate.
629
1419bbe5
WN
6302013-10-03 Will Newton <will.newton@linaro.org>
631
632 * configure: Regenerate.
633 * configure.in: Build elf-ifunc.o for AArch64.
634 * elfnn-aarch64.c: Include objalloc.h.
635 (elfNN_aarch64_local_htab_hash): New function.
636 (elfNN_aarch64_local_htab_eq): New function.
637 (elfNN_aarch64_get_local_sym_hash): New function.
638 (elfNN_aarch64_link_hash_table_create): Initialize local STT_GNU_IFUNC
639 symbol hash.
640 (elfNN_aarch64_hash_table_free): Free local STT_GNU_IFUNC symbol hash.
641 (elfNN_aarch64_final_link_relocate): Add sym argument. Add support
642 for handling STT_GNU_IFUNC symbols.
643 (elfNN_aarch64_gc_sweep_hook): Add support for garbage collecting
644 references to STT_GNU_IFUNC symbols.
645 (elfNN_aarch64_adjust_dynamic_symbol): Add support for handling
646 STT_GNU_IFUNC symbols.
647 (elfNN_aarch64_check_relocs): Add support for handling STT_GNU_IFUNC
648 symbols. Ensure we don't increase plt.refcount from -1 to 0.
649 (elfNN_aarch64_post_process_headers): Call _bfd_elf_set_osabi.
650 (elfNN_aarch64_is_function_type): Remove function.
651 (elfNN_aarch64_allocate_dynrelocs): Handle STT_GNU_IFUNC symbols.
652 (elfNN_aarch64_allocate_ifunc_dynrelocs): New function.
653 (elfNN_aarch64_allocate_local_dynrelocs): New function.
654 (elfNN_aarch64_allocate_local_ifunc_dynrelocs): New function.
655 (elfNN_aarch64_size_dynamic_sections): Call
656 elfNN_aarch64_allocate_local_dynrelocs.
657 (elfNN_aarch64_create_small_pltn_entry): Add info argument.
658 Add support for creating .iplt entries for STT_GNU_IFUNC symbols.
659 (elfNN_aarch64_finish_dynamic_symbol): Add support for handling
660 STT_GNU_IFUNC symbols and .iplt.
661 (elfNN_aarch64_finish_local_dynamic_symbol): New function.
662 (elfNN_aarch64_finish_dynamic_sections): Call
663 elfNN_aarch64_finish_local_dynamic_symbol.
664
cbb2b07e
NC
6652013-09-30 Nick Clifton <nickc@redhat.com>
666
667 * cpu-msp430.c: Use printable names that match the values
668 displayed by readelf.
669
4e8516b2
AP
6702013-08-25 Andrew Pinski <apinski@cavium.com>
671
672 * elfnn-aarch64.c (TCB_SIZE): Base on the ARCH_SIZE rather than a
673 fixed size of 16.
674
2f9efdfc
RS
6752013-09-24 Gregory Fong <gregory.0xf0@gmail.com>
676
677 * elfxx-mips.c (mips_elf_create_got_section): Hide
678 _GLOBAL_OFFSET_TABLE_.
679
91ea67ca
AM
6802013-09-24 Alan Modra <amodra@gmail.com>
681
682 * elf32-mips.c (ELF_OSABI): Undef for vxworks.
683
8a865bcb
AM
6842013-09-24 Alan Modra <amodra@gmail.com>
685
686 * syms.c (_bfd_stab_section_find_nearest_line): Ignore partial
687 stabs at end of .stab. Tidy variable usage. Don't drop the need
688 for a NULL function name stab if If N_FUN stab is ignored.
689 Ensure index entry count loop matches write loop.
690
cc9afea3
AM
6912013-09-20 Alan Modra <amodra@gmail.com>
692
693 * configure: Regenerate.
694
bc080e94
TG
6952013-09-18 Tristan Gingold <gingold@adacore.com>
696
697 * configure.in: Bump version to 2.24.51
698 * configure: Regenerate.
699
5baf5e34
SE
7002013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com>
701
702 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Handle
703 EF_MIPS_FP64.
704
29bff3ea
DA
7052013-08-31 John David Anglin <dave.anglin@bell.net>
706
707 * elf64-hppa.c (elf_hppa_final_link_relocate): Add missing '%' to
708 format string.
709
5c98a14e
JJ
7102013-08-29 Jakub Jelinek <jakub@redhat.com>
711
712 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow
713 64-bit -mcmodel=large -fpic TLS GD and LD sequences.
714 (elf_x86_64_relocate_section): Handle -mcmodel=large -fpic
715 TLS GD and LD sequences in GD->LE, GD->IE and LD->LE transitions.
716
e5034e59
AM
7172013-08-27 Alan Modra <amodra@gmail.com>
718
719 * elf-bfd.h (struct elf_backend_data): Remove as_needed_cleanup.
720 Add notice_as_needed.
721 * elf64-ppc.c (elf_backend_as_needed_cleanup): Don't define.
722 (elf_backend_notice_as_needed): Define.
723 (ppc64_elf_as_needed_cleanup): Rename and adjust..
724 (ppc64_elf_notice_as_needed): ..to this.
725 * elflink.c (_bfd_elf_notice_as_needed): New function, extracted..
726 (elf_link_add_object_symbols): ..from here.
727 * elfxx-target.h (elf_backend_as_needed_cleanup): Don't define.
728 (elf_backend_notice_as_needed): Define..
729 (elfNN_bed): ..and use here.
730
1098fd41
RM
7312013-08-26 Roland McGrath <mcgrathr@google.com>
732
733 * archures.c (bfd_mach_i386_nacl, bfd_mach_i386_i386_nacl): New macros.
734 (bfd_mach_x86_64_nacl, bfd_mach_x64_32_nacl): New macros.
735 * cpu-i386.c (bfd_arch_i386_onebyte_nop_fill): New function.
736 (bfd_i386_nacl_arch): New variable.
737 (bfd_x86_64_nacl_arch, bfd_x64_32_nacl_arch): New variables.
738 (bfd_x64_32_arch_intel_syntax): Link them into the list.
739 * bfd-in2.h: Regenerate.
740
887badb3
RM
7412013-08-26 Roland McGrath <mcgrathr@google.com>
742
743 * elf-nacl.c (nacl_modify_segment_map): Fix logic reordering the
744 elf_segment_map list. If an executable segment is page-aligned
745 but does not end with a full page, then append a fake section into
746 the segment map entry that pads out the page.
747 (nacl_final_write_processing): New function. Write the code fill
748 laid out in nacl_modify_segment_map.
749 * elf-nacl.h: Declare it.
750 * elf32-arm.c (elf32_arm_nacl_final_write_processing): New function.
751 (elf_backend_final_write_processing): Define it for NaCl backend.
752 * elf32-i386.c (elf_backend_final_write_processing): Likewise.
753 * elf64-x86-64.c (elf_backend_final_write_processing): Likewise.
754
755 * elf-nacl.c (segment_eligible_for_headers): Rename MAXPAGESIZE
756 parameter to MINPAGESIZE.
757 (nacl_modify_segment_map): Use minpagesize instead of maxpagesize.
758
759 * elf32-arm.c (ELF_MINPAGESIZE, ELF_COMMONPAGESIZE): #undef for NaCl.
760
387f8054
MR
7612013-08-24 Maciej W. Rozycki <macro@linux-mips.org>
762
763 * elf32-tilepro.c (tilepro_elf_finish_dynamic_sections): Don't
764 set GOT's entry size if there is no ELF section data.
765 * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise.
766 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections):
767 Likewise.
768
f8222080
L
7692013-08-23 H.J. Lu <hongjiu.lu@intel.com>
770
771 * elf64-x86-64.c (get_elf_x86_64_arch_data): New.
772 (get_elf_x86_64_backend_data): Use it.
773 (elf_x86_64_size_dynamic_sections): Likewise.
774
9aff4b7a
NC
7752013-08-23 Yuri Chornoivan <yurchor@ukr.net>
776
777 PR binutils/15834
778 * bfdio.c: Fix typos.
779 * elf32-spu.c: Likewise.
780 * elfnn-aarch64.c: Likewise.
781
2eea2440
TG
7822013-08-21 Tristan Gingold <gingold@adacore.com>
783
784 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Also count
785 .ovrflo sections.
786 * coffcode.h (coff_compute_section_file_positions): Force
787 match between file offset and vma offset.
788
934bce08
AM
7892013-08-21 Alan Modra <amodra@gmail.com>
790
791 * elflink.c (_bfd_elf_merge_symbol): Set *poldbfd, *poldweak,
792 and *poldalignment before exiting when !relocs_compatible.
793
00b7642b
AM
7942013-08-21 Alan Modra <amodra@gmail.com>
795
796 * elflink.c (_bfd_elf_define_linkage_sym): Don't set STV_INTERNAL
797 symbols to STV_HIDDEN.
798
62c34db3
NC
7992013-08-14 John Tytgat <john@bass-software.com>
800
801 PR ld/15787
802 * elf32-arm.c (elf32_arm_final_link_relocate): Use origin of output
803 segment containing the relocating symbol instead of assuming 0 for
804 sb group relocations.
805
4046d87a
NC
8062013-08-09 Nick Clifton <nickc@redhat.com>
807
808 * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Complain if G10
809 flag bits do not match.
810 (rl78_elf_print_private_bfd_data): Describe G10 flag.
811
13896403
RS
8122013-08-05 John Tytgat <john@bass-software.com>
813
814 * po/BLD-POTFILES.in: Regenerate.
815 * po/SRC-POTFILES.in: Likewise.
816
31a91d61
NC
8172013-07-31 John Tytgat <john@bass-software.com>
818
819 PR ld/15787
820 * elf32-arm.c (elf32_arm_final_link_relocate): Base SB on the
821 output section VMA.
822
a505d7ac
MR
8232013-07-28 Maciej W. Rozycki <macro@linux-mips.org>
824
825 * elf64-hppa.c (elf64_hppa_finish_dynamic_sections)
826 <DT_HP_LOAD_MAP>: Return unsuccessfully if there's no `.data'
827 section.
828
0608afa7
AP
8292013-07-27 Andrew Pinski <apinski@cavium.com>
830
831 * elfnn-aarch64.c (elfNN_aarch64_check_relocs):
832 Use the correct alignment for
833 _bfd_elf_make_dynamic_reloc_section for ILP32.
834
54757ed1
AP
8352013-07-27 Andrew Pinski <apinski@cavium.com>
836
837 * elfnn-aarch64.c (elfNN_aarch64_howto_from_bfd_reloc): Handle
838 BFD_RELOC_AARCH64_NONE explicitly.
839
f6518c48
MR
8402013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
841
842 * elf32-vax.c (elf_vax_finish_dynamic_sections): Don't set GOT's
843 entry size if there is no ELF section data.
844
125b5bac
MR
8452013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
846
847 * elf32-vax.c (elf_vax_check_relocs) <R_VAX_GOT32, R_VAX_PLT32>:
848 Don't check symbol visibility here. Remove a check already
849 asserted for.
850 (elf_vax_instantiate_got_entries): Use SYMBOL_REFERENCES_LOCAL
851 instead of individual checks.
852 (elf_vax_relocate_section) <R_VAX_GOT32, R_VAX_PLT32>: Only
853 check the offset to decide if produce a GOT or PLT entry.
854 Remove redundant assertions. Remove code to produce GOT entries
855 for local symbols. Remove a duplicate comment and add a comment
856 on GOT relocations.
857 (elf_vax_finish_dynamic_symbol): Remove code to produce RELATIVE
858 dynamic relocs.
859
49d01bf6
MR
8602013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
861
862 * elf32-vax.c (elf_vax_always_size_sections): Correct a comment
863 typo.
864
fac3d241
MR
8652013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
866
867 * elf32-vax.c (elf_vax_discard_got_entries): New function.
868 (elf_vax_always_size_sections): Likewise.
869 (elf_vax_size_dynamic_sections): Remove code moved to
870 elf_vax_always_size_sections. Make comment on
871 elf_vax_instantiate_got_entries match reality.
872 (elf_vax_instantiate_got_entries): Assert that rather than check
873 if dynobj is null. Don't check for dynamic_sections_created.
874 Make function description match reality.
875 (elf_backend_always_size_sections): New macro.
876
729eabd5
AM
8772013-07-25 Alan Modra <amodra@gmail.com>
878
879 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Replace opd_relocs
880 with a union.
881 (opd_entry_value): Cache .opd section contents.
882 (ppc64_elf_relocate_section): Adjust.
883
db6a5d5f
AM
8842013-07-25 Alan Modra <amodra@gmail.com>
885
886 PR ld/15762
887 PR ld/12761
888 * elflink.c (elf_link_add_object_symbols): Correct test in
889 last patch. Remove unnecessary code.
890
7fa9fcb6
TG
8912013-07-24 Tristan Gingold <gingold@adacore.com>
892
893 * coff-rs6000.c (xcoff_howto_table): Fix masks and pc_relative for
894 R_RBR. Add numbers in comments.
895 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_PPC_B16.
896 * coff64-rs6000.c: Likewise.
897
436e1eba
AM
8982013-07-20 Alan Modra <amodra@gmail.com>
899
900 PR ld/15762
901 PR ld/12761
902 * elflink.c (elf_link_add_object_symbols): Don't clobber
903 .gnu.warning.symbol sections when shared.
904
ee181c72
NC
9052013-07-19 Nick Clifton <nickc@redhat.com>
906
907 * elf32-rx.c (rx_elf_relocate_section): Fix typo: move
908 saw_subtract from R_RX_OPdiv to R_RX_OPneg.
909
df301bfc
NC
9102013-07-18 Travis Snoozy <quandary@remstate.com>
911
912 PR ld/15721
913 * elf32-msp430.c (R_MSP430_10_PCREL): Use 10-bit source and
914 destination masks.
915 * R_MSP430_2X_PCREL: Likewise.
916 * R_MSP430X_10_PCREL: Likewise.
917 * R_MSP430X_2X_PCREL: Likewise.
918
39f21624
NC
9192013-07-18 Terry Guo <terry.guo@arm.com>
920
00b7642b 921 * elf32-arm.c (arm_type_of_stub): Don't use ST_BRANCH_TO_ARM for
39f21624 922 thumb only targets.
00b7642b 923 (elf32_arm_final_link_relocate): Likewise.
39f21624 924
671a6cbe
NC
9252013-07-18 Bill Neubauer <wcn@google.com>
926
927 * mach-o.c (mach_o_section_name_xlat dw): Add entry for
928 .debug_gdb_scripts
929
7a89b94e
NC
9302013-07-18 Roland McGrath <mcgrathr@google.com>
931
932 * elf32-arm.c (elf32_arm_stub_long_branch_arm_nacl): New variable.
933 (elf32_arm_stub_long_branch_arm_nacl_pic): New variable.
934 (arm_build_one_stub): Increase MAXRELOCS to 3.
935 (arm_type_of_stub): Use them if GLOBALS->nacl_p.
936 (struct elf32_arm_link_hash_table): Give add_stub_section member's
937 pointee type a third argument.
938 (elf32_arm_create_or_find_stub_sec): Update caller.
939 (elf32_arm_size_stubs): Update argument type.
940 * bfd-in.h (elf32_arm_size_stubs): Update decl.
941 * bfd-in2.h: Regenerate.
942 * libbfd.h: Regenerate.
943
d929bc19
MR
9442013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
945
946 * elfxx-mips.c (mips_elf_merge_obj_attributes): Replace hardcoded
947 magic numbers with enum values.
948
7e11d300
RM
9492013-07-12 Roland McGrath <mcgrathr@google.com>
950
951 * reloc.c: Add BFD_RELOC_390_PC12DBL, BFD_RELOC_390_PLT12DBL,
952 BFD_RELOC_390_PC24DBL, BFD_RELOC_390_PLT24DBL (should have
953 been added here with 2013-07-05 elf32-s390.c change).
954 * bfd-in2.h: Regenerate (no-op).
955 * libbfd.h: Regenerate (no-op).
956
ba92f887
MR
9572013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
958
959 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Handle
960 EF_MIPS_NAN2008.
961 (_bfd_mips_elf_print_private_bfd_data): Likewise.
962
53452371
TG
9632013-07-09 Tristan Gingold <gingold@adacore.com>
964
965 * vms-alpha.c (struct vms_private_data_struct): Remove
966 flag_hash_long_names and flag_show_after_trunc.
967 (hash_string): Remove.
968 (_bfd_vms_length_hash_symbol): Remove.
969 (alpha_vms_write_exec): Remove call to _bfd_vms_length_hash_symbol.
970 (_bfd_vms_write_egsd): Likewise. Rewrite condition.
971 (_bfd_vms_write_ehdr): Remove code that set removed flags.
972 (_bfd_vms_write_etir): Remove call to _bfd_vms_length_hash_symbol.
973 (vms_bfd_is_local_label_name): Remove trace call.
974
787548c8
TG
9752013-07-09 Tristan Gingold <gingold@adacore.com>
976
977 * hosts/alphavms.h: Include config.h and ansidecl.h, remove useless
978 macros.
979 * configure.com: Adjust to match changes in configure.
980 * makefile.vms (OBJS): Update list.
981
2d63fb6c
TG
9822013-07-05 Tristan Gingold <gingold@adacore.com>
983
984 * coffcode.h (coff_write_object_contents): Use ".ovrflo" name for
985 overflow sections.
986
fb798c50
AK
9872013-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
988
989 * elf32-s390.c: Add new relocation definitions R_390_PC12DBL,
990 R_390_PLT12DBL, R_390_PC24DBL, and R_390_PLT24DBL.
991 (elf_s390_reloc_type_lookup, elf_s390_check_relocs)
992 (elf_s390_gc_sweep_hook, elf_s390_relocate_section): Support new
993 relocations.
994 * elf64-s390.c: See elf32-s390.c
995 * bfd-in2.h: Add new relocs to enum bfd_reloc_code_real.
996 * libbfd.h: Add new reloc strings.
997
7bcccb57
MS
9982013-07-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
999
1000 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Reorder case
1001 values.
1002 (elfNN_aarch64_relocate_section): Likewise.
1003 (elfNN_aarch64_gc_sweep_hook): Likewise.
1004 (elfNN_aarch64_check_relocs): Likewise.
1005
5295321c
AM
10062013-07-03 Alan Modra <amodra@gmail.com>
1007
1008 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't hide .TOC.
1009 when relocatable. Don't change root.type or type here.
1010 (ppc64_elf_set_toc): Set type of .TOC. to STT_OBJECT.
1011
ba8ca3e7
AM
10122013-07-03 Alan Modra <amodra@gmail.com>
1013
1014 * elf64-ppc.c (struct ppc_stub_hash_entry): Delete "addend".
1015 (ppc64_elf_size_stubs): Don't set "addend".
1016 (ppc64_elf_relocate_section): Don't allow calls via
1017 toc-adjusting stubs without a following nop even in an
1018 executable, except for self-calls and both libc_start_main
1019 and .libc_start_main.
1020
c66bb0ee
AM
10212013-07-03 Alan Modra <amodra@gmail.com>
1022
1023 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Hide ".TOC.".
1024
d5be367d
TG
10252013-07-02 Tristan Gingold <gingold@adacore.com>
1026
1027 * coff-rs6000.c (xcoff_find_nearest_line_discriminator): Add missing
1028 line.
1029
9a1ada6c
TG
10302013-07-02 Tristan Gingold <gingold@adacore.com>
1031
b1a49096
TG
1032 * vms-alpha.c (_bfd_generic_find_nearest_line_discriminator): Define.
1033 (_bfd_vms_find_nearest_line_discriminator): New function.
1034
10352013-07-02 Tristan Gingold <gingold@adacore.com>
c66bb0ee 1036
9a1ada6c
TG
1037 * coff-rs6000.c (xcoff_create_csect_from_smclas): Handle more smclas.
1038
a685c4e6
TG
10392013-07-02 Tristan Gingold <gingold@adacore.com>
1040
1041 * coff-rs6000.c (xcoff_find_nearest_line_discriminator): New function.
1042 (rs6000coff_vec): Reference it.
1043
cc0efaa8
MS
10442013-07-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
1045
1046 * elfnn-aarch64.c (aarch64_elf_create_got_section): New.
1047 (elfNN_aarch64_check_relocs): Use aarch64_elf_create_got_section.
1048 (elfNN_aarch64_create_dynamic_sections): Do not define
1049 _GLOBAL_OFFSET_TABLE_; call aarch64_elf_create_got_section.
1050
f40da81b
AM
10512013-07-02 Alan Modra <amodra@gmail.com>
1052
1053 * elf64-ppc.c (ppc64_elf_relocate_section): Set "relocation" for
1054 .TOC. after relocatable check.
1055
1c865ab2
AM
10562013-07-01 Alan Modra <amodra@gmail.com>
1057
1058 * elf64-ppc.h (ppc64_elf_toc): Delete.
1059 (ppc64_elf_set_toc): Declare.
1060 * elf64-ppc.c (ppc64_elf_toc_reloc): Replace call to ppc64_elf_toc
1061 with call the ppc64_elf_set_toc.
1062 (ppc64_elf_toc_ha_reloc, ppc64_elf_toc64_reloc): Likewise.
1063 (ppc64_elf_start_multitoc_partition): Likewise.
1064 (struct ppc_link_hash_table): Delete dot_toc_dot. Replace all uses
1065 with elf.hgot.
1066 (ppc64_elf_process_dot_syms): Don't make a fake function descriptor
1067 for ".TOC.".
1068 (ppc64_elf_check_relocs): Mark sections with a reference to .TOC.
1069 as needing a toc pointer.
1070 (ppc64_elf_size_stubs): Don't set dot_toc_dot here.
1071 (ppc64_elf_set_toc): Rename from ppc64_elf_toc. Add info param.
1072 Set elf.hgot value.
1073
a69ed7f7
L
10742013-06-28 H.J. Lu <hongjiu.lu@intel.com>
1075
1076 PR ld/15685
1077 * elf64-x86-64.c (elf_x86_64_relocate_section): Handle
1078 R_X86_64_DTPOFF64.
1079
c3b6407f
NC
10802013-06-28 Nick Clifton <nickc@redhat.com>
1081
1082 PR ld/15302
1083 * elf32-arm.c (allocate_dynrelocs_for_symbol): Revert previous patch.
1084
8db339a6
MS
10852013-06-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
1086
1087 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Reserve one slot
1088 in sgot.
1089 (elfNN_aarch64_finish_dynamic_sections): Place the &_DYNAMIC reference
1090 in sgot[0] rather than sgotplt[0].
1091
2d426575
YZ
10922013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
1093
1094 * Makefile.am (elf32-aarch64.c): Add a #line cpp directive at the
1095 beginning of the generated file.
1096 (elf64-aarch64.c): Likewise.
1097 * Makefile.in: Re-generated.
1098
caed7120
YZ
10992013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
1100
1101 * Makefile.am (BFD64_BACKENDS): Add elfxx-aarch64.c.
1102 (BFD64_BACKENDS_CFILES): Add elfxx-aarch64.lo.
1103 * Makefile.in: Re-generated.
1104 * configure.in (bfd_elf64_bigaarch64_vec): Add elfxx-aarch64.lo.
1105 (bfd_elf64_littleaarch64_vec): Likewise.
1106 (bfd_elf32_bigaarch64_vec): Likewise.
1107 (bfd_elf32_littleaarch64_vec): Likewise.
1108 * configure: Re-generated.
1109 * elfxx-aarch64.c: New file; split from elf64-aarch64.c.
1110 * elfxx-aarch64.h: New file.
1111 * elfnn-aarch64.c: Include "elfxx-aarch64.h"; move the following
1112 stuff to elfxx-aarch64.c.
1113 (bfd_elf_aarch64_put_addend): Removed.
1114 (PG_OFFSET, PG): Likewise.
1115 (elfNN_aarch64_small_plt0_entry): Support ELF32.
1116 (elfNN_aarch64_tlsdesc_small_plt_entry): Likewise.
1117 (elf64_aarch64_grok_prstatus): Removed.
1118 (elf_backend_grok_prstatus): Removed.
1119 (insn32): Likewise.
1120 (aarch64_unsigned_overflow): Likewise.
1121 (aarch64_signed_overflow): Likewise.
1122 (aarch64_resolve_relocation): Likewise.
1123 (MASK): Likewise.
1124 (decode_branch_ofs_26): Likewise.
1125 (decode_cond_branch_ofs_19): Likewise.
1126 (decode_ld_lit_ofs_19): Likewise.
1127 (decode_tst_branch_ofs_14): Likewise.
1128 (decode_movw_imm): Likewise.
1129 (decode_adr_imm): Likewise.
1130 (decode_add_imm): Likewise.
1131 (reencode_branch_ofs_26): Likewise.
1132 (reencode_cond_branch_ofs_19): Likewise.
1133 (reencode_ld_lit_ofs_19): Likewise.
1134 (reencode_tst_branch_ofs_14): Likewise.
1135 (reencode_movw_imm): Likewise.
1136 (reencode_adr_imm): Likewise.
1137 (reencode_ldst_pos_imm): Likewise.
1138 (reencode_add_imm): Likewise.
1139 (reencode_movzn_to_movz): Likewise.
1140 (reencode_movzn_to_movn): Likewise.
1141 (aarch64_relocate): Update to call the new function names in
1142 elfxx-aarch64.c.
1143 (aarch64_calculate_got_entry_vma): Likewise.
1144 (elfNN_aarch64_final_link_relocate): Likewise.
1145 (elf64_aarch64_update_plt_entry): Likewise; change the type of the
1146 parameter 'r_type' to bfd_reloc_code_real_type; rename to ...
1147 (elf_aarch64_update_plt_entry): ... this.
1148 (elfNN_aarch64_create_small_pltn_entry): Update.
1149 (elfNN_aarch64_init_small_plt0_entry): Remove plt_got_base; add
1150 bfd_vma plt_got_2nd_ent; update to call elf_aarch64_update_plt_entry.
1151 (elfNN_aarch64_finish_dynamic_sections): Add plt_entry; update to
1152 call elf_aarch64_update_plt_entry.
1153
a6bb11b2
YZ
11542013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
1155
1156 * bfd-in2.h: Re-generated.
1157 * elfnn-aarch64.c (HOWTO64, HOWTO32): New define.
1158 (IS_AARCH64_TLS_RELOC): Change to be based on the
1159 bfd reloc enumerators.
1160 (IS_AARCH64_TLSDESC_RELOC): Likewise.
1161 (PG, PG_OFFSET): Cast literal to bfd_vma.
1162 (elf64_aarch64_howto_table): Removed.
1163 (elf64_aarch64_howto_dynrelocs): Removed.
1164 (elf64_aarch64_tls_howto_table): Removed.
1165 (elf64_aarch64_tlsdesc_howto_table): Removed.
1166 (elfNN_aarch64_howto_table): New table to host all howto entires..
1167 (R_AARCH64_*): Replaced by AARCH64_R (*) and AARCH64_R_STR (*).
1168 (elfNN_aarch64_bfd_reloc_from_howto): New function.
1169 (elfNN_aarch64_bfd_reloc_from_type): Ditto.
1170 (struct elf_aarch64_reloc_map): New.
1171 (elf_aarch64_reloc_map): New table.
1172 (elfNN_aarch64_howto_from_bfd_reloc): New function.
1173 (elfNN_aarch64_howto_from_type): Update to look up the new table
1174 elfNN_aarch64_howto_table.
1175 (struct elf64_aarch64_reloc_map): Remove.
1176 (elf64_aarch64_reloc_map): Remove.
1177 (elfNN_aarch64_reloc_type_lookup): Change to call
1178 elfNN_aarch64_howto_from_bfd_reloc.
1179 (elfNN_aarch64_reloc_name_lookup): Change to look up the new table
1180 elfNN_aarch64_howto_table.
1181 (aarch64_resolve_relocation): Refactor to switch on the bfd
1182 reloc enumerators.
1183 (bfd_elf_aarch64_put_addend): Likewise.
1184 (elfNN_aarch64_final_link_relocate): Likewise.
1185 (aarch64_tls_transition_without_check): Likewise.
1186 (aarch64_reloc_got_type): Likewise.
1187 (aarch64_can_relax_tls): Likewise.
1188 (aarch64_tls_transition): Likewise.
1189 (elfNN_aarch64_tls_relax): Likewise.
1190 (elfNN_aarch64_final_link_relocate): Likewise.
1191 (elfNN_aarch64_relocate_section): Likewise.
1192 (elfNN_aarch64_gc_sweep_hook): Likewise.
1193 (elfNN_aarch64_check_relocs): Likewise.
1194 (aarch64_tls_transition): Change to return a bfd reloc enumerator.
1195 * libbfd.h: Re-generated.
1196 * reloc.c: Re-order the AArch64 bfd reloc enumerators.
1197 (BFD_RELOC_AARCH64_RELOC_START)
1198 (BFD_RELOC_AARCH64_RELOC_END)
1199 (BFD_RELOC_AARCH64_LD_GOT_LO12_NC)
1200 (BFD_RELOC_AARCH64_LD32_GOT_LO12_NC)
1201 (BFD_RELOC_AARCH64_TLSDESC_LD_LO12_NC)
1202 (BFD_RELOC_AARCH64_TLSDESC_LD32_LO12_NC)
1203 (BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC)
1204 (BFD_RELOC_AARCH64_TLSIE_LD32_GOTTPREL_LO12_NC)
1205 (BFD_RELOC_AARCH64_IRELATIVE): New relocs.
1206
cec5225b
YZ
12072013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
1208
1209 * Makefile.am (BFD64_BACKENDS): Add elf32-aarch64.lo.
1210 (BUILD_CFILES): Add elf32-aarch64.c.
1211 (elf32-aarch64.c): New rule for generating from elfnn-aarch64.c.
1212 * Makefile.in: Re-generated.
1213 * archures.c (bfd_mach_aarch64_ilp32): New define.
1214 * bfd-in.h (bfd_elf32_aarch64_init_maps): New declaration.
1215 (bfd_elf32_aarch64_set_options): Ditto.
1216 (elf32_aarch64_setup_section_lists): Ditto.
1217 (elf32_aarch64_next_input_section): Ditto.
1218 (elf32_aarch64_size_stubs): Ditto.
1219 (elf32_aarch64_build_stubs): Ditto.
1220 * bfd-in2.h: Re-generated.
1221 * config.bfd (aarch64-*-elf): Add bfd_elf32_littleaarch64_vec
1222 and bfd_elf32_bigaarch64_vec.
1223 (aarch64-*-linux*): Likewise.
1224 (aarch64_be-*-elf): Likewise.
1225 (aarch64_be-*-linux*): Likewise.
1226 * configure.in (bfd_elf32_bigaarch64_vec)
1227 (bfd_elf32_littleaarch64_vec): New.
1228 * configure: Re-generated.
1229 * cpu-aarch64.c (compatible): Don't allow mixing ilp32 objects with
1230 lp64 ones.
1231 (bfd_aarch64_arch_ilp32): New.
1232 (bfd_aarch64_arch): Link to bfd_aarch64_arch_ilp32.
1233 * elfnn-aarch64.c (ARCH_SIZE): New define.
1234 (AARCH64_R, AARCH64_R_STR, LOG_FILE_ALIGN): New defines.
1235 (GOT_ENTRY_SIZE): Re-define as (ARCH_SIZE / 8).
1236 (elf64_aarch64_*): Rename to elfNN_aarch64_*.
1237 (ELF64_R_*): Rename to ELFNN_R_*.
1238 Plus other paramaterization.
1239 * targets.c (bfd_elf32_bigaarch64_vec, bfd_elf32_littleaarch64_vec):
1240 New declarations.
1241 (_bfd_target_vector): Add bfd_elf32_bigaarch64_vec and
1242 bfd_elf32_littleaarch64_vec.
1243
81197114
YZ
12442013-06-26 Yufeng Zhang <yufeng.zhang@arm.com>
1245
1246 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-aarch64.c.
1247 (BUILD_CFILES): Add elf64-aarch64.c.
1248 (elf64-aarch64.c): New rule for generating from elfnn-aarch64.c.
1249 * Makefile.in: Re-generated.
1250 * elf64-aarch64.c: Rename to ...
1251 * elfnn-aarch64.c: ... this.
1252
833794fc
MR
12532013-06-25 Maciej W. Rozycki <macro@codesourcery.com>
1254 Paul Brook <paul@codesourcery.com>
1255
1256 * elfxx-mips.h (_bfd_mips_elf_insn32): New prototype.
1257 * elfxx-mips.c (mips_elf_link_hash_table): Add insn32 member.
1258 (STUB_MOVE32_MICROMIPS, STUB_JALR32_MICROMIPS): New macros.
1259 (MICROMIPS_INSN32_FUNCTION_STUB_NORMAL_SIZE): Likewise.
1260 (MICROMIPS_INSN32_FUNCTION_STUB_BIG_SIZE): Likewise.
1261 (micromips_insn32_o32_exec_plt0_entry): New variable.
1262 (micromips_insn32_o32_exec_plt_entry): Likewise.
1263 (_bfd_mips_elf_adjust_dynamic_symbol): Handle insn32 mode.
1264 (mips_elf_estimate_stub_size): Likewise.
1265 (_bfd_mips_elf_size_dynamic_sections): Likewise.
1266 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
1267 (mips_finish_exec_plt): Likewise.
1268 (_bfd_mips_elf_relax_section): Likewise.
1269 (_bfd_mips_elf_insn32): New function.
1270 (_bfd_mips_elf_get_synthetic_symtab): Handle insn32 PLT.
1271
1bbce132
MR
12722013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
1273
1274 * elfxx-mips.h (_bfd_mips_elf_get_synthetic_symtab): New
1275 prototype.
1276 * elf32-mips.c (elf_backend_plt_sym_val): Remove macro.
1277 (bfd_elf32_get_synthetic_symtab): New macro.
1278 * elfxx-mips.c (plt_entry): New structure.
1279 (mips_elf_link_hash_entry): Add use_plt_entry member.
1280 (mips_elf_link_hash_table): Rename plt_entry_size member to
1281 plt_mips_entry_size. Add plt_comp_entry_size, plt_mips_offset,
1282 plt_comp_offset, plt_got_index entries and plt_header_is_comp
1283 members.
1284 (STUB_LW_MICROMIPS, STUB_MOVE_MICROMIPS): New macros.
1285 (STUB_LUI_MICROMIPS, STUB_JALR_MICROMIPS): Likewise.
1286 (STUB_ORI_MICROMIPS, STUB_LI16U_MICROMIPS): Likewise.
1287 (STUB_LI16S_MICROMIPS): Likewise.
1288 (MICROMIPS_FUNCTION_STUB_NORMAL_SIZE): Likewise.
1289 (MICROMIPS_FUNCTION_STUB_BIG_SIZE): Likewise.
1290 (micromips_o32_exec_plt0_entry): New variable.
1291 (mips16_o32_exec_plt_entry): Likewise.
1292 (micromips_o32_exec_plt_entry): Likewise.
1293 (mips_elf_link_hash_newfunc): Initialize use_plt_entry.
1294 (mips_elf_output_extsym): Update to use gotplt_union's plist
1295 member rather than offset.
1296 (mips_elf_gotplt_index): Likewise. Remove the VxWorks
1297 restriction. Use MIPS_ELF_GOT_SIZE to calculate GOT address.
1298 (mips_elf_count_got_symbols): Update to use gotplt_union's plist
1299 member rather than offset.
1300 (mips_elf_calculate_relocation): Handle MIPS16/microMIPS PLT
1301 entries.
1302 (_bfd_mips_elf_create_dynamic_sections): Don't set PLT sizes
1303 here.
1304 (mips_elf_make_plt_record): New function.
1305 (_bfd_mips_elf_check_relocs): Update comment. Record occurences
1306 of JAL relocations that might need a PLT entry.
1307 (_bfd_mips_elf_adjust_dynamic_symbol): Update to use
1308 gotplt_union's plist member rather than offset. Set individual
1309 PLT entry sizes here. Handle MIPS16/microMIPS PLT entries.
1310 Don't set the symbol's value in the symbol table for PLT
1311 references here. Don't set the PLT or PLT GOT section sizes
1312 here.
1313 (mips_elf_estimate_stub_size): Handle microMIPS stubs.
1314 (mips_elf_allocate_lazy_stub): Likewise.
1315 (mips_elf_lay_out_lazy_stubs): Likewise. Define a _MIPS_STUBS_
1316 magic symbol.
1317 (mips_elf_set_plt_sym_value): New function.
1318 (_bfd_mips_elf_size_dynamic_sections): Set PLT header size and
1319 PLT and PLT GOT section sizes here. Set the symbol values in
1320 the symbol table for PLT references here. Handle microMIPS
1321 annotation of the _PROCEDURE_LINKAGE_TABLE_ magic symbol.
1322 (_bfd_mips_elf_finish_dynamic_symbol): Update to use
1323 gotplt_union's plist member rather than offset. Handle
1324 MIPS16/microMIPS PLT entries. Handle microMIPS stubs.
1325 (_bfd_mips_vxworks_finish_dynamic_symbol): Update to use
1326 gotplt_union's plist member rather than offset. Use
1327 MIPS_ELF_GOT_SIZE to calculate GOT address.
1328 (mips_finish_exec_plt): Handle microMIPS PLT. Return status.
1329 (_bfd_mips_elf_finish_dynamic_sections): Handle result from
1330 mips_finish_exec_plt.
1331 (_bfd_mips_elf_link_hash_table_create): Update to use
1332 gotplt_union's plist member rather than offset.
1333 (_bfd_mips_elf_get_synthetic_symtab): New function.
1334
cd6d434c
NC
13352013-06-24 Wawa <caojinyu@msn.com>
1336
1337 PR 15657
1338 * hash.c (_bfd_stringtab_add): Copy the string if COPY is true.
1339
42429eac
RS
13402013-06-23 Richard Sandiford <rdsandiford@googlemail.com>
1341
1342 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Move MIPS ELF
1343 files to...
1344 (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): ...here.
1345 * Makefile.in: Regenerate.
1346 * config.bfd: Enclose all MIPS ELF targets in #ifdef BFD64.
1347 Set want64 to true for them at the end.
1348 * targets.c (_bfd_target_vector): Protect MIPS ELF targets with
1349 #ifdef BFD64.
1350
12d83431
SL
13512013-06-22 Sandra Loosemore <sandra@codesourcery.com>
1352
1353 * elf32-nios2.c (nios2_elf32_finish_dynamic_sections): Don't
1354 set sh_entsize for PLT section.
1355
b9eead84
YZ
13562013-06-20 Yufeng Zhang <yufeng.zhang@arm.com>
1357
1358 * bfd-in.h (bfd_elf64_aarch64_set_options): Add 'extern'.
1359 * bfd-in2.h: Re-generated.
1360 * elf64-aarch64.c (RELOC_SECTION): Removed.
1361 (SWAP_RELOC_IN, SWAP_RELOC_OUT): Ditto.
1362 (AARCH64_ELF_OS_ABI_VERSION): Ditto.
1363 (elf64_aarch64_link_hash_traverse): Ditto.
1364 (elf64_aarch64_size_stubs): Change 'Aarch64' to 'AArch64' in the
1365 comment.
1366
8847944f
WN
13672013-06-19 Will Newton <will.newton@linaro.org>
1368
1369 * configure: Regenerated.
1370 * configure.in: Remove aarch64 dependency on elf-ifunc.c.
1371 * elf64-aarch64.c: Remove objalloc.h include.
1372 (elf64_aarch64_howto_dynrelocs): Remove R_AARCH64_IRELATIVE howto.
1373 (struct elf64_aarch64_link_hash_table): Remove ifunc related
1374 members. (elf_aarch64_local_htab_hash): Remove function.
1375 (elf_aarch64_local_htab_eq): Remove function.
1376 (elf_aarch64_get_local_sym_hash): Remove function.
1377 (elf64_aarch64_link_hash_table_create): Remove local hash
1378 table initialization.
1379 (elf64_aarch64_final_link_relocate): Remove sym argument and
1380 handling of ifunc symbols.
1381 (elf64_aarch64_relocate_section): Don't pass sym argument to
1382 elf64_aarch64_final_link_relocate.
1383 (elf64_aarch64_gc_sweep_hook): Remove handling of ifunc symbols.
1384 (elf64_aarch64_adjust_dynamic_symbol): Likewise.
1385 (elf64_aarch64_check_relocs): Likewise.
1386 (elf64_aarch64_post_process_headers): Remove call to
1387 _bfd_elf_set_osabi.
1388 (elf64_aarch64_is_function_type): New function.
1389 (elf64_aarch64_allocate_dynrelocs): Remove handling of ifunc
1390 symbols. (elf_aarch64_allocate_local_dynrelocs): Remove function.
1391 (elf64_aarch64_size_dynamic_sections): Remove call to
1392 elf_aarch64_allocate_local_dynrelocs.
1393 (elf64_aarch64_create_small_pltn_entry): Remove info argument.
1394 Remove creation of R_AARCH64_IRELATIVE dynamic relocs.
1395 (elf64_aarch64_finish_dynamic_symbol): Remove handling of ifunc
1396 symbols. (elf_aarch64_finish_local_dynamic_symbol): Remove
1397 function. (elf64_aarch64_finish_dynamic_sections): Remove call to
1398 elf_aarch64_finish_local_dynamic_symbol.
1399 (elf64_aarch64_add_symbol_hook): Remove function.
1400
2532064a
YZ
14012013-06-14 Yufeng Zhang <yufeng.zhang@arm.com>
1402
1403 * elf64-aarch64.c (elf64_aarch64_final_link_relocate): Call
1404 aarch64_resolve_relocation and bfd_elf_aarch64_put_addend to
1405 handle the relocations of R_AARCH64_JUMP26, R_AARCH64_CALL26,
1406 R_AARCH64_LD64_GOT_LO12_NC, R_AARCH64_ADR_GOT_PAGE and
1407 R_AARCH64_GOT_LD_PREL19.
1408
2f47f5fc
NC
14092013-06-13 Terry Guo <terry.guo@arm.com>
1410
1411 PR ld/15302
1412 * elf32-arm.c (allocate_dynrelocs_for_symbol): Transform
1413 ST_BRANCH_TO_ARM into ST_BRANCH_TO_THUMB if the target only
1414 supports thumb instructions.
1415
34064ff3
DD
14162013-06-11 DJ Delorie <dj@redhat.com>
1417
1418 * elf32-rl78.c (rl78_elf_relocate_section): Fix OPsub math.
1419
3368874f
WN
14202013-06-11 Will Newton <will.newton@linaro.org>
1421
1422 * elf64-aarch64.c (elf_aarch64_get_local_sym_hash): Use
1423 ELF64_R_SYM instead of ELF32_R_SYM.
1424
47fc0f1f
NC
14252013-06-11 Nick Clifton <nickc@redhat.com>
1426
1427 * elf32-rl78.c (rl78_elf_finish_dynamic_sections): Onlly run
1428 checks if the dynamic sections have been created and relaxation
1429 has not been performed.
1430
692e2b8b
WN
14312013-06-07 Will Newton <will.newton@linaro.org>
1432
1433 * configure: Regenerate.
1434 * configure.in: Build elf-ifunc.o for AArch64.
1435 * elf64-aarch64.c: Include objalloc.h.
1436 (elf64_aarch64_howto_dynrelocs): Add R_AARCH64_IRELATIVE howto.
1437 (struct elf64_aarch64_link_hash_table): Add members for handling
1438 R_AARCH64_IRELATIVE relocations.
1439 (elf_aarch64_local_htab_hash): New function.
1440 (elf_aarch64_local_htab_eq): New function.
1441 (elf_aarch64_get_local_sym_hash): New function.
1442 (elf64_aarch64_link_hash_table_create): Initialize local STT_GNU_IFUNC
1443 symbol hash.
1444 (elf64_aarch64_hash_table_free): Free local STT_GNU_IFUNC symbol hash.
1445 (elf64_aarch64_final_link_relocate): Add sym argument. Add support
1446 for handling STT_GNU_IFUNC symbols.
1447 (elf64_aarch64_gc_sweep_hook): Add support for garbage collecting
1448 references to STT_GNU_IFUNC symbols.
1449 (elf64_aarch64_adjust_dynamic_symbol): Add support for handling
1450 STT_GNU_IFUNC symbols.
1451 (elf64_aarch64_check_relocs): Add support for handling STT_GNU_IFUNC
1452 symbols. Ensure we don't increase plt.refcount from -1 to 0.
1453 (elf64_aarch64_post_process_headers): Call _bfd_elf_set_osabi.
1454 (elf64_aarch64_is_function_type): Remove function.
1455 (elf64_aarch64_allocate_dynrelocs): Call
1456 _bfd_elf_allocate_ifunc_dyn_relocs for STT_GNU_IFUNC symbols.
1457 (elf_aarch64_allocate_local_dynrelocs): New function.
1458 (elf64_aarch64_size_dynamic_sections): Call
1459 elf_aarch64_allocate_local_dynrelocs. Initialize next_irelative_index.
1460 (elf64_aarch64_create_small_pltn_entry): Add info argument.
1461 Add support for creating .iplt entries for STT_GNU_IFUNC symbols.
1462 (elf64_aarch64_finish_dynamic_symbol): Add support for handling
1463 STT_GNU_IFUNC symbols and .iplt.
1464 (elf_aarch64_finish_local_dynamic_symbol): New function.
1465 (elf64_aarch64_finish_dynamic_sections): Call
1466 elf_aarch64_finish_local_dynamic_symbol.
1467 (elf64_aarch64_add_symbol_hook): New function.
1468
fa549f3b
AM
14692013-06-03 Alan Modra <amodra@gmail.com>
1470
1471 * syms.c (_bfd_stab_section_find_nearest_line): Add last_str
1472 var. Use it with last_stab.
1473
067ec077
CM
14742013-05-30 Paul Brook <paul@codesourcery.com>
1475
1476 * bfd-in2.h: Regenerate.
1477 * elf32-mips.c (elf_mips_eh_howto): New.
1478 (bfd_elf32_bfd_reloc_type_lookup ): Support BFD_RELOC_MIPS_EH.
1479 (bfd_elf32_bfd_reloc_name_lookup): Likewise.
1480 (mips_elf32_rtype_to_howto): Support R_MIPS_EH.
1481 * elf64-mips.c (elf_mips_eh_howto): New.
1482 (bfd_elf64_bfd_reloc_type_lookup): Support BFD_RELOC_MIPS_EH.
1483 (bfd_elf64_bfd_reloc_name_lookup): Likewise.
1484 (mips_elf64_rtype_to_howto): Support R_MIPS_EH.
1485 * libbfd.h: Regenerate.
1486 * reloc.c (BFD_RELOC_MIPS_EH): New.
1487
95e34fb4
NC
14882013-05-29 Nick Clifton <nickc@redhat.com>
1489
1490 * dwarf2.c (struct dwarf2_debug): Add fields for handling
1491 alternate debug info source.
1492 (dwarf_debug_sections): Add entries for alternate .debug_str and
1493 .debug_info sections.
1494 (dwarf_debug_section_enum): Likewise.
1495 (read_alt_indirect_string): New function. Handles a
1496 DW_FORM_GNU_strp_alt attribute.
1497 (read_alt_indirect_ref): New function. Handles a
1498 DW_FORM_GNU_ref_alt attribute.
1499 (read_attribute_value): Process DW_FORM_GNU_ref_alt and
1500 DW_FORM_GNU_strp_alt.
1501 (find_abstract_instance_name): Handle DW_FORM_GNU_ref_alt
1502 attributes.
1503 (_bfd_dwarf2_cleanup_debug_info): Free alternate debug info
1504 sources.
1505 * opncls.c (GNU_DEBUGALTLINK): Define.
1506 (bfd_get_alt_debug_link_info): New function.
1507 (separate_alt_debug_file_exists): New function.
1508 (find_separate_debug_file): Add parameters for fetch and check
1509 functions.
1510 (bfd_follow_gnu_debugaltlink): New function.
1511 * bfd-in2.h: Regenerate.
1512
418009c2
YZ
15132013-05-28 Yufeng Zhang <yufeng.zhang@arm.com>
1514
1515 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE): Rename to ...
1516 (BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE21): ... this.
1517 (BFD_RELOC_AARCH64_TLSDESC_LD64_PREL19): Rename to ...
1518 (BFD_RELOC_AARCH64_TLSDESC_LD_PREL19): ... this.
1519 * bfd-in2.h: Regenerate.
1520 * libbfd.h: Regenerate.
1521 * elf64-aarch64.c (IS_AARCH64_TLSDESC_RELOC): Update to use
1522 the correct names.
1523 (elf64_aarch64_tlsdesc_howto_table): Likewise.
1524 (elf64_aarch64_reloc_map): Likewise.
1525 (aarch64_resolve_relocation): Likewise.
1526 (bfd_elf_aarch64_put_addend): Likewise.
1527 (aarch64_tls_transition_without_check): Likewise.
1528 (aarch64_reloc_got_type): Likewise.
1529 (elf64_aarch64_final_link_relocate): Likewise.
1530 (elf64_aarch64_tls_relax): Likewise.
1531 (elf64_aarch64_relocate_section): Likewise.
1532 (elf64_aarch64_gc_sweep_hook): Likewise.
1533 (elf64_aarch64_check_relocs): Likewise.
1534
9d782e8d
MW
15352013-05-26 Mark Wielaard <mjw@redhat.com>
1536
1537 * cache.c (BFD_CACHE_MAX_OPEN): Remove define.
1538 (max_open_files): New static int initialized to zero.
1539 (bfd_cache_max_open): New static function to set and return
1540 max_open_files.
1541 (bfd_cache_init): Use bfd_cache_max_open.
1542 (bfd_open_file): Likewise.
1543 * configure.in (AC_CHECK_HEADERS): Add sys/resource.h.
1544 (AC_CHECK_FUNCS): Add getrlimit.
1545 * configure: Regenerated.
1546 * config.in: Likewise.
1547 * sysdep.h: Check and include sys/resource.h for getrlimit.
1548
03ae2d5e
AM
15492013-05-23 Alan Modra <amodra@gmail.com>
1550
1551 * format.c (bfd_check_format_matches): Don't match a target in
1552 targ_selvecs if some other target is a better match. If
1553 targets implement match priority, fall back to the first of
1554 the best matches.
1555
ad3d9127
AM
15562013-05-22 Eric Herman <eric@freesa.org>
1557
1558 PR binutils/15462
1559 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Warning fix.
1560
5b3905f1
AM
15612013-05-22 Ralf Dreesen <gamma@dreesen.net>
1562
1563 PR binutils/15474
1564 * srec.c (srec_set_section_contents): Properly convert size
1565 and offset to address when octets_per_byte is not unity.
1566
8be65dd3
MR
15672013-05-20 Maciej W. Rozycki <macro@linux-mips.org>
1568
1569 * elf32-vax.c (elf_vax_instantiate_got_entries): Only set the
1570 refcount member of the gotplt_union when resetting the reference
1571 count. Adjust comment.
1572
593f8f29
WN
15732013-05-20 Will Newton <will.newton@linaro.org>
1574
1575 * elf64-aarch64.c (elf64_aarch64_link_hash_entry): Remove
1576 relocs_copied member.
1577 (elf64_aarch64_link_hash_newfunc): Remove initialization of
1578 relocs_copied member.
1579 (elf64_aarch64_copy_indirect_symbol): Remove code to copy
1580 relocs_copied member.
1581
a0f0eb1e
MR
15822013-05-19 Maciej W. Rozycki <macro@linux-mips.org>
1583
1584 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Convert K&R
1585 function definition.
1586
af65e588
CC
15872013-05-16 Cary Coutant <ccoutant@google.com>
1588
1589 * ecoff.c (ecoff_link_check_archive_element): Add initializers for
1590 external_ext_size and esize.
1591
9f6e76f4
TG
15922013-05-16 Tristan Gingold <gingold@adacore.com>
1593
1594 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_16.
1595 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
1596
c495064d
AS
15972013-05-15 Andreas Schwab <schwab@suse.de>
1598
1599 * elf64-aarch64.c (elf_backend_default_execstack): Define to 0.
1600
110a61d3
JB
16012013-05-10 Joel Brobecker <brobecker@adacore.com>
1602
1603 * coffcode.h (styp_to_sec_flags) [RS6000COFF_C]: Add handling
1604 of STYP_EXCEPT, STYP_LOADER and STYP_TYPCHK sections.
1605
ceae87f3
JB
16062013-05-09 Joel Brobecker <brobecker@adacore.com>
1607
1608 * bfd.c (_bfd_default_error_handler): Replace use of putc
1609 by fputc. Add comment explaining why.
1610
012b2306
AM
16112013-05-09 Alan Modra <amodra@gmail.com>
1612
1613 * elflink.c (elf_link_add_object_symbols): Don't omit reading
1614 of symbols when hashes already exist.
1615
7b70956d
WN
16162013-05-07 Will Newton <will.newton@linaro.org>
1617
1618 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Add a
1619 plt_header_size argument for ports where it differs from
1620 plt_entry_size.
1621 * elf-bfd.h: Likewise.
1622 * elf32-i386.c: Pass plt_header_size to
1623 _bfd_elf_allocate_ifunc_dyn_relocs.
1624 * elf64-x86-64.c: Likewise.
1625
1ee9e8b3
WN
16262013-05-07 Will Newton <will.newton@linaro.org>
1627
012b2306 1628 * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Remove unused
1ee9e8b3
WN
1629 function.
1630 * elf-bfd.h: Likewise.
1631
b47468a6
CM
16322013-05-06 Paul Brook <paul@codesourcery.com>
1633
012b2306
AM
1634 * elf64-mips.c (elf_mips_gnu_pcrel32): New.
1635 (bfd_elf64_bfd_reloc_type_lookup, bfd_elf64_bfd_reloc_name_lookup,
1636 mips_elf64_rtype_to_howto): Handle R_MIPS_PC32.
1637 * elfn32-mips.c (elf_mips_gnu_pcrel32): New.
1638 (bfd_elfn32_bfd_reloc_type_lookup, bfd_elfn32_bfd_reloc_name_lookup,
1639 mips_elfn32_rtype_to_howto): Handle R_MIPS_PC32.
b47468a6 1640
128205bb
AM
16412013-05-06 Alan Modra <amodra@gmail.com>
1642
1643 * elf64-ppc.c (opd_entry_value): Handle case where symbol
1644 hashes are not available.
1645
f45794cb
AM
16462013-05-06 Alan Modra <amodra@gmail.com>
1647
1648 * elflink.c (elf_link_add_object_symbols): Don't save symbol
1649 hashes around loading as-needed library. Zero them on allocation,
1650 and restore to initial all-zero state if library not needed.
1651 Arrange to reuse hashes if we load library again later.
1652
d150b1a2
RS
16532013-05-04 Richard Sandiford <rdsandiford@googlemail.com>
1654
1655 * elf32-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto):
1656 Use _bfd_mips_elf_generic_reloc instead of bfd_elf_generic_reloc.
1657 * elfn32-mips.c: Likewise.
1658 * elf64-mips.c: Likewise.
1659
13761a11
NC
16602013-05-02 Nick Clifton <nickc@redhat.com>
1661
1662 * archures.c: Add some more MSP430 machine numbers.
1663 * config.bfd (msp430): Define targ_selvecs.
1664 * configure.in: Add bfd_elf32_msp430_ti_vec.
1665 * cpu-msp430.c: Add some more MSP430 machine numbers.
1666 * elf32-msp430.c Add support for MSP430X relocations.
1667 Add support for TI compiler generated relocations.
1668 Add support for sym_diff relocations.
1669 Add support for relaxing out of range short branches into long
1670 branches.
1671 Add support for MSP430 attribute section.
1672 * reloc.c: Add MSP430X relocations.
1673 * targets.c: Add bfd_elf32_msp430_ti_vec.
1674 * bfd-in2.h: Regenerate.
1675 * configure: Regenerate.
1676 * libbfd.h: Regenerate.
1677
df26367c
MR
16782013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
1679
1680 * config.bfd: Replace alpha*-*-linuxecoff* pattern with
1681 alpha*-*-linux*ecoff*.
1682
ed54588d
NC
16832013-04-30 Olaf Flebbe <o.flebbe@science-computing.de>
1684
1685 PR binutils/15417
1686 * elflink.c (elf_link_add_object_symbols): Initialise 'idx' to
1687 zero.
1688
b8297068
AM
16892013-04-30 Alan Modra <amodra@gmail.com>
1690
1691 * elflink.c (bfd_elf_record_link_assignment): Dont make
1692 STV_INTERNAL symbols STV_HIDDEN.
1693
b40bf0a2
NC
16942013-04-29 Nick Clifton <nickc@redhat.com>
1695
1696 * elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from
1697 fragmented .debug_line sections associated with unmarked code
1698 sections.
1699
aba8c3de
WN
17002013-04-29 Will Newton <will.newton@linaro.org>
1701
1702 * elf32-arm.c (elf32_arm_populate_plt_entry): Call
1703 elf32_arm_add_dynreloc when emitting R_ARM_IRELATIVE relocs.
1704
7fcfd62d
NC
17052013-04-29 Will Newton <will.newton@linaro.org>
1706
1707 * elf64-aarch64.c (elf64_aarch64_check_relocs): Move relocation
1708 error check up and add error message.
1709
ed5acf27
WN
17102013-04-26 Will Newton <will.newton@linaro.org>
1711
1712 * elf64-aarch64.c (elf64_aarch64_check_relocs): Remove dead code.
1713
49926cd0
AM
17142013-04-25 Alan Modra <amodra@gmail.com>
1715
1716 * config.bfd: Add powerpc64le-linux.
1717
05567e3d
L
17182013-04-24 H.J. Lu <hongjiu.lu@intel.com>
1719
1720 * config.bfd (targ_selvecs): Add bfd_elf32_x86_64_vec for
1721 x86_64-*-elf*.
1722
99059e56
RM
17232013-04-24 Roland McGrath <mcgrathr@google.com>
1724
1725 * elf32-arm.c (elf32_arm_allocate_plt_entry): If HTAB->nacl_p,
1726 allocate space for PLT header even if IS_IPLT_ENTRY.
1727 (arm_nacl_put_plt0): New function, broken out of ...
1728 (elf32_arm_finish_dynamic_sections): ... here. Call it.
1729 If HTAB->nacl_p, set up the PLT header in .iplt too.
1730 (elf32_arm_output_arch_local_syms): If HTAB->nacl_p, write
1731 a mapping symbol for the start of .iplt too.
1732
544008aa
NC
17332013-04-19 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1734
7b5d8d96
NC
1735 * ecoff.c (_bfd_ecoff_sizeof_headers): Cast the return value of
1736 BFD_ALIGN to int.
1737 * elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Remove unused
1738 variables.
1739 * elf32-v850.c (v850_elf_relax_section): Redefine the type of 'i'
1740 to bfd_vma.
1741 * vms-alpha.c (evax_bfd_print_etir): Initialize sec_len.
544008aa 1742
86f7d49b
AM
17432013-04-22 Alan Modra <amodra@gmail.com>
1744
1745 PR ld/15382
1746 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Don't multiply
1747 sh_size or reloc_count adjustment by count.
1748
bfeb4a28
AM
17492013-04-22 Alan Modra <amodra@gmail.com>
1750
1751 * elf64-ppc.c (ppc64_elf_check_relocs): Don't call
1752 create_linkage_sections here..
1753 (ppc64_elf_init_stub_bfd): ..do so here. Return status.
1754 (create_linkage_sections): Move earlier in file.
1755 (ppc64_elf_setup_section_lists): Remove now useless htab->brlt test.
1756 * elf64-ppc.h (ppc64_elf_init_stub_bfd): Update proto.
1757
2d0a6933
NC
17582013-04-19 Nick Clifton <nickc@redhat.com>
1759
1760 PR binutils/15356
1761 * compress.c (decompress_contents): Always call inflateEnd, even
1762 when another inflation operation fails.
1763
a9ea330b
L
17642013-04-17 H.J. Lu <hongjiu.lu@intel.com>
1765
1766 * elf-ifunc.c: Update copyright year.
1767
a253d456
NC
17682013-04-17 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1769
1770 * coffcode.h: Added a cast to void when a bfd_set_section_*()
1771 macro's return value is ignored.
1772 * elf32-hppa.c: Likewise.
1773 * elf32-tic6x.c: Likewise.
1774 * mach-o.c: Likewise.
1775 * mmo.c: Likewise.
1776 * opncls.c: Likewise.
1777 * peicode.h: Likewise.
1778 * elf32-m32r.c: Check return value of bfd_set_section_*().
1779 * elfnn-ia64.c: Likewise.
1780 * elfxx-mips.c: Likewise.
1781 * vms-alpha.c: Likewise.
1782
1622ff3b
L
17832013-04-15 H.J. Lu <hongjiu.lu@intel.com>
1784
1785 PR ld/15371
1786 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Check
1787 regular reference without non-GOT reference when building
1788 shared library.
1789
a22cd6f6
AM
17902013-04-15 Alan Modra <amodra@gmail.com>
1791
1792 * archive.c (_bfd_archive_close_and_cleanup): Clear parent
1793 cache slot for archives.
1794
ed905580
HPN
17952013-04-14 Hans-Peter Nilsson <hp@bitrange.com>
1796
1797 * mmo.c (mmo_write_chunk): Break out abfd->tdata.mmo_data to new
1798 local variable mmop.
1799
8d6a12ee
NC
18002013-04-09 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1801
1802 PR ld/12494
33e44f2e 1803 * elf32-avr.c: Consider all sections to determine if linker
8d6a12ee
NC
1804 relaxation can safely delete a ret after a call/jmp
1805
79bb5c23
NC
18062013-04-09 Mingjie Xing <mingjie.xing@gmail.com>
1807
1808 * bfd.c (typedef bfd, Error reporting, Miscellaneous): Add
1809 INODEs.
1810
36192a8d
TT
18112013-04-08 Tom Tromey <tromey@redhat.com>
1812
1813 * som.c (bfd_section_from_som_symbol): No longer static.
1814 * som.h (bfd_section_from_som_symbol): Declare.
1815
198f1157
AM
18162013-04-06 Alan Modra <amodra@gmail.com>
1817
1818 * elf32-ppc.c (ppc_elf_check_relocs): Use SYMBOLIC_BIND.
1819 * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count): Likewise.
1820
c69ba956
NC
18212013-04-05 Nick Clifton <nickc@redhat.com>
1822
1823 * elflink.c (elf_link_add_object_symbols): Revert accidental commit.
1824
ff5ac77b
AM
18252013-04-04 Alan Modra <amodra@gmail.com>
1826
1827 * bfd.c (bfd_error_type, bfd_errmsgs): Add bfd_error_missing_dso.
1828 * bfd-in2.h: Regenerate.
1829 * elflink.c (elf_link_add_object_symbols): Use new error.
1830
41702d50
NC
18312013-04-03 Nick Clifton <nickc@redhat.com>
1832
1833 * elf32-v850.c (v850_elf_is_target_special_symbol): New function.
1834 (bfd_elf32_bfd_is_target_special_symbol): Define.
1835
cb8af559
NC
18362013-04-03 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1837
a22cd6f6
AM
1838 * elf64-aarch64.c (elf64_aarch64_gc_sweep_hook): Use
1839 elf64_aarch64_locals to get local GOT reference counts.
cb8af559 1840
1122dc88
DD
18412013-04-02 DJ Delorie <dj@redhat.com>
1842
1843 * elf32-rl78.c (GET_RELOC): Assert that there are relocs to get.
1844 (rl78_elf_relax_section): Only fetch the next reloc if there is
1845 one expected.
1846
81fbe831
AM
18472013-03-30 Alan Modra <amodra@gmail.com>
1848
1849 PR ld/15323
1850 * elf-m10300.c (mn10300_elf_check_relocs): Set non_ir_ref for
1851 global symbols referenced by relocs.
1852 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1853 * elf32-bfin.c (bfin_check_relocs): Likewise.
1854 * elf32-cr16.c (cr16_elf_check_relocs): Likewise.
1855 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1856 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1857 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1858 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1859 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1860 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1861 * elf32-i370.c (i370_elf_check_relocs): Likewise.
1862 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1863 * elf32-lm32.c (lm32_elf_check_relocs): Likewise.
1864 * elf32-m32c.c (m32c_elf_check_relocs): Likewise.
1865 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1866 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1867 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1868 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1869 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1870 * elf32-microblaze.c (microblaze_elf_check_relocs): Likewise.
1871 * elf32-moxie.c (moxie_elf_check_relocs): Likewise.
1872 * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
1873 * elf32-mt.c (mt_elf_check_relocs): Likewise.
1874 * elf32-nios2.c (nios2_elf32_check_relocs): Likewise.
1875 * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
1876 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1877 * elf32-rl78.c (rl78_elf_check_relocs): Likewise.
1878 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1879 * elf32-score.c (s3_bfd_score_elf_check_relocs): Likewise.
1880 * elf32-score7.c (s7_bfd_score_elf_check_relocs): Likewise.
1881 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1882 * elf32-tic6x.c (elf32_tic6x_check_relocs): Likewise.
1883 * elf32-tilepro.c (tilepro_elf_check_relocs): Likewise.
1884 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1885 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1886 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1887 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1888 * elf64-aarch64.c (elf64_aarch64_check_relocs): Likewise.
1889 * elf64-alpha.c (elf64_alpha_check_relocs): Likewise.
1890 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
1891 * elf64-ia64-vms.c (elf64_ia64_check_relocs): Likewise.
1892 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1893 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1894 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1895 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
1896 * elfnn-ia64.c (elfNN_ia64_check_relocs): Likewise.
1897 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1898 * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
1899 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. Don't
1900 test indirect/warning links for NULL.
1901
61315175
L
19022013-03-29 H.J. Lu <hongjiu.lu@intel.com>
1903
1904 PR ld/15323
1905 * elf32-i386.c (elf_i386_check_relocs): Set non_ir_ref if a
81fbe831 1906 symbol is referenced by a non-shared object.
61315175
L
1907 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1908
a6f713fc
KK
19092013-03-28 Joe Seymour <jseymour@codesourcery.com>
1910
1911 * elf32-sh.c (sh_elf_relocate_section): Suppress warnings for
1912 R_SH_REL32 relocations against undefined weak symbols.
1913
19e08130
AM
19142013-03-28 Alan Modra <amodra@gmail.com>
1915
1916 * elf64-ppc.c (struct ppc_dyn_relocs): New.
1917 (ppc64_elf_check_relocs): Separate dynrel counts for local syms
1918 into ifunc and non-ifunc.
1919 (dec_dynrel_count): Pass in sym rather than sym_sec. Handle
1920 separate ifunc/non-ifunc dynrel counts.
1921 (allocate_got): Always use reliplt for ifunc.
1922 (allocate_dynrelocs): Likewise.
1923 (ppc64_elf_size_dynamic_sections): Likewise.
1924 (ppc64_elf_layout_multitoc): Likewise.
1925 (ppc64_elf_relocate_section): Likewise.
1926
f95f8542
AM
19272013-03-28 Alan Modra <amodra@gmail.com>
1928
1929 * elf32-ppc.c (struct ppc_dyn_relocs): New.
1930 (ppc_elf_check_relocs): Separate dynrel counts for local syms
1931 into ifunc and non-ifunc.
1932 (allocate_dynrelocs): Always put ifunc relocs into reliplt.
1933 (ppc_elf_size_dynamic_sections): Likewise.
1934 (ppc_elf_relocate_section): Likewise.
1935
7e612e98
AM
19362013-03-28 Alan Modra <amodra@gmail.com>
1937
1938 * elf-bfd.h (enum elf_reloc_type_class): Add reloc_class_ifunc.
1939 (struct elf_backend_data <elf_backed_reloc_type_class>): Add
1940 bfd_link_info* and asection* params.
1941 (_bfd_elf_reloc_type_class): Likewise.
1942 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1943 * elflink.c (elf_link_sort_cmp2): Sort first on reloc class.
1944 (elf_link_sort_relocs): Update elf_backed_reloc_type_class call.
1945 * elf32-ppc.c (ppc_elf_reloc_type_class): Return reloc_class_ifunc
1946 for any reliplt reloc. Don't return reloc_class_plt for
1947 R_PPC_REL24 and R_PPC_ADDR24.
1948 * elf64-ppc.c (allocate_got): Formatting.
1949 (ppc64_elf_reloc_type_class): Return reloc_class_ifunc for any
1950 reliplt reloc.
1951 * elf-m10300.c, * elf32-arm.c, * elf32-bfin.c, * elf32-cr16.c,
1952 * elf32-cris.c, * elf32-hppa.c, * elf32-i386.c, * elf32-lm32.c,
1953 * elf32-m32r.c, * elf32-m68k.c, * elf32-metag.c, * elf32-nios2.c,
1954 * elf32-s390.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilepro.c,
1955 * elf32-vax.c, * elf32-xtensa.c, * elf64-aarch64.c, * elf64-alpha.c,
1956 * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-s390.c, * elf64-sparc.c,
1957 * elf64-x86-64.c, * elfnn-ia64.c, * elfxx-tilegx.c, * elfxx-tilegx.h:
1958 Add extra params to the various reloc_type_class functions.
1959
0bed072f
AM
19602013-03-27 Alan Modra <amodra@gmail.com>
1961
1962 * elf32-ppc.c (ppc_elf_check_relocs): Set PLT_IFUNC in local got
1963 masks for all local ifunc syms.
1964 (allocate_dynrelocs): Don't use htab->relgot for ifunc.
1965 (ppc_elf_size_dynamic_sections): Likewise.
1966 (ppc_elf_relocate_section): Likewise.
1967
6f820c85
WN
19682013-03-27 Will Newton <will.newton@linaro.org>
1969
1970 * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
1971 dynamic reloc for symbols with dynindx == -1.
1972 (allocate_dynrelocs_for_symbol): Avoid allocating space for a
1973 dynamic reloc for symbols with dynindx == -1.
1974
31943882
WN
19752013-03-27 Will Newton <will.newton@linaro.org>
1976
1977 * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
1978 dynamic reloc for non-default visibility undefined weaks.
1979 (allocate_dynrelocs_for_symbol): Avoid allocating space for a
1980 dynamic reloc for non-default visibility undefined weaks.
1981
ffd65175
AM
19822013-03-26 Alan Modra <amodra@gmail.com>
1983
1984 * elflink.c (_bfd_elf_add_default_symbol): Preserve section
1985 over _bfd_elf_merge_symbol calls.
1986
3a81e825
AM
19872013-03-26 Alan Modra <amodra@gmail.com>
1988
1989 * elflink.c (elf_link_add_object_symbols): Add assertion for
1990 common override alignment check code. Formatting.
1991
4f3fedcf
AM
19922013-03-25 Alan Modra <amodra@gmail.com>
1993
1994 * elflink.c (_bfd_elf_merge_symbol): Set old_alignment for
1995 usual common symbols as well as for dynamic. Add poldbfd param.
1996 Save old bfd. Adjust callers.
1997 (_bfd_elf_add_default_symbol): Add poldbfd param. Pass "section"
1998 and "value" by value, not pointer. Adjust caller.
1999 (elf_link_add_object_symbols): Combine undef_bfd and old_bfd vars.
2000 Delete code to set same. Use old_bfd and old_alignment from
2001 _bfd_elf_merge_symbol instead. Add default symbol before
2002 alignment and size checks. Wrap overlong lines.
2003
e3c9d234
AM
20042013-03-25 Alan Modra <amodra@gmail.com>
2005
2006 * elflink.c (_bfd_elf_add_default_symbol): Delete "override" param.
2007 (elf_link_add_object_symbols): Don't call _bfd_elf_add_default_symbol
2008 when override is true.
2009
6c9b78e6
AM
20102013-03-25 Alan Modra <amodra@gmail.com>
2011
2012 * elflink.c (_bfd_elf_merge_symbol): Use local var holding value
2013 of *sym_hash.
2014
191c0c42
AM
20152013-03-25 Alan Modra <amodra@gmail.com>
2016
2017 * elflink.c (_bfd_elf_merge_symbol): Don't discard TLS symbols here.
2018 Wrap long lines.
2019 (elf_link_add_object_symbols): Discard TLS symbols for --just-syms
2020 early in symbol loop.
2021
5d13b3b3
AM
20222013-03-25 Alan Modra <amodra@gmail.com>
2023
2024 * elf-bfd.h (struct elf_backend_data <merge_symbol>): Update proto.
2025 (_bfd_elf_init_reloc_shdr): Delete.
2026 * elf.c (_bfd_elf_init_reloc_shdr): Make static.
2027 * elf64-x86-64.c (elf_x86_64_merge_symbol): Trim parameters to
2028 just what is needed.
2029 * elflink.c (_bfd_elf_merge_symbol): Update bed->merge_symbol call.
2030
8a56bd02
AM
20312013-03-23 Alan Modra <amodra@gmail.com>
2032
2033 * elf-bfd.h (_bfd_elf_merge_symbol): Delete declaration.
2034 * elflink.c (_bfd_elf_merge_symbol): Make static.
2035 * elf32-sh-symbian.c (sh_symbian_relocate_section): Don't call
2036 _bfd_elf_merge_symbol, call _bfd_generic_link_add_one_symbol.
2037
96f29d96
AM
20382013-03-23 Alan Modra <amodra@gmail.com>
2039
2040 PR ld/15270
2041 * elflink.c (elf_link_add_object_symbols): Don't set def_regular
2042 or ref_regular for BFD_PLUGIN owned syms, or have them affect
2043 def_dynamic/ref_dynamic.
2044 (_bfd_elf_fix_symbol_flags): Don't set def_regular for BFD_PLUGIN
2045 owned syms.
2046
209be8d2
DM
20472013-03-22 David S. Miller <davem@davemloft.net>
2048
2049 * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): Set type of
2050 hwcaps attribute.
2051
5c0df484
NC
20522013-03-22 Achille Fouilleul <achille.fouilleul+binutils@gadz.org>
2053
2054 PR ld/14902
2055 * elf32-h8300.c (elf32_h8_relax_delete_bytes): Fix off by one
2056 errors adjusting relocs and symbols.
2057
81f5558e
NC
20582013-03-21 Michael Schewe <michael.schewe@gmx.net>
2059
2060 * elf32-h8300 (h8_relax_section): Add new relaxation of mov
2061 @(disp:32,ERx) to mov @(disp:16,ERx).
2062 (R_H8_DISP32A16): New reloc.
2063 Comments added and corrected.
2064 * reloc.c (BFD_RELOC_H8_DISP32A16): New reloc.
2065 * bfd-in2.h: Regenerate.
2066 * libbfd.h: Regenerate.
2067
ce63b7b3
KT
20682013-03-21 Kai Tietz <ktietz@redhat.com>
2069
2070 * coffgen.c (coff_real_object_p): Make global.
2071 * peicode.h (coff_real_object_p): Add prototype.
2072 (FILHDR): Defined for COFF_IMAGE_WITH_PE as
2073 external_PEI_IMAGE_hdr structure.
2074 (coff_swap_filehdr_in): Handle variable header-size.
2075 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Just handle amount
2076 of directory-entiries as specified in pe-header.
2077
088ca6c1
NC
20782013-03-21 Nick Clifton <nickc@redhat.com>
2079
2080 PR sim/15286
2081 * elf32-arm.c (bfd_arm_get_mach_from_attributes): Identify XScale,
2082 iWMMXt and iWMMXt2 processors from attributes.
2083
8877b5e5
AM
20842013-03-20 Alan Modra <amodra@gmail.com>
2085
2086 * elflink.c (_bfd_elf_make_dynamic_reloc_section): Override
2087 sh_type according to is_rela.
2088
ffa9430d
AM
20892013-03-18 Alan Modra <amodra@gmail.com>
2090
2091 PR ld/12549
2092 * elflink.c (elf_link_add_object_symbols): Exclude weak refs when
2093 considering whether an --as-needed library is needed.
2094
cc0ea93c
TT
20952013-03-14 Tom Tromey <tromey@redhat.com>
2096
2097 * opncls.c (bfd_get_debug_link_info): Rename from
2098 get_debug_link_info. Export. Update comment.
2099 (find_separate_debug_file): Update.
2100 * bfd-in2.h: Rebuild.
2101
59c108f7
NC
21022013-03-08 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
2103
a22cd6f6 2104 * elf64-aarch64.c (elf_backend_can_gc_sections): Enable gc-section
59c108f7 2105 support.
a22cd6f6 2106 (elf64_aarch64_gc_sweep_hook): Handle GOT, TLS and PLT related
59c108f7
NC
2107 relocs.
2108
abb3f6cc
NC
21092013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
2110
2111 * elf-bfd.h (elfcore_write_s390_tdb): Add prototype.
2112 * elf.c (elfcore_write_s390_tdb): New function.
2113 (elfcore_write_register_note): Call it.
2114 (elfcore_grok_s390_tdb): New function.
2115 (elfcore_grok_note): Call it.
2116
af924177
MR
21172013-03-08 Maciej W. Rozycki <macro@codesourcery.com>
2118
2119 * elfxx-mips.c (mips_elf_allocate_lazy_stub): Correct data type.
2120
48385e38
CV
21212013-03-05 Corinna Vinschen <vinschen@redhat.com>
2122
2123 * config.bfd: Add x86_64-*-cygwin to list of supported targets.
2124
f75e0e33
AM
21252013-03-04 Alan Modra <amodra@gmail.com>
2126
2127 * elf32-ppc.c (ppc_elf_relocate_section <R_PPC_PLTREL24>): Adjust
2128 non-zero addends when relocatable, rather than addends >= 32768.
2129 Always zero "addend" before applying relocation.
2130
17e3916e
NC
21312013-03-04 Nick Clifton <nickc@redhat.com>
2132
2133 * archive64.c (bfd_elf64_archive_write_armap): Fix calculation of
2134 file pointer offsets for thin archives.
2135
3064e1ff
JB
21362013-02-28 Nathan Sidwell <nathan@codesourcery.com>
2137
2138 * elf32-arm.c (elf32_arm_size_dynamic_sections): Don't call
2139 elf32_arm_allocate_dynrelocs for source reloc for non-dynamic link.
2140
4107ae22
DD
21412013-02-27 DJ Delorie <dj@redhat.com>
2142
2143 * reloc.c (BFD_RELOC_RL78_CODE): Add.
2144 * libbfd.h: Regenerate.
2145 * bfd-in2.h: Regenerate.
2146 * elf32-rl78.c (rl78_elf_relocate_section): Handle weak code
2147 references in compuated relocs.
2148
730fbaf8
AG
21492013-02-26 Anthony Green <green@moxielogic.com>
2150
2151 * config.bfd: Extend moxie-rtems target triplet name support.
2152
35399224
L
21532013-02-21 H.J. Lu <hongjiu.lu@intel.com>
2154
2155 PR ld/15167
2156 * elf64-ia64-vms.c (elf64_vms_link_add_object_symbols): Set
2157 unique_global only for definition.
2158 * elflink.c (_bfd_elf_merge_symbol): Don't set unique_global
2159 here.
2160 (elf_link_add_object_symbols): Set unique_global only
2161 for definition.
2162
c0355132
AM
21632013-02-21 Alan Modra <amodra@gmail.com>
2164
2165 * elf-bfd.h (struct elf_build_id): Extracted from..
2166 (struct elf_build_id_info): ..here. Delete.
2167 (struct output_elf_obj_tdata): New, extracted from..
2168 (struct elf_obj_tdata): ..here. Reorganize for better packing.
2169 Add "o" field.
2170 (elf_program_header_size): Reference tdata->o.
2171 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
2172 elf_stack_flags, elf_shstrtab, elf_strtab_sec, elf_shstrtab_sec,
2173 elf_section_syms, elf_num_section_syms, elf_flags_init): Likewise.
2174 * elf.c (bfd_elf_allocate_object): Allocate output_elf_obj_tdata
2175 when opening bfd in any mode that might write.
2176 (_bfd_elf_write_object_contents): Use build_id field in
2177 output_elf_obj_tdata.
2178 (_bfd_elf_close_and_cleanup): Tweak elf_shstrtab test.
2179 (elfobj_grok_gnu_build_id): Adjust for elf_tdata changes.
2180
228e534f
AM
21812013-02-21 Alan Modra <amodra@gmail.com>
2182
2183 * elf-bfd.h (struct core_elf_obj_tdata): New.
2184 (struct elf_obj_tdata): Delete core_signal, core_pid, core_lwpid,
2185 core_program, and core_command. Add "core".
2186 * elf.c (bfd_elf_mkcorefile): Allocate "core" struct.
2187 Update all refs to tdata core fields.
2188 * elf32-am33lin.c, * elf32-arm.c, * elf32-cris.c, * elf32-frv.c,
2189 * elf32-hppa.c, * elf32-i386.c, * elf32-m68k.c, * elf32-mips.c,
2190 * elf32-nios2.c, * elf32-ppc.c, * elf32-s390.c, * elf32-score.c,
2191 * elf32-score7.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilegx.c,
2192 * elf32-tilepro.c, * elf32-xtensa.c, * elf64-aarch64.c,
2193 * elf64-hppa.c, * elf64-mips.c, * elf64-ppc.c, * elf64-tilegx.c,
2194 * elf64-x86-64.c, * elfcore.h, * elfn32-mips.c: Update all refs
2195 to tdata core fields.
2196
12bd6957
AM
21972013-02-21 Alan Modra <amodra@gmail.com>
2198
2199 * elf-bfd.h (struct elf_obj_tdata): Rename segment_map to seg_map.
2200 Delete num_locals and num_globals.
2201 (elf_num_locals, elf_num_globals): Don't define.
2202 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
2203 elf_stack_flags, elf_strtab_sec, elf_shstrtab_sec): Define.
2204 * bfd.c, * elf-eh-frame.c, * elf-nacl.c, * elf-vxworks.c, * elf.c,
2205 * elf32-arm.c, * elf32-lm32.c, * elf32-ppc.c, * elf32-rx.c,
2206 * elf32-spu.c, * elf64-hppa.c, * elfcode.h, * elflink.c,
2207 * elfnn-ia64.c, * elfxx-mips.c: Use newly defined elf_obj_tdata
2208 accessor macros.
2209 * elf.c (elf_map_symbols): Add pnum_locals param. Return
2210 number of locals syms via new param.
2211 (swap_out_syms): Adjust to suit elf_map_symbols change.
2212
cbf8d970
MR
22132013-02-19 Maciej W. Rozycki <macro@codesourcery.com>
2214
2215 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Also clear
2216 STO_MICROMIPS annotation.
2217
30e8ee25
AM
22182013-02-19 Alan Modra <amodra@gmail.com>
2219
2220 * configure.in: Bump version to 2.23.52.
2221 * elf-bfd.h (struct elf_build_id_info): New.
2222 (struct elf_obj_tdata): Delete after_write_object_contents,
2223 after_write_object_contents_info and build_id_size. Make build_id
2224 a pointer to struct elf_build_id_info.
2225 * elf.c (_bfd_elf_write_object_contents): Style. Update
2226 after_write_ibject_contents invocation.
2227 (elfobj_grok_gnu_build_id): Update for new build_id struct. Don't
2228 allow zero size notes.
2229 * configure: Regenerate.
2230
5b175e56
MR
22312013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
2232
2233 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
2234 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
2235 (micromips_elf64_howto_table_rela): Likewise.
2236 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
2237 * elfn32-mips.c (elf_micromips_howto_table_rel): Add
2238 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
2239 (elf_micromips_howto_table_rela): Likewise.
2240 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
2241
e8faf7d1
MR
22422013-02-18 Paul Brook <paul@codesourcery.com>
2243
2244 * elfxx-mips.c (MICROMIPS_P): New macro.
2245 (_bfd_mips_elf_symbol_processing): Use it.
2246
c164a95d
MR
22472013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
2248
2249 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Clarify
2250 comment on _PROCEDURE_LINKAGE_TABLE_ creation.
2251
d45f8bda
AM
22522013-02-18 Alan Modra <amodra@gmail.com>
2253
2254 PR ld/12549
2255 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Delete.
2256 (_bfd_elf_strtab_clear_all_refs): Declare.
2257 (_bfd_elf_strtab_resize): Declare.
2258 * elf-strtab.c (_bfd_elf_strtab_clear_refs): Delete.
2259 (_bfd_elf_strtab_clear_all_refs): New function.
2260 (_bfd_elf_strtab_resize): Likewise.
2261 * elflink.c (elf_link_add_object_symbols): Use _bfd_elf_strtab_resize.
2262
698600e4
AM
22632013-02-18 Alan Modra <amodra@gmail.com>
2264
2265 * elf-bfd.h (struct elf_obj_tdata): Move find_line_info, local_stubs,
2266 local_call_stubs, elf_data_symbol, elf_text_symbol, elf_data_section,
2267 and elf_text_section to..
2268 * elfxx-mips.c (struct mips_elf_obj_tdata): ..here. Update all refs.
2269 * elf64-alpha.c (struct mips_elf_find_line): Rename to..
2270 (struct alpha_elf_find_line): ..this.
2271 (struct alpha_elf_obj_tdata): Add find_line_info, update refs.
2272
3d5bef4c
L
22732013-02-16 H.J. Lu <hongjiu.lu@intel.com>
2274
2275 PR ld/15146
2276 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
2277 for references from the dummy bfd.
2278
313ed4a9
L
22792013-02-16 H.J. Lu <hongjiu.lu@intel.com>
2280
2281 PR ld/15149
2282 * elflink.c (elf_link_add_object_symbols): Also track weak
2283 references.
2284
989fbeff
L
22852013-02-15 H.J. Lu <hongjiu.lu@intel.com>
2286
2287 PR binutils/15151
2288 * archive.c (_bfd_find_nested_archive): Don't allow a nested
2289 archive pointing to itself.
2290 (_bfd_get_elt_at_filepos): Revert the last 2 changes.
2291
a043396b
NC
22922013-02-15 Nick Clifton <nickc@redhat.com>
2293
2294 PR binutils/15140
2295 * archive.c (_bfd_get_elt_at_filepos): Prevent an infinite loop
2296 accessing a corrupt nested archive.
2297
13db6b44
RS
22982013-02-13 Richard Sandiford <rdsandiford@googlemail.com>
2299
2300 * elfxx-mips.c (mips_got_page_ref): New structure.
2301 (mips_got_page_entry): Use a section rather than a (bfd, symndx)
2302 pair to represent the anchor point.
2303 (mips_got_info): Add a got_page_refs field.
2304 (mips_elf_link_hash_table): Add a sym_cache field.
2305 (mips_got_page_ref_hash, mips_got_page_ref_eq): New functions.
2306 (mips_got_page_entry_hash, mips_got_page_entry_eq): Update for
2307 new anchor representation.
2308 (mips_elf_create_got_info): Create got_page_refs rather than
2309 got_page_entries.
2310 (mips_elf_record_got_page_ref): New function.
2311 (mips_elf_pages_for_range): Move further down file.
2312 (mips_elf_record_got_page_entry): Likewise. Take a got as argument.
2313 Use a section rather than a (bfd, symndx) pair to represent the
2314 anchor point.
2315 (mips_elf_resolve_got_page_ref): New function.
2316 (mips_elf_resolve_final_got_entries): Use it to populate
2317 got_page_entries.
2318 (_bfd_mips_elf_check_relocs): Call mips_elf_record_got_page_ref
2319 rather than mips_elf_record_got_page_entry. Only nullify h
2320 afterwards.
2321 (mips_elf_lay_out_got): Call mips_elf_resolve_final_got_entries
2322 earlier.
2323
57093f5e
RS
23242013-02-12 Richard Sandiford <rdsandiford@googlemail.com>
2325
2326 * elfxx-mips.c (mips_elf_lay_out_got): Count VxWorks GOT relocs
2327 in g->relocs.
2328
9c3f90c4
AM
23292013-02-12 Alan Modra <amodra@gmail.com>
2330
2331 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Provide
2332 suitable definition when using generic linker hash table.
2333
476366af
RS
23342013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2335
2336 * elfxx-mips.c (mips_elf_count_got_entries): Delete.
2337 (mips_elf_check_recreate_got, mips_elf_recreate_got): Take a
2338 mips_elf_traverse_got_arg. Count GOT entries.
2339 (mips_elf_resolve_final_got_entries): Take the bfd_link_info
2340 as argument. Update after above changes.
2341 (mips_elf_merge_got, mips_elf_lay_out_got): Don't call
2342 mips_elf_count_got_entries. Update the calls to
2343 mips_elf_resolve_final_got_entries.
2344
9ab066b4
RS
23452013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2346
2347 * elfxx-mips.c (mips_got_tls_type): New enum.
2348 (mips_got_entry): Add tls_initialized.
2349 (mips_elf_got_entry_hash, mips_elf_got_entry_eq, mips_tls_got_relocs)
2350 (mips_elf_count_got_entry, mips_elf_initialize_tls_index): Remove
2351 GOT_TLS_TYPE masks.
2352 (mips_elf_reloc_tls_type, mips_tls_got_entries)
2353 (mips_elf_record_global_got_symbol, mips_elf_initialize_tls_index)
2354 (_bfd_mips_elf_finish_dynamic_symbol): Use GOT_TLS_NONE rather
2355 than GOT_NORMAL.
2356 (mips_elf_initialize_tls_slots): Replace got_offset and tls_type_p
2357 arguments with a GOT entry. Remove GOT_TLS_TYPE masks. Use
2358 tls_initialized rather than GOT_TLS_DONE.
2359 (mips_tls_got_index): Delete.
2360 (mips_elf_local_got_index, mips_elf_global_got_index): Use
2361 mips_elf_initialize_tls_slots rather than mips_tls_got_index.
2362 (mips_elf_record_got_entry): Initialize tls_initialized.
2363
6c42ddb9
RS
23642013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2365
2366 * elfxx-mips.c (mips_got_entry): Remove tls_ldm_offset.
2367 (mips_elf_link_hash_entry): Remove tls_ie_type, tls_gd_type,
2368 tls_ie_got_offset and tls_gd_got_offset.
2369 (mips_elf_link_hash_newfunc): Remove initialization.
2370 (mips_elf_create_got_info): Likewise.
2371 (mips_elf_count_local_got_entries, mips_elf_count_global_tls_entries)
2372 (mips_tls_single_got_index): Delete.
2373 (mips_elf_local_got_index): Always use the GOT entry to track
2374 GOT indices.
2375 (mips_elf_global_got_index): Likewise.
2376 (mips_elf_create_local_got_entry): Assert that TLS entries have
2377 already been allocated.
2378 (mips_elf_record_global_got_symbol): Don't initialize
2379 tls_ie_type or tls_gd_type.
2380 (mips_elf_count_got_symbols): Only count reloc-only GOT entries here.
2381 (mips_elf_initialize_tls_index): Allocate a GOT index for every TLS
2382 entry.
2383 (mips_elf_lay_out_got): Use mips_elf_count_got_entries to count
2384 the GOT entries.
2385 (_bfd_mips_elf_finish_dynamic_symbol): Assert that TLS GOT offsets
2386 have been allocated.
2387 (_bfd_mips_elf_copy_indirect_symbol): Remove handling of
2388 tls_ie_type and tls_gd_type.
2389
ebc53538
RS
23902013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2391
2392 * elfxx-mips.c (mips_elf_create_local_got_entry): Tidy. Avoid
2393 aliasing violation. Check for htab allocation failures.
2394
13fbec83
RS
23952013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2396
2397 * elfxx-mips.c (mips_elf_primary_global_got_index): New function,
2398 split out from...
2399 (mips_elf_global_got_index): ...here. Reorder arguments so that
2400 the output bfd and info come first.
2401 (mips_elf_calculate_relocation): Update the call to
2402 mips_elf_global_got_index accordingly.
2403 (_bfd_mips_elf_finish_dynamic_symbol): Use
2404 mips_elf_primary_global_got_index rather than
2405 mips_elf_global_got_index.
2406 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
2407
3dff0dd1
RS
24082013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2409
2410 * elfxx-mips.c (mips_got_entry): Update comments.
2411 (mips_elf_multi_got_entry_eq): Rename to...
2412 (mips_elf_got_entry_eq): ...this, deleting the old definition.
2413 (mips_elf_create_got_info): Remove master_got_p argument.
2414 Always use mips_elf_got_entry_eq.
2415 (mips_elf_bfd_got, mips_elf_multi_got, mips_elf_create_got_section):
2416 Update calls accordingly.
2417
d7206569
RS
24182013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2419
2420 * elfxx-mips.c (mips_got_info): Remove bfd2got.
2421 (mips_elf_bfd2got_hash): Delete.
2422 (mips_elf_got_per_bfd_arg): Remove bfd2got.
2423 (mips_elf_replace_bfd_got, mips_elf_count_got_entries): New functions.
2424 (mips_elf_global_got_index, mips_elf_create_local_got_entry): Use
2425 g->next to test for the multigot case. Use mips_elf_bfd_got rather
2426 than mips_elf_got_for_ibfd.
2427 (mips_elf_bfd2got_entry_hash, mips_elf_bfd2got_entry_eq)
2428 (mips_elf_got_for_ibfd, mips_elf_get_got_for_bfd): Delete.
2429 (mips_elf_make_got_per_bfd): Replace with...
2430 (mips_elf_add_got_entry): ...this new function.
2431 (mips_elf_make_got_pages_per_bfd): Replace with...
2432 (mips_elf_add_got_page_entry): ...this new function.
2433 (mips_elf_merge_got_with): Replace bfd2got argument with separate
2434 bfd and GOT arguments. Use mips_elf_add_got_entry and
2435 mips_elf_add_got_page_entry instead of mips_elf_make_got_per_bfd
2436 and mips_elf_make_got_pages_per_bfd. Use mips_elf_replace_bfd_got
2437 to set the BFD's GOT and free the old table.
2438 (mips_elf_merge_got): Replace bfd2got argument with separate
2439 bfd and GOT arguments. Apply mips_elf_resolve_final_got_entries.
2440 Use mips_elf_count_got_entries to count the number of entries in
2441 each GOT. Update the calls to mips_elf_merge_got_with.
2442 (mips_elf_adjust_gp): Use g->next to test for the multigot case.
2443 Use mips_elf_bfd_got rather than mips_elf_got_for_ibfd.
2444 (mips_elf_multi_got): Don't create the bfd2got hash table.
2445 Replace hash table traversal with a walk over the input bfds,
2446 updating the call to mips_elf_merge_got. Use mips_elf_replace_bfd_got
2447 to set the output bfd's GOT.
2448 (mips_elf_lay_out_got): Rename "sub" to "ibfd". Record that all
2449 bfds use the master GOT in the single-GOT case.
2450 (_bfd_mips_elf_finish_dynamic_sections): Use mips_elf_bfd_got
2451 rather than mips_elf_got_for_ibfd.
2452
ee227692
RS
24532013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2454
2455 * elfxx-mips.c (mips_elf_obj_tdata): Add a got field.
2456 (mips_elf_bfd_got, mips_elf_record_got_entry): New functions.
2457 (mips_elf_record_global_got_symbol): Update the hash entry before
2458 adding the mips_got_entry. Use mips_elf_record_got_entry to do
2459 the latter.
2460 (mips_elf_record_local_got_symbol): Use mips_elf_record_got_entry.
2461 (mips_elf_record_got_page_entry): Record the entry in both the
2462 master and bfd GOTs.
2463
72e7511a
RS
24642013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2465
2466 * elfxx-mips.c (mips_elf_recreate_got): Don't change the entry;
2467 create another one if necessary.
2468 (mips_elf_set_gotidx): New function.
2469 (mips_elf_set_global_gotidx): Use it.
2470 (mips_elf_initialize_tls_index): Likewise. Take a
2471 mips_elf_traverse_got_arg as argument.
2472 (mips_elf_lay_out_got): Update use of mips_elf_initialize_tls_index.
2473 (mips_elf_multi_got): Likewise. Cope with error returns from
2474 mips_elf_set_global_gotidx.
2475
ab361d49
RS
24762013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2477
2478 * elfxx-mips.c (mips_got_info): Add relocs field.
2479 (mips_elf_set_global_got_offset_arg, mips_elf_count_tls_arg): Replace
2480 with...
2481 (mips_elf_traverse_got_arg): ...this new structure.
2482 (mips_elf_count_local_tls_relocs): Delete.
2483 (mips_elf_count_global_tls_relocs): Likewise.
2484 (mips_elf_count_got_entry): New function.
2485 (mips_elf_count_local_got_entries): Likewise.
2486 (mips_elf_count_global_tls_entries): Take a mips_elf_traverse_got_arg
2487 rather than a mips_elf_count_tls_arg. Count both relocs and entries.
2488 (mips_elf_record_local_got_symbol): Don't count got entries here.
2489 (mips_elf_make_got_per_bfd): Use mips_elf_count_got_entry.
2490 (mips_elf_set_global_got_offset): Split into...
2491 (mips_elf_set_global_got_area, mips_elf_set_global_gotidx): ...these
2492 new functions. Take a mips_elf_traverse_got_arg rather than a
2493 mips_elf_set_global_got_offset_arg. Don't count TLS relocs here.
2494 Use g->relocs to record the number of relocs needed for global GOT
2495 entries.
2496 (mips_elf_multi_got): Use mips_elf_traverse_got_arg rather than
2497 mips_elf_set_global_got_offset_arg. Use the relocs field to count
2498 relocations. Update for above function split.
2499 (mips_elf_lay_out_got): Use mips_elf_count_local_got_entries
2500 to count both the number of GOT entries and the number of TLS
2501 relocs required by local entries. Likewise
2502 mips_elf_count_global_tls_entries and global entries.
2503 Remove uses of mips_elf_count_local_tls_relocs and
2504 mips_elf_count_global_tls_relocs.
2505
e641e783
RS
25062013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2507
2508 * elfxx-mips.c (mips_got_entry): Update comment above tls_type entry
2509 to say that each structure represents only one type of TLS reference.
2510 (GOT_TLS_TYPE): New define.
2511 (mips_elf_link_hash_entry): Temporarily split tls_type and
2512 tls_got_offset into two variables each.
2513 (mips_elf_link_hash_newfunc): Update accordingly.
2514 (mips_elf_got_entry_eq, mips_elf_got_entry_hash)
2515 (mips_elf_multi_got_entry_eq): Require the tls_type to be the same.
2516 (mips_elf_reloc_tls_type, mips_tls_got_entries): New functions.
2517 (mips_tls_got_relocs): Use a switch statement.
2518 (mips_elf_count_global_tls_entries): Handle the new hash entry fields.
2519 (mips_elf_initialize_tls_slots): Use a switch statement. Avoid
2520 local "offset" variable.
2521 (mips_tls_got_index): Remove r_type argument and assert. Remove
2522 code that handled entries with two TLS types; always use the
2523 original got_index instead.
2524 (mips_tls_single_got_index): New function.
2525 (mips_elf_local_got_index): Use entry->tls_type to check for
2526 TLS entries. Use mips_tls_single_got_index. Update call to
2527 mips_tls_got_index.
2528 (mips_elf_global_got_index): Use mips_elf_reloc_tls_type.
2529 Use p->tls_type to check for TLS entries. Update call to
2530 mips_tls_got_index. Use mips_tls_single_got_index.
2531 (mips_elf_create_local_got_entry): Use mips_elf_reloc_tls_type.
2532 Use entry.tls_type to check for TLS entries.
2533 (mips_elf_record_global_got_symbol): Replace tls_flag argument
2534 with r_type argument. Use mips_elf_reloc_tls_type.
2535 Set up the new hash entry fields.
2536 (mips_elf_record_local_got_symbol): Replace tls_flag argument
2537 with r_type argument. Use mips_elf_reloc_tls_type and
2538 mips_tls_got_entries. Remove code that handled entries
2539 with multiple TLS types.
2540 (mips_elf_make_got_per_bfd): Use mips_tls_got_entries.
2541 (mips_elf_initialize_tls_index): Handle new hash entry fields.
2542 Use equality rather than masks when checking for specific TLS types.
2543 Use mips_tls_got_entries. Remove code that handled entries
2544 with multiple TLS types.
2545 (mips_elf_calculate_relocation): Use TLS_RELOC_P instead of
2546 testing the hash table entry.
2547 (_bfd_mips_elf_check_relocs): Update calls to
2548 mips_elf_record_global_got_symbol and mips_elf_record_local_got_symbol.
2549 (_bfd_mips_elf_finish_dynamic_symbol): Don't check h->type.
2550 (_bfd_mips_elf_copy_indirect_symbol): Handle new hash entry fields.
2551
d9bf376d
RS
25522013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2553
2554 * elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to...
2555 (mips_elf_got_entry_hash): ...this, deleting the old version.
2556 (mips_elf_create_got_info): Use mips_elf_got_entry_hash for
2557 both types of GOT.
2558
5334aa52
RS
25592013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2560
2561 * elfxx-mips.c (mips_elf_create_got_info): New function.
2562 (mips_elf_get_got_for_bfd, mips_elf_multi_got): Use it.
2563 (mips_elf_create_got_section): Likewise.
2564
946c668d
RS
25652013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2566
2567 * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
2568 gotidx to -1.
2569
59b08994
RS
25702013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2571
2572 * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
2573
d222d210
RS
25742013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2575
2576 * elfxx-mips.c (mips_got_info): Move global_gotsym to...
2577 (mips_elf_link_hash_table): ...here. Update rest of file accordingly.
2578
1fd20d70
RS
25792013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2580
2581 * elfxx-mips.c (mips_elf_count_global_tls_entries)
2582 (mips_elf_count_global_tls_relocs): Don't count indirect or
2583 warning symbols.
2584 (mips_elf_multi_got, mips_elf_lay_out_got): Assert that the right
2585 number of TLS entries were allocated.
2586
7d94b319
RS
25872013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2588
2589 * elfxx-mips.c (mips_elf_sort_hash_table_f): Remove asserts.
2590
17214937
RS
25912013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2592
2593 * elfxx-mips.c (mips_elf_merge_got_with): Only use arg->global_count
2594 if there are TLS relocations.
2595
9efeb38d
RS
25962013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2597
2598 * elfxx-mips.c (mips_elf_recreate_got): Remove free.
2599 (mips_elf_resolve_final_got_entries): Remove bogus comment.
2600
9c3f90c4
AM
26012013-02-11 Alan Modra <amodra@gmail.com>
2602
2603 * elfcode.h (elf_checksum_contents): Free contents.
2604 * elf-bfd.h (_bfd_elf_link_hash_table_free): Declare.
2605 * elflink.c (_bfd_elf_link_hash_table_free): New function.
2606 (elf_final_link_free): New function, extracted from..
2607 (bfd_elf_final_link): ..here. Always call
2608 _bfd_elf_write_section_eh_frame_hdr.
2609 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Default to
2610 _bfd_elf_link_hash_table_free.
2611 * libbfd-in.h (_bfd_merge_sections_free): Declare.
2612 * libbfd.h: Regenerate.
2613 * merge.c (_bfd_merge_sections_free): New function.
2614 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_hdr): Free
2615 hdr_info->array.
2616 * elf-m10300.c (elf32_mn10300_link_hash_table_free): Call
2617 _bfd_elf_link_hash_table_free.
2618 * elf32-arm.c (elf32_arm_link_hash_table_free): Likewise.
2619 * elf32-avr.c (elf32_avr_link_hash_table_free): Likewise.
2620 * elf32-hppa.c (elf32_hppa_link_hash_table_free): Likewise.
2621 * elf32-i386.c (elf_i386_link_hash_table_free): Likewise.
2622 * elf32-m68hc1x.c (m68hc11_elf_hash_table_free): Likewise.
2623 * elf32-m68k.c (elf_m68k_link_hash_table_free): Likewise.
2624 * elf32-metag.c (elf_metag_link_hash_table_free): Likewise.
2625 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_free): Likewise.
2626 * elf64-aarch64.c (elf64_aarch64_link_hash_table_free): Likewise.
2627 * elf64-ia64-vms.c (elf64_ia64_hash_table_free): Likewise.
2628 * elf64-ppc.c (ppc64_elf_link_hash_table_free): Likewise.
2629 * elf64-x86-64.c (elf_x86_64_link_hash_table_free): Likewise.
2630 * elfnn-ia64.c (elfNN_ia64_hash_table_free): Likewise.
2631 * elf32-cr16.c (elf32_cr16_link_hash_table_free): Delete.
2632 (bfd_elf32_bfd_link_hash_table_free): Don't define.
2633 * elf32-tic6x.c (elf32_tic6x_link_hash_table_free): Delete.
2634 (bfd_elf32_bfd_link_hash_table_free): Dont' define.
2635
7bf52ea2
AM
26362013-02-10 Alan Modra <amodra@gmail.com>
2637
2638 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc.
2639 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
2640 * m68klinux.c (linux_link_hash_table_create): Likewise.
2641 * sparclinux.c (linux_link_hash_table_create): Likewise.
2642 * sunos.c (sunos_link_hash_table_create): Likewise.
2643 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
2644 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
2645 * elf32-arm.c (elf32_arm_link_hash_table_create): Likewise.
2646 * elf32-avr.c (elf32_avr_link_hash_table_create): Likewise.
2647 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
2648 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
2649 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
2650 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
2651 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
2652 * elf32-m32r.c (m32r_elf_link_hash_table_create): Likewise.
2653 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create): Likewise.
2654 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
2655 * elf32-metag.c (elf_metag_link_hash_table_create): Likewise.
2656 * elf32-nios2.c (nios2_elf32_link_hash_table_create): Likewise.
2657 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
2658 * elf32-score.c (elf32_score_link_hash_table_create): Likewise.
2659 * elf32-spu.c (spu_elf_link_hash_table_create): Likewise.
2660 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create): Likewise.
2661 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
2662 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_create): Likewise.
2663 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Likewise.
2664 * elf64-aarch64.c (elf64_aarch64_link_hash_table_create): Likewise.
2665 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
2666 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
2667 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Likewise.
2668 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
2669 * elflink.c (_bfd_elf_link_hash_table_create): Likewise.
2670 (_bfd_elf_link_hash_table_init): Assume zero fill table on entry.
2671
22cdc249
AM
26722013-02-10 Alan Modra <amodra@gmail.com>
2673
2674 * i386linux.c (linux_link_hash_table_create): Allocate table
2675 with bfd_zmalloc, not bfd_alloc.
2676 * pdp11.c (link_hash_table_create): Allocate table with
2677 bfd_malloc, not bfd_alloc.
2678 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
2679 with bfd_zmalloc, not bfd_zalloc.
2680 (bfin_link_hash_table_create): Likewise.
2681 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
2682 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
2683
0e5de31a
AM
26842013-02-10 Alan Modra <amodra@gmail.com>
2685
2686 PR ld/15113
2687 * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
2688
ad1fc92a
NC
26892013-02-08 Markos Chandras <markos.chandras@imgtec.com>
2690
2691 * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
2692 sections.
34c67f14
NC
2693 (elf_metag_adjust_dynamic_symbol): Don't error on zero size dynbss
2694 symbol.
ad1fc92a 2695
170a8295
YZ
26962013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
2697
2698 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
2699 288 to 272.
2700
619a703e
AM
27012013-02-08 Alan Modra <amodra@gmail.com>
2702
2703 PR binutils/15106
2704 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
2705 * elf.c (elf_find_function): Revert last change. Use new
2706 tdata field rather than static vars for cache.
2707
02acbe22
L
27082013-02-07 H.J. Lu <hongjiu.lu@intel.com>
2709
2710 PR ld/15107
2711 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
2712 symbol is defined in regular object.
2713
1965d5f2
AM
27142013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
2715
2716 PR binutils/15106
2717 * elf.c (elf_find_function): Don't cache if symbols change.
2718
dafbc74d
AM
27192013-02-07 Alan Modra <amodra@gmail.com>
2720
2721 PR binutils/14873
2722 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
2723 copy attributes from or to non-ELF.
2724
20e52bd2
L
27252013-02-06 H.J. Lu <hongjiu.lu@intel.com>
2726
2727 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
2728 for non-zero TLS symbol.
2729 (elf_i386_relocate_section): Don't resolve size relocation against
2730 non-zero TLS symbol.
2731 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
2732 pc_count for non-zero TLS symbol.
2733 (elf_x86_64_relocate_section): Don't resolve size relocation
2734 against non-zero TLS symbol.
2735
36591ba1 27362013-02-06 Sandra Loosemore <sandra@codesourcery.com>
20e52bd2 2737 Andrew Jenner <andrew@codesourcery.com>
36591ba1
SL
2738
2739 Based on patches from Altera Corporation.
2740
2741 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
2742 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
2743 (BFD_BACKENDS): Add elf32-nios2.lo.
2744 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
2745 * Makefile.in: Regenerated.
2746 * configure.in: Add entries for bfd_elf32_bignios2_vec and
2747 bfd_elf32_littlenios2_vec.
2748 * configure: Regenerated.
2749 * config.bfd: Add cases for nios2.
2750 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
2751 (bfd_mach_nios2): Define.
2752 (bfd_nios2_arch): Declare.
2753 (bfd_archures_list): Add bfd_nios2_arch.
2754 * targets.c (bfd_elf32_bignios2_vec): Declare.
2755 (bfd_elf32_littlenios2_vec): Declare.
2756 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
2757 bfd_elf32_littlenios2_vec.
2758 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
2759 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
2760 * bfd-in2.h: Regenerated.
2761 * libbfd.h: Regenerated.
2762 * cpu-nios2.c: New file.
2763 * elf32-nios2.c: New file.
2764
ca6b5f82
AM
27652013-02-06 Alan Modra <amodra@gmail.com>
2766
2767 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
2768 stubs in stub_bfd.
2769
37ba9f93
AM
27702013-02-06 Alan Modra <amodra@gmail.com>
2771
2772 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
2773 * Makefile.in: Regenerate.
2774
70a38d42
SDJ
27752013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
2776 Pedro Alves <palves@redhat.com>
2777
2778 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
2779 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
2780 declaration.
2781 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
2782 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
2783 * elf-linux-psinfo.h: New file.
2784 * elf.c: Include elf-linux-psinfo.h.
2785 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
2786 New functions.
2787 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
2788 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
2789 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
2790 (elfcore_write_ppc_linux_prpsinfo32): New function.
2791
5ee43bc4
TG
27922013-02-04 Tristan Gingold <gingold@adacore.com>
2793
2794 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
2795 start address.
2796
0cadb185
AM
27972013-02-04 Alan Modra <amodra@gmail.com>
2798
2799 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
2800 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
2801 * Makefile.in: Regenerate.
2802 * po/SRC-POTFILES.in: Regenerate.
2803
5d42dfb5
AM
28042013-02-04 Alan Modra <amodra@gmail.com>
2805
2806 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
2807 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
2808
c57da1a7
AM
28092013-02-01 Alan Modra <amodra@gmail.com>
2810
2811 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
2812 clears def_regular.
2813
c0fd7846
TG
28142013-01-31 Tristan Gingold <gingold@adacore.com>
2815
2816 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
2817 earlier. Fix status checking of bfd_mach_o_scan_start_address.
2818 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
2819
b45b6908
AM
28202013-01-31 Alan Modra <amodra@gmail.com>
2821 David S. Miller <davem@davemloft.net>
2822
2823 PR ld/15056
2824 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
2825 references to __tls_get_addr.
2826 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
2827 vtinherit and vtentry reloc handling too.
2828 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
2829
bcaa2f82
AM
28302013-01-31 Alan Modra <amodra@gmail.com>
2831
2832 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
2833
22aa0c7e
AM
28342013-01-31 Alan Modra <amodra@gmail.com>
2835
2836 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
2837
bc30df16
AM
28382013-01-28 Alan Modra <amodra@gmail.com>
2839
2840 * elf64-ppc.c: Use %T to print symbols names and remove redundant
2841 "relocation" in error messages throughout file.
2842 (ppc64_elf_relocate_section): Remove sibling call error message,
2843 replace with "call lacks nop". Specially report errors for
2844 branches to function entry points via OPD lookup and branches
2845 to stubs. Remove NULL symbol handling now done by %T.
2846
89d7b8aa
AM
28472013-01-28 Alan Modra <amodra@gmail.com>
2848
2849 * archive.c (bfd_generic_archive_p): Return target and keep
2850 ardata on partial matches.
2851 * format.c (bfd_check_format_matches): Adjust for above
2852 change. Remove bfd_error_file_ambiguously_recognized dead
2853 code.
2854
c9ba0c87
AM
28552013-01-26 Alan Modra <amodra@gmail.com>
2856
2857 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
2858 bfd_preserve_finish): Move to..
2859 * format.c: ..here, splitting out..
2860 (bfd_reinit): ..this. New function.
2861 (bfd_check_format_matches): Use bfd_preserve_save/restore to
2862 keep bfd state for a match.
2863 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
2864 * elfcore.h (elf_core_file_p): Likewise.
2865 * mach-o.c (bfd_mach_o_header_p): Likewise.
2866 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
2867 * xsym.c (bfd_sym_object_p): Likewise.
2868 * mmo.c (mmo_scan): Clear abfd->symcount.
2869 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
2870 * section.c (bfd_section_list_clear): Clear section_htab.count.
2871 * bfd-in2.h: Regenerate.
2872
d79dcc73
NC
28732013-01-25 Michael Schewe <michael.schewe@gmx.net>
2874
2875 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
2876 second reloc, make sure that the reloc potentially exists first.
2877
78c8d46c
NC
28782013-01-24 Nick Clifton <nickc@redhat.com>
2879
2880 * archures.c: Add bfd_mach_v850e3v5.
2881 * bfd-in2.h: Regenerate.
2882 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
2883 * cpu-v850_rh850.c: Likewise.
2884 * elf32-v850.c: Add support for v850e3v5 architecture.
2885
1a18f0ae
NC
28862013-01-23 Markos Chandras <markos.chandras@imgtec.com>
2887
2888 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
2889
f65a9e53
AM
28902013-01-23 Leif Ekblad <leif@rdos.net>
2891
2892 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
2893
3bea1fcb
L
28942013-01-18 H.J. Lu <hongjiu.lu@intel.com>
2895
2896 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
2897 non-zero TLS symbol.
2898 (elf_i386_relocate_section): Resolve size relocation against
2899 non-zero TLS symbol.
2900 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
2901 for non-zero TLS symbol.
2902 (elf_x86_64_relocate_section): Resolve size relocation against
2903 non-zero TLS symbol.
2904
b1b00fcc
MF
29052013-01-18 Mike Frysinger <vapier@gentoo.org>
2906
2907 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
2908 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
2909 true.
2910
06a6a421
L
29112013-01-17 H.J. Lu <hongjiu.lu@intel.com>
2912
2913 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
2914 PC-relative relocation.
2915 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
2916 as PC-relative relocation.
2917
6a3e1bae
L
29182013-01-16 H.J. Lu <hongjiu.lu@intel.com>
2919
2920 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
2921 check.
2922 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
2923
2924 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
2925 and R_X86_64_SIZE64 check.
2926 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
2927 nor R_X86_64_SIZE64.
2928
1788fc08
L
29292013-01-16 H.J. Lu <hongjiu.lu@intel.com>
2930
2931 * bfd-in2.h: Regenerated.
2932 * libbfd.h: Likewise.
2933
2934 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
2935 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
2936 (elf_i386_check_relocs): Handle R_386_SIZE32.
2937 (elf_i386_gc_sweep_hook): Likewise.
2938 (elf_i386_relocate_section): Likewise.
2939
2940 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
2941 and R_X86_64_SIZE64 entries.
2942 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
2943 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
2944 (elf_x86_64_reloc_name_lookup): Likewise.
2945 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
2946 R_X86_64_SIZE64.
2947 (elf_x86_64_gc_sweep_hook): Likewise.
2948 (elf_x86_64_relocate_section): Likewise.
2949
2950 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
2951 BFD_RELOC_SIZE64.
2952
1e536451
L
29532013-01-15 H.J. Lu <hongjiu.lu@intel.com>
2954
2955 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
2956 with R_X86_64_RELATIVE64.
2957
77bf820f
NC
29582013-01-15 Nick Clifton <nickc@redhat.com>
2959
2960 * elf32-msp430.c: Fix spelling typo.
2961
e2458743
AM
29622013-01-15 Alan Modra <amodra@gmail.com>
2963
2964 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
2965 plt-thread-safe.
2966
405bf443
AM
29672013-01-14 Alan Modra <amodra@gmail.com>
2968
2969 PR binutils/14813
2970 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
2971 (memory_bclose): Likewise. Return 0 on success.
2972 * cache.c (cache_bclose): Likewise.
2973 * opncls.c (opncls_bclose, bfd_close): Likewise.
2974 * vms-lib.c (vms_lib_bclose): Likewise.
2975 * libbfd.h: Regenerate.
2976
ee659f1f
AM
29772013-01-13 Alan Modra <amodra@gmail.com>
2978
2979 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
2980 Add ref_dynamic_nonweak.
2981 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
2982 (_bfd_elf_merge_symbol): Don't call above function. Move
2983 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
2984 clear dynamic_def.
2985 (elf_link_add_object_symbols): Delete redundant "override" test.
2986 Don't set dynamic_def here.
2987 (elf_link_output_extsym): Update.
2988
68c4a57e
L
29892013-01-12 H.J. Lu <hongjiu.lu@intel.com>
2990
2991 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
2992 normal and TLS symbol access.
2993 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
2994
02be4619
AM
29952013-01-12 Alan Modra <amodra@gmail.com>
2996
2997 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
2998 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
2999 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
3000
a4542f1b
AM
30012013-01-12 Alan Modra <amodra@gmail.com>
3002
3003 PR ld/12549
3004 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
3005 (_bfd_elf_strtab_clear_all_refs): Define.
3006 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
3007 (_bfd_elf_strtab_clear_all_refs): Delete.
3008 * elflink.c (elf_link_add_object_symbols): Clear out added
3009 strtab refs. Correct handling of warning common symbols.
3010
68ffbac6
L
30112013-01-10 H.J. Lu <hongjiu.lu@intel.com>
3012
3013 * aout0.c: Remove trailing white spaces.
3014 * archive.c: Likewise.
3015 * archures.c: Likewise.
3016 * bfd-in.h: Likewise.
3017 * bfd-in2.h: Likewise.
3018 * coff-alpha.c: Likewise.
3019 * coff-i860.c: Likewise.
3020 * coff-mips.c: Likewise.
3021 * coff-ppc.c: Likewise.
3022 * coff-tic80.c: Likewise.
3023 * coff-x86_64.c: Likewise.
3024 * coff-z80.c: Likewise.
3025 * coffcode.h: Likewise.
3026 * coffgen.c: Likewise.
3027 * cofflink.c: Likewise.
3028 * compress.c: Likewise.
3029 * corefile.c: Likewise.
3030 * cpu-arm.c: Likewise.
3031 * cpu-avr.c: Likewise.
3032 * cpu-bfin.c: Likewise.
3033 * cpu-cr16.c: Likewise.
3034 * cpu-cr16c.c: Likewise.
3035 * cpu-crx.c: Likewise.
3036 * cpu-h8300.c: Likewise.
3037 * cpu-i386.c: Likewise.
3038 * cpu-lm32.c: Likewise.
3039 * cpu-m68k.c: Likewise.
3040 * cpu-moxie.c: Likewise.
3041 * cpu-msp430.c: Likewise.
3042 * cpu-sh.c: Likewise.
3043 * cpu-xc16x.c: Likewise.
3044 * dwarf2.c: Likewise.
3045 * ecofflink.c: Likewise.
3046 * ecoffswap.h: Likewise.
3047 * elf-ifunc.c: Likewise.
3048 * elf-m10300.c: Likewise.
3049 * elf-vxworks.c: Likewise.
3050 * elf32-avr.c: Likewise.
3051 * elf32-avr.h: Likewise.
3052 * elf32-cr16.c: Likewise.
3053 * elf32-cr16c.c: Likewise.
3054 * elf32-cris.c: Likewise.
3055 * elf32-crx.c: Likewise.
3056 * elf32-frv.c: Likewise.
3057 * elf32-hppa.c: Likewise.
3058 * elf32-i860.c: Likewise.
3059 * elf32-ip2k.c: Likewise.
3060 * elf32-iq2000.c: Likewise.
3061 * elf32-m32c.c: Likewise.
3062 * elf32-m68hc1x.c: Likewise.
3063 * elf32-msp430.c: Likewise.
3064 * elf32-mt.c: Likewise.
3065 * elf32-ppc.c: Likewise.
3066 * elf32-rl78.c: Likewise.
3067 * elf32-s390.c: Likewise.
3068 * elf32-score.h: Likewise.
3069 * elf32-sh-symbian.c: Likewise.
3070 * elf32-sh.c: Likewise.
3071 * elf32-spu.c: Likewise.
3072 * elf32-tic6x.c: Likewise.
3073 * elf32-v850.c: Likewise.
3074 * elf32-xc16x.c: Likewise.
3075 * elf32-xtensa.c: Likewise.
3076 * elf64-alpha.c: Likewise.
3077 * elf64-hppa.c: Likewise.
3078 * elf64-ppc.c: Likewise.
3079 * elf64-s390.c: Likewise.
3080 * elfcore.h: Likewise.
3081 * elflink.c: Likewise.
3082 * elfxx-mips.c: Likewise.
3083 * elfxx-sparc.c: Likewise.
3084 * elfxx-tilegx.c: Likewise.
3085 * ieee.c: Likewise.
3086 * libcoff.h: Likewise.
3087 * libpei.h: Likewise.
3088 * libxcoff.h: Likewise.
3089 * linker.c: Likewise.
3090 * mach-o-i386.c: Likewise.
3091 * mach-o-target.c: Likewise.
3092 * mach-o.c: Likewise.
3093 * mach-o.h: Likewise.
3094 * mmo.c: Likewise.
3095 * opncls.c: Likewise.
3096 * pdp11.c: Likewise.
3097 * pe-x86_64.c: Likewise.
3098 * peXXigen.c: Likewise.
3099 * pef-traceback.h: Likewise.
3100 * pei-x86_64.c: Likewise.
3101 * peicode.h: Likewise.
3102 * plugin.c: Likewise.
3103 * reloc.c: Likewise.
3104 * riscix.c: Likewise.
3105 * section.c: Likewise.
3106 * som.c: Likewise.
3107 * syms.c: Likewise.
3108 * tekhex.c: Likewise.
3109 * ticoff.h: Likewise.
3110 * vaxbsd.c: Likewise.
3111 * xcofflink.c: Likewise.
3112 * xtensa-isa.c: Likewise.
3113
a3c62988
NC
31142013-01-10 Will Newton <will.newton@imgtec.com>
3115
3116 * Makefile.am: Add Meta.
3117 * Makefile.in: Regenerate.
3118 * archures.c (bfd_mach_metag): New.
3119 * bfd-in2.h: Regenerate.
3120 * config.bfd: Add Meta.
3121 * configure: Regenerate.
3122 * configure.in: Add Meta.
3123 * cpu-metag.c: New file.
3124 * elf-bfd.h: Add Meta.
3125 * elf32-metag.c: New file.
3126 * elf32-metag.h: New file.
3127 * libbfd.h: Regenerate.
3128 * reloc.c: Add Meta relocations.
3129 * targets.c: Add Meta.
3130
652451f8
YZ
31312013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
3132
3133 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
3134 (elfcore_write_aarch_hw_break): Likewise.
3135 (elfcore_write_aarch_hw_watch): Likewise.
3136 * elf.c (elfcore_grok_aarch_tls): New function.
3137 (elfcore_grok_aarch_hw_break): Likewise.
3138 (elfcore_grok_aarch_hw_watch): Likewise.
3139 (elfcore_grok_note): Call the new functions to handle the
3140 corresponding notes.
3141 (elfcore_write_aarch_tls): New function.
3142 (elfcore_write_aarch_hw_break): Likewise.
3143 (elfcore_write_aarch_hw_watch): Likewise.
3144 (elfcore_write_register_note): Call the new functions to handle the
3145 corresponding pseudo sections.
3146
45a466b5
TT
31472013-01-07 Tom Tromey <tromey@redhat.com>
3148
3149 * section.c (_bfd_std_section): Rename from std_section.
f75e0e33
AM
3150 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
3151 (STD_SECTION): Update.
45a466b5
TT
3152 * bfd-in2.h: Rebuild.
3153
e407c74b
NC
31542013-01-04 Juergen Urban <JuergenUrban@gmx.de>
3155
3156 * archures.c (bfd_mach_mips5900): Define.
3157 * bfd-in2.h: Regenerate.
3158 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
3159 * cpu-mips.c: Add support for MIPS r5900.
3160 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
3161
9b239e0e
NC
31622013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
3163 Nick Clifton <nickc@redhat.com>
3164
3165 * elflink.c (get_value): Prevent the use of an undefined shift
3166 operation. Add sanity checks.
3167
bab4becb 31682013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
884f2a8d 3169
bab4becb 3170 * config.bfd (cr16*-*-uclinux*): New target support.
884f2a8d 3171
9911c0fc 3172
bab4becb 3173For older changes see ChangeLog-2012
56882138 3174\f
bab4becb 3175Copyright (C) 2013 Free Software Foundation, Inc.
752937aa
NC
3176
3177Copying and distribution of this file, with or without modification,
3178are permitted in any medium without royalty provided the copyright
3179notice and this notice are preserved.
3180
56882138
AM
3181Local Variables:
3182mode: change-log
3183left-margin: 8
3184fill-column: 74
3185version-control: never
3186End: