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