1 2011-02-08 Alan Modra <amodra@gmail.com>
3 * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
4 local_syms when looking for local symbols in .toc.
6 2011-02-01 Alan Modra <amodra@gmail.com>
8 * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
9 for toc pointer on any section having makes_toc_func_call set.
10 (check_pasted_section): Ensure pasted .init/.fini fragments use
11 the same toc if any has makes_toc_func_call set.
13 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
18 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
20 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
23 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
25 * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
28 2011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
30 Fix compilation for mingw64.
31 * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
32 typecast to avoid warning.
33 * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
35 * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
36 of long for pointer to avoid warning.
37 (elfNN_ia64_relax_brl): Idem.
38 (elfNN_ia64_install_value): Idem.
39 * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
41 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
43 * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
44 h->needs_plt when deciding whether to record a possible dynamic reloc.
46 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
48 * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
49 dynamic relocs for the removed section.
51 2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
53 * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
56 2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
58 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
59 (elf_x86_64_link_hash_table_create): Set pointer_r_type.
60 (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
61 for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
62 R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
63 (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
66 2011-01-14 Alan Modra <amodra@gmail.com>
68 * bfd.c (bfd_perror): Flush stdout before and stderr after printing
70 (_bfd_default_error_handler): Likewise.
71 * elf.c (print_segment_map): Likewise.
72 * libbfd.c (warn_deprecated): Likewise.
73 * som.c (som_sizeof_headers): No need to do so here.
74 * coff-i860.c: Replace use of printf for error messages with
76 * coff-ppc.c: Likewise.
77 * coff-sh.c: Likewise.
78 * elf32-bfin.c: Likewise.
79 * elf32-dlx.c: Likewise.
80 * elf32-mep.c: Likewise.
81 * elf32-v850.c: Likewise.
85 2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
87 * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
89 (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
90 (elf_x86_64_check_relocs): Align relocation section to 4 byte
92 (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
94 (elf_x86_64_finish_dynamic_symbol): Updated.
95 (elf_x86_64_finish_dynamic_sections): Don't use
96 Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
97 bfd_elf64_swap_dyn_out.
99 2011-01-14 J. Park <grassman@gmail.com>
102 * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
103 following bfd_link_hash_warning symbol link.
105 2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
106 Glauber de Oliveira Costa <glommer@gmail.com>
108 * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
109 BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
110 BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
113 * bfd-in2.h: Rebuilt.
114 * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
115 (elf32_arm_reloc_map): Likewise.
116 (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
117 (elf32_arm_stub_long_branch_any_tls_pic,
118 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
119 (DEF_STUBS): Add new stubs.
120 (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
121 (elf32_arm_local_tlsdesc_gotent): New.
122 (GOT_TLS_GDESC): New mask.
123 (GOT_TLS_GD_ANY): Define.
124 (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
125 (elf32_arm_compute_jump_table_size): New.
126 (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
127 num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
128 sgotplt_jump_table_size fields.
129 (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
130 (elf32_arm_link_hash_table_create): Initialize new fields.
131 (arm_type_of_stub): Check TLS desc relocs too.
132 (elf32_arm_stub_name): TLS desc relocs can be shared.
133 (elf32_arm_tls_transition): Determine relaxation.
134 (arm_stub_required_alignment): Add tls stubs.
135 (elf32_arm_size_stubs): Likewise.
136 (elf32_arm_tls_relax): Perform TLS relaxing.
137 (elf32_arm_final_link_relocate): Process TLS DESC relocations.
138 (IS_ARM_TLS_GNU_RELOC): New.
139 (IS_ARM_TLS_RELOC): Use it.
140 (elf32_arm_relocate_section): Perform TLS relaxing.
141 (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
143 (allocate_dynrelocs): Allocate tls desc relcoations.
144 (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
146 (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
148 (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
150 (elf32_arm_finish_dynamic_symbol): Adjust.
151 (arm_put_trampoline): New.
152 (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
154 (elf_backend_always_size_sections): Define.
156 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
158 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
160 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
164 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
165 handle symbols marked with regular reference, but not non-GOT
166 reference when building shared library.
168 * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
169 local and global STT_GNU_IFUNC symols when building shared
171 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
173 2011-01-05 DJ Delorie <dj@redhat.com>
175 * reloc.c: Add BFD_RELOC_RX_OP_NEG.
176 * libbfd.h: Regenerate.
177 * bfd-in2.h: Regenerate.
178 * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
180 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
182 * cpu-i386.c (bfd_i386_compatible): New.
183 (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
184 with bfd_i386_compatible.
185 (bfd_x86_64_arch_intel_syntax): Likewise.
186 (bfd_i386_arch_intel_syntax): Likewise.
187 (i8086_arch): Likewise.
188 (bfd_x64_32_arch): Likewise.
189 (bfd_x86_64_arch): Likewise.
190 (bfd_i386_arch): Likewise.
192 For older changes see ChangeLog-2010
198 version-control: never