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