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