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