x86-64: Fix TLSDESC relaxation for x32
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/25416
4 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Support
5 "rex leal x@tlsdesc(%rip), %reg" and "call *x@tlsdesc(%eax)" in
6 X32 mode.
7 (elf_x86_64_relocate_section): In x32 mode, for GDesc -> LE
8 transition, relax "rex leal x@tlsdesc(%rip), %reg" to
9 "rex movl $x@tpoff, %reg", for GDesc -> IE transition, relax
10 "rex leal x@tlsdesc(%rip), %reg" to
11 "rex movl x@gottpoff(%rip), %eax". For both transitions, relax
12 "call *(%eax)" to "nopl (%rax)".
13
14 2020-01-20 Alan Modra <amodra@gmail.com>
15
16 * elf64-ppc.c (LD_R11_0R3, CMPDI_R11_0, STD_R11_0R1, LD_R11_0R1),
17 (MTLR_R11): Don't define.
18 (LD_R0_0R3, CMPDI_R0_0): Define.
19 (build_tls_get_addr_stub): Don't use r11 in stub.
20
21 2020-01-20 Alan Modra <amodra@gmail.com>
22
23 * elf64-ppc.c (ppc_elf_hash_entry): New function, use throughout file.
24 (defined_sym_val, is_tls_get_addr): Likewise.
25
26 2020-01-18 Nick Clifton <nickc@redhat.com>
27
28 * version.m4 (BFD_VERSION): Set to 2.34.50.
29 * configure: Regenerate.
30 * po/bfd.pot: Regenerate.
31
32 2020-01-18 Nick Clifton <nickc@redhat.com>
33
34 Binutils 2.34 branch created.
35
36 2020-01-17 Christian Biesinger <cbiesinger@google.com>
37
38 * coff-arm.c: Fix spelling error (seperate).
39 * elfxx-riscv.c (riscv_parse_sv_or_non_std_ext): Fix spelling
40 error (seperate).
41 * sysdep.h (strnlen): Fix spelling error (seperate).
42
43 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
44
45 PR 20694
46 * pdp11.c (TARGET_PAGE_SIZE): Set to 8192.
47
48 2020-01-15 Alan Modra <amodra@gmail.com>
49
50 PR 25384
51 * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Update comment.
52 (ppc64_elf_adjust_dynamic_symbol): Don't allow .dynbss copies
53 of function symbols unless dot symbols are present. Do warn
54 whenever one is created, regardles of whether a PLT entry is
55 also emitted for the function symbol.
56
57 2020-01-14 Alan Modra <amodra@gmail.com>
58
59 * som.c (som_bfd_count_ar_symbols): Error when file position
60 of symbols on chains is not strictly increasing.
61
62 2020-01-14 Alan Modra <amodra@gmail.com>
63
64 * vms.h (VMS_DEBUG): Define as 0.
65 * vms-alpha.c (image_write): Move debug output after bounds check.
66 Tidy bounds check.
67 (_bfd_vms_slurp_eihd): Warning fix.
68 (_bfd_vms_slurp_etir): Init variables to avoid bogus warnings.
69
70 2020-01-13 Alan Modra <amodra@gmail.com>
71
72 * vms-alpha.c (_bfd_vms_slurp_egsd): Ensure minimum size even
73 for "ignored" records.
74
75 2020-01-13 Alan Modra <amodra@gmail.com>
76
77 * wasm-module.c (wasm_scan_name_function_section): Formatting.
78 Delete asect name check. Move asect NULL check to wasm_object_p.
79 Correct bounds check of sizes against end. Replace uses of
80 bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use
81 just one bfd_release.
82 (wasm_scan): Don't use malloc/strdup for section names,
83 bfd_alloc instead. Simplify code prefixing section name.
84 Formatting. Don't attempt to free memory here..
85 (wasm_object_p): ..do so here.
86
87 2020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
88
89 PR ld/22269
90 * elf32-arm.c (elf32_arm_final_link_relocate): Use
91 UNDEFWEAK_NO_DYNAMIC_RELOC.
92 (allocate_dynrelocs_for_symbol): Likewise.
93
94 2020-01-10 Tamar Christina <tamar.christina@arm.com>
95
96 PR 25210
97 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass.
98
99 2020-01-10 Alan Modra <amodra@gmail.com>
100
101 * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
102
103 2020-01-09 Nick Clifton <nickc@redhat.com>
104
105 PR 25221
106 * bfd.c (bfd_convert_section_contents): Check for a compress
107 header size that is larger than the actual section size.
108
109 2020-01-08 Alan Modra <amodra@gmail.com>
110
111 PR 25351
112 * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms
113 after removing sections.
114
115 2020-01-06 Jim Wilson <jimw@sifive.com>
116
117 PR 25205
118 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
119 check for !bfd_link_pic (info).
120 <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
121 <R_RISCV_JAL>: Add comment.
122 (_bfd_riscv_relax_section): For plt.offset check, add check for
123 bfd_link_pic (info). Add comment.
124
125 2020-01-06 Alan Modra <amodra@gmail.com>
126
127 * format.c (bfd_check_format_matches): Ignore bfd_error on target
128 match failures. Don't init to bfd_error_wrong_format before
129 calling _bfd_check_format.
130
131 2020-01-06 Alan Modra <amodra@gmail.com>
132
133 * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail
134 status rather than exiting on stack overflow or underflow.
135 (_bfd_vms_slurp_etir): Adjust to suit.
136
137 2020-01-06 Alan Modra <amodra@gmail.com>
138
139 * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index.
140
141 2020-01-06 Alan Modra <amodra@gmail.com>
142
143 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
144 command. Check name offset is within command.
145 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
146 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
147 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
148 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
149 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
150 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
151 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
152 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
153 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
154 (bfd_mach_o_read_segment): Similarly.
155 (bfd_mach_o_read_thread): Properly bound check thread struct.
156 Don't repeat checks on second loop.
157 (bfd_mach_o_read_command): Fail on invalid command length.
158
159 2020-01-04 Alan Modra <amodra@gmail.com>
160
161 * format.c (bfd_check_format_matches): Add preserve_match.
162 Save initial bfd state in "preserve", matched bfd state in
163 "preserve_match". Save just the first match. Release
164 bfd_alloc memory. Restore and finish preserved state as
165 appropriate on all function exit paths.
166
167 2020-01-04 Alan Modra <amodra@gmail.com>
168
169 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
170
171 2020-01-04 Alan Modra <amodra@gmail.com>
172
173 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
174 match too.
175
176 2020-01-03 Nick Clifton <nickc@redhat.com>
177
178 PR 25307
179 (bfd_pef_parse_function_stubs): Correct the test that ensures that
180 there is enough data remaining in the code buffer before
181 attempting to read a function stub.
182
183 2020-01-03 Nick Clifton <nickc@redhat.com>
184
185 PR 25308
186 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
187 return value from bfd_malloc.
188 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
189 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
190 (elf32_arm_filter_cmse_symbols): Likewise.
191 (elf32_arm_write_section): Likewise.
192 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
193 (bfd_mach_o_follow_dsym): Likewise.
194 * pef.c (bfd_pef_print_loader_section): Likewise.
195 (bfd_pef_scan_start_address): Likewise.
196 (bfd_pef_parse_function_stubs): Likewise.
197 (bfd_pef_parse_symbols): Likewise.
198
199 2020-01-03 Sergei Trofimovich <siarheit@google.com>
200
201 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
202 on binary inputs ld/PR25316.
203 (is_ia64_elf): new helper to filter on ia64 objects.
204
205 2020-01-03 Jan Beulich <jbeulich@suse.com>
206
207 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
208 in parameter names.
209 (bfd_mach_o_scan): Insert underscore in two variable names.
210
211 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
212
213 * Makefile.am: Add z80-elf target support.
214 * configure.ac: Likewise.
215 * targets.c: Likewise.
216 * Makefile.in: Regenerate.
217 * configure: Regenerate.
218 * config.bfd: Add z80-elf target support and new arches: ez80 and
219 z180.
220 * elf32-z80.c: New file.
221 * archures.c: Add new z80 architectures: eZ80 and Z180.
222 * coffcode.h: Likewise.
223 * cpu-z80.c: Likewise.
224 * coff-z80.c: Add new relocations for Z80 target and local label
225 check.
226 * reloc.c: Add new relocs.
227 * bfd-in2.h: Regenerate.
228 * libbfd.h: Regenerate.
229
230 2020-01-02 Tamar Christina <tamar.christina@arm.com>
231
232 PR 25210
233 PR 24753
234 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
235
236 2020-01-01 Alan Modra <amodra@gmail.com>
237
238 Update year range in copyright notice of all files.
239
240 For older changes see ChangeLog-2019
241 \f
242 Copyright (C) 2020 Free Software Foundation, Inc.
243
244 Copying and distribution of this file, with or without modification,
245 are permitted in any medium without royalty provided the copyright
246 notice and this notice are preserved.
247
248 Local Variables:
249 mode: change-log
250 left-margin: 8
251 fill-column: 74
252 version-control: never
253 End:
This page took 0.038013 seconds and 4 git commands to generate.