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