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