bfd/
[binutils.git] / bfd / ChangeLog
blob42b07c6d227b4734a4f96a0b91c80d24af06108c
1 2011-01-10  Nathan Sidwell  <nathan@codesourcery.com>
2             Glauber de Oliveira Costa  <glommer@gmail.com>
4         * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
5         BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
6         BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
7         relocations.
8         * libbfd.h: Rebuilt.
9         * bfd-in2.h: Rebuilt.
10         * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
11         (elf32_arm_reloc_map): Likewise.
12         (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
13         (elf32_arm_stub_long_branch_any_tls_pic,
14         elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
15         (DEF_STUBS): Add new stubs.
16         (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
17         (elf32_arm_local_tlsdesc_gotent): New.
18         (GOT_TLS_GDESC): New mask.
19         (GOT_TLS_GD_ANY): Define.
20         (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
21         (elf32_arm_compute_jump_table_size): New.
22         (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
23         num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
24         sgotplt_jump_table_size fields.
25         (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
26         (elf32_arm_link_hash_table_create): Initialize new fields.
27         (arm_type_of_stub): Check TLS desc relocs too.
28         (elf32_arm_stub_name): TLS desc relocs can be shared.
29         (elf32_arm_tls_transition): Determine relaxation.
30         (arm_stub_required_alignment): Add tls stubs.
31         (elf32_arm_size_stubs): Likewise.
32         (elf32_arm_tls_relax): Perform TLS relaxing.
33         (elf32_arm_final_link_relocate): Process TLS DESC relocations.
34         (IS_ARM_TLS_GNU_RELOC): New.
35         (IS_ARM_TLS_RELOC): Use it.
36         (elf32_arm_relocate_section): Perform TLS relaxing.
37         (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
38         desc relocations.
39         (allocate_dynrelocs): Allocate tls desc relcoations.
40         (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
41         symbols.
42         (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
43         got slots.
44         (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
45         symbol.
46         (elf32_arm_finish_dynamic_symbol): Adjust.
47         (arm_put_trampoline): New.
48         (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
49         trampolines.
50         (elf_backend_always_size_sections): Define.
52 2011-01-06  H.J. Lu  <hongjiu.lu@intel.com>
54         * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
56 2011-01-06  H.J. Lu  <hongjiu.lu@intel.com>
58         PR ld/12366
59         PR ld/12371
60         * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
61         handle symbols marked with regular reference, but not non-GOT
62         reference when building shared library.
64         * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
65         local and global STT_GNU_IFUNC symols when building shared
66         library.
67         * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
69 2011-01-05  DJ Delorie  <dj@redhat.com>
71         * reloc.c: Add BFD_RELOC_RX_OP_NEG.
72         * libbfd.h: Regenerate.
73         * bfd-in2.h: Regenerate.
74         * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
76 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
78         * cpu-i386.c (bfd_i386_compatible): New.
79         (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
80         with bfd_i386_compatible.
81         (bfd_x86_64_arch_intel_syntax): Likewise.
82         (bfd_i386_arch_intel_syntax): Likewise.
83         (i8086_arch): Likewise.
84         (bfd_x64_32_arch): Likewise.
85         (bfd_x86_64_arch): Likewise.
86         (bfd_i386_arch): Likewise.
88 For older changes see ChangeLog-2010
90 Local Variables:
91 mode: change-log
92 left-margin: 8
93 fill-column: 74
94 version-control: never
95 End: