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