Fix an abort triggered when objcopy is used to set the "share" section flag on an...
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2020-03-06 Nick Clifton <nickc@redhat.com>
2
3 * objcopy.c (check_new_section_flags): New function. Reject the
4 SEC_COFF_SHARED flag if the target is not a COFF binary.
5 (copy_object): Call check_new_section_flags.
6 (setup_section): Likewise.
7 * doc/binutils.texi (objcopy): Add a note that the 'share' section
8 flag cannot be applied to ELF binaries.
9
10 2020-03-06 Alan Modra <amodra@gmail.com>
11
12 PR 25637
13 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
14
15 2020-03-05 Alan Modra <amodra@gmail.com>
16
17 PR 25629
18 * objcopy.c (filter_symbols): Don't segfault on NULL
19 prefix_symbols_string.
20
21 2020-03-04 Christian Eggers <ceggers@gmx.de>
22
23 * objcopy.c (copy_object): Convert from bytes to octets for
24 --gap-fill and --pad-to.
25
26 2020-03-03 Nick Clifton <nickc@redhat.com>
27
28 PR 25625
29 * prdbg.c (pr_tag_type): Remove call to abort.
30
31 2020-03-02 Aaron Merey <amerey@redhat.com>
32
33 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
34 selection.
35
36 2020-03-02 Nick Clifton <nickc@redhat.com>
37
38 PR 25543
39 * readelf.c (dump_section_as_strings): Display new-line characters
40 as \n and then insert a line break.
41 * testsuite/binutils-all/pr25543.s: New test.
42 * testsuite/binutils-all/pr25543.d: Test driver.
43 * testsuite/binutils-all/readelf.exp: Run the new test.
44
45 2020-02-27 Nick Clifton <nickc@redhat.com>
46
47 PR 25526
48 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
49 get_data is unable to load the string table.
50
51 2020-02-26 Alan Modra <amodra@gmail.com>
52
53 * elfedit.c: Indent labels correctly.
54 * readelf.c: Likewise.
55 * resres.c: Likewise.
56
57 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
58
59 PR binutils/25584
60 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
61 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
62
63 2020-02-24 Nick Clifton <nickc@redhat.com>
64
65 PR 25499
66 * doc/binutils.texi (objdump): Fix typo in description of
67 objdump's -g option.
68
69 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
70
71 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
72 is changed.
73
74 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
75
76 * objdump.c (show_line): call bfd_demangle when using do_demangle.
77
78 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
79
80 * configure: Regenerate.
81
82 2020-02-10 Fangrui Song <maskray@google.com>
83
84 * objcopy.c (parse_flags): Handle "exclude".
85 * doc/binutils.texi: Document the support.
86
87 2020-02-10 Aaron Merey <amerey@redhat.com>
88
89 * binutils/testsuite/binutils-all/debuginfod.exp:
90 Replace set ::env with setenv.
91 Start server before setting environment variable.
92 Specify tmpdir as the location of the server's
93 database.
94 Check additional server metrics at start-up.
95
96 2020-02-07 Nick Clifton <nickc@redhat.com>
97
98 * README-how-to-make-a-release: Add note about updating the
99 GAS/NEWS URL in the next release.
100
101 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
102
103 PR 25469
104 * readelf.c (get_machine_flags): Add support for Z80N machine
105 number.
106
107 2020-02-07 Nick Clifton <nickc@redhat.com>
108
109 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
110 of the truncated file name.
111
112 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
113
114 * objdump.c (print_jump_visualisation): New function.
115 (disassemble_bytes): Call new function.
116
117 2020-02-06 Alan Modra <amodra@gmail.com>
118
119 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
120 TCL procedure.
121 (supports_gnu_osabi): New procedure.
122 (is_generic): New, from ld-lib.exp.
123 (supports_gnu_unique): Use the above.
124
125 2020-02-04 Alan Modra <amodra@gmail.com>
126
127 * Makefile.am (CFILES): Add od-elf32_avr.c.
128 * Makefile.in: Regenerate.
129 * po/POTFILES.in: Regenerate.
130
131 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
132
133 * readelf.c (dump_relocations, dump_relocations)
134 (decode_arm_unwind_bytecode, process_dynamic_section)
135 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
136 error message.
137
138 2020-02-03 Sergei Trofimovich <siarheit@google.com>
139
140 * coffdump.c (program_name): Drop redundant definition.
141 * srconv.c (program_name): Likewise
142 * sysdump.c (program_name): Likewise
143
144 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
145
146 PR gas/25380
147 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
148 same file with different section pointers.
149
150 2020-02-01 Nick Clifton <nickc@redhat.com>
151
152 * README-how-to-make-a-release: Update with more details on the
153 release making process.
154
155 2020-01-31 Nick Clifton <nickc@redhat.com>
156
157 * po/sv.po: Updated Swedish translation.
158
159 2020-01-28 Nick Clifton <nickc@redhat.com>
160
161 * readelf.c (get_build_id): Simplify warning message about corrupt
162 notes encountered whilst scanning for the build-id.
163
164 2020-01-27 Roland McGrath <mcgrathr@google.com>
165
166 * objcopy.c (compare_gnu_build_notes): Fix comparison results
167 for overlapping ranges so that (A == B) == (B == A) holds.
168
169 2020-01-27 Alan Modra <amodra@gmail.com>
170
171 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
172 case statement with switch statement.
173
174 2020-01-24 Nick Clifton <nickc@redhat.com>
175
176 * readelf.c (get_build_id): Fix warning messages about corrupt
177 notes.
178
179 2020-01-23 Nick Clifton <nickc@redhat.com>
180
181 * po/fr.po: Updated French translation.
182
183 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
184
185 PR 25417
186 * readelf.c (get_alpha_symbol_other): Fix error message typo.
187
188 2020-01-20 Nick Clifton <nickc@redhat.com>
189
190 * po/pt.po: Updated Portuguese translation.
191 * po/uk.po: Updated Ukranian translation.
192
193 2020-01-18 Nick Clifton <nickc@redhat.com>
194
195 * README-how-to-make-a-release: Update notes on how to cut a
196 branch for a release.
197
198 2020-01-18 Nick Clifton <nickc@redhat.com>
199
200 * configure: Regenerate.
201 * po/binutils.pot: Regenerate.
202
203 2020-01-18 Nick Clifton <nickc@redhat.com>
204
205 Binutils 2.34 branch created.
206
207 2020-01-17 Thomas Troeger <tstroege@gmx.de>
208
209 * objdump.c (jump_info_visualize_address): Discard jumps that are
210 no longer needed.
211 (disassemble_bytes): Only compute the maximum level if jumps were
212 detected.
213
214 2020-01-13 Nick Clifton <nickc@redhat.com>
215
216 * objdump.c (disassemble_bytes): Remove C99-ism.
217 * testsuite/binutils-all/debuginfod.exp: New tests.
218
219 2020-01-13 Thomas Troeger <tstroege@gmx.de>
220
221 * objdump.c (visualize_jumps, color_output, extended_color_output)
222 (detected_jumps): New variables.
223 (usage): Add the new jump visualization options.
224 (option_values): Add new option value.
225 (long_options): Add the new option.
226 (jump_info_new, jump_info_free): New functions.
227 (jump_info_min_address, jump_info_max_address): Likewise.
228 (jump_info_end_address, jump_info_is_start_address): Likewise.
229 (jump_info_is_end_address, jump_info_size): Likewise.
230 (jump_info_unlink, jump_info_insert): Likewise.
231 (jump_info_add_front, jump_info_move_linked): Likewise.
232 (jump_info_intersect, jump_info_merge): Likewise.
233 (jump_info_sort, jump_info_visualize_address): Likewise.
234 (disassemble_jumps): New function - used to locate jumps.
235 (disassemble_bytes): Add ascii art generation.
236 (disassemble_section): Add scan to locate jumps.
237 (main): Parse the new visualization option.
238 * doc/binutils.texi: Document the new feature.
239 * NEWS: Mention the new feature.
240
241 2020-01-13 Alan Modra <amodra@gmail.com>
242
243 PR 25360
244 PR 25361
245 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
246 fde_fc col_type and col_offset.
247 * readelf.c (apply_relocations): Move symsec check earlier.
248 (free_debug_section): Free reloc_info.
249 (process_notes_at): Free pnotes on error path.
250 (process_object): Free dump_sects here..
251 (process_archive): ..not here.
252
253 2020-01-13 Alan Modra <amodra@gmail.com>
254
255 PR 25362
256 * nm.c (display_rel_file): Free dyn_syms.
257
258 2020-01-09 Nick Clifton <nickc@redhat.com>
259
260 PR 25220
261 * objcopy.c (empty_name): New variable.
262 (need_sym_before): Prevent an attempt to free a static variable.
263 (filter_symbols): Avoid strcmp test by checking for pointer
264 equality.
265
266 2020-01-09 Nick Clifton <nickc@redhat.com>
267
268 * po/zh_TW.po: Updated Traditional Chinese translation.
269
270 2020-01-09 Aaron Merey <amerey@redhat.com>
271
272 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
273 * Makefile.in: Regenerate.
274 * NEWS: Update.
275 * config.in: Regenerate.
276 * configure: Regenerate.
277 * configure.ac: Call AC_DEBUGINFOD.
278 * doc/Makefile.in: Regenerate.
279 * doc/binutils.texi: Add section on using binutils
280 with debuginfod.
281 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
282 Query debuginfod servers for the target debug file.
283 (load_separate_debug_info): Call
284 debuginfod_fetch_separate_debug_info if configured with
285 debuginfod.
286 (load_separate_debug_files): Add file argument to
287 load_separate_debug_info calls.
288 * dwarf.h (get_build_id): Add declaration.
289 * objdump.c (get_build_id): New function. Get build-id of file.
290 * readelf.c (get_build_id): Likewise.
291 * testsuite/binutils-all/debuginfod.exp: New tests.
292 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
293 section.
294
295 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
296
297 * readelf.c: Add support for new Z*) relocations and machine
298 types.
299
300 2020-01-01 Alan Modra <amodra@gmail.com>
301
302 Update year range in copyright notice of all files.
303
304 For older changes see ChangeLog-2019
305 \f
306 Copyright (C) 2020 Free Software Foundation, Inc.
307
308 Copying and distribution of this file, with or without modification,
309 are permitted in any medium without royalty provided the copyright
310 notice and this notice are preserved.
311
312 Local Variables:
313 mode: change-log
314 left-margin: 8
315 fill-column: 74
316 version-control: never
317 End:
This page took 0.057373 seconds and 5 git commands to generate.