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