Regenerate bfd-in2.h.
[platform/upstream/binutils.git] / bfd / ChangeLog
1 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
2
3         * bfd-in2.h: Regenerate.
4
5 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
6
7         * archures.c: Add AVR XMEGA architecture information.
8         * cpu-avr.c (arch_info_struct): Likewise.
9         * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
10         (elf32_avr_object_p): Likewise.
11
12 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
13
14         * reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
15         * bfd-in2.h: Regenerate.
16         * elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
17         to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
18         entry.
19         (elf32_arm_howto_from_type): Update accordingly.
20         (elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
21         (elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
22         (arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
23         with an extra noncall_refcount field.
24         (arm_local_iplt_info): New structure.
25         (elf_arm_obj_tdata): Add local_iplt.
26         (elf32_arm_local_iplt): New accessor macro.
27         (elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
28         plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
29         Change tls_type to a bitfield and add is_iplt.
30         (elf32_arm_link_hash_newfunc): Update accordingly.
31         (elf32_arm_allocate_local_sym_info): New function.
32         (elf32_arm_create_local_iplt): Likewise.
33         (elf32_arm_get_plt_info): Likewise.
34         (elf32_arm_plt_needs_thumb_stub_p): Likewise.
35         (elf32_arm_get_local_dynreloc_list): Likewise.
36         (create_ifunc_sections): Likewise.
37         (elf32_arm_copy_indirect_symbol): Update after the changes to
38         elf32_arm_link_hash_entry.  Assert the is_iplt has not yet been set.
39         (arm_type_of_stub): Add an st_type argument.  Use elf32_arm_get_plt_info
40         to get PLT information.  Assert that all STT_GNU_IFUNC references
41         are turned into PLT references.
42         (arm_build_one_stub): Pass the symbol type to
43         elf32_arm_final_link_relocate.
44         (elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
45         (elf32_arm_allocate_irelocs): New function.
46         (elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
47         all R_ARM_IRELATIVE.
48         (elf32_arm_allocate_plt_entry): New function.
49         (elf32_arm_populate_plt_entry): Likewise.
50         (elf32_arm_final_link_relocate): Add an st_type parameter.
51         Set srelgot to null for static objects.  Use separate variables
52         to record which st_value and st_type should be used when generating
53         a dynamic relocation.  Use elf32_arm_get_plt_info to find the
54         symbol's PLT information, setting has_iplt_entry, splt,
55         plt_offset and gotplt_offset accordingly.  Check whether
56         STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
57         the relocation target accordingly.  Broaden assert to include
58         .iplts.  Don't set sreloc for static relocations.  Assert that
59         we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
60         and R_ARM_ABS32_NOI.  Generate R_ARM_IRELATIVE relocations instead
61         of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
62         symbol.  Pass the symbol type to arm_type_of_stub.  Conditionally
63         resolve GOT references to the .igot.plt entry.
64         (elf32_arm_relocate_section): Update the call to
65         elf32_arm_final_link_relocate.
66         (elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
67         information.  Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
68         relocations in shared libraries and relocatable executables.
69         Count non-call PLT references.  Use elf32_arm_get_local_dynreloc_list
70         to get the list of dynamic relocations for a local symbol.
71         (elf32_arm_check_relocs): Always create ifunc sections.  Set isym
72         at the same time as setting h.  Use elf32_arm_allocate_local_sym_info
73         to allocate local symbol information.  Treat R_ARM_REL32 and
74         R_ARM_REL32_NOI as call relocations in shared libraries and
75         relocatable executables.  Record PLT information for local
76         STT_GNU_IFUNC functions as well as global functions.   Count
77         non-call PLT references.  Use elf32_arm_get_local_dynreloc_list
78         to get the list of dynamic relocations for a local symbol.
79         (elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
80         Don't remove STT_GNU_IFUNC PLTs unless all references have been
81         removed.  Update after the changes to elf32_arm_link_hash_entry.
82         (allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
83         entries should live in .plt or .iplt.  Check whether the .igot.plt
84         and .got entries can be combined.  Use elf32_arm_allocate_plt_entry
85         to allocate .plt and .(i)got.plt entries.  Detect which .got
86         entries will need R_ARM_IRELATIVE relocations and use
87         elf32_arm_allocate_irelocs to allocate them.  Likewise other
88         non-.got dynamic relocations.
89         (elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
90         and dynamic relocations for local STT_GNU_IFUNC symbols.
91         Check whether the .igot.plt and .got entries can be combined.
92         Detect which .got entries will need R_ARM_IRELATIVE relocations
93         and use elf32_arm_allocate_irelocs to allocate them.  Use stashed
94         section pointers intead of strcmp checks.  Handle iplt and igotplt.
95         (elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
96         to fill in .plt, .got.plt and .rel(a).plt entries.  Point
97         STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
98         resolve to it.
99         (elf32_arm_output_plt_map_1): New function, split out from
100         elf32_arm_output_plt_map.  Handle .iplt entries.  Use
101         elf32_arm_plt_needs_thumb_stub_p.
102         (elf32_arm_output_plt_map): Call it.
103         (elf32_arm_output_arch_local_syms): Add mapping symbols for
104         local .iplt entries.
105         (elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
106         (elf32_arm_swap_symbol_out): Likewise.
107         (elf32_arm_add_symbol_hook): New function.
108         (elf_backend_add_symbol_hook): Define for all targets.
109
110 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
111
112         * elf-bfd.h (elf_link_hash_entry): Add target_internal.
113         * elf.c (swap_out_syms): Set st_target_internal for each
114         Elf_Internal_Sym.
115         * elfcode.h (elf_swap_symbol_in): Likewise.
116         * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
117         * elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
118         * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
119         * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
120         * elflink.c (elf_link_output_extsym): Likewise.
121         (bfd_elf_final_link): Likewise.
122         (elf_link_add_object_symbols): Copy st_target_internal
123         to the hash table if we see a definition.
124         (_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
125         * elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
126         a branch_type field.
127         (a8_erratum_fix, a8_erratum_reloc): Likewise.
128         (arm_type_of_stub): Replace actual_st_type with an
129         actual_branch_type parameter.
130         (arm_build_one_stub): Use branch types rather than st_types to
131         determine the type of branch.
132         (cortex_a8_erratum_scan): Likewise.
133         (elf32_arm_size_stubs): Likewise.
134         (bfd_elf32_arm_process_before_allocation): Likewise.
135         (allocate_dynrelocs_for_symbol): Likewise.
136         (elf32_arm_finish_dynamic_sections): Likewise.
137         (elf32_arm_final_link_relocate): Replace sym_flags parameter with
138         a branch_type parameter.
139         (elf32_arm_relocate_section): Update call accordingly.
140         (elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
141         (elf32_arm_output_map_sym): Initialize st_target_internal.
142         (elf32_arm_output_stub_sym): Likewise.
143         (elf32_arm_symbol_processing): Delete.
144         (elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
145         Use st_target_internal to record the branch type.
146         (elf32_arm_swap_symbol_out): Use st_target_internal to test for
147         Thumb functions.
148         (elf32_arm_is_function_type): Delete.
149         (elf_backend_symbol_processing): Likewise.
150         (elf_backend_is_function_type): Likewise.
151
152 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
153
154         * elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
155         (elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
156         into the PLT block.
157
158 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
159
160         * elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
161         may_need_local_target_p and may_become_dynamic_p to classify
162         the relocation type.  Don't check info->symbolic or h->def_regular
163         when deciding whether to record a potential dynamic reloc.
164         Don't treat potential dynamic relocs as PLT references.
165         (elf32_arm_gc_sweep_hook): Update to match.  Assert that we don't
166         try to make the PLT reference count go negative.
167
168 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
169
170         * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
171         GOT entry here, rather than leaving it to finish_dynamic_symbol.
172         Only create a dynamic relocation for local references if
173         info->shared.
174         (allocate_dynrelocs_for_symbol): Update dynamic relocation
175         allocation accordingly.
176         (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
177
178 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
179
180         * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
181         (elf32_arm_add_dynreloc): Likewise.
182         (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
183         to allocate dynamic relocations.
184         (elf32_arm_size_dynamic_sections): Likewise.
185         (allocate_dynrelocs): Likewise.  Rename to
186         allocate_dynrelocs_for_symbol.
187         (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
188         create dynamic relocations.
189         (elf32_arm_finish_dynamic_symbol): Likewise.
190
191 2011-03-12  H.J. Lu  <hongjiu.lu@intel.com>
192
193         * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
194         x32 GD->IE and GD->LE transitions.
195         (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
196         and LD->LE transitions.
197
198 2011-03-10  Alan Modra  <amodra@gmail.com>
199
200         * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
201         for LO_DS error message and correct multiple.
202
203 2011-03-10  Alan Modra  <amodra@gmail.com>
204
205         * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
206         (ppc64_elf_link_just_syms): New function.
207         (opd_entry_value): Don't assume big-endian host.
208         (get_r2off): New function.
209         (ppc_build_one_stub, ppc_size_one_stub): Use it here.
210
211 2011-03-06  Michael Snyder  <msnyder@vmware.com>
212
213         * compress.c (bfd_compress_section_contents): Check for out of mem.
214
215         * elf64-x86-64.c (elf_x86_64_relocate_section): Document
216         that case statement falls through intentionally.
217
218         * elf32-i386.c (elf_i386_relocate_section): Document fall through.
219
220 2011-03-04  Alan Modra  <amodra@gmail.com>
221
222         * archive.c (bsd_write_armap): Don't call stat in deterministic
223         mode, and don't use st_mtime if stat returns error.
224
225 2011-03-03  Michael Snyder  <msnyder@vmware.com>
226
227         * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
228
229         * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
230
231         * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
232         (aout_link_write_other_symbol): Missing break statement.
233
234         * dwarf2.c (scan_unit_for_symbols): Stop memory leak.
235
236         * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
237
238 2011-03-03  H.J. Lu  <hongjiu.lu@intel.com>
239
240         * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
241         x32 IE->LE transition.
242         (elf_x86_64_relocate_section): Likewise.
243
244 2011-03-02  Bernd Schmidt  <bernds@codesourcery.com>
245
246         * elflink.c (is_reloc_section): Remove function.
247         (get_dynamic_reloc_section_name): Construct string manually.
248
249 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
250
251         * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
252         (adjust_relative_path): Likewise.
253         (_bfd_construct_extended_name_table): Likewise.
254         * corefile.c (generic_core_file_matches_executable_p): Likewise.
255         * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
256         * elf32-frv.c (elf32_frv_relocate_section): Likewise.
257         * elf32-spu.c (sort_bfds): Likewise.
258         (spu_elf_auto_overlay): Likewise.
259         * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
260         * xcofflink.c (xcoff_set_import_path): Likewise.
261         * xtensa-isa.c (xtensa_regfile_lookup): Likewise.
262         (xtensa_regfile_lookup_shortname): Likewise.
263
264 2011-02-28  Alan Modra  <amodra@gmail.com>
265
266         PR 12513
267         * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
268         stringsize.  Properly sanity check symdef_count.  Remove redundant
269         bfd_release.
270
271 2011-02-25  Rafael Ávila de Espíndola <respindola@mozilla.com>
272
273         * plugin.c (bfd_plugin_object_p): Correctly set the filesize
274         and handle claim_file seeking. Only try to load the plugin once.
275
276 2011-02-22  Andreas Schwab  <schwab@redhat.com>
277
278         * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
279         relocation read the value from the second GOT slot.
280
281 2011-02-15  Tristan Gingold  <gingold@adacore.com>
282
283         * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
284
285 2011-02-15  Alan Modra  <amodra@gmail.com>
286
287         * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
288         toc relocs.  Fuss over free(NULL).
289
290 2011-02-14  Mike Frysinger  <vapier@gentoo.org>
291
292         * elflink.c (bfd_elf_size_dynamic_sections): Add
293         bfd_get_symbol_leading_char to the start of newname.
294
295 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
296
297         * configure: Regenerate.
298
299 2011-02-09  Alan Modra  <amodra@gmail.com>
300
301         * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
302         we are done.  When optimising large toc, check that a global
303         symbol on a toc reloc is defined in a kept section.
304
305 2011-02-08  Nick Clifton  <nickc@redhat.com>
306
307         PR binutils/12467
308         * elf.c (assign_file_positions_for_load_sections): Set the program
309         header offset and entry size to zero if there are no program
310         headers.
311
312 2011-02-08  Alan Modra  <amodra@gmail.com>
313
314         * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
315         local_syms when looking for local symbols in .toc.
316
317 2011-02-01  Alan Modra  <amodra@gmail.com>
318
319         * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
320         for toc pointer on any section having makes_toc_func_call set.
321         (check_pasted_section): Ensure pasted .init/.fini fragments use
322         the same toc if any has makes_toc_func_call set.
323
324 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
325
326         * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
327         field.
328
329 2011-01-22  Richard Sandiford  <rdsandiford@googlemail.com>
330
331         * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
332         common sections too.
333
334 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
335
336         * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
337         Solaris target.
338
339 2011-01-18  Pierre Muller  <muller@ics.u-strasbg.fr>
340
341         Fix compilation for mingw64.
342         * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
343         typecast to avoid warning.
344         * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
345         usage.
346         * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
347         of long for pointer to avoid warning.
348         (elfNN_ia64_relax_brl): Idem.
349         (elfNN_ia64_install_value): Idem.
350         * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
351
352 2011-01-17  Richard Sandiford  <richard.sandiford@linaro.org>
353
354         * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
355         h->needs_plt when deciding whether to record a possible dynamic reloc.
356
357 2011-01-17  Richard Sandiford  <richard.sandiford@linaro.org>
358
359         * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
360         dynamic relocs for the removed section.
361
362 2011-01-15  H.J. Lu  <hongjiu.lu@intel.com>
363
364         * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
365         relocations.
366
367 2011-01-14  H.J. Lu  <hongjiu.lu@intel.com>
368
369         * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
370         (elf_x86_64_link_hash_table_create): Set pointer_r_type.
371         (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
372         for ILP32.  Remove ABI_64_P PIC check for R_X86_64_8,
373         R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
374         (elf_x86_64_relocate_section):  Handle R_X86_64_32 like R_X86_64_64
375         for ILP32.
376
377 2011-01-14  Alan Modra  <amodra@gmail.com>
378
379         * bfd.c (bfd_perror): Flush stdout before and stderr after printing
380         error.
381         (_bfd_default_error_handler): Likewise.
382         * elf.c (print_segment_map): Likewise.
383         * libbfd.c (warn_deprecated): Likewise.
384         * som.c (som_sizeof_headers): No need to do so here.
385         * coff-i860.c: Replace use of printf for error messages with
386         _bfd_error_handler.
387         * coff-ppc.c: Likewise.
388         * coff-sh.c: Likewise.
389         * elf32-bfin.c: Likewise.
390         * elf32-dlx.c: Likewise.
391         * elf32-mep.c: Likewise.
392         * elf32-v850.c: Likewise.
393         * mach-o.c: Likewise.
394         * pef.c: Likewise.
395
396 2011-01-13  H.J. Lu  <hongjiu.lu@intel.com>
397
398         * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
399         swap_reloca_out.
400         (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
401         (elf_x86_64_check_relocs): Align relocation section to 4 byte
402         for 32bit.
403         (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
404         ELF_ST_TYPE.
405         (elf_x86_64_finish_dynamic_symbol): Updated.
406         (elf_x86_64_finish_dynamic_sections): Don't use
407         Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
408         bfd_elf64_swap_dyn_out.
409
410 2011-01-14  J. Park  <grassman@gmail.com>
411
412         PR ld/12339
413         * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
414         following bfd_link_hash_warning symbol link.
415
416 2011-01-10  Nathan Sidwell  <nathan@codesourcery.com>
417             Glauber de Oliveira Costa  <glommer@gmail.com>
418
419         * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
420         BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
421         BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
422         relocations.
423         * libbfd.h: Rebuilt.
424         * bfd-in2.h: Rebuilt.
425         * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
426         (elf32_arm_reloc_map): Likewise.
427         (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
428         (elf32_arm_stub_long_branch_any_tls_pic,
429         elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
430         (DEF_STUBS): Add new stubs.
431         (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
432         (elf32_arm_local_tlsdesc_gotent): New.
433         (GOT_TLS_GDESC): New mask.
434         (GOT_TLS_GD_ANY): Define.
435         (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
436         (elf32_arm_compute_jump_table_size): New.
437         (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
438         num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
439         sgotplt_jump_table_size fields.
440         (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
441         (elf32_arm_link_hash_table_create): Initialize new fields.
442         (arm_type_of_stub): Check TLS desc relocs too.
443         (elf32_arm_stub_name): TLS desc relocs can be shared.
444         (elf32_arm_tls_transition): Determine relaxation.
445         (arm_stub_required_alignment): Add tls stubs.
446         (elf32_arm_size_stubs): Likewise.
447         (elf32_arm_tls_relax): Perform TLS relaxing.
448         (elf32_arm_final_link_relocate): Process TLS DESC relocations.
449         (IS_ARM_TLS_GNU_RELOC): New.
450         (IS_ARM_TLS_RELOC): Use it.
451         (elf32_arm_relocate_section): Perform TLS relaxing.
452         (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
453         desc relocations.
454         (allocate_dynrelocs): Allocate tls desc relcoations.
455         (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
456         symbols.
457         (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
458         got slots.
459         (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
460         symbol.
461         (elf32_arm_finish_dynamic_symbol): Adjust.
462         (arm_put_trampoline): New.
463         (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
464         trampolines.
465         (elf_backend_always_size_sections): Define.
466
467 2011-01-06  H.J. Lu  <hongjiu.lu@intel.com>
468
469         * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
470
471 2011-01-06  H.J. Lu  <hongjiu.lu@intel.com>
472
473         PR ld/12366
474         PR ld/12371
475         * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
476         handle symbols marked with regular reference, but not non-GOT
477         reference when building shared library.
478
479         * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
480         local and global STT_GNU_IFUNC symols when building shared
481         library.
482         * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
483
484 2011-01-05  DJ Delorie  <dj@redhat.com>
485
486         * reloc.c: Add BFD_RELOC_RX_OP_NEG.
487         * libbfd.h: Regenerate.
488         * bfd-in2.h: Regenerate.
489         * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
490
491 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
492
493         * cpu-i386.c (bfd_i386_compatible): New.
494         (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
495         with bfd_i386_compatible.
496         (bfd_x86_64_arch_intel_syntax): Likewise.
497         (bfd_i386_arch_intel_syntax): Likewise.
498         (i8086_arch): Likewise.
499         (bfd_x64_32_arch): Likewise.
500         (bfd_x86_64_arch): Likewise.
501         (bfd_i386_arch): Likewise.
502
503 For older changes see ChangeLog-2010
504 \f
505 Local Variables:
506 mode: change-log
507 left-margin: 8
508 fill-column: 74
509 version-control: never
510 End: