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