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