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