1 2011-02-14 Mike Frysinger <vapier@gentoo.org>
3 * elflink.c (bfd_elf_size_dynamic_sections): Add
4 bfd_get_symbol_leading_char to the start of newname.
6 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8 * configure: Regenerate.
10 2011-02-09 Alan Modra <amodra@gmail.com>
12 * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
13 we are done. When optimising large toc, check that a global
14 symbol on a toc reloc is defined in a kept section.
16 2011-02-08 Nick Clifton <nickc@redhat.com>
19 * elf.c (assign_file_positions_for_load_sections): Set the program
20 header offset and entry size to zero if there are no program
23 2011-02-08 Alan Modra <amodra@gmail.com>
25 * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
26 local_syms when looking for local symbols in .toc.
28 2011-02-01 Alan Modra <amodra@gmail.com>
30 * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
31 for toc pointer on any section having makes_toc_func_call set.
32 (check_pasted_section): Ensure pasted .init/.fini fragments use
33 the same toc if any has makes_toc_func_call set.
35 2011-01-28 Joseph Myers <joseph@codesourcery.com>
37 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
40 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
42 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
45 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
47 * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
50 2011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
52 Fix compilation for mingw64.
53 * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
54 typecast to avoid warning.
55 * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
57 * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
58 of long for pointer to avoid warning.
59 (elfNN_ia64_relax_brl): Idem.
60 (elfNN_ia64_install_value): Idem.
61 * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
63 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
65 * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
66 h->needs_plt when deciding whether to record a possible dynamic reloc.
68 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
70 * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
71 dynamic relocs for the removed section.
73 2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
75 * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
78 2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
80 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
81 (elf_x86_64_link_hash_table_create): Set pointer_r_type.
82 (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
83 for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
84 R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
85 (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
88 2011-01-14 Alan Modra <amodra@gmail.com>
90 * bfd.c (bfd_perror): Flush stdout before and stderr after printing
92 (_bfd_default_error_handler): Likewise.
93 * elf.c (print_segment_map): Likewise.
94 * libbfd.c (warn_deprecated): Likewise.
95 * som.c (som_sizeof_headers): No need to do so here.
96 * coff-i860.c: Replace use of printf for error messages with
98 * coff-ppc.c: Likewise.
99 * coff-sh.c: Likewise.
100 * elf32-bfin.c: Likewise.
101 * elf32-dlx.c: Likewise.
102 * elf32-mep.c: Likewise.
103 * elf32-v850.c: Likewise.
104 * mach-o.c: Likewise.
107 2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
109 * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
111 (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
112 (elf_x86_64_check_relocs): Align relocation section to 4 byte
114 (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
116 (elf_x86_64_finish_dynamic_symbol): Updated.
117 (elf_x86_64_finish_dynamic_sections): Don't use
118 Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
119 bfd_elf64_swap_dyn_out.
121 2011-01-14 J. Park <grassman@gmail.com>
124 * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
125 following bfd_link_hash_warning symbol link.
127 2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
128 Glauber de Oliveira Costa <glommer@gmail.com>
130 * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
131 BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
132 BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
135 * bfd-in2.h: Rebuilt.
136 * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
137 (elf32_arm_reloc_map): Likewise.
138 (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
139 (elf32_arm_stub_long_branch_any_tls_pic,
140 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
141 (DEF_STUBS): Add new stubs.
142 (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
143 (elf32_arm_local_tlsdesc_gotent): New.
144 (GOT_TLS_GDESC): New mask.
145 (GOT_TLS_GD_ANY): Define.
146 (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
147 (elf32_arm_compute_jump_table_size): New.
148 (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
149 num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
150 sgotplt_jump_table_size fields.
151 (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
152 (elf32_arm_link_hash_table_create): Initialize new fields.
153 (arm_type_of_stub): Check TLS desc relocs too.
154 (elf32_arm_stub_name): TLS desc relocs can be shared.
155 (elf32_arm_tls_transition): Determine relaxation.
156 (arm_stub_required_alignment): Add tls stubs.
157 (elf32_arm_size_stubs): Likewise.
158 (elf32_arm_tls_relax): Perform TLS relaxing.
159 (elf32_arm_final_link_relocate): Process TLS DESC relocations.
160 (IS_ARM_TLS_GNU_RELOC): New.
161 (IS_ARM_TLS_RELOC): Use it.
162 (elf32_arm_relocate_section): Perform TLS relaxing.
163 (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
165 (allocate_dynrelocs): Allocate tls desc relcoations.
166 (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
168 (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
170 (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
172 (elf32_arm_finish_dynamic_symbol): Adjust.
173 (arm_put_trampoline): New.
174 (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
176 (elf_backend_always_size_sections): Define.
178 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
180 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
182 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
186 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
187 handle symbols marked with regular reference, but not non-GOT
188 reference when building shared library.
190 * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
191 local and global STT_GNU_IFUNC symols when building shared
193 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
195 2011-01-05 DJ Delorie <dj@redhat.com>
197 * reloc.c: Add BFD_RELOC_RX_OP_NEG.
198 * libbfd.h: Regenerate.
199 * bfd-in2.h: Regenerate.
200 * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
202 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
204 * cpu-i386.c (bfd_i386_compatible): New.
205 (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
206 with bfd_i386_compatible.
207 (bfd_x86_64_arch_intel_syntax): Likewise.
208 (bfd_i386_arch_intel_syntax): Likewise.
209 (i8086_arch): Likewise.
210 (bfd_x64_32_arch): Likewise.
211 (bfd_x86_64_arch): Likewise.
212 (bfd_i386_arch): Likewise.
214 For older changes see ChangeLog-2010
220 version-control: never