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