daily update
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
59c108f7
NC
12013-03-08 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
2
3 * elf64-aarch64.c (elf_backend_can_gc_sections): Enable gc-section
4 support.
5 (elf64_aarch64_gc_sweep_hook): Handle GOT, TLS and PLT related
6 relocs.
7
abb3f6cc
NC
82013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9
10 * elf-bfd.h (elfcore_write_s390_tdb): Add prototype.
11 * elf.c (elfcore_write_s390_tdb): New function.
12 (elfcore_write_register_note): Call it.
13 (elfcore_grok_s390_tdb): New function.
14 (elfcore_grok_note): Call it.
15
af924177
MR
162013-03-08 Maciej W. Rozycki <macro@codesourcery.com>
17
18 * elfxx-mips.c (mips_elf_allocate_lazy_stub): Correct data type.
19
48385e38
CV
202013-03-05 Corinna Vinschen <vinschen@redhat.com>
21
22 * config.bfd: Add x86_64-*-cygwin to list of supported targets.
23
f75e0e33
AM
242013-03-04 Alan Modra <amodra@gmail.com>
25
26 * elf32-ppc.c (ppc_elf_relocate_section <R_PPC_PLTREL24>): Adjust
27 non-zero addends when relocatable, rather than addends >= 32768.
28 Always zero "addend" before applying relocation.
29
17e3916e
NC
302013-03-04 Nick Clifton <nickc@redhat.com>
31
32 * archive64.c (bfd_elf64_archive_write_armap): Fix calculation of
33 file pointer offsets for thin archives.
34
3064e1ff
JB
352013-02-28 Nathan Sidwell <nathan@codesourcery.com>
36
37 * elf32-arm.c (elf32_arm_size_dynamic_sections): Don't call
38 elf32_arm_allocate_dynrelocs for source reloc for non-dynamic link.
39
4107ae22
DD
402013-02-27 DJ Delorie <dj@redhat.com>
41
42 * reloc.c (BFD_RELOC_RL78_CODE): Add.
43 * libbfd.h: Regenerate.
44 * bfd-in2.h: Regenerate.
45 * elf32-rl78.c (rl78_elf_relocate_section): Handle weak code
46 references in compuated relocs.
47
730fbaf8
AG
482013-02-26 Anthony Green <green@moxielogic.com>
49
50 * config.bfd: Extend moxie-rtems target triplet name support.
51
35399224
L
522013-02-21 H.J. Lu <hongjiu.lu@intel.com>
53
54 PR ld/15167
55 * elf64-ia64-vms.c (elf64_vms_link_add_object_symbols): Set
56 unique_global only for definition.
57 * elflink.c (_bfd_elf_merge_symbol): Don't set unique_global
58 here.
59 (elf_link_add_object_symbols): Set unique_global only
60 for definition.
61
c0355132
AM
622013-02-21 Alan Modra <amodra@gmail.com>
63
64 * elf-bfd.h (struct elf_build_id): Extracted from..
65 (struct elf_build_id_info): ..here. Delete.
66 (struct output_elf_obj_tdata): New, extracted from..
67 (struct elf_obj_tdata): ..here. Reorganize for better packing.
68 Add "o" field.
69 (elf_program_header_size): Reference tdata->o.
70 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
71 elf_stack_flags, elf_shstrtab, elf_strtab_sec, elf_shstrtab_sec,
72 elf_section_syms, elf_num_section_syms, elf_flags_init): Likewise.
73 * elf.c (bfd_elf_allocate_object): Allocate output_elf_obj_tdata
74 when opening bfd in any mode that might write.
75 (_bfd_elf_write_object_contents): Use build_id field in
76 output_elf_obj_tdata.
77 (_bfd_elf_close_and_cleanup): Tweak elf_shstrtab test.
78 (elfobj_grok_gnu_build_id): Adjust for elf_tdata changes.
79
228e534f
AM
802013-02-21 Alan Modra <amodra@gmail.com>
81
82 * elf-bfd.h (struct core_elf_obj_tdata): New.
83 (struct elf_obj_tdata): Delete core_signal, core_pid, core_lwpid,
84 core_program, and core_command. Add "core".
85 * elf.c (bfd_elf_mkcorefile): Allocate "core" struct.
86 Update all refs to tdata core fields.
87 * elf32-am33lin.c, * elf32-arm.c, * elf32-cris.c, * elf32-frv.c,
88 * elf32-hppa.c, * elf32-i386.c, * elf32-m68k.c, * elf32-mips.c,
89 * elf32-nios2.c, * elf32-ppc.c, * elf32-s390.c, * elf32-score.c,
90 * elf32-score7.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilegx.c,
91 * elf32-tilepro.c, * elf32-xtensa.c, * elf64-aarch64.c,
92 * elf64-hppa.c, * elf64-mips.c, * elf64-ppc.c, * elf64-tilegx.c,
93 * elf64-x86-64.c, * elfcore.h, * elfn32-mips.c: Update all refs
94 to tdata core fields.
95
12bd6957
AM
962013-02-21 Alan Modra <amodra@gmail.com>
97
98 * elf-bfd.h (struct elf_obj_tdata): Rename segment_map to seg_map.
99 Delete num_locals and num_globals.
100 (elf_num_locals, elf_num_globals): Don't define.
101 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
102 elf_stack_flags, elf_strtab_sec, elf_shstrtab_sec): Define.
103 * bfd.c, * elf-eh-frame.c, * elf-nacl.c, * elf-vxworks.c, * elf.c,
104 * elf32-arm.c, * elf32-lm32.c, * elf32-ppc.c, * elf32-rx.c,
105 * elf32-spu.c, * elf64-hppa.c, * elfcode.h, * elflink.c,
106 * elfnn-ia64.c, * elfxx-mips.c: Use newly defined elf_obj_tdata
107 accessor macros.
108 * elf.c (elf_map_symbols): Add pnum_locals param. Return
109 number of locals syms via new param.
110 (swap_out_syms): Adjust to suit elf_map_symbols change.
111
cbf8d970
MR
1122013-02-19 Maciej W. Rozycki <macro@codesourcery.com>
113
114 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Also clear
115 STO_MICROMIPS annotation.
116
30e8ee25
AM
1172013-02-19 Alan Modra <amodra@gmail.com>
118
119 * configure.in: Bump version to 2.23.52.
120 * elf-bfd.h (struct elf_build_id_info): New.
121 (struct elf_obj_tdata): Delete after_write_object_contents,
122 after_write_object_contents_info and build_id_size. Make build_id
123 a pointer to struct elf_build_id_info.
124 * elf.c (_bfd_elf_write_object_contents): Style. Update
125 after_write_ibject_contents invocation.
126 (elfobj_grok_gnu_build_id): Update for new build_id struct. Don't
127 allow zero size notes.
128 * configure: Regenerate.
129
5b175e56
MR
1302013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
131
132 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
133 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
134 (micromips_elf64_howto_table_rela): Likewise.
135 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
136 * elfn32-mips.c (elf_micromips_howto_table_rel): Add
137 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
138 (elf_micromips_howto_table_rela): Likewise.
139 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
140
e8faf7d1
MR
1412013-02-18 Paul Brook <paul@codesourcery.com>
142
143 * elfxx-mips.c (MICROMIPS_P): New macro.
144 (_bfd_mips_elf_symbol_processing): Use it.
145
c164a95d
MR
1462013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
147
148 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Clarify
149 comment on _PROCEDURE_LINKAGE_TABLE_ creation.
150
d45f8bda
AM
1512013-02-18 Alan Modra <amodra@gmail.com>
152
153 PR ld/12549
154 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Delete.
155 (_bfd_elf_strtab_clear_all_refs): Declare.
156 (_bfd_elf_strtab_resize): Declare.
157 * elf-strtab.c (_bfd_elf_strtab_clear_refs): Delete.
158 (_bfd_elf_strtab_clear_all_refs): New function.
159 (_bfd_elf_strtab_resize): Likewise.
160 * elflink.c (elf_link_add_object_symbols): Use _bfd_elf_strtab_resize.
161
698600e4
AM
1622013-02-18 Alan Modra <amodra@gmail.com>
163
164 * elf-bfd.h (struct elf_obj_tdata): Move find_line_info, local_stubs,
165 local_call_stubs, elf_data_symbol, elf_text_symbol, elf_data_section,
166 and elf_text_section to..
167 * elfxx-mips.c (struct mips_elf_obj_tdata): ..here. Update all refs.
168 * elf64-alpha.c (struct mips_elf_find_line): Rename to..
169 (struct alpha_elf_find_line): ..this.
170 (struct alpha_elf_obj_tdata): Add find_line_info, update refs.
171
3d5bef4c
L
1722013-02-16 H.J. Lu <hongjiu.lu@intel.com>
173
174 PR ld/15146
175 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
176 for references from the dummy bfd.
177
313ed4a9
L
1782013-02-16 H.J. Lu <hongjiu.lu@intel.com>
179
180 PR ld/15149
181 * elflink.c (elf_link_add_object_symbols): Also track weak
182 references.
183
989fbeff
L
1842013-02-15 H.J. Lu <hongjiu.lu@intel.com>
185
186 PR binutils/15151
187 * archive.c (_bfd_find_nested_archive): Don't allow a nested
188 archive pointing to itself.
189 (_bfd_get_elt_at_filepos): Revert the last 2 changes.
190
a043396b
NC
1912013-02-15 Nick Clifton <nickc@redhat.com>
192
193 PR binutils/15140
194 * archive.c (_bfd_get_elt_at_filepos): Prevent an infinite loop
195 accessing a corrupt nested archive.
196
13db6b44
RS
1972013-02-13 Richard Sandiford <rdsandiford@googlemail.com>
198
199 * elfxx-mips.c (mips_got_page_ref): New structure.
200 (mips_got_page_entry): Use a section rather than a (bfd, symndx)
201 pair to represent the anchor point.
202 (mips_got_info): Add a got_page_refs field.
203 (mips_elf_link_hash_table): Add a sym_cache field.
204 (mips_got_page_ref_hash, mips_got_page_ref_eq): New functions.
205 (mips_got_page_entry_hash, mips_got_page_entry_eq): Update for
206 new anchor representation.
207 (mips_elf_create_got_info): Create got_page_refs rather than
208 got_page_entries.
209 (mips_elf_record_got_page_ref): New function.
210 (mips_elf_pages_for_range): Move further down file.
211 (mips_elf_record_got_page_entry): Likewise. Take a got as argument.
212 Use a section rather than a (bfd, symndx) pair to represent the
213 anchor point.
214 (mips_elf_resolve_got_page_ref): New function.
215 (mips_elf_resolve_final_got_entries): Use it to populate
216 got_page_entries.
217 (_bfd_mips_elf_check_relocs): Call mips_elf_record_got_page_ref
218 rather than mips_elf_record_got_page_entry. Only nullify h
219 afterwards.
220 (mips_elf_lay_out_got): Call mips_elf_resolve_final_got_entries
221 earlier.
222
57093f5e
RS
2232013-02-12 Richard Sandiford <rdsandiford@googlemail.com>
224
225 * elfxx-mips.c (mips_elf_lay_out_got): Count VxWorks GOT relocs
226 in g->relocs.
227
9c3f90c4
AM
2282013-02-12 Alan Modra <amodra@gmail.com>
229
230 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Provide
231 suitable definition when using generic linker hash table.
232
476366af
RS
2332013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
234
235 * elfxx-mips.c (mips_elf_count_got_entries): Delete.
236 (mips_elf_check_recreate_got, mips_elf_recreate_got): Take a
237 mips_elf_traverse_got_arg. Count GOT entries.
238 (mips_elf_resolve_final_got_entries): Take the bfd_link_info
239 as argument. Update after above changes.
240 (mips_elf_merge_got, mips_elf_lay_out_got): Don't call
241 mips_elf_count_got_entries. Update the calls to
242 mips_elf_resolve_final_got_entries.
243
9ab066b4
RS
2442013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
245
246 * elfxx-mips.c (mips_got_tls_type): New enum.
247 (mips_got_entry): Add tls_initialized.
248 (mips_elf_got_entry_hash, mips_elf_got_entry_eq, mips_tls_got_relocs)
249 (mips_elf_count_got_entry, mips_elf_initialize_tls_index): Remove
250 GOT_TLS_TYPE masks.
251 (mips_elf_reloc_tls_type, mips_tls_got_entries)
252 (mips_elf_record_global_got_symbol, mips_elf_initialize_tls_index)
253 (_bfd_mips_elf_finish_dynamic_symbol): Use GOT_TLS_NONE rather
254 than GOT_NORMAL.
255 (mips_elf_initialize_tls_slots): Replace got_offset and tls_type_p
256 arguments with a GOT entry. Remove GOT_TLS_TYPE masks. Use
257 tls_initialized rather than GOT_TLS_DONE.
258 (mips_tls_got_index): Delete.
259 (mips_elf_local_got_index, mips_elf_global_got_index): Use
260 mips_elf_initialize_tls_slots rather than mips_tls_got_index.
261 (mips_elf_record_got_entry): Initialize tls_initialized.
262
6c42ddb9
RS
2632013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
264
265 * elfxx-mips.c (mips_got_entry): Remove tls_ldm_offset.
266 (mips_elf_link_hash_entry): Remove tls_ie_type, tls_gd_type,
267 tls_ie_got_offset and tls_gd_got_offset.
268 (mips_elf_link_hash_newfunc): Remove initialization.
269 (mips_elf_create_got_info): Likewise.
270 (mips_elf_count_local_got_entries, mips_elf_count_global_tls_entries)
271 (mips_tls_single_got_index): Delete.
272 (mips_elf_local_got_index): Always use the GOT entry to track
273 GOT indices.
274 (mips_elf_global_got_index): Likewise.
275 (mips_elf_create_local_got_entry): Assert that TLS entries have
276 already been allocated.
277 (mips_elf_record_global_got_symbol): Don't initialize
278 tls_ie_type or tls_gd_type.
279 (mips_elf_count_got_symbols): Only count reloc-only GOT entries here.
280 (mips_elf_initialize_tls_index): Allocate a GOT index for every TLS
281 entry.
282 (mips_elf_lay_out_got): Use mips_elf_count_got_entries to count
283 the GOT entries.
284 (_bfd_mips_elf_finish_dynamic_symbol): Assert that TLS GOT offsets
285 have been allocated.
286 (_bfd_mips_elf_copy_indirect_symbol): Remove handling of
287 tls_ie_type and tls_gd_type.
288
ebc53538
RS
2892013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
290
291 * elfxx-mips.c (mips_elf_create_local_got_entry): Tidy. Avoid
292 aliasing violation. Check for htab allocation failures.
293
13fbec83
RS
2942013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
295
296 * elfxx-mips.c (mips_elf_primary_global_got_index): New function,
297 split out from...
298 (mips_elf_global_got_index): ...here. Reorder arguments so that
299 the output bfd and info come first.
300 (mips_elf_calculate_relocation): Update the call to
301 mips_elf_global_got_index accordingly.
302 (_bfd_mips_elf_finish_dynamic_symbol): Use
303 mips_elf_primary_global_got_index rather than
304 mips_elf_global_got_index.
305 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
306
3dff0dd1
RS
3072013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
308
309 * elfxx-mips.c (mips_got_entry): Update comments.
310 (mips_elf_multi_got_entry_eq): Rename to...
311 (mips_elf_got_entry_eq): ...this, deleting the old definition.
312 (mips_elf_create_got_info): Remove master_got_p argument.
313 Always use mips_elf_got_entry_eq.
314 (mips_elf_bfd_got, mips_elf_multi_got, mips_elf_create_got_section):
315 Update calls accordingly.
316
d7206569
RS
3172013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
318
319 * elfxx-mips.c (mips_got_info): Remove bfd2got.
320 (mips_elf_bfd2got_hash): Delete.
321 (mips_elf_got_per_bfd_arg): Remove bfd2got.
322 (mips_elf_replace_bfd_got, mips_elf_count_got_entries): New functions.
323 (mips_elf_global_got_index, mips_elf_create_local_got_entry): Use
324 g->next to test for the multigot case. Use mips_elf_bfd_got rather
325 than mips_elf_got_for_ibfd.
326 (mips_elf_bfd2got_entry_hash, mips_elf_bfd2got_entry_eq)
327 (mips_elf_got_for_ibfd, mips_elf_get_got_for_bfd): Delete.
328 (mips_elf_make_got_per_bfd): Replace with...
329 (mips_elf_add_got_entry): ...this new function.
330 (mips_elf_make_got_pages_per_bfd): Replace with...
331 (mips_elf_add_got_page_entry): ...this new function.
332 (mips_elf_merge_got_with): Replace bfd2got argument with separate
333 bfd and GOT arguments. Use mips_elf_add_got_entry and
334 mips_elf_add_got_page_entry instead of mips_elf_make_got_per_bfd
335 and mips_elf_make_got_pages_per_bfd. Use mips_elf_replace_bfd_got
336 to set the BFD's GOT and free the old table.
337 (mips_elf_merge_got): Replace bfd2got argument with separate
338 bfd and GOT arguments. Apply mips_elf_resolve_final_got_entries.
339 Use mips_elf_count_got_entries to count the number of entries in
340 each GOT. Update the calls to mips_elf_merge_got_with.
341 (mips_elf_adjust_gp): Use g->next to test for the multigot case.
342 Use mips_elf_bfd_got rather than mips_elf_got_for_ibfd.
343 (mips_elf_multi_got): Don't create the bfd2got hash table.
344 Replace hash table traversal with a walk over the input bfds,
345 updating the call to mips_elf_merge_got. Use mips_elf_replace_bfd_got
346 to set the output bfd's GOT.
347 (mips_elf_lay_out_got): Rename "sub" to "ibfd". Record that all
348 bfds use the master GOT in the single-GOT case.
349 (_bfd_mips_elf_finish_dynamic_sections): Use mips_elf_bfd_got
350 rather than mips_elf_got_for_ibfd.
351
ee227692
RS
3522013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
353
354 * elfxx-mips.c (mips_elf_obj_tdata): Add a got field.
355 (mips_elf_bfd_got, mips_elf_record_got_entry): New functions.
356 (mips_elf_record_global_got_symbol): Update the hash entry before
357 adding the mips_got_entry. Use mips_elf_record_got_entry to do
358 the latter.
359 (mips_elf_record_local_got_symbol): Use mips_elf_record_got_entry.
360 (mips_elf_record_got_page_entry): Record the entry in both the
361 master and bfd GOTs.
362
72e7511a
RS
3632013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
364
365 * elfxx-mips.c (mips_elf_recreate_got): Don't change the entry;
366 create another one if necessary.
367 (mips_elf_set_gotidx): New function.
368 (mips_elf_set_global_gotidx): Use it.
369 (mips_elf_initialize_tls_index): Likewise. Take a
370 mips_elf_traverse_got_arg as argument.
371 (mips_elf_lay_out_got): Update use of mips_elf_initialize_tls_index.
372 (mips_elf_multi_got): Likewise. Cope with error returns from
373 mips_elf_set_global_gotidx.
374
ab361d49
RS
3752013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
376
377 * elfxx-mips.c (mips_got_info): Add relocs field.
378 (mips_elf_set_global_got_offset_arg, mips_elf_count_tls_arg): Replace
379 with...
380 (mips_elf_traverse_got_arg): ...this new structure.
381 (mips_elf_count_local_tls_relocs): Delete.
382 (mips_elf_count_global_tls_relocs): Likewise.
383 (mips_elf_count_got_entry): New function.
384 (mips_elf_count_local_got_entries): Likewise.
385 (mips_elf_count_global_tls_entries): Take a mips_elf_traverse_got_arg
386 rather than a mips_elf_count_tls_arg. Count both relocs and entries.
387 (mips_elf_record_local_got_symbol): Don't count got entries here.
388 (mips_elf_make_got_per_bfd): Use mips_elf_count_got_entry.
389 (mips_elf_set_global_got_offset): Split into...
390 (mips_elf_set_global_got_area, mips_elf_set_global_gotidx): ...these
391 new functions. Take a mips_elf_traverse_got_arg rather than a
392 mips_elf_set_global_got_offset_arg. Don't count TLS relocs here.
393 Use g->relocs to record the number of relocs needed for global GOT
394 entries.
395 (mips_elf_multi_got): Use mips_elf_traverse_got_arg rather than
396 mips_elf_set_global_got_offset_arg. Use the relocs field to count
397 relocations. Update for above function split.
398 (mips_elf_lay_out_got): Use mips_elf_count_local_got_entries
399 to count both the number of GOT entries and the number of TLS
400 relocs required by local entries. Likewise
401 mips_elf_count_global_tls_entries and global entries.
402 Remove uses of mips_elf_count_local_tls_relocs and
403 mips_elf_count_global_tls_relocs.
404
e641e783
RS
4052013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
406
407 * elfxx-mips.c (mips_got_entry): Update comment above tls_type entry
408 to say that each structure represents only one type of TLS reference.
409 (GOT_TLS_TYPE): New define.
410 (mips_elf_link_hash_entry): Temporarily split tls_type and
411 tls_got_offset into two variables each.
412 (mips_elf_link_hash_newfunc): Update accordingly.
413 (mips_elf_got_entry_eq, mips_elf_got_entry_hash)
414 (mips_elf_multi_got_entry_eq): Require the tls_type to be the same.
415 (mips_elf_reloc_tls_type, mips_tls_got_entries): New functions.
416 (mips_tls_got_relocs): Use a switch statement.
417 (mips_elf_count_global_tls_entries): Handle the new hash entry fields.
418 (mips_elf_initialize_tls_slots): Use a switch statement. Avoid
419 local "offset" variable.
420 (mips_tls_got_index): Remove r_type argument and assert. Remove
421 code that handled entries with two TLS types; always use the
422 original got_index instead.
423 (mips_tls_single_got_index): New function.
424 (mips_elf_local_got_index): Use entry->tls_type to check for
425 TLS entries. Use mips_tls_single_got_index. Update call to
426 mips_tls_got_index.
427 (mips_elf_global_got_index): Use mips_elf_reloc_tls_type.
428 Use p->tls_type to check for TLS entries. Update call to
429 mips_tls_got_index. Use mips_tls_single_got_index.
430 (mips_elf_create_local_got_entry): Use mips_elf_reloc_tls_type.
431 Use entry.tls_type to check for TLS entries.
432 (mips_elf_record_global_got_symbol): Replace tls_flag argument
433 with r_type argument. Use mips_elf_reloc_tls_type.
434 Set up the new hash entry fields.
435 (mips_elf_record_local_got_symbol): Replace tls_flag argument
436 with r_type argument. Use mips_elf_reloc_tls_type and
437 mips_tls_got_entries. Remove code that handled entries
438 with multiple TLS types.
439 (mips_elf_make_got_per_bfd): Use mips_tls_got_entries.
440 (mips_elf_initialize_tls_index): Handle new hash entry fields.
441 Use equality rather than masks when checking for specific TLS types.
442 Use mips_tls_got_entries. Remove code that handled entries
443 with multiple TLS types.
444 (mips_elf_calculate_relocation): Use TLS_RELOC_P instead of
445 testing the hash table entry.
446 (_bfd_mips_elf_check_relocs): Update calls to
447 mips_elf_record_global_got_symbol and mips_elf_record_local_got_symbol.
448 (_bfd_mips_elf_finish_dynamic_symbol): Don't check h->type.
449 (_bfd_mips_elf_copy_indirect_symbol): Handle new hash entry fields.
450
d9bf376d
RS
4512013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
452
453 * elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to...
454 (mips_elf_got_entry_hash): ...this, deleting the old version.
455 (mips_elf_create_got_info): Use mips_elf_got_entry_hash for
456 both types of GOT.
457
5334aa52
RS
4582013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
459
460 * elfxx-mips.c (mips_elf_create_got_info): New function.
461 (mips_elf_get_got_for_bfd, mips_elf_multi_got): Use it.
462 (mips_elf_create_got_section): Likewise.
463
946c668d
RS
4642013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
465
466 * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
467 gotidx to -1.
468
59b08994
RS
4692013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
470
471 * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
472
d222d210
RS
4732013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
474
475 * elfxx-mips.c (mips_got_info): Move global_gotsym to...
476 (mips_elf_link_hash_table): ...here. Update rest of file accordingly.
477
1fd20d70
RS
4782013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
479
480 * elfxx-mips.c (mips_elf_count_global_tls_entries)
481 (mips_elf_count_global_tls_relocs): Don't count indirect or
482 warning symbols.
483 (mips_elf_multi_got, mips_elf_lay_out_got): Assert that the right
484 number of TLS entries were allocated.
485
7d94b319
RS
4862013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
487
488 * elfxx-mips.c (mips_elf_sort_hash_table_f): Remove asserts.
489
17214937
RS
4902013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
491
492 * elfxx-mips.c (mips_elf_merge_got_with): Only use arg->global_count
493 if there are TLS relocations.
494
9efeb38d
RS
4952013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
496
497 * elfxx-mips.c (mips_elf_recreate_got): Remove free.
498 (mips_elf_resolve_final_got_entries): Remove bogus comment.
499
9c3f90c4
AM
5002013-02-11 Alan Modra <amodra@gmail.com>
501
502 * elfcode.h (elf_checksum_contents): Free contents.
503 * elf-bfd.h (_bfd_elf_link_hash_table_free): Declare.
504 * elflink.c (_bfd_elf_link_hash_table_free): New function.
505 (elf_final_link_free): New function, extracted from..
506 (bfd_elf_final_link): ..here. Always call
507 _bfd_elf_write_section_eh_frame_hdr.
508 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Default to
509 _bfd_elf_link_hash_table_free.
510 * libbfd-in.h (_bfd_merge_sections_free): Declare.
511 * libbfd.h: Regenerate.
512 * merge.c (_bfd_merge_sections_free): New function.
513 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_hdr): Free
514 hdr_info->array.
515 * elf-m10300.c (elf32_mn10300_link_hash_table_free): Call
516 _bfd_elf_link_hash_table_free.
517 * elf32-arm.c (elf32_arm_link_hash_table_free): Likewise.
518 * elf32-avr.c (elf32_avr_link_hash_table_free): Likewise.
519 * elf32-hppa.c (elf32_hppa_link_hash_table_free): Likewise.
520 * elf32-i386.c (elf_i386_link_hash_table_free): Likewise.
521 * elf32-m68hc1x.c (m68hc11_elf_hash_table_free): Likewise.
522 * elf32-m68k.c (elf_m68k_link_hash_table_free): Likewise.
523 * elf32-metag.c (elf_metag_link_hash_table_free): Likewise.
524 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_free): Likewise.
525 * elf64-aarch64.c (elf64_aarch64_link_hash_table_free): Likewise.
526 * elf64-ia64-vms.c (elf64_ia64_hash_table_free): Likewise.
527 * elf64-ppc.c (ppc64_elf_link_hash_table_free): Likewise.
528 * elf64-x86-64.c (elf_x86_64_link_hash_table_free): Likewise.
529 * elfnn-ia64.c (elfNN_ia64_hash_table_free): Likewise.
530 * elf32-cr16.c (elf32_cr16_link_hash_table_free): Delete.
531 (bfd_elf32_bfd_link_hash_table_free): Don't define.
532 * elf32-tic6x.c (elf32_tic6x_link_hash_table_free): Delete.
533 (bfd_elf32_bfd_link_hash_table_free): Dont' define.
534
7bf52ea2
AM
5352013-02-10 Alan Modra <amodra@gmail.com>
536
537 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc.
538 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
539 * m68klinux.c (linux_link_hash_table_create): Likewise.
540 * sparclinux.c (linux_link_hash_table_create): Likewise.
541 * sunos.c (sunos_link_hash_table_create): Likewise.
542 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
543 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
544 * elf32-arm.c (elf32_arm_link_hash_table_create): Likewise.
545 * elf32-avr.c (elf32_avr_link_hash_table_create): Likewise.
546 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
547 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
548 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
549 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
550 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
551 * elf32-m32r.c (m32r_elf_link_hash_table_create): Likewise.
552 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create): Likewise.
553 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
554 * elf32-metag.c (elf_metag_link_hash_table_create): Likewise.
555 * elf32-nios2.c (nios2_elf32_link_hash_table_create): Likewise.
556 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
557 * elf32-score.c (elf32_score_link_hash_table_create): Likewise.
558 * elf32-spu.c (spu_elf_link_hash_table_create): Likewise.
559 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create): Likewise.
560 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
561 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_create): Likewise.
562 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Likewise.
563 * elf64-aarch64.c (elf64_aarch64_link_hash_table_create): Likewise.
564 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
565 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
566 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Likewise.
567 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
568 * elflink.c (_bfd_elf_link_hash_table_create): Likewise.
569 (_bfd_elf_link_hash_table_init): Assume zero fill table on entry.
570
22cdc249
AM
5712013-02-10 Alan Modra <amodra@gmail.com>
572
573 * i386linux.c (linux_link_hash_table_create): Allocate table
574 with bfd_zmalloc, not bfd_alloc.
575 * pdp11.c (link_hash_table_create): Allocate table with
576 bfd_malloc, not bfd_alloc.
577 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
578 with bfd_zmalloc, not bfd_zalloc.
579 (bfin_link_hash_table_create): Likewise.
580 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
581 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
582
0e5de31a
AM
5832013-02-10 Alan Modra <amodra@gmail.com>
584
585 PR ld/15113
586 * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
587
ad1fc92a
NC
5882013-02-08 Markos Chandras <markos.chandras@imgtec.com>
589
590 * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
591 sections.
34c67f14
NC
592 (elf_metag_adjust_dynamic_symbol): Don't error on zero size dynbss
593 symbol.
ad1fc92a 594
170a8295
YZ
5952013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
596
597 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
598 288 to 272.
599
619a703e
AM
6002013-02-08 Alan Modra <amodra@gmail.com>
601
602 PR binutils/15106
603 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
604 * elf.c (elf_find_function): Revert last change. Use new
605 tdata field rather than static vars for cache.
606
02acbe22
L
6072013-02-07 H.J. Lu <hongjiu.lu@intel.com>
608
609 PR ld/15107
610 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
611 symbol is defined in regular object.
612
1965d5f2
AM
6132013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
614
615 PR binutils/15106
616 * elf.c (elf_find_function): Don't cache if symbols change.
617
dafbc74d
AM
6182013-02-07 Alan Modra <amodra@gmail.com>
619
620 PR binutils/14873
621 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
622 copy attributes from or to non-ELF.
623
20e52bd2
L
6242013-02-06 H.J. Lu <hongjiu.lu@intel.com>
625
626 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
627 for non-zero TLS symbol.
628 (elf_i386_relocate_section): Don't resolve size relocation against
629 non-zero TLS symbol.
630 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
631 pc_count for non-zero TLS symbol.
632 (elf_x86_64_relocate_section): Don't resolve size relocation
633 against non-zero TLS symbol.
634
36591ba1 6352013-02-06 Sandra Loosemore <sandra@codesourcery.com>
20e52bd2 636 Andrew Jenner <andrew@codesourcery.com>
36591ba1
SL
637
638 Based on patches from Altera Corporation.
639
640 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
641 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
642 (BFD_BACKENDS): Add elf32-nios2.lo.
643 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
644 * Makefile.in: Regenerated.
645 * configure.in: Add entries for bfd_elf32_bignios2_vec and
646 bfd_elf32_littlenios2_vec.
647 * configure: Regenerated.
648 * config.bfd: Add cases for nios2.
649 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
650 (bfd_mach_nios2): Define.
651 (bfd_nios2_arch): Declare.
652 (bfd_archures_list): Add bfd_nios2_arch.
653 * targets.c (bfd_elf32_bignios2_vec): Declare.
654 (bfd_elf32_littlenios2_vec): Declare.
655 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
656 bfd_elf32_littlenios2_vec.
657 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
658 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
659 * bfd-in2.h: Regenerated.
660 * libbfd.h: Regenerated.
661 * cpu-nios2.c: New file.
662 * elf32-nios2.c: New file.
663
ca6b5f82
AM
6642013-02-06 Alan Modra <amodra@gmail.com>
665
666 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
667 stubs in stub_bfd.
668
37ba9f93
AM
6692013-02-06 Alan Modra <amodra@gmail.com>
670
671 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
672 * Makefile.in: Regenerate.
673
70a38d42
SDJ
6742013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
675 Pedro Alves <palves@redhat.com>
676
677 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
678 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
679 declaration.
680 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
681 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
682 * elf-linux-psinfo.h: New file.
683 * elf.c: Include elf-linux-psinfo.h.
684 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
685 New functions.
686 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
687 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
688 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
689 (elfcore_write_ppc_linux_prpsinfo32): New function.
690
5ee43bc4
TG
6912013-02-04 Tristan Gingold <gingold@adacore.com>
692
693 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
694 start address.
695
0cadb185
AM
6962013-02-04 Alan Modra <amodra@gmail.com>
697
698 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
699 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
700 * Makefile.in: Regenerate.
701 * po/SRC-POTFILES.in: Regenerate.
702
5d42dfb5
AM
7032013-02-04 Alan Modra <amodra@gmail.com>
704
705 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
706 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
707
c57da1a7
AM
7082013-02-01 Alan Modra <amodra@gmail.com>
709
710 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
711 clears def_regular.
712
c0fd7846
TG
7132013-01-31 Tristan Gingold <gingold@adacore.com>
714
715 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
716 earlier. Fix status checking of bfd_mach_o_scan_start_address.
717 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
718
b45b6908
AM
7192013-01-31 Alan Modra <amodra@gmail.com>
720 David S. Miller <davem@davemloft.net>
721
722 PR ld/15056
723 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
724 references to __tls_get_addr.
725 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
726 vtinherit and vtentry reloc handling too.
727 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
728
bcaa2f82
AM
7292013-01-31 Alan Modra <amodra@gmail.com>
730
731 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
732
22aa0c7e
AM
7332013-01-31 Alan Modra <amodra@gmail.com>
734
735 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
736
bc30df16
AM
7372013-01-28 Alan Modra <amodra@gmail.com>
738
739 * elf64-ppc.c: Use %T to print symbols names and remove redundant
740 "relocation" in error messages throughout file.
741 (ppc64_elf_relocate_section): Remove sibling call error message,
742 replace with "call lacks nop". Specially report errors for
743 branches to function entry points via OPD lookup and branches
744 to stubs. Remove NULL symbol handling now done by %T.
745
89d7b8aa
AM
7462013-01-28 Alan Modra <amodra@gmail.com>
747
748 * archive.c (bfd_generic_archive_p): Return target and keep
749 ardata on partial matches.
750 * format.c (bfd_check_format_matches): Adjust for above
751 change. Remove bfd_error_file_ambiguously_recognized dead
752 code.
753
c9ba0c87
AM
7542013-01-26 Alan Modra <amodra@gmail.com>
755
756 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
757 bfd_preserve_finish): Move to..
758 * format.c: ..here, splitting out..
759 (bfd_reinit): ..this. New function.
760 (bfd_check_format_matches): Use bfd_preserve_save/restore to
761 keep bfd state for a match.
762 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
763 * elfcore.h (elf_core_file_p): Likewise.
764 * mach-o.c (bfd_mach_o_header_p): Likewise.
765 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
766 * xsym.c (bfd_sym_object_p): Likewise.
767 * mmo.c (mmo_scan): Clear abfd->symcount.
768 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
769 * section.c (bfd_section_list_clear): Clear section_htab.count.
770 * bfd-in2.h: Regenerate.
771
d79dcc73
NC
7722013-01-25 Michael Schewe <michael.schewe@gmx.net>
773
774 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
775 second reloc, make sure that the reloc potentially exists first.
776
78c8d46c
NC
7772013-01-24 Nick Clifton <nickc@redhat.com>
778
779 * archures.c: Add bfd_mach_v850e3v5.
780 * bfd-in2.h: Regenerate.
781 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
782 * cpu-v850_rh850.c: Likewise.
783 * elf32-v850.c: Add support for v850e3v5 architecture.
784
1a18f0ae
NC
7852013-01-23 Markos Chandras <markos.chandras@imgtec.com>
786
787 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
788
f65a9e53
AM
7892013-01-23 Leif Ekblad <leif@rdos.net>
790
791 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
792
3bea1fcb
L
7932013-01-18 H.J. Lu <hongjiu.lu@intel.com>
794
795 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
796 non-zero TLS symbol.
797 (elf_i386_relocate_section): Resolve size relocation against
798 non-zero TLS symbol.
799 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
800 for non-zero TLS symbol.
801 (elf_x86_64_relocate_section): Resolve size relocation against
802 non-zero TLS symbol.
803
b1b00fcc
MF
8042013-01-18 Mike Frysinger <vapier@gentoo.org>
805
806 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
807 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
808 true.
809
06a6a421
L
8102013-01-17 H.J. Lu <hongjiu.lu@intel.com>
811
812 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
813 PC-relative relocation.
814 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
815 as PC-relative relocation.
816
6a3e1bae
L
8172013-01-16 H.J. Lu <hongjiu.lu@intel.com>
818
819 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
820 check.
821 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
822
823 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
824 and R_X86_64_SIZE64 check.
825 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
826 nor R_X86_64_SIZE64.
827
1788fc08
L
8282013-01-16 H.J. Lu <hongjiu.lu@intel.com>
829
830 * bfd-in2.h: Regenerated.
831 * libbfd.h: Likewise.
832
833 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
834 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
835 (elf_i386_check_relocs): Handle R_386_SIZE32.
836 (elf_i386_gc_sweep_hook): Likewise.
837 (elf_i386_relocate_section): Likewise.
838
839 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
840 and R_X86_64_SIZE64 entries.
841 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
842 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
843 (elf_x86_64_reloc_name_lookup): Likewise.
844 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
845 R_X86_64_SIZE64.
846 (elf_x86_64_gc_sweep_hook): Likewise.
847 (elf_x86_64_relocate_section): Likewise.
848
849 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
850 BFD_RELOC_SIZE64.
851
1e536451
L
8522013-01-15 H.J. Lu <hongjiu.lu@intel.com>
853
854 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
855 with R_X86_64_RELATIVE64.
856
77bf820f
NC
8572013-01-15 Nick Clifton <nickc@redhat.com>
858
859 * elf32-msp430.c: Fix spelling typo.
860
e2458743
AM
8612013-01-15 Alan Modra <amodra@gmail.com>
862
863 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
864 plt-thread-safe.
865
405bf443
AM
8662013-01-14 Alan Modra <amodra@gmail.com>
867
868 PR binutils/14813
869 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
870 (memory_bclose): Likewise. Return 0 on success.
871 * cache.c (cache_bclose): Likewise.
872 * opncls.c (opncls_bclose, bfd_close): Likewise.
873 * vms-lib.c (vms_lib_bclose): Likewise.
874 * libbfd.h: Regenerate.
875
ee659f1f
AM
8762013-01-13 Alan Modra <amodra@gmail.com>
877
878 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
879 Add ref_dynamic_nonweak.
880 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
881 (_bfd_elf_merge_symbol): Don't call above function. Move
882 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
883 clear dynamic_def.
884 (elf_link_add_object_symbols): Delete redundant "override" test.
885 Don't set dynamic_def here.
886 (elf_link_output_extsym): Update.
887
68c4a57e
L
8882013-01-12 H.J. Lu <hongjiu.lu@intel.com>
889
890 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
891 normal and TLS symbol access.
892 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
893
02be4619
AM
8942013-01-12 Alan Modra <amodra@gmail.com>
895
896 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
897 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
898 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
899
a4542f1b
AM
9002013-01-12 Alan Modra <amodra@gmail.com>
901
902 PR ld/12549
903 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
904 (_bfd_elf_strtab_clear_all_refs): Define.
905 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
906 (_bfd_elf_strtab_clear_all_refs): Delete.
907 * elflink.c (elf_link_add_object_symbols): Clear out added
908 strtab refs. Correct handling of warning common symbols.
909
68ffbac6
L
9102013-01-10 H.J. Lu <hongjiu.lu@intel.com>
911
912 * aout0.c: Remove trailing white spaces.
913 * archive.c: Likewise.
914 * archures.c: Likewise.
915 * bfd-in.h: Likewise.
916 * bfd-in2.h: Likewise.
917 * coff-alpha.c: Likewise.
918 * coff-i860.c: Likewise.
919 * coff-mips.c: Likewise.
920 * coff-ppc.c: Likewise.
921 * coff-tic80.c: Likewise.
922 * coff-x86_64.c: Likewise.
923 * coff-z80.c: Likewise.
924 * coffcode.h: Likewise.
925 * coffgen.c: Likewise.
926 * cofflink.c: Likewise.
927 * compress.c: Likewise.
928 * corefile.c: Likewise.
929 * cpu-arm.c: Likewise.
930 * cpu-avr.c: Likewise.
931 * cpu-bfin.c: Likewise.
932 * cpu-cr16.c: Likewise.
933 * cpu-cr16c.c: Likewise.
934 * cpu-crx.c: Likewise.
935 * cpu-h8300.c: Likewise.
936 * cpu-i386.c: Likewise.
937 * cpu-lm32.c: Likewise.
938 * cpu-m68k.c: Likewise.
939 * cpu-moxie.c: Likewise.
940 * cpu-msp430.c: Likewise.
941 * cpu-sh.c: Likewise.
942 * cpu-xc16x.c: Likewise.
943 * dwarf2.c: Likewise.
944 * ecofflink.c: Likewise.
945 * ecoffswap.h: Likewise.
946 * elf-ifunc.c: Likewise.
947 * elf-m10300.c: Likewise.
948 * elf-vxworks.c: Likewise.
949 * elf32-avr.c: Likewise.
950 * elf32-avr.h: Likewise.
951 * elf32-cr16.c: Likewise.
952 * elf32-cr16c.c: Likewise.
953 * elf32-cris.c: Likewise.
954 * elf32-crx.c: Likewise.
955 * elf32-frv.c: Likewise.
956 * elf32-hppa.c: Likewise.
957 * elf32-i860.c: Likewise.
958 * elf32-ip2k.c: Likewise.
959 * elf32-iq2000.c: Likewise.
960 * elf32-m32c.c: Likewise.
961 * elf32-m68hc1x.c: Likewise.
962 * elf32-msp430.c: Likewise.
963 * elf32-mt.c: Likewise.
964 * elf32-ppc.c: Likewise.
965 * elf32-rl78.c: Likewise.
966 * elf32-s390.c: Likewise.
967 * elf32-score.h: Likewise.
968 * elf32-sh-symbian.c: Likewise.
969 * elf32-sh.c: Likewise.
970 * elf32-spu.c: Likewise.
971 * elf32-tic6x.c: Likewise.
972 * elf32-v850.c: Likewise.
973 * elf32-xc16x.c: Likewise.
974 * elf32-xtensa.c: Likewise.
975 * elf64-alpha.c: Likewise.
976 * elf64-hppa.c: Likewise.
977 * elf64-ppc.c: Likewise.
978 * elf64-s390.c: Likewise.
979 * elfcore.h: Likewise.
980 * elflink.c: Likewise.
981 * elfxx-mips.c: Likewise.
982 * elfxx-sparc.c: Likewise.
983 * elfxx-tilegx.c: Likewise.
984 * ieee.c: Likewise.
985 * libcoff.h: Likewise.
986 * libpei.h: Likewise.
987 * libxcoff.h: Likewise.
988 * linker.c: Likewise.
989 * mach-o-i386.c: Likewise.
990 * mach-o-target.c: Likewise.
991 * mach-o.c: Likewise.
992 * mach-o.h: Likewise.
993 * mmo.c: Likewise.
994 * opncls.c: Likewise.
995 * pdp11.c: Likewise.
996 * pe-x86_64.c: Likewise.
997 * peXXigen.c: Likewise.
998 * pef-traceback.h: Likewise.
999 * pei-x86_64.c: Likewise.
1000 * peicode.h: Likewise.
1001 * plugin.c: Likewise.
1002 * reloc.c: Likewise.
1003 * riscix.c: Likewise.
1004 * section.c: Likewise.
1005 * som.c: Likewise.
1006 * syms.c: Likewise.
1007 * tekhex.c: Likewise.
1008 * ticoff.h: Likewise.
1009 * vaxbsd.c: Likewise.
1010 * xcofflink.c: Likewise.
1011 * xtensa-isa.c: Likewise.
1012
a3c62988
NC
10132013-01-10 Will Newton <will.newton@imgtec.com>
1014
1015 * Makefile.am: Add Meta.
1016 * Makefile.in: Regenerate.
1017 * archures.c (bfd_mach_metag): New.
1018 * bfd-in2.h: Regenerate.
1019 * config.bfd: Add Meta.
1020 * configure: Regenerate.
1021 * configure.in: Add Meta.
1022 * cpu-metag.c: New file.
1023 * elf-bfd.h: Add Meta.
1024 * elf32-metag.c: New file.
1025 * elf32-metag.h: New file.
1026 * libbfd.h: Regenerate.
1027 * reloc.c: Add Meta relocations.
1028 * targets.c: Add Meta.
1029
652451f8
YZ
10302013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
1031
1032 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
1033 (elfcore_write_aarch_hw_break): Likewise.
1034 (elfcore_write_aarch_hw_watch): Likewise.
1035 * elf.c (elfcore_grok_aarch_tls): New function.
1036 (elfcore_grok_aarch_hw_break): Likewise.
1037 (elfcore_grok_aarch_hw_watch): Likewise.
1038 (elfcore_grok_note): Call the new functions to handle the
1039 corresponding notes.
1040 (elfcore_write_aarch_tls): New function.
1041 (elfcore_write_aarch_hw_break): Likewise.
1042 (elfcore_write_aarch_hw_watch): Likewise.
1043 (elfcore_write_register_note): Call the new functions to handle the
1044 corresponding pseudo sections.
1045
45a466b5
TT
10462013-01-07 Tom Tromey <tromey@redhat.com>
1047
1048 * section.c (_bfd_std_section): Rename from std_section.
f75e0e33
AM
1049 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
1050 (STD_SECTION): Update.
45a466b5
TT
1051 * bfd-in2.h: Rebuild.
1052
e407c74b
NC
10532013-01-04 Juergen Urban <JuergenUrban@gmx.de>
1054
1055 * archures.c (bfd_mach_mips5900): Define.
1056 * bfd-in2.h: Regenerate.
1057 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
1058 * cpu-mips.c: Add support for MIPS r5900.
1059 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
1060
9b239e0e
NC
10612013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
1062 Nick Clifton <nickc@redhat.com>
1063
1064 * elflink.c (get_value): Prevent the use of an undefined shift
1065 operation. Add sanity checks.
1066
bab4becb 10672013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
884f2a8d 1068
bab4becb 1069 * config.bfd (cr16*-*-uclinux*): New target support.
884f2a8d 1070
9911c0fc 1071
bab4becb 1072For older changes see ChangeLog-2012
56882138 1073\f
bab4becb 1074Copyright (C) 2013 Free Software Foundation, Inc.
752937aa
NC
1075
1076Copying and distribution of this file, with or without modification,
1077are permitted in any medium without royalty provided the copyright
1078notice and this notice are preserved.
1079
56882138
AM
1080Local Variables:
1081mode: change-log
1082left-margin: 8
1083fill-column: 74
1084version-control: never
1085End:
This page took 0.822693 seconds and 4 git commands to generate.