1 1.10 christos 2025-07-13 Nick Clifton <nickc (a] redhat.com> 2 1.10 christos 3 1.10 christos * 2.45 Branch point. 4 1.10 christos 5 1.10 christos 2025-01-19 Nick Clifton <nickc (a] redhat.com> 6 1.10 christos 7 1.10 christos * 2.44 Branch point. 8 1.10 christos 9 1.10 christos 2024-07-20 Nick Clifton <nickc (a] redhat.com> 10 1.10 christos 11 1.10 christos * 2.43 branch point. 12 1.10 christos 13 1.10 christos 2024-02-12 Frederic Cambus <fred (a] statdns.com> 14 1.10 christos 15 1.10 christos * readelf.c (get_segment_type): Handle PT_OPENBSD_SYSCALLS segment 16 1.10 christos type. 17 1.10 christos 18 1.10 christos 2024-01-26 Nick Clifton <nickc (a] redhat.com> 19 1.1 christos 20 1.10 christos PR 31250 21 1.10 christos * objcopy.c (copy_archive): Improve the handling of archives that 22 1.10 christos contain elements with invalid pathnames. 23 1.9 christos 24 1.9 christos 2024-01-15 Nick Clifton <nickc (a] redhat.com> 25 1.9 christos 26 1.9 christos * 2.42 branch point. 27 1.9 christos 28 1.9 christos 2023-12-04 Tom Tromey <tom (a] tromey.com> 29 1.9 christos 30 1.9 christos * dwarf.c (display_debug_names): Handle empty .debug_names hash 31 1.9 christos table. Name entries start at 1. 32 1.9 christos 33 1.9 christos 2023-11-15 Arsen Arsenovi <arsen (a] aarsen.me> 34 1.9 christos 35 1.9 christos * aclocal.m4: Regenerate. 36 1.9 christos * configure: Regenerate. 37 1.9 christos * po/Make-in ($(srcdir)/$(PACKAGE).pot): Output to a .pot 38 1.9 christos temporary file, to suppress xgettext checking charset names. 39 1.9 christos 40 1.9 christos 2023-11-14 Nick Clifton <nickc (a] redhat.com> 41 1.9 christos 42 1.9 christos PR 31062 43 1.9 christos * objdump.c (decompressed_dumps): New local variable. 44 1.9 christos (usage): Mention the -z/--decompress option. 45 1.9 christos (long_options): Add --decompress. 46 1.9 christos (dump_section_header): Add "COMPRESSED" to the Flags field of any 47 1.9 christos compressed section. 48 1.9 christos (dump_section): Warn users when dumping a compressed section. 49 1.9 christos (display_any_bfd): Decompress the section if decompressed_dumps is 50 1.9 christos true. 51 1.9 christos (main): Handle the -z/--decompress option. 52 1.9 christos * NEWS: Mention the new feature. 53 1.9 christos * doc/binutils.texi: Document the new feature. 54 1.9 christos * testsuite/binutils-all/objdump.s: Update expected output. 55 1.9 christos * testsuite/binutils-all/objdump.exp: Add test of -Z -s. 56 1.9 christos * testsuite/binutils-all/objdump.Zs: New file. 57 1.9 christos 58 1.9 christos * readelf.c (maybe_expand_or_relocate_section): New function. 59 1.9 christos Contains common code found in dump functions. Adds a note message 60 1.9 christos if a compressed section is not being decompressed. 61 1.9 christos (dump_section_as_strings): Use new function. 62 1.9 christos (dump_section_as_bytes): Likewise. 63 1.9 christos 64 1.9 christos 2023-11-10 Simon Marchi <simon.marchi (a] efficios.com> 65 1.9 christos 66 1.9 christos * readelf.c (decode_AMDGPU_machine_flags): Handle gfx1100, 67 1.9 christos gfx1101, gfx1102. 68 1.9 christos 69 1.9 christos 2023-11-10 Vsevolod Alekseyev <sevaa (a] sprynet.com> 70 1.9 christos 71 1.9 christos PR 30880 72 1.9 christos * dwarf.c (read_and_display_attr_value): Fix loclist handling. 73 1.9 christos (display_loclists_list): Likewise. 74 1.9 christos 75 1.9 christos 2023-10-24 Tom de Vries <tdevries (a] suse.de> 76 1.9 christos 77 1.9 christos * dwarf.c (display_gdb_index): Handle unknown name of main. 78 1.9 christos 79 1.9 christos 2023-10-10 Tom de Vries <tdevries (a] suse.de> 80 1.9 christos 81 1.9 christos * dwarf.c (display_lang): New function, factored out of ... 82 1.9 christos (read_and_display_attr_value): ... here. 83 1.9 christos (display_gdb_index): Handle v9 .gdb_index. 84 1.9 christos 85 1.9 christos 2023-10-05 A. Wilcox <awilfox (a] adelielinux.org>w 86 1.9 christos 87 1.9 christos PR 30916 88 1.9 christos * testsuite/binutils-all/addr2line.exp: Do not use PowerPC 89 1.9 christos specific options when working with a MUSL target. 90 1.9 christos 91 1.9 christos 2023-10-02 Vsevolod Alekseyev <sevaa (a] sprynet.com> 92 1.9 christos 93 1.9 christos PR 29267 94 1.9 christos * dwarf.c (fetch_indexed_value): Delete. 95 1.9 christos (fetch_indexed_offset): Correct base address calculation. 96 1.9 christos (read_and_display_attr_value): Replace uses of fetch_indexed_value 97 1.9 christos with fetch_indexed_offset. 98 1.9 christos 99 1.9 christos 2023-09-28 Frederic Cambus <fred (a] statdns.com> 100 1.9 christos 101 1.9 christos * readelf.c (get_segment_type): Handle PT_OPENBSD_NOBTCFI segment 102 1.9 christos type. 103 1.9 christos 104 1.9 christos 2023-09-26 Nick Clifton <nickc (a] redhat.com> 105 1.9 christos 106 1.9 christos * testsuite/binutils-all/ar.exp: Remove assumption of the setting 107 1.9 christos of umask when creating test archive files. 108 1.9 christos 109 1.9 christos 2023-09-25 Vsevolod Alekseyev <sevaa (a] sprynet.com> 110 1.9 christos 111 1.9 christos PR 30792 112 1.9 christos * dwarf.h (struct debug_info): Remove range_versions field. 113 1.9 christos * dwarf.c (fetch_indexed_offset): New function. 114 1.9 christos (read_and_display_attr_value): Use it for DW_FORM_rnglistx. 115 1.9 christos Remove code to initialise range_versions. 116 1.9 christos (skip_attribute): New function. 117 1.9 christos (read_bases): Read and reccord all range and address bases in a CU. 118 1.9 christos (process_debug_info): Call read_bases. 119 1.9 christos (display_debug_rnglists): Rename to display_debug_rnglists_unit_header 120 1.9 christos and only display the range list header information. 121 1.9 christos (display_debug_ranges): Adjust. 122 1.9 christos 123 1.9 christos 2023-09-05 Nick Clifton <nickc (a] redhat.com> 124 1.9 christos 125 1.9 christos PR 30684 126 1.9 christos * readelf.c (extra_sym_info): New variable. 127 1.9 christos (section_name_valid): Also check for filedata being NULL. 128 1.9 christos (section_name_print): Delete. 129 1.9 christos (section_index_real): New function. Returns true if the given 130 1.9 christos section index references a real section. 131 1.9 christos (print_symbol): Rename to print_sumbol_name. 132 1.9 christos (printable_section_name): Use a rotating array of static buffers 133 1.9 christos for the return string. 134 1.9 christos (printable_section_name_from_index): Merge code from 135 1.9 christos dump_relocations and get_symbol_index_type into here. 136 1.9 christos (long_option_values): Add OPTION_NO_EXTRA_SYM_INFO. 137 1.9 christos (options): Add "extra-sym-info" and "no-extra-sym-info". 138 1.9 christos (usage): Mention new options. 139 1.9 christos (parse_args): Parse new options. 140 1.9 christos (get_symbol_index_type): Delete. 141 1.9 christos (print_dynamic_symbol_size): Rename to print_symbol_size. 142 1.9 christos (print_dynamic_symbol): Rename to print_symbol. 143 1.9 christos (print_symbol_table_heading): New function. 144 1.9 christos (process_symbol_table): Use new function. 145 1.9 christos * doc/binutils.texi: Document the new option. 146 1.9 christos * NEWS: Mention the new feature. 147 1.9 christos 148 1.9 christos 2023-08-23 Nick Clifton <nickc (a] redhat.com> 149 1.9 christos 150 1.9 christos PR 30781 151 1.9 christos * dwarf.h (debug_info): Add range_versions field. 152 1.9 christos * dwarf.c (read_and_display_attr_value): When recording a range 153 1.9 christos arribute also ecord the dwarf version number. 154 1.9 christos (is_range_list_for_this_section): New function. 155 1.9 christos (display_debug_ranges): Only show debug ranges whose version is 156 1.9 christos suitable for the secction being displayed. 157 1.9 christos 158 1.9 christos 2023-07-30 Jose E. Marchesi <jose.marchesi (a] oracle.com> 159 1.9 christos 160 1.9 christos * readelf.c (get_machine_flags): Recognize and pretty print BPF 161 1.9 christos machine flags. 162 1.9 christos 163 1.9 christos 2023-07-24 Johannes Schauer Marin Rodrigues <josch (a] debian.org> 164 1.9 christos 165 1.9 christos * doc/binutils.texi (objcopy): Document change in behaviour of 166 1.9 christos objcopy's --preserve-dates command line option. 167 1.9 christos 168 1.9 christos 2023-07-09 Fangrui Song <maskray (a] google.com> 169 1.9 christos 170 1.9 christos PR 30592 171 1.9 christos * NEWS: Mention the new feature for objcopy. 172 1.9 christos * doc/binutils.texi: Mention "large". 173 1.9 christos * objcopy.c (parse_flags): Parse "large". 174 1.9 christos (check_new_section_flags): Error if "large" is used with a 175 1.9 christos non-x86-64 ELF target. 176 1.9 christos * testsuite/binutils-all/x86-64/large-sections.d: New. 177 1.9 christos * testsuite/binutils-all/x86-64/large-sections.s: New. 178 1.9 christos * testsuite/binutils-all/x86-64/large-sections-i386.d: New. 179 1.9 christos * testsuite/binutils-all/x86-64/large-sections-2.d: New. 180 1.9 christos * testsuite/binutils-all/x86-64/large-sections-2-x32.d: New. 181 1.9 christos 182 1.9 christos 2023-07-03 Nick Clifton <nickc (a] redhat.com> 183 1.9 christos 184 1.9 christos * README-how-to-make-a-release: Change some version numbers. 185 1.9 christos * configure: Regenerate. 186 1.9 christos * po/binutils.pot: Regenerate. 187 1.9 christos 188 1.9 christos 2023-07-03 Nick Clifton <nickc (a] redhat.com> 189 1.9 christos 190 1.9 christos 2.41 Branch Point. 191 1.9 christos 192 1.9 christos 2023-06-30 Nick Clifton <nickc (a] redhat.com> 193 1.9 christos 194 1.9 christos PR 30598 195 1.9 christos * strings.c (set_string_min): New function. 196 1.9 christos (main): Use it. 197 1.9 christos (print_unicode_stream): Calculate buffer size using a size_t. 198 1.9 christos 199 1.9 christos 2023-06-30 Nick Clifton <nickc (a] redhat.com> 200 1.9 christos 201 1.9 christos PR 30595 202 1.9 christos * strings.c (main): Check for an excessively large minimum string 203 1.9 christos length. 204 1.9 christos 205 1.9 christos 2023-06-21 Nick Clifton <nickc (a] redhat.com> 206 1.9 christos 207 1.9 christos * testsuite/lib/binutils-common.exp (prune_warnings_extra): Prune 208 1.9 christos warnings about -z execstack creating an executable stack. 209 1.9 christos 210 1.9 christos 2023-05-30 Nick Clifton <nickc (a] redhat.com> 211 1.9 christos 212 1.9 christos * od-pe.c (targ_info): New array. 213 1.9 christos (get_target_specific_info): New function 214 1.9 christos (decode_machine_number): Retire. Use get_target_specific_info 215 1.9 christos instead. 216 1.9 christos (is_pe_object_magic): Likewise. 217 1.9 christos (dump_pe_file_header): Display more information. 218 1.9 christos Rework layout to be similar to that from 'objdump -p'. 219 1.9 christos Add code to handle larger than normnal AOUT headers. 220 1.9 christos 221 1.9 christos 2023-05-30 Nick Clifton <nickc (a] redhat.com> 222 1.9 christos 223 1.9 christos * od-pe.c (decode_machine_number): Add ARMMAGIC value of 0xa00. 224 1.9 christos (is_pe_object_magic): Likewise. 225 1.9 christos 226 1.9 christos 2023-05-26 Nick Clifton <nickc (a] redhat.com> 227 1.9 christos 228 1.9 christos * od-pe.c: New file: Dumps fields in PE format headers. 229 1.9 christos * configure.ac (od_vectors): Add objdump_private_desc_pe for PE 230 1.9 christos format targets. 231 1.9 christos (od_files): Add od-pe for PE format targets. 232 1.9 christos * configure: Regenerate. 233 1.9 christos * Makefile.am (CFILES): Add od-pe.c 234 1.9 christos (EXTRA_objdump_SOURCE): Likewise. 235 1.9 christos * Makefile.in: Generate. 236 1.9 christos * NEWS: Mention the new feature. 237 1.9 christos * doc/binutils.texi: Document the new support. 238 1.9 christos * objdump.c (wide_output): Change from local to global. 239 1.9 christos * objdump.h (wide_output): Prototype. 240 1.9 christos (objdump_private_desc_pe): Prototype. 241 1.9 christos * testsuite/binutils-all/objdump.exp: Add a test of the new feature. 242 1.9 christos 243 1.9 christos 2023-05-09 Enze Li <enze.li (a] gmx.com> 244 1.9 christos 245 1.9 christos * README: Correct a typo. 246 1.9 christos 247 1.9 christos 2023-05-02 Nick Clifton <nickc (a] redhat.com> 248 1.9 christos 249 1.9 christos * MAINTAINERS: Remove Dimity Diky as MSP430 maintainer. 250 1.9 christos 251 1.9 christos 2023-04-20 Nick Clifton <nickc (a] redhat.com> 252 1.9 christos 253 1.9 christos * SECURITY.txt: New file. 254 1.9 christos 255 1.9 christos 2023-04-19 Nick Clifton <nickc (a] redhat.com> 256 1.9 christos 257 1.9 christos PR 30355 258 1.9 christos * dwarf.c (read_and_display_attr_value): Correctly handle 259 1.9 christos DW_loclistx attributes that index a version 5 .debug_loclists 260 1.9 christos section. 261 1.9 christos 262 1.9 christos 2023-04-17 Nick Clifton <nickc (a] redhat.com> 263 1.9 christos 264 1.9 christos PR 30142 265 1.9 christos * rescoff.c (write_coff_file): Add the SEC_READONLY flag to the 266 1.9 christos .rsrc section. 267 1.9 christos 268 1.9 christos 2023-04-11 Nick Clifton <nickc (a] redhat.com> 269 1.9 christos 270 1.9 christos PR 30327 271 1.9 christos * dwarf.c (read_and_display_attr_value): Warn if the number of 272 1.9 christos views is greater than the number of locations. 273 1.9 christos 274 1.9 christos PR 30313 275 1.9 christos * dwarf.c (display_debug_lines_decoded): Check for an overlarge 276 1.9 christos number of files or directories. 277 1.9 christos 278 1.9 christos PR 30312 279 1.9 christos * dwarf.c (prealloc_cu_tu_list): Always allocate at least one 280 1.9 christos entry. 281 1.9 christos 282 1.9 christos PR 30311 283 1.9 christos * readelf.c (uncompress_section_contents): Check for a 284 1.9 christos suspiciously large uncompressed size. 285 1.9 christos 286 1.9 christos 2023-03-30 Nick Clifton <nickc (a] redhat.com> 287 1.9 christos 288 1.9 christos PR 30284 289 1.9 christos * dwarf.c (read_and_display_attr_value): Detect and ignore 290 1.9 christos negative base values. 291 1.9 christos 292 1.9 christos 2023-03-23 Frederic Cambus <fred (a] statdns.com> 293 1.9 christos 294 1.9 christos * readelf.c (get_segment_type): Handle PT_OPENBSD_MUTABLE segment 295 1.9 christos type. 296 1.9 christos 297 1.9 christos 2023-03-14 Nick Clifton <nickc (a] redhat.com> 298 1.9 christos 299 1.9 christos PR 30227 300 1.9 christos * dwarf.c (process_cu_tu_index): Prevent excessive memory 301 1.9 christos allocation when nused is large and ncols is zero. 302 1.9 christos 303 1.9 christos 2023-02-09 Tom Tromey <tromey (a] adacore.com> 304 1.9 christos 305 1.9 christos * dwarf-mode.el: Bump version to 1.8. 306 1.9 christos (dwarf-insert-substructure): Tighten regexp. 307 1.9 christos (dwarf-refresh-all): New defun. 308 1.9 christos (dwarf-mode-map): Bind "A" to dwarf-refresh-all. 309 1.9 christos (dwarf-mode): Remove old FIXME. 310 1.9 christos 311 1.9 christos 2023-02-07 Nick Clifton <nickc (a] redhat.com> 312 1.9 christos 313 1.9 christos PR 30080 314 1.9 christos * doc/binutils.texi (nm): Update description of the 'n' symbol 315 1.9 christos type. 316 1.9 christos 317 1.9 christos 2023-01-31 Nick Clifton <nickc (a] redhat.com> 318 1.9 christos 319 1.9 christos * po/sv.po: Updated Swedish translation. 320 1.9 christos 321 1.9 christos 2023-01-23 Nick Clifton <nickc (a] redhat.com> 322 1.9 christos 323 1.9 christos * po/sv.po: Updated Swedish translation. 324 1.9 christos 325 1.9 christos 2023-01-18 Nick Clifton <nickc (a] redhat.com> 326 1.9 christos 327 1.9 christos PR 29993 328 1.9 christos * objcopy.c (merge_gnu_build_notes): Remember the last non-deleted 329 1.9 christos note in order to speed up the scan for matching notes. 330 1.9 christos 331 1.9 christos 2023-01-16 Nick Clifton <nickc (a] redhat.com> 332 1.9 christos 333 1.9 christos * po/sv.po: Updated Swedish translation. 334 1.9 christos 335 1.9 christos 2023-01-09 Nick Clifton <nickc (a] redhat.com> 336 1.9 christos 337 1.9 christos * po/bg.po: Updated Bulgarian translation. 338 1.9 christos * po/ro.po: Updated Romainian translation. 339 1.9 christos 340 1.9 christos 2023-01-05 Nick Clifton <nickc (a] redhat.com> 341 1.9 christos 342 1.9 christos * MAINTAINERS: Remove Stephen Casner as the PDP11 maintainer. 343 1.9 christos 344 1.9 christos 2023-01-03 Nick Clifton <nickc (a] redhat.com> 345 1.9 christos 346 1.9 christos * po/fr.po: Updated French translation. 347 1.9 christos * po/uk.po: Updated Ukrainian translation. 348 1.9 christos 349 1.9 christos 2023-01-03 Luis Machado <luis.machado (a] arm.com> 350 1.9 christos 351 1.9 christos * readelf.c (get_note_type): Add support for NT_ARM_SSVE and 352 1.9 christos NT_ARM_ZA note types. 353 1.9 christos 354 1.9 christos 2022-12-31 Nick Clifton <nickc (a] redhat.com> 355 1.9 christos 356 1.9 christos * 2.40 branch created. 357 1.9 christos 358 1.9 christos 2022-12-31 Nick Clifton <nickc (a] redhat.com> 359 1.9 christos 360 1.9 christos * po/ro.po: Updated Romanian translation. 361 1.9 christos 362 1.9 christos 2022-12-21 Nick Clifton <nickc (a] redhat.com> 363 1.9 christos 364 1.9 christos PR 29924 365 1.9 christos * objdump.c (load_specific_debug_section): Check for excessively 366 1.9 christos large sections. 367 1.9 christos 368 1.9 christos 2022-12-19 Tom Tromey <tromey (a] adacore.com> 369 1.9 christos 370 1.9 christos * dwarf-mode.el (dwarf-do-refresh): Avoid compiler warning. 371 1.9 christos 372 1.9 christos 2022-12-19 Nick Clifton <nickc (a] redhat.com> 373 1.9 christos 374 1.9 christos PR 29914 375 1.9 christos * dwarf.c (fetch_indexed_value): Fail if the section is not big 376 1.9 christos enough to contain a header size field. 377 1.9 christos (display_debug_addr): Fail if the computed address size is too big 378 1.9 christos or too small. 379 1.9 christos 380 1.9 christos 2022-12-16 Nick Clifton <nickc (a] redhat.com> 381 1.9 christos 382 1.9 christos PR 29908 383 1.9 christos * dwarf.c (display_debug_addr): Check for corrupt header lengths. 384 1.9 christos 385 1.9 christos 2022-12-01 Nick Clifton <nickc (a] redhat.com> 386 1.9 christos 387 1.9 christos PR 25202 388 1.9 christos * objcopy.c (copy_object): Set VerilogDataEndianness to the 389 1.9 christos endianness of the input file. 390 1.9 christos (copy_main): Verifiy the value set by the --verilog-data-width 391 1.9 christos option. 392 1.9 christos * testsuite/binutils-all/objcopy.exp: Add tests of the new behaviour. 393 1.9 christos * testsuite/binutils-all/verilog-I4.hex: New file. 394 1.9 christos 395 1.9 christos 2022-11-21 Nick Clifton <nickc (a] redhat.com> 396 1.9 christos 397 1.9 christos PR 29764 398 1.9 christos * doc/binutils.texi (objdump): Note that the -m option supports 399 1.9 christos the <architecture>:<machine> syntax. 400 1.9 christos 401 1.9 christos 2022-11-04 Nick Clifton <nickc (a] redhat.com> 402 1.9 christos 403 1.9 christos * README-how-to-make-a-release: Add instructions for uploading the 404 1.9 christos gprofng documentation. 405 1.9 christos 406 1.9 christos 2022-10-31 Nick Clifton <nickc (a] redhat.com> 407 1.9 christos 408 1.9 christos PR 29457 409 1.9 christos * configure.ac: Add --enable-colored-disassembly. 410 1.9 christos * objdump.c: Add --disassembler-color=terminal. 411 1.9 christos * doc/binutils.texi (objdump): Document the new option. 412 1.9 christos * NEWS: Mention new feature. 413 1.9 christos * config.in: Regenerate in. 414 1.9 christos * configure: Regenerate. 415 1.9 christos 416 1.9 christos 2022-10-19 Nick Clifton <nickc (a] redhat.com> 417 1.9 christos 418 1.9 christos * MAINTAINERS: Add section on patches, copyright and DCO. 419 1.9 christos 420 1.9 christos 2022-10-12 Nick Clifton <nickc (a] redhat.com> 421 1.9 christos 422 1.9 christos PR 29665 423 1.9 christos * objcopy.c (copy_object): Use the input filename when 424 1.9 christos reporting that a .gnu_debuglink section already exists. 425 1.9 christos 426 1.9 christos 2022-10-03 Nick Clifton <nickc (a] redhat.com> 427 1.9 christos 428 1.9 christos * readelf.c (get_32bit_section_headers): Return false if the 429 1.9 christos e_shoff field is zero. 430 1.9 christos (get_64bit_section_headers): Likewise. 431 1.9 christos 432 1.9 christos 2022-09-28 Nick Clifton <nickc (a] redhat.com> 433 1.9 christos 434 1.9 christos PR 29628 435 1.9 christos * size.c (usage): Add -f. 436 1.9 christos * doc/binutils.texi (size): Add -f. 437 1.9 christos 438 1.9 christos 2022-09-20 Nick Clifton <nickc (a] redhat.com> 439 1.9 christos 440 1.9 christos * objcopy.c (copy_object): Do not issue a warning message when 441 1.9 christos encountering empty .gnu.build.attribute sections. 442 1.9 christos 443 1.9 christos 2022-09-14 Rupesh Potharla <Rupesh.Potharla (a] amd.com> 444 1.9 christos 445 1.9 christos * testsuite/binutils-all/readelf.exp (readelf_wi_test): Extend 446 1.9 christos regexps to allow for output genreated by the Clang compiler. 447 1.9 christos 448 1.9 christos 2022-09-12 Aaron Merey <amerey (a] redhat.com> 449 1.9 christos 450 1.9 christos * objcopy.c (might_need_separate_debug_info): Add with_source_code to 451 1.9 christos the options that cause this function to return true. 452 1.9 christos (main.c): Add with_source_code to the options that enable 453 1.9 christos dump_any_debugging. 454 1.9 christos 455 1.9 christos 2022-09-09 Nick Clifton <nickc (a] redhat.com> 456 1.9 christos 457 1.9 christos PR 29532 458 1.9 christos * objcopy.c (setup_section): Leave group sections intact when 459 1.9 christos creating separate debuginfo files. 460 1.9 christos 461 1.9 christos 2022-09-08 Nick Clifton <nickc (a] redhat.com> 462 1.9 christos 463 1.9 christos PR 29523 464 1.9 christos * dwarf.c (display_debug_lines_decoded): Correctly handle DWARF-5 465 1.9 christos directory and filename tables. 466 1.9 christos 467 1.9 christos 2022-09-02 Aaron Merey <amerey (a] redhat.com> 468 1.9 christos 469 1.9 christos PR 29075 470 1.9 christos * objdump.c (find_separate_debug): New function. Finds the bfd 471 1.9 christos corresponding to the separate debuginfod of a given bfd. 472 1.9 christos (find_alt_debug): New function. Finds the bfd corresponding to the 473 1.9 christos .gnu_debugaltlink of a given bfd. 474 1.9 christos (slurp_file): Add bfd parameter. If a source file cannot be found 475 1.9 christos attempt to download it from debuginfod, if enabled. 476 1.9 christos (try_print_file_open): Add bfd parameter and pass it to slurp_file. 477 1.9 christos (show_line): If debuginfod is enabled, call 478 1.9 christos bfd_find_nearest_line_with_alt instead of bfd_find_nearest_line. 479 1.9 christos 480 1.9 christos 2022-09-01 Nick Clifton <nickc (a] redhat.com> 481 1.9 christos 482 1.9 christos PR 29534 483 1.9 christos * dllwrap.c: Replace uses of choose_temp_base() with 484 1.9 christos make_temp_file(). 485 1.9 christos * dlltool.c: Likewise. 486 1.9 christos * resrc.c: Likewise. 487 1.9 christos 488 1.9 christos 2022-08-23 Nick Clifton <nickc (a] redhat.com> 489 1.9 christos 490 1.9 christos PR 29489 491 1.9 christos * dlltool.c (deterministic): New variable. 492 1.9 christos (gen_lib_file): If deterministic is true set the 493 1.9 christos BFD_DETERMINISTIC_OUTPUT flag. 494 1.9 christos (usage): Mention --deterministic-libraries and 495 1.9 christos --non-deterministic-libraries. 496 1.9 christos (long_options): Add new options. 497 1.9 christos (main): Parse new options. 498 1.9 christos * doc/binutils.texi: Document the new options. 499 1.9 christos * NEWS: Mention the new feature. 500 1.9 christos 501 1.9 christos 2022-08-22 Nick Clifton <nickc (a] redhat.com> 502 1.9 christos 503 1.9 christos * readelf.c (check_magic_number): New function. Checks the magic 504 1.9 christos bytes at the start of a file. If they are not the ELF format 505 1.9 christos magic values, then attempts to generate a helpful error message. 506 1.9 christos (process_file_header): Call check_magic_number. 507 1.9 christos 508 1.9 christos 2022-08-09 Nick Clifton <nickc (a] redhat.com> 509 1.9 christos 510 1.9 christos PR 29457 511 1.9 christos * objdump.c (disassembler_color): Change type to an enum. 512 1.9 christos (disassembler_extended_color): Remove. 513 1.9 christos (usage): Update. 514 1.9 christos (objdump_color_for_assembler_style): Update. 515 1.9 christos (main): Update initialisation of disassembler_color. If not 516 1.9 christos initialised via a command line option, set based upon terminal 517 1.9 christos output. 518 1.9 christos * doc/binutils.texi: Update description of disassmbler-color 519 1.9 christos option. 520 1.9 christos * testsuite/binutils-all/arc/objdump.exp: Add 521 1.9 christos --disassembler-color=off option when disassembling. 522 1.9 christos * testsuite/binutils-all/arm/objdump.exp: Likewise. 523 1.9 christos 524 1.9 christos 2022-08-08 Nick Clifton <nickc (a] redhat.com> 525 1.9 christos 526 1.9 christos * README-how-to-make-a-release: Add a link to the NEWS files in 527 1.9 christos the release announcement email. 528 1.8 christos 529 1.8 christos 2022-07-08 Nick Clifton <nickc (a] redhat.com> 530 1.8 christos 531 1.8 christos * 2.39 branch created. 532 1.8 christos 533 1.8 christos 2022-07-01 Nick Clifton <nickc (a] redhat.com> 534 1.8 christos 535 1.8 christos * dwarf.c (display_debug_rnglists): Add newline at end of listing. 536 1.8 christos 537 1.8 christos 2022-06-30 Nick Clifton <nickc (a] redhat.com> 538 1.8 christos 539 1.8 christos * dwarf.c (dwarf_select_sections_by_name): If the entry's value is 540 1.8 christos zero then clear the corresponding variable. 541 1.8 christos (dwarf_select_sections_by_letters): Likewise. 542 1.8 christos * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE 543 1.8 christos debuginfod tests to fail. 544 1.8 christos 545 1.8 christos 2022-06-28 Nick Clifton <nickc (a] redhat.com> 546 1.8 christos 547 1.8 christos PR 29267 548 1.8 christos * dwarf.c (display_debug_rnglists): New function, broken out of.. 549 1.8 christos (display_debug_ranges): ... here. 550 1.8 christos (read_and_display_attr_value): Correct calculation of index 551 1.8 christos displayed for DW_FORM_loclistx and DW_FORM_rnglistx. 552 1.8 christos * testsuite/binutils-all/x86-64/pr26808.dump: Update expected 553 1.8 christos output. 554 1.8 christos 555 1.8 christos 2022-06-27 Nick Clifton <nickc (a] redhat.com> 556 1.8 christos 557 1.8 christos PR 29289 558 1.8 christos * dwarf.c (display_debug_names): Replace assert with a warning 559 1.8 christos message. 560 1.8 christos 561 1.8 christos 2022-06-27 Nick Clifton <nickc (a] redhat.com> 562 1.8 christos 563 1.8 christos PR 29290 564 1.8 christos * dwarf.c (read_and_display_attr_value): Check that debug_info_p 565 1.8 christos is set before dereferencing it. 566 1.8 christos 567 1.8 christos 2022-06-27 Nick Clifton <nickc (a] redhat.com> 568 1.8 christos 569 1.8 christos * dwarf.c (fetch_indexed_string): Do not use length of first table 570 1.8 christos in string section as the length of every table in the section. 571 1.8 christos 572 1.8 christos * testsuite/binutils-all/pr26112.r: Update expected output. 573 1.8 christos 574 1.8 christos 2022-06-22 Kumar N, Bhuvanendra <Kavitha.Natarajan (a] amd.com> 575 1.8 christos 576 1.8 christos * dwarf.c (fetch_indexed_string): Added new parameter 577 1.8 christos str_offsets_base to calculate the string offset. 578 1.8 christos (read_and_display_attr_value): Read DW_AT_str_offsets_base 579 1.8 christos attribute. 580 1.8 christos (process_debug_info): While allocating memory and initializing 581 1.8 christos debug_information, do it for do_debug_info also, if its true. 582 1.8 christos (load_separate_debug_files): Load .debug_str_offsets if exists. 583 1.8 christos * dwarf.h (struct debug_info): Add str_offsets_base field. 584 1.8 christos 585 1.8 christos 2022-06-22 Marcus Nilsson <brainbomb (a] gmail.com> 586 1.8 christos 587 1.8 christos * readelf.c: (slurp_relr_relocs) Use malloc instead of xmalloc 588 1.8 christos when allocating space for relocations. 589 1.8 christos 590 1.8 christos 2022-06-21 Kumar N, Bhuvanendra <Kavitha.Natarajan (a] amd.com> 591 1.8 christos 592 1.8 christos * dwarf.h (struct debug_info): Add rnglists_base field. 593 1.8 christos * dwarf.c (read_and_display_attr_value): Read attribute DW_AT_rnglists_base. 594 1.8 christos (display_debug_rnglists_list): While handling DW_RLE_base_addressx, 595 1.8 christos DW_RLE_startx_endx, DW_RLE_startx_length items, pass the proper parameter 596 1.8 christos value to fetch_indexed_addr(), i.e. fetch the proper entry in .debug_addr section. 597 1.8 christos (display_debug_ranges): Add rnglists_base to the .debug_rnglists base address. 598 1.8 christos (load_separate_debug_files): Load .debug_addr section, if exists. 599 1.8 christos 600 1.8 christos 2022-05-20 Nick Clifton <nickc (a] redhat.com> 601 1.8 christos 602 1.8 christos * dwarf.c (dwarf_select_sections_by_names): Return zero if no 603 1.8 christos sections were selected. 604 1.8 christos (dwarf_select_sections_by_letters): Likewise. 605 1.8 christos * dwarf.h: (dwarf_select_sections_by_names): Update prototype. 606 1.8 christos (dwarf_select_sections_by_letters): Update prototype. 607 1.8 christos * objdump.c (might_need_separate_debug_info): New function. 608 1.8 christos (dump_bfd): Call new function before attempting to load separate 609 1.8 christos debug info files. 610 1.8 christos (main): Do not enable dwarf section dumping for -WK or -WN. 611 1.8 christos * readelf.c (parse_args): Do not enable dwarf section dumping for 612 1.8 christos -wK or -wN. 613 1.8 christos (might_need_separate_debug_info): New function. 614 1.8 christos (process_object): Call new function before attempting to load 615 1.8 christos separate debug info files. 616 1.8 christos * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE 617 1.8 christos debuginfod tests to pass. 618 1.8 christos * testsuite/binutils-all/objdump.Wk: Add extra regexps. 619 1.8 christos * testsuite/binutils-all/readelf.k: Add extra regexps. 620 1.8 christos 621 1.8 christos 2022-05-19 Nick Clifton <nickc (a] redhat.com> 622 1.8 christos 623 1.8 christos * dlltool.c (run): Initialise errmsg_fmt. 624 1.8 christos * dllwrap.c (run): Likewise. 625 1.8 christos * resrc.c (run_cmd): Likewise. 626 1.8 christos * mclex.c (mc_add_keyword): Initialise usz. 627 1.8 christos * srconv.c (wd_hd): Initialise hd.spare2. 628 1.8 christos * windmc.c (mc_add_node_lang): Initialise s. 629 1.8 christos (mc_generate_bin_item): Initialise cvt_txt. 630 1.8 christos (main): Initialise u. 631 1.8 christos 632 1.8 christos 2022-05-18 Nick Clifton <nickc (a] redhat.com> 633 1.8 christos 634 1.8 christos PR 29135 635 1.8 christos * nm.c (non_weak): New variable. 636 1.8 christos (filter_symbols): When non-weak is true, ignore weak symbols. 637 1.8 christos (long_options): Add --no-weak. 638 1.8 christos (usage): Mention --no-weak. 639 1.8 christos (main): Handle -W/--no-weak. 640 1.8 christos * doc/binutils.texi: Document new feature. 641 1.8 christos * NEWS: Mention the new feature. 642 1.8 christos * testsuite/binutils-all/nm.exp: Add test of new feature. 643 1.8 christos * testsuite/binutils-all/no-weak.s: New test source file. 644 1.8 christos 645 1.8 christos 2022-04-25 Nick Clifton <nickc (a] redhat.com> 646 1.8 christos 647 1.8 christos PR 29072 648 1.8 christos * testsuite/lib/binutils-common.exp (prune_warnings_extra): Filter 649 1.8 christos out notes about the executable stacjk behaviour beign deprecated. 650 1.8 christos 651 1.8 christos 2022-04-12 Nick Clifton <nickc (a] redhat.com> 652 1.8 christos 653 1.8 christos PR 28992 654 1.8 christos * objcopy.c (is_strip_section_1): Do not delete debuglink sections 655 1.8 christos when stripping debug information. 656 1.8 christos 657 1.8 christos 2022-04-06 Nick Clifton <nickc (a] redhat.com> 658 1.8 christos 659 1.8 christos PR 28981 660 1.8 christos * dwarf.c (fetch_indexed_value): Rename to fecth_indexed_addr and 661 1.8 christos return the address, rather than a string. 662 1.8 christos (fetch_indexed_value): New function - returns a value indexed by a 663 1.8 christos DW_FORM_loclistx or DW_FORM_rnglistx form. 664 1.8 christos (read_and_display_attr_value): Add support for DW_FORM_loclistx 665 1.8 christos and DW_FORM_rnglistx. 666 1.8 christos (process_debug_info): Load the loclists and rnglists sections. 667 1.8 christos (display_loclists_list): Add support for DW_LLE_base_addressx, 668 1.8 christos DW_LLE_startx_endx, DW_LLE_startx_length and 669 1.8 christos DW_LLE_default_location. 670 1.8 christos (display_offset_entry_loclists): New function. Displays a 671 1.8 christos .debug_loclists section that contains offset entry tables. 672 1.8 christos (display_debug_loc): Call the new function. 673 1.8 christos (display_debug_rnglists_list): Add support for 674 1.8 christos DW_RLE_base_addressx, DW_RLE_startx_endx and DW_RLE_startx_length. 675 1.8 christos (display_debug_ranges): Display the contents of the section's 676 1.8 christos header. 677 1.8 christos * dwarf.h (struct debug_info): Add loclists_base field. 678 1.8 christos * testsuite/binutils-all/dw5.W: Update expected output. 679 1.8 christos * testsuite/binutils-all/x86-64/pr26808.dump: Likewise. 680 1.8 christos 681 1.8 christos 2022-04-01 John Baldwin <jhb (a] FreeBSD.org> 682 1.8 christos 683 1.8 christos * readelf.c (get_freebsd_elfcore_note_type): Handle 684 1.8 christos NT_FREEBSD_X86_SEGBASES. 685 1.8 christos 686 1.8 christos 2022-03-31 Nick Clifton <nickc (a] redhat.com> 687 1.8 christos 688 1.8 christos * arlex.l: Accept the plus character as part of a filename. 689 1.8 christos 690 1.8 christos 2022-03-16 Fangrui Song <maskray (a] google.com> 691 1.8 christos 692 1.8 christos PR binutils/28926 693 1.8 christos * objcopy.c (filter_symbols): Apply weaken to STB_GNU_UNIQUE symbols 694 1.8 christos * NEWS: Mention feature. 695 1.8 christos * testsuite/binutils-all/objcopy.exp (objcopy_test_symbol_manipulation): New test. 696 1.8 christos * testsuite/binutils-all/weaken-gnu-unique.s: New. 697 1.8 christos 698 1.8 christos 2022-03-16 Martin Storsj <martin (a] martin.st> 699 1.8 christos 700 1.8 christos PR 28885 701 1.8 christos * dlltool.c (main): use imp_name rather than dll_name when 702 1.8 christos generating a temporary file name. 703 1.8 christos 704 1.8 christos 2022-03-16 Simon Marchi <simon.marchi (a] efficios.com> 705 1.8 christos 706 1.8 christos * readelf.c (dump_relocations): Handle EM_AMDGPU. 707 1.8 christos 708 1.8 christos 2022-03-16 Simon Marchi <simon.marchi (a] efficios.com> 709 1.8 christos 710 1.8 christos * Makefile.am (readelf_CFLAGS): New. 711 1.8 christos (readelf_LDADD): Add MSGPACK_LIBS. 712 1.8 christos * Makefile.in: Re-generate. 713 1.8 christos * config.in: Re-generate. 714 1.8 christos * configure: Re-generate. 715 1.8 christos * configure.ac: Add --with-msgpack flag and check for msgpack 716 1.8 christos using pkg-config. 717 1.8 christos * readelf.c: Include msgpack.h if HAVE_MSGPACK. 718 1.8 christos (print_note_contents_hex): New. 719 1.8 christos (print_indents): New. 720 1.8 christos (dump_msgpack_obj): New. 721 1.8 christos (dump_msgpack): New. 722 1.8 christos (print_amdgpu_note): New. 723 1.8 christos (process_note): Handle NT_AMDGPU_METADATA note contents. 724 1.8 christos Use print_note_contents_hex. 725 1.8 christos 726 1.8 christos 2022-03-16 Simon Marchi <simon.marchi (a] efficios.com> 727 1.8 christos 728 1.8 christos * readelf.c (get_amdgpu_elf_note_type): New. 729 1.8 christos (process_note): Handle "AMDGPU" notes. 730 1.8 christos 731 1.8 christos 2022-03-16 Simon Marchi <simon.marchi (a] efficios.com> 732 1.8 christos 733 1.8 christos * readelf.c: Include elf/amdgcn.h. 734 1.8 christos (decode_AMDGPU_machine_flags): New. 735 1.8 christos (get_machine_flags): Handle flags for EM_AMDGPU machine type. 736 1.8 christos 737 1.8 christos 2022-03-16 Simon Marchi <simon.marchi (a] efficios.com> 738 1.8 christos 739 1.8 christos * readelf.c (get_osabi_name): Handle EM_AMDGPU OS ABIs. 740 1.8 christos 741 1.8 christos 2022-03-16 Nick Clifton <nickc (a] redhat.com> 742 1.8 christos 743 1.8 christos * po/sr.po: Updated Serbian translation. 744 1.8 christos 745 1.8 christos 2022-03-15 Tom Tromey <tromey (a] adacore.com> 746 1.8 christos 747 1.8 christos * dwarf-mode.el: Now 1.7. 748 1.8 christos (dwarf--sentinel): Switch to the process buffer. 749 1.8 christos 750 1.8 christos 2022-03-11 Vladimir Mezentsev <vladimir.mezentsev (a] oracle.com> 751 1.8 christos 752 1.8 christos * MAINTAINERS: Add gprofng maintainer. 753 1.8 christos * README-how-to-make-a-release: Add gprofng. 754 1.8 christos 755 1.8 christos 2022-03-10 Nick Clifton <nickc (a] redhat.com> 756 1.8 christos 757 1.8 christos * dwarf.c (use_debuginfod): New variable. Set to 1. 758 1.8 christos (load_separate_debug_info): Only call 759 1.8 christos debuginfod_fetch_separate_debug_info is use_debuginfod is true. 760 1.8 christos (dwarf_select_sections_by_names): Add do-not-use-debuginfod and 761 1.8 christos use-debuginfod options. 762 1.8 christos (dwarf_select_sections_by_letters): Add D and E options. 763 1.8 christos * dwarf.h (use_debuginfod): New extern. 764 1.8 christos * objdump.c (usage): Mention the new options. 765 1.8 christos * readelf.c (usage): Likewise. 766 1.8 christos * doc/binutils.texi: Document the new options. 767 1.8 christos * doc/debug-options.texi: Describe the new options. 768 1.8 christos * NEWS: Mention the new feature. 769 1.8 christos * testsuite/binutils-all/debuginfod.exp: Add tests of the new 770 1.8 christos options. 771 1.8 christos 772 1.8 christos 2021-03-06 Maciej W. Rozycki <macro (a] orcam.me.uk> 773 1.8 christos 774 1.8 christos * testsuite/binutils-all/mips/mips1-branch-alias.d: New test. 775 1.8 christos * testsuite/binutils-all/mips/mips1-branch-noalias.d: New test. 776 1.8 christos * testsuite/binutils-all/mips/mips2-branch-alias.d: New test. 777 1.8 christos * testsuite/binutils-all/mips/mips2-branch-noalias.d: New test. 778 1.8 christos * testsuite/binutils-all/mips/mips32r6-branch-alias.d: New test. 779 1.8 christos * testsuite/binutils-all/mips/mips32r6-branch-noalias.d: New 780 1.8 christos test. 781 1.8 christos * testsuite/binutils-all/mips/micromips-branch-alias.d: New 782 1.8 christos test. 783 1.8 christos * testsuite/binutils-all/mips/micromips-branch-noalias.d: New 784 1.8 christos test. 785 1.8 christos * testsuite/binutils-all/mips/mips-branch-alias.s: New test 786 1.8 christos source. 787 1.8 christos * testsuite/binutils-all/mips/micromips-branch-alias.s: New test 788 1.8 christos source. 789 1.8 christos * testsuite/binutils-all/mips/mips.exp: Run the new tests. 790 1.8 christos 791 1.8 christos 2022-03-04 Simon Marchi <simon.marchi (a] polymtl.ca> 792 1.8 christos 793 1.8 christos * readelf.c (process_dynamic_section): Fix indentation. 794 1.8 christos 795 1.8 christos 2022-02-09 Nick Clifton <nickc (a] redhat.com> 796 1.8 christos 797 1.8 christos * README-how-to-make-a-release: Update after the 2.38 release. 798 1.8 christos 799 1.8 christos 2022-01-27 Nick Clifton <nickc (a] redhat.com> 800 1.8 christos 801 1.8 christos * po/sv.po: Updated Swedish translation. 802 1.8 christos 803 1.8 christos 2022-01-24 Nick Clifton <nickc (a] redhat.com> 804 1.8 christos 805 1.8 christos * po/bg.po: Updated Bulgarian translation. 806 1.8 christos * po/fr.po: Updated French translation. 807 1.8 christos * po/ro.po: Updated Romanian translation. 808 1.8 christos * po/uk.po: Updated Ukranian translation. 809 1.8 christos 810 1.8 christos 2022-01-22 Martin Storsj <martin (a] martin.st> 811 1.8 christos 812 1.8 christos * dlltool.c (main): Allow inferring tmp_prefix from the dll name 813 1.8 christos from a def file. 814 1.8 christos 815 1.8 christos 2022-01-22 Nick Clifton <nickc (a] redhat.com> 816 1.8 christos 817 1.8 christos * configure: Regenerate. 818 1.8 christos * po/binutils.pot: Regenerate. 819 1.8 christos 820 1.8 christos 2022-01-22 Nick Clifton <nickc (a] redhat.com> 821 1.8 christos 822 1.8 christos * 2.38 release branch created. 823 1.8 christos 824 1.8 christos 2022-01-17 Nick Clifton <nickc (a] redhat.com> 825 1.8 christos 826 1.8 christos * Makefile.in: Regenerate. 827 1.8 christos 828 1.8 christos 2022-01-11 Fangrui Song <maskray (a] google.com> 829 1.8 christos 830 1.8 christos PR binutils/28759 831 1.8 christos * ar.c (long_options): Add --thin. 832 1.8 christos (usage) Add --thin. Deprecate -T without diagnostics. 833 1.8 christos * doc/binutils.texi: Add doc. 834 1.8 christos * NEWS: Mention --thin. 835 1.8 christos * binutils/testsuite/binutils-all/ar.exp: Add tests. 836 1.8 christos 837 1.8 christos 2022-01-11 Martin Storsj <martin (a] martin.st> 838 1.8 christos 839 1.8 christos * dlltool.c (main): If a prefix has not been provided, attempt to 840 1.8 christos use a deterministic one based upon the dll name. 841 1.8 christos 842 1.8 christos 2022-01-07 Pavel Mayorov <pmayorov (a] cloudlinux.com> 843 1.8 christos 844 1.8 christos PR 28718 845 1.8 christos * dwarf.c: Revert previous delta. 846 1.8 christos (debug_get_real_type): Reject indirect types that point to 847 1.8 christos indirect types. 848 1.8 christos (debug_get_type_name, debug_get_type_size, debug_write_type): 849 1.8 christos Likewise. 850 1.8 christos 851 1.8 christos 2022-01-06 Nick Clifton <nickc (a] redhat.com> 852 1.8 christos 853 1.8 christos * debug.c (debug_write_type): Allow for malicious recursion via 854 1.8 christos indirect debug types. 855 1.8 christos 856 1.8 christos 2022-01-04 Nick Clifton <nickc (a] redhat.com> 857 1.8 christos 858 1.8 christos PR 28716 859 1.8 christos * dwarf.c (load_build_id_debug_file): Remove spurious printf. 860 1.8 christos 861 1.8 christos 2021-12-16 Nick Clifton <nickc (a] redhat.com> 862 1.8 christos 863 1.8 christos PR 28697 864 1.8 christos * dwarf.c (load_build_id_debug_file): New function. 865 1.8 christos (try_build_id_prefix): New function. 866 1.8 christos (check_for_and_load_links): Call load_build_id_debug_file. 867 1.8 christos (debug_displays): Add entry for .note.gnu.build-id. 868 1.8 christos * dwarf.h (enum dwarf_section_display_enum): Add 869 1.8 christos note_gnu_build_id. 870 1.8 christos * testsuite/binutils-all/debuginfod.exp (test_fetch_debuglink): 871 1.8 christos Fix regexp for loads via debuglink section. 872 1.8 christos 873 1.8 christos 2021-12-03 Chenghua Xu <xuchenghua (a] loongson.cn> 874 1.8 christos 875 1.8 christos * MAINTAINERS: Add myself and Zhensong Liu 876 1.8 christos as the LoongArch maintainer. 877 1.8 christos 878 1.8 christos 2021-12-02 Nick Clifton <nickc (a] redhat.com> 879 1.8 christos 880 1.8 christos PR 28645 881 1.8 christos * dwarf.c (process_cu_tu_index): Add test for overruning section 882 1.8 christos whilst processing slots. 883 1.8 christos 884 1.8 christos 2021-11-30 Roland McGrath <mcgrathr (a] google.com> 885 1.8 christos 886 1.8 christos * doc/local.mk: Give each man page target its missing dependency on 887 1.8 christos doc/$(am__dirstamp). 888 1.8 christos 889 1.8 christos 2021-11-30 Nick Clifton <nickc (a] redhat.com> 890 1.8 christos 891 1.8 christos * dwarf.c (find_debug_info_for_offset): Use dwarf_vma type for 892 1.8 christos offsets, sizes and ranges. 893 1.8 christos (display_loc_list): Likewise. Also use print_dwarf_vma to print 894 1.8 christos the offset. 895 1.8 christos (display_loclists_list): Likewise. 896 1.8 christos (display_loc_list_dwo): Likewise. 897 1.8 christos (display_debug_str): Likewise. 898 1.8 christos (display_debug_aranges): Likewise. 899 1.8 christos (display_debug_ranges_list): Likewise. 900 1.8 christos (display_debug_rnglists_list): Likewise. 901 1.8 christos (display_debug_ranges): Likewise. 902 1.8 christos 903 1.8 christos 2021-11-29 Nick Clifton <nickc (a] redhat.com> 904 1.8 christos 905 1.8 christos PR 28632 906 1.8 christos * strings.c (usage): Update desciption of -n option. 907 1.8 christos * doc/binutils.texi: Likewise. 908 1.8 christos 909 1.8 christos 2021-11-24 Nick Clifton <nickc (a] redhat.com> 910 1.8 christos 911 1.8 christos PR 28564 912 1.8 christos * sysdump.c (getCHARS): Check for an out of bounds read. 913 1.8 christos 914 1.8 christos 2021-11-16 Fangrui Song <maskray (a] google.com> 915 1.8 christos 916 1.8 christos * readelf.c (enum relocation_type): New. 917 1.8 christos (slurp_relr_relocs): New. 918 1.8 christos (dump_relocations): Change is_rela to rel_type. 919 1.8 christos Dump RELR. 920 1.8 christos (dynamic_relocations): Add DT_RELR. 921 1.8 christos (process_relocs): Check SHT_RELR and DT_RELR. 922 1.8 christos (process_dynamic_section): Store into dynamic_info for 923 1.8 christos DT_RELR/DT_RELRENT/DT_RELRSZ. 924 1.8 christos 925 1.8 christos 2021-11-09 Nick Clifton <nickc (a] redhat.com> 926 1.8 christos 927 1.8 christos * nm.c: Add --unicode option to control how unicode characters are 928 1.8 christos handled. 929 1.8 christos * objdump.c: Likewise. 930 1.8 christos * readelf.c: Likewise. 931 1.8 christos * strings.c: Likewise. 932 1.8 christos * binutils.texi: Document the new feature. 933 1.8 christos * NEWS: Document the new feature. 934 1.8 christos * testsuite/binutils-all/unicode.exp: New file. 935 1.8 christos * testsuite/binutils-all/nm.hex.unicode 936 1.8 christos * testsuite/binutils-all/strings.escape.unicode 937 1.8 christos * testsuite/binutils-all/objdump.highlight.unicode 938 1.8 christos * testsuite/binutils-all/readelf.invalid.unicode 939 1.8 christos 940 1.8 christos 2021-11-03 Tom Tromey <tromey (a] adacore.com> 941 1.8 christos 942 1.8 christos * dwarf.c (display_debug_loc): Use section name in warnings. 943 1.8 christos 944 1.8 christos 2021-10-25 Nick Alcock <nick.alcock (a] oracle.com> 945 1.8 christos 946 1.8 christos * objdump.c (usage): --ctf now has an optional argument. 947 1.8 christos (main): Adjust accordingly. 948 1.8 christos (dump_ctf): Default it. 949 1.8 christos * doc/ctf.options.texi: Adjust. 950 1.1 christos 951 1.8 christos 2021-10-25 Nick Alcock <nick.alcock (a] oracle.com> 952 1.8 christos 953 1.8 christos * objdump.c (usage): --ctf-parent now takes a name, not a section. 954 1.8 christos (dump_ctf): Don't open a separate section; use the parent_name in 955 1.8 christos ctf_dict_open instead. Use ctf_archive_next, not ctf_archive_iter, 956 1.8 christos so we can pass down a member count. 957 1.8 christos (dump_ctf_archive_member): Add the member count; don't return 958 1.8 christos anything. Import parents into children no matter what the 959 1.8 christos parent's name, while still avoiding displaying the header for the 960 1.8 christos common parent name of ".ctf". 961 1.8 christos * readelf.c (usage): Adjust similarly. 962 1.8 christos (dump_section_as_ctf): Likewise. 963 1.8 christos (dump_ctf_archive_member): Likewise. Never stop iterating over 964 1.8 christos archive members, even if ctf_dump of one member fails. 965 1.8 christos * doc/ctf.options.texi: Adjust. 966 1.8 christos 967 1.8 christos 2021-10-19 Nick Clifton <nickc (a] redhat.com> 968 1.8 christos 969 1.8 christos * nm.c (filter_symbols): Test for a NULL name before checking to 970 1.8 christos see if the symbol is __gnu_lto_slim. 971 1.8 christos * objcopy.c (filter_symbols): Likewise. 972 1.8 christos 973 1.8 christos 2021-09-30 Nick Clifton <nickc (a] redhat.com> 974 1.8 christos 975 1.8 christos * objcopy.c (filter_symbols): Fail if attempting to dredefine 976 1.8 christos symbols in an LTO object file. 977 1.8 christos 978 1.8 christos 2021-09-27 Nick Alcock <nick.alcock (a] oracle.com> 979 1.8 christos 980 1.8 christos * configure: Regenerate. 981 1.8 christos 982 1.8 christos 2021-09-20 Andrew Burgess <andrew.burgess (a] embecosm.com> 983 1.8 christos 984 1.8 christos * testsuite/binutils-all/riscv/riscv.exp: New file. 985 1.8 christos * testsuite/binutils-all/riscv/unknown.d: New file. 986 1.8 christos * testsuite/binutils-all/riscv/unknown.s: New file. 987 1.8 christos 988 1.8 christos 2021-09-07 Luis Machado <luis.machado (a] linaro.org> 989 1.8 christos 990 1.8 christos Revert: [AArch64] MTE corefile support 991 1.8 christos 992 1.8 christos 2021-05-21 Luis Machado <luis.machado (a] linaro.org> 993 1.8 christos 994 1.8 christos * readelf.c (get_note_type): Handle NT_MEMTAG note types. 995 1.8 christos 996 1.8 christos 2021-08-11 Nick Clifton <nickc (a] redhat.com> 997 1.8 christos 998 1.8 christos * po/pt.po: Updated Portuguese translation. 999 1.8 christos 1000 1.8 christos 2021-08-10 Nick Clifton <nickc (a] redhat.com> 1001 1.8 christos 1002 1.8 christos * po/sr.po: Updated Serbian translation. 1003 1.8 christos 1004 1.8 christos 2021-07-16 Nick Clifton <nickc (a] redhat.com> 1005 1.3 christos 1006 1.7 christos * po/sv.po: Updated Swedish translation. 1007 1.6 christos 1008 1.8 christos 2021-07-14 Clment Chigot <clement.chigot (a] atos.net> 1009 1.6 christos 1010 1.8 christos * dwarf.h (struct dwarf_section): Add XCOFF name. 1011 1.8 christos * dwarf.c (struct dwarf_section_display): Update. 1012 1.8 christos * objdump.c (load_debug_section): Add XCOFF name handler. 1013 1.8 christos (dump_dwarf_section): Likewise. 1014 1.3 christos 1015 1.8 christos 2021-07-12 Nick Clifton <nickc (a] redhat.com> 1016 1.6 christos 1017 1.7 christos * po/fr.po: Updated French translation. 1018 1.6 christos 1019 1.8 christos 2021-07-10 Alan Modra <amodra (a] gmail.com> 1020 1.8 christos 1021 1.8 christos PR 28069 1022 1.8 christos * dwarf.c (display_discr_list): Remove assertions. Delete "end" 1023 1.8 christos parameter, use initial "data" pointer as the end. Formatting. 1024 1.8 christos Don't count down bytes as they are read. 1025 1.8 christos (read_and_display_attr_value): Adjust display_discr_list call. 1026 1.8 christos (read_and_print_leb128): Don't pass __FILE__ and __LINE__ to 1027 1.8 christos report_leb_status. 1028 1.8 christos * dwarf.h (report_leb_status): Don't report file and line 1029 1.8 christos numbers. Delete file and lnum parameters, 1030 1.8 christos (READ_ULEB, READ_SLEB): Adjust. 1031 1.8 christos 1032 1.8 christos 2021-07-07 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE> 1033 1.8 christos 1034 1.8 christos * configure.ac: Check for strnlen declaration. 1035 1.8 christos * configure, config.in: Regenerate. 1036 1.8 christos 1037 1.8 christos 2021-07-05 Alan Modra <amodra (a] gmail.com> 1038 1.8 christos 1039 1.8 christos PR 28047 1040 1.8 christos * dwarf.c (get_type_abbrev_from_form): Add cu_end parameter. 1041 1.8 christos Check DW_FORM_ref1 etc. arg against cu_end rather than end of 1042 1.8 christos section. Adjust all callers. 1043 1.8 christos 1044 1.8 christos 2021-07-03 Nick Clifton <nickc (a] redhat.com> 1045 1.8 christos 1046 1.8 christos * configure: Regenerate. 1047 1.8 christos * po/opcodes.pot: Regenerate. 1048 1.8 christos * README-how-to-make-a-release: Update. 1049 1.8 christos 1050 1.8 christos 2021-07-03 Nick Clifton <nickc (a] redhat.com> 1051 1.8 christos 1052 1.8 christos * 2.37 release branch created. 1053 1.8 christos 1054 1.8 christos 2021-07-02 Alan Modra <amodra (a] gmail.com> 1055 1.8 christos 1056 1.8 christos PR 28048 1057 1.8 christos * dwarf.c (get_type_signedness): Don't run off end of buffer 1058 1.8 christos printing DW_FORM_string attribute. 1059 1.8 christos 1060 1.8 christos 2021-07-01 Nick Clifton <nickc (a] redhat.com> 1061 1.8 christos 1062 1.8 christos PR 28029 1063 1.8 christos * testsuite/binutils-all/debuginfod.exp: Replace -wK with -wk. 1064 1.8 christos 1065 1.8 christos 2021-07-01 Andrei Homescu <ah (a] immunant.com> 1066 1.8 christos 1067 1.8 christos * readelf.c (process_archive): Reset file position to the 1068 1.8 christos beginning when calling process_object for thin archive members. 1069 1.8 christos * testsuite/binutils-all/readelf.exp: Add test. 1070 1.8 christos * testsuite/binutils-all/readelf.h.thin: New file. 1071 1.8 christos 1072 1.8 christos 2021-06-30 Tom Tromey <tom (a] tromey.com> 1073 1.8 christos 1074 1.8 christos * dwarf.c (read_and_display_attr_value): Handle 1075 1.8 christos DW_FORM_implicit_const. 1076 1.8 christos 1077 1.8 christos 2021-06-30 Richard Henderson <richard.henderson (a] linaro.org> 1078 1.8 christos 1079 1.8 christos * dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf 1080 1.8 christos and DW_CFA_def_cfa_offset_sf have a signed offset. 1081 1.8 christos 1082 1.8 christos 2021-06-19 Alan Modra <amodra (a] gmail.com> 1083 1.8 christos 1084 1.8 christos * dwarf.c (display_debug_lines_decoded): Use memcpy rather than 1085 1.8 christos strncpy when trimming file name length to MAX_FILENAME_LENGTH. 1086 1.8 christos Don't make an unnecessary copy when length is good. 1087 1.8 christos 1088 1.8 christos 2021-06-18 H.J. Lu <hongjiu.lu (a] intel.com> 1089 1.8 christos 1090 1.8 christos * readelf.c (print_gnu_property_note): Handle 1091 1.8 christos GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI, 1092 1.8 christos GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI. 1093 1.8 christos 1094 1.8 christos 2021-06-15 Nick Clifton <nickc (a] redhat.com> 1095 1.8 christos 1096 1.8 christos * readelf.c (get_note_type): Add support for NT_GO_BUILDID. 1097 1.8 christos 1098 1.8 christos 2021-06-15 Alan Modra <amodra (a] gmail.com> 1099 1.8 christos 1100 1.8 christos * readelf.c (locate_dynamic_section, is_pie): New functions. 1101 1.8 christos (get_file_type): Replace e_type parameter with filedata. Call 1102 1.8 christos is_pie for ET_DYN. Update all callers. 1103 1.8 christos (process_program_headers): Use local variables dynamic_addr and 1104 1.8 christos dynamic_size, updating filedata on exit from function. Set 1105 1.8 christos dynamic_size of 1 to indicate no dynamic section or segment. 1106 1.8 christos Update tests of dynamic_size throughout. 1107 1.8 christos * testsuite/binutils-all/x86-64/pr27708.dump: Update expected output. 1108 1.8 christos 1109 1.8 christos 2021-06-14 Eric Botcazou <ebotcazou (a] adacore.com> 1110 1.8 christos 1111 1.8 christos * dwarf.c (struct abbrev_attr): Change type of implicit_const. 1112 1.8 christos (add_abbrev_attr): Likewise. 1113 1.8 christos (process_abbrev_set): Likewise. 1114 1.8 christos (display_debug_abbrev): Adjust to above change. 1115 1.8 christos 1116 1.8 christos 2021-06-12 Alan Modra <amodra (a] gmail.com> 1117 1.8 christos 1118 1.8 christos * readelf.c (process_file_header): Don't clear section_headers. 1119 1.8 christos 1120 1.8 christos 2021-06-12 Alan Modra <amodra (a] gmail.com> 1121 1.8 christos 1122 1.8 christos * readelf.c (get_section_headers): Don't test e_shoff here, leave 1123 1.8 christos that to get_32bit_section_headers or get_64bit_section_headers. 1124 1.8 christos (process_object): Throw away section header read to print file 1125 1.8 christos header extension. 1126 1.8 christos 1127 1.8 christos 2021-06-11 Alan Modra <amodra (a] gmail.com> 1128 1.8 christos 1129 1.8 christos * readelf.c (struct filedata): Move archive_file_offset and 1130 1.8 christos archive_file_size earlier. 1131 1.8 christos (free_filedata): Clear using memset. 1132 1.8 christos 1133 1.8 christos 2021-06-11 Alan Modra <amodra (a] gmail.com> 1134 1.8 christos 1135 1.8 christos * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with.. 1136 1.8 christos (get_elf_symbols): ..this new function throughout. 1137 1.8 christos (get_32bit_section_headers): Don't free section_headers. 1138 1.8 christos (get_64bit_section_headers): Likewise. 1139 1.8 christos (get_section_headers): New function, use throughout in place of 1140 1.8 christos 32bit and 64bit variants. 1141 1.8 christos (get_dynamic_section): Similarly. 1142 1.8 christos (process_section_headers): Don't free filedata memory here. 1143 1.8 christos (get_file_header): Don't get section headers here.. 1144 1.8 christos (process_object): ..Read them here instead. Don't exit without 1145 1.8 christos freeing filedata memory. 1146 1.8 christos 1147 1.8 christos 2021-06-09 Nick Clifton <nickc (a] redhat.com> 1148 1.8 christos 1149 1.8 christos * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list. 1150 1.8 christos 1151 1.8 christos 2021-06-07 Jan Beulich <jbeulich (a] suse.com> 1152 1.8 christos 1153 1.8 christos * dwarf.c (display_debug_aranges): Add u suffix to constant. 1154 1.8 christos 1155 1.8 christos 2021-05-29 Alan Modra <amodra (a] gmail.com> 1156 1.8 christos 1157 1.8 christos * objdump (usage): Add missing \n. 1158 1.8 christos 1159 1.8 christos 2021-05-29 Alan Modra <amodra (a] gmail.com> 1160 1.8 christos 1161 1.8 christos * readelf.c (parse_args): Call dwarf_select_sections_all on 1162 1.8 christos --debug-dump without optarg. 1163 1.8 christos (usage): Associate -w and --debug-dump options closely. 1164 1.8 christos Split up help message. Remove extraneous blank lines around 1165 1.8 christos ctf help. 1166 1.8 christos * objdump.c (usage): Similarly. 1167 1.8 christos 1168 1.8 christos 2021-05-29 Maciej W. Rozycki <macro (a] orcam.me.uk> 1169 1.8 christos 1170 1.8 christos * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0 1171 1.8 christos operand disassembly. 1172 1.8 christos * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise. 1173 1.8 christos 1174 1.8 christos 2021-05-29 Maciej W. Rozycki <macro (a] orcam.me.uk> 1175 1.8 christos 1176 1.8 christos * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000' 1177 1.8 christos machine for disassembly. 1178 1.8 christos * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise. 1179 1.8 christos * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise. 1180 1.8 christos * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise. 1181 1.8 christos 1182 1.8 christos 2021-05-28 H.J. Lu <hongjiu.lu (a] intel.com> 1183 1.8 christos 1184 1.8 christos PR ld/27905 1185 1.8 christos * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9. 1186 1.8 christos 1187 1.8 christos 2021-05-27 Alan Modra <amodra (a] gmail.com> 1188 1.8 christos 1189 1.8 christos * readelf (usage): Order -w letters to match --debug-dump= and 1190 1.8 christos move common '=' for --debug-dump out of brackets. 1191 1.8 christos 1192 1.8 christos 2021-05-26 H.J. Lu <hongjiu.lu (a] intel.com> 1193 1.8 christos 1194 1.8 christos PR ld/27905 1195 1.8 christos * readelf.c (decode_x86_feature_2): Support 1196 1.8 christos GNU_PROPERTY_X86_FEATURE_2_CODE16. 1197 1.8 christos 1198 1.8 christos 2021-05-23 Tiezhu Yang <yangtiezhu (a] loongson.cn> 1199 1.8 christos 1200 1.8 christos * readelf.c (get_machine_name): Change Loongson Loongarch to 1201 1.8 christos LoongArch. 1202 1.8 christos 1203 1.8 christos 2021-05-21 Luis Machado <luis.machado (a] linaro.org> 1204 1.8 christos 1205 1.8 christos * readelf.c (get_note_type): Add missing NT_ARM_* entries. 1206 1.8 christos 1207 1.8 christos 2021-05-21 Luis Machado <luis.machado (a] linaro.org> 1208 1.8 christos 1209 1.8 christos * readelf.c (get_note_type): Handle NT_MEMTAG note types. 1210 1.8 christos 1211 1.8 christos 2021-05-19 Eli Schwartz <eschwartz (a] archlinux.org> 1212 1.8 christos 1213 1.8 christos * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set. 1214 1.8 christos 1215 1.8 christos 2021-05-19 Alan Modra <amodra (a] gmail.com> 1216 1.8 christos 1217 1.8 christos PR 27884 1218 1.8 christos * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return 1219 1.8 christos param with map_return, and return map for DW_FORM_ref_addr. 1220 1.8 christos (get_type_signedness): Adjust calls to get_type_abbrev_from_form. 1221 1.8 christos Pass returned cu map start and end to recursive call. 1222 1.8 christos (read_and_display_attr_value): Similarly. 1223 1.8 christos 1224 1.8 christos 2021-05-19 Alan Modra <amodra (a] gmail.com> 1225 1.8 christos 1226 1.8 christos PR 27879 1227 1.8 christos * sysdump.c (getBARRAY): Sanity check size against max. 1228 1.8 christos (getINT): Avoid UB shift left. 1229 1.8 christos 1230 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1231 1.8 christos 1232 1.8 christos * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow. 1233 1.8 christos Delete dead code. 1234 1.8 christos 1235 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1236 1.8 christos 1237 1.8 christos * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in 1238 1.8 christos length calculations. 1239 1.8 christos 1240 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1241 1.8 christos 1242 1.8 christos * dwarf.c (display_debug_names): Complain when header length is 1243 1.8 christos too small. Avoid pointer UB. Sanity check augmentation string, 1244 1.8 christos CU table, TU table and foreign TU table sizes. 1245 1.8 christos 1246 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1247 1.8 christos 1248 1.8 christos * dwarf.c (display_debug_frames): Delete initial_length_size. 1249 1.8 christos Avoid pointer UB. Constrain data reads to length given in header. 1250 1.8 christos Sanity check cie header length. Only skip up to next FDE on 1251 1.8 christos finding augmentation data too long. 1252 1.8 christos 1253 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1254 1.8 christos 1255 1.8 christos * dwarf.c (read_cie): Add more sanity checks to ensure data 1256 1.8 christos pointer is not bumped past end. 1257 1.8 christos 1258 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1259 1.8 christos 1260 1.8 christos * dwarf.c (display_debug_ranges): Delete initial_length_size. 1261 1.8 christos Correct fallback size calculated on finding a reloc. Constrain 1262 1.8 christos data reads to length given in header. Avoid pointer UB. 1263 1.8 christos 1264 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1265 1.8 christos 1266 1.8 christos * dwarf.c (display_debug_rnglists_list): Avoid pointer UB. 1267 1.8 christos 1268 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1269 1.8 christos 1270 1.8 christos * dwarf.c (display_debug_str_offsets): Constrain reads to length 1271 1.8 christos given in header. 1272 1.8 christos 1273 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1274 1.8 christos 1275 1.8 christos * dwarf.c (display_debug_aranges): Delete initial_length_size. 1276 1.8 christos Use end_ranges to constrain data reads to header length. Avoid 1277 1.8 christos pointer UB. 1278 1.8 christos 1279 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1280 1.8 christos 1281 1.8 christos * dwarf.c (display_loc_list): Avoid pointer UB. Correct check 1282 1.8 christos before reading uleb length. Warn on excess length. 1283 1.8 christos 1284 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1285 1.8 christos 1286 1.8 christos * dwarf.c (display_debug_macro): Print strings that might not 1287 1.8 christos be zero terminated with %*s. Don't bump curr if unterminated. 1288 1.8 christos 1289 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1290 1.8 christos 1291 1.8 christos * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size. 1292 1.8 christos Simplify length sanity check, and check for too small lengths. 1293 1.8 christos Constrain data reads to header length. Avoid pointer UB. 1294 1.8 christos 1295 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1296 1.8 christos 1297 1.8 christos * dwarf.c (display_debug_macinfo): Print strings that might not 1298 1.8 christos be zero terminated with %*s. Don't bump curr if unterminated. 1299 1.8 christos 1300 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1301 1.8 christos 1302 1.8 christos * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size. 1303 1.8 christos Simplify length check. Constrain reads to length given by header. 1304 1.8 christos 1305 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1306 1.8 christos 1307 1.8 christos * dwarf.c (display_debug_lines_decoded): Don't use strnlen when 1308 1.8 christos we have already checked for NUL termination. 1309 1.8 christos 1310 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1311 1.8 christos 1312 1.8 christos * dwarf.c (read_debug_line_header): Delete initial_length_size. 1313 1.8 christos Avoid pointer UB. Keep within length specified by header. 1314 1.8 christos Delete dead code. 1315 1.8 christos 1316 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1317 1.8 christos 1318 1.8 christos * dwarf.c (process_debug_info): Always do the first CU length 1319 1.8 christos scan for sanity checks. Remove initial_length_size var and 1320 1.8 christos instead calculate end_cu. Use end_cu to limit data reads. 1321 1.8 christos Delete now dead code checking length. 1322 1.8 christos 1323 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1324 1.8 christos 1325 1.8 christos * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING. 1326 1.8 christos 1327 1.8 christos 2021-05-15 Alan Modra <amodra (a] gmail.com> 1328 1.8 christos 1329 1.8 christos * bucomm.h (_mul_overflow): Define. 1330 1.8 christos * dwarf.c (get_encoded_value): Avoid pointer UB. 1331 1.8 christos 1332 1.8 christos 2021-05-13 Alan Modra <amodra (a] gmail.com> 1333 1.8 christos 1334 1.8 christos PR 27861 1335 1.8 christos * dwarf.c (display_debug_str_offsets): Sanity check dwarf5 1336 1.8 christos header length. 1337 1.8 christos 1338 1.8 christos 2021-05-13 Alan Modra <amodra (a] gmail.com> 1339 1.8 christos 1340 1.8 christos PR 27860 1341 1.8 christos * dwarf.c (display_debug_frames): Sanity check cie_off before 1342 1.8 christos attempting to read cie. 1343 1.8 christos 1344 1.8 christos 2021-05-12 Alan Modra <amodra (a] gmail.com> 1345 1.8 christos 1346 1.8 christos * dwarf.c (process_extended_line_op): Don't bump data pointer past 1347 1.8 christos end when strnlen doesn't find string terminator. 1348 1.8 christos (decode_location_expression): Remove dead code. 1349 1.8 christos (skip_attr_bytes): Remove const from end param. Ensure data 1350 1.8 christos pointer doesn't pass end. 1351 1.8 christos (get_type_signedness): Remove const from end param. 1352 1.8 christos (read_and_display_attr_value): Ensure data pointer doesn't pass end. 1353 1.8 christos (display_debug_lines_raw, display_debug_lines_decoded): Likewise. 1354 1.8 christos (display_debug_pubnames_worker): Likewise. 1355 1.8 christos (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather 1356 1.8 christos than blindly incrementing data pointer. 1357 1.8 christos (display_debug_addr, display_debug_str_offsets): Likewise. Don't 1358 1.8 christos compare pointers, compare lengths. 1359 1.8 christos 1360 1.8 christos 2021-05-12 Alan Modra <amodra (a] gmail.com> 1361 1.8 christos 1362 1.8 christos * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define. 1363 1.8 christos (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above. 1364 1.8 christos (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise. 1365 1.8 christos (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than 1366 1.8 christos SAFE_BYTE_GET followed by increment. 1367 1.8 christos (process_debug_info): Likewise, and test bytes remaining before 1368 1.8 christos incrementing section_begin rather than using pointer comparison. 1369 1.8 christos (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR. 1370 1.8 christos (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC. 1371 1.8 christos 1372 1.8 christos 2021-05-12 Alan Modra <amodra (a] gmail.com> 1373 1.8 christos 1374 1.8 christos * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete. 1375 1.8 christos (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with 1376 1.8 christos SAFE_BYTE_GET_AND_INC. 1377 1.8 christos (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa. 1378 1.8 christos (process_debug_info, process_cu_tu_index): Likewise. 1379 1.8 christos * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian), 1380 1.8 christos (byte_get, byte_get_little_endian, byte_get_big_endian), 1381 1.8 christos (byte_get_signed): Make size param unsigned. Remove code dealing 1382 1.8 christos with 4-byte elf_vma. 1383 1.8 christos (byte_get_64): Delete. 1384 1.8 christos * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian), 1385 1.8 christos (byte_get, byte_get_little_endian, byte_get_big_endian), 1386 1.8 christos (byte_get_signed): Update prototypes. 1387 1.8 christos (byte_get_64): Delete. 1388 1.8 christos 1389 1.8 christos 2021-05-12 Alan Modra <amodra (a] gmail.com> 1390 1.8 christos 1391 1.8 christos PR 27836 1392 1.8 christos * dwarf.c (display_debug_frames): Don't compare pointers derived 1393 1.8 christos from user input. Test offset against bounds instead. 1394 1.8 christos 1395 1.8 christos 2021-05-12 Alan Modra <amodra (a] gmail.com> 1396 1.8 christos 1397 1.8 christos PR 27853 1398 1.8 christos * dwarf.c (display_formatted_table): Test for data >= end rather 1399 1.8 christos than data == end. 1400 1.8 christos (process_extended_line_op): Likewise. 1401 1.8 christos (display_debug_lines_raw): Likewise. 1402 1.8 christos (display_debug_lines_decoded): Likewise. 1403 1.8 christos 1404 1.8 christos 2021-05-12 Alan Modra <amodra (a] gmail.com> 1405 1.8 christos 1406 1.8 christos PR 27849 1407 1.8 christos * dwarf.c (fetch_indexed_string): Correct length sanity checks. 1408 1.8 christos Sanity check section size for version and padding too. Correct 1409 1.8 christos index sanity check. Handle multiple tables in .debug_str_offsets. 1410 1.8 christos 1411 1.8 christos 2021-05-11 Hans-Peter Nilsson <hp (a] axis.com> 1412 1.8 christos 1413 1.8 christos * dwarf.c (process_abbrev_set): Properly parenthesize before 1414 1.8 christos casting to unsigned long. 1415 1.8 christos 1416 1.8 christos 2021-05-11 Alan Modra <amodra (a] gmail.com> 1417 1.8 christos 1418 1.8 christos PR 27845 1419 1.8 christos * dwarf.c (process_abbrev_set): Replace start and end parameters 1420 1.8 christos with section, abbrev_base, abbrev_size, abbrev_offset. Update 1421 1.8 christos all callers. Sanity check parameters correctly and emit warnings 1422 1.8 christos here rather than.. 1423 1.8 christos (process_debug_info): ..here. 1424 1.8 christos 1425 1.8 christos 2021-05-10 Thomas Wolff <towo (a] towo.net> 1426 1.8 christos 1427 1.8 christos PR 4356 1428 1.8 christos PR 26865 1429 1.8 christos PR 27594 1430 1.8 christos * windres.c (quot): Revert previous delta. Do not use double 1431 1.8 christos quotes when spaces are detected in options. 1432 1.8 christos * doc/binutils.texi (windres): Remove suggestion that the 1433 1.8 christos --preprocessor option can take arguments. 1434 1.8 christos 1435 1.8 christos 2021-05-10 Alan Modra <amodra (a] gmail.com> 1436 1.8 christos 1437 1.8 christos * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from 1438 1.8 christos END rather than adding amount to PTR. 1439 1.8 christos (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise. 1440 1.8 christos 1441 1.8 christos 2021-05-09 Alan Modra <amodra (a] gmail.com> 1442 1.8 christos 1443 1.8 christos * objcopy.c (eq_string): Delete. 1444 1.8 christos (create_symbol_htab): Use htab_eq_string. 1445 1.8 christos 1446 1.8 christos 2021-05-08 Mike Frysinger <vapier (a] gentoo.org> 1447 1.8 christos 1448 1.8 christos * README-how-to-make-a-release: Update html & pdf entries. 1449 1.8 christos 1450 1.8 christos 2021-05-08 Mike Frysinger <vapier (a] gentoo.org> 1451 1.8 christos 1452 1.8 christos * doc/Makefile.am (html-local, binutils/index.html): New targets. 1453 1.8 christos * doc/Makefile.in: Regenerate. 1454 1.8 christos 1455 1.8 christos 2021-05-08 Mike Frysinger <vapier (a] gentoo.org> 1456 1.8 christos 1457 1.8 christos * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split. 1458 1.8 christos * doc/Makefile.in: Regenerate. 1459 1.8 christos 1460 1.8 christos 2021-05-07 Nick Clifton <nickc (a] redhat.com> 1461 1.8 christos 1462 1.8 christos * readelf.c (no_processor_specific_unwind): New function. 1463 1.8 christos (process_unwind): Use no_processor_specific_unwind for X86 1464 1.8 christos targets. 1465 1.8 christos 1466 1.8 christos 2021-05-07 Michael Forney <mforney (a] mforney.org> 1467 1.8 christos 1468 1.8 christos * dwarf.c: Don't omit second operand of '?' operator. 1469 1.8 christos 1470 1.8 christos 2021-04-30 Nick Clifton <nickc (a] redhat.com> 1471 1.8 christos 1472 1.8 christos PR 27796 1473 1.8 christos * dwarf.c (load_debug_sup_file): Allocate memory for filename in 1474 1.8 christos .debug_sup section. 1475 1.8 christos 1476 1.8 christos 2021-04-29 Nick Clifton <nickc (a] redhat.com> 1477 1.8 christos 1478 1.8 christos PR 27594 1479 1.8 christos * doc/binutils.texi (windres): Correct the description of the 1480 1.8 christos default value of the --preprocessor argument. 1481 1.8 christos 1482 1.8 christos 2021-04-27 Nick Clifton <nickc (a] redhat.com> 1483 1.8 christos 1484 1.8 christos PR 27779 1485 1.8 christos * dwarf.c (parse_gnu_debuglink): Reject empty names. 1486 1.8 christos (parse_gnu_debugaltlink): Likewise. 1487 1.8 christos 1488 1.8 christos 2021-04-22 Clment Chigot <clement.chigot (a] atos.net> 1489 1.8 christos 1490 1.8 christos * od-xcoff.c (dump_xcoff32_symbols): Adapt to new 1491 1.8 christos aux structures. 1492 1.8 christos 1493 1.8 christos 2021-04-21 Nick Lott <nick.lott (a] gmail.com> 1494 1.8 christos 1495 1.8 christos PR 27672 1496 1.8 christos * readelf.c (sym_base): New variable. 1497 1.8 christos (enum print_mode): Add more modes. 1498 1.8 christos (print_vma): Add suport for new modes. 1499 1.8 christos (options): Add sym-base. 1500 1.8 christos (usage): Add sym-base. 1501 1.8 christos (parse_args): Add support for --sym-base. 1502 1.8 christos (print_dynamic_symbol_size): New function. 1503 1.8 christos (print_dynamic_symbol): Use new function. 1504 1.8 christos * doc/binutils.texi: Document the new feature. 1505 1.8 christos * NEWS: Mention the new feature. 1506 1.8 christos 1507 1.8 christos 2021-04-21 Nick Clifton <nickc (a] redhat.com> 1508 1.8 christos 1509 1.8 christos * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d: 1510 1.8 christos Adjust expected output to allow for named section symbols. 1511 1.8 christos * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d: 1512 1.8 christos Likewise. 1513 1.8 christos * testsuite/binutils-all/readelf.s-64: Likewise. 1514 1.8 christos * testsuite/binutils-all/readelf.ss-64-unused: Likewise. 1515 1.8 christos * testsuite/binutils-all/readelf.ss-tmips: Likewise. 1516 1.8 christos * testsuite/binutils-all/readelf.ss-unused: Likewise. 1517 1.8 christos 1518 1.8 christos 2021-04-21 Luo Longjun <luolongjun (a] huawei.com> 1519 1.8 christos 1520 1.8 christos * readelf.c (print_dynamic_symbol): Print the section name for 1521 1.8 christos section symbols without a name of their own. 1522 1.8 christos 1523 1.8 christos 2021-04-20 Andreas Krebbel <krebbel (a] linux.ibm.com> 1524 1.8 christos 1525 1.8 christos * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and 1526 1.8 christos add him to Past Maintainers. 1527 1.8 christos Update my email address. 1528 1.8 christos 1529 1.8 christos 2021-04-19 Nick Clifton <nickc (a] redhat.com> 1530 1.8 christos 1531 1.8 christos PR 21702 1532 1.8 christos * arsup.c (ar_addmod): Enable plugin support, if available. 1533 1.8 christos 1534 1.8 christos 2021-04-19 Nick Clifton <nickc (a] redhat.com> 1535 1.8 christos 1536 1.8 christos * rename.c: (get_stat_atime_ns): Add prototype. 1537 1.8 christos (get_stat_mtime_ns): Add prototype. 1538 1.8 christos 1539 1.8 christos 2021-04-16 Alan Modra <amodra (a] gmail.com> 1540 1.8 christos 1541 1.8 christos PR 27725 1542 1.8 christos * rename.c (get_stat_atime, get_stat_mtime): Make static. 1543 1.8 christos (get_stat_atime_ns, get_stat_mtime_ns): Likewise. 1544 1.8 christos 1545 1.8 christos 2021-04-15 Pekka Seppnen <pexu (a] sourceware.mail.kapsi.fi> 1546 1.8 christos 1547 1.8 christos PR 27725 1548 1.8 christos * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED. 1549 1.8 christos (get_stat_mtime_ns): Likewise. 1550 1.8 christos 1551 1.8 christos 2021-04-15 Alan Modra <amodra (a] gmail.com> 1552 1.8 christos 1553 1.8 christos PR 27725 1554 1.8 christos * configure.ac: Check for sys/time.h and utimensat. Use standard 1555 1.8 christos checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond 1556 1.8 christos members of struct stat. 1557 1.8 christos * rename.c: Prefer sys/time.h for utimes over utime.h for utime. 1558 1.8 christos (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define 1559 1.8 christos (get_stat_atime_ns, get_stat_mtime_ns): New inline functions. 1560 1.8 christos (get_stat_atime, get_stat_mtime): Likewise. 1561 1.8 christos (set_times): Choose first available of utimensat, utimes, utime. 1562 1.8 christos Use above inline functions to set timespec and timeval values. 1563 1.8 christos * configure: Regenerate. 1564 1.8 christos * config.in: Regenerate. 1565 1.8 christos * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of 1566 1.8 christos file timestamp when --preserve-dates is used. 1567 1.8 christos 1568 1.8 christos 2021-04-15 Alan Modra <amodra (a] gmail.com> 1569 1.8 christos 1570 1.8 christos PR 27456 1571 1.8 christos * rename.c (smart_rename): When TO and FROM are equal, just set 1572 1.8 christos file timestamp. 1573 1.8 christos * objcopy.c (strip_main, copy_main): Always call smart_rename. 1574 1.8 christos 1575 1.8 christos 2021-04-14 H.J. Lu <hongjiu.lu (a] intel.com> 1576 1.8 christos 1577 1.8 christos PR binutils/27708 1578 1.8 christos * testsuite/binutils-all/x86-64/pr27708.dump: New file. 1579 1.8 christos * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise. 1580 1.8 christos * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708 1581 1.8 christos test. 1582 1.8 christos 1583 1.8 christos 2021-04-14 Mark Harmstone <mark (a] harmstone.com> 1584 1.8 christos 1585 1.8 christos PR 27686 1586 1.8 christos * resbin.c (bin_to_res_version): Ignore any trailing bytes at the 1587 1.8 christos end of the structure. 1588 1.8 christos 1589 1.8 christos 2021-04-14 Frederic Cambus <fred (a] statdns.com> 1590 1.8 christos 1591 1.8 christos * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef 1592 1.8 christos checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS. 1593 1.8 christos 1594 1.8 christos 2021-04-14 Alan Modra <amodra (a] gmail.com> 1595 1.8 christos 1596 1.8 christos PR 27716 1597 1.8 christos * objdump.c (show_line): Don't limit paths to PATH_MAX. 1598 1.8 christos * readelf.c (struct filedata): Change program_interpreter from 1599 1.8 christos a char array to a char pointer. 1600 1.8 christos (process_program_headers): Sanity check PT_INTERP p_filesz. 1601 1.8 christos Malloc program_interpreter using p_filesz and read directly from 1602 1.8 christos file. 1603 1.8 christos (process_dynamic_section): Check program_interpreter is non-NULL. 1604 1.8 christos (free_filedata): New function, split out from.. 1605 1.8 christos (process_object): ..here. 1606 1.8 christos (close_debug_file): Call free_filedata. 1607 1.8 christos * sysdep.h: Don't include sys/param.h. 1608 1.8 christos (PATH_MAX): Don't define. 1609 1.8 christos * configure.ac: Don't check for sys/param.h. 1610 1.8 christos * configure: Regenerate. 1611 1.8 christos 1612 1.8 christos 2021-04-13 Frederic Cambus <fred (a] statdns.com> 1613 1.8 christos 1614 1.8 christos * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef 1615 1.8 christos check for NT_NETBSD_PAX. 1616 1.8 christos 1617 1.8 christos 2021-04-12 Alan Modra <amodra (a] gmail.com> 1618 1.8 christos 1619 1.8 christos * configure.ac (--enable-checking): Add support. 1620 1.8 christos * config.in: Regenerate. 1621 1.8 christos * configure: Regenerate. 1622 1.8 christos 1623 1.8 christos 2021-04-09 Alan Modra <amodra (a] gmail.com> 1624 1.8 christos 1625 1.8 christos * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and 1626 1.8 christos dynrelcount. 1627 1.8 christos (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move. 1628 1.8 christos (disassemble_section, disassemble_data): Likewise. 1629 1.8 christos 1630 1.8 christos 2021-04-06 Alan Modra <amodra (a] gmail.com> 1631 1.8 christos 1632 1.8 christos * objdump.c (objdump_symbol_at_address): Return asymbol*. 1633 1.8 christos 1634 1.8 christos 2021-04-06 Alan Modra <amodra (a] gmail.com> 1635 1.8 christos 1636 1.8 christos * NEWS: Mention C99 requirement. 1637 1.8 christos * README: Likewise. Modernise examples and "Reporting bugs". 1638 1.8 christos 1639 1.8 christos 2021-04-05 Alan Modra <amodra (a] gmail.com> 1640 1.8 christos 1641 1.8 christos * configure.ac: Assume long long is available. Don't test for 1642 1.8 christos strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check 1643 1.8 christos inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for 1644 1.8 christos strcoll, setlocale, setmode or location of time_t. Don't check 1645 1.8 christos for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls. 1646 1.8 christos (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke. 1647 1.8 christos * sysdep.h: Don't include alloca-conf.h, include config.h instead. 1648 1.8 christos Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h, 1649 1.8 christos locale.h, string.h and stdlib.h unconditionally. Remove various 1650 1.8 christos fallback declarations. Assume long long is available. 1651 1.8 christos * addr2line.c: Don't test HAVE_SETLOCALE. 1652 1.8 christos * ar.c: Likewise. 1653 1.8 christos * coffdump.c: Likewise. 1654 1.8 christos * dlltool.c: Likewise. 1655 1.8 christos * dllwrap.c: Likewise. 1656 1.8 christos * elfedit.c: Likewise. 1657 1.8 christos * nm.c: Likewise. 1658 1.8 christos * objcopy.c: Likewise. 1659 1.8 christos * objdump.c: Likewise. 1660 1.8 christos * readelf.c: Likewise. 1661 1.8 christos * size.c: Likewise. 1662 1.8 christos * srconv.c: Likewise. 1663 1.8 christos * strings.c: Likewise. 1664 1.8 christos * sysdump.c: Likewise. 1665 1.8 christos * windmc.c: Likewise. 1666 1.8 christos * windres.c: Likewise. 1667 1.8 christos * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H. 1668 1.8 christos * dwarf.c: Include limits.h unconditionally. Assume long long 1669 1.8 christos is available. 1670 1.8 christos * nm.c: Don't test HAVE_STRCOLL. 1671 1.8 christos * readelf.c: Don't test HAVE_WCHAR_H. 1672 1.8 christos * strings.c: Assume long long is available. 1673 1.8 christos * syslex.l: Include string.h unconditionally. 1674 1.8 christos * aclocal.m4: Regenerate. 1675 1.8 christos * config.in: Regenerate. 1676 1.8 christos * configure: Regenerate. 1677 1.8 christos * Makefile.in: Regenerate. 1678 1.8 christos * doc/Makefile.in: Regenerate. 1679 1.8 christos 1680 1.8 christos 2021-04-01 Martin Liska <mliska (a] suse.cz> 1681 1.8 christos 1682 1.8 christos * elfcomm.h (strneq): Remove strneq and use startswith. 1683 1.8 christos * readelf.c (ia64_process_unwind): Likewise. 1684 1.8 christos (process_note): Likewise. 1685 1.8 christos 1686 1.8 christos 2021-04-01 Martin Liska <mliska (a] suse.cz> 1687 1.8 christos 1688 1.8 christos * dllwrap.c: Use startswith function. 1689 1.8 christos * objcopy.c (is_dwo_section): Likewise. 1690 1.8 christos (handle_remove_section_option): Likewise. 1691 1.8 christos (copy_main): Likewise. 1692 1.8 christos * objdump.c (is_significant_symbol_name): Likewise. 1693 1.8 christos 1694 1.8 christos 2021-04-01 Martin Liska <mliska (a] suse.cz> 1695 1.8 christos 1696 1.8 christos * dwarf.c (display_debug_lines_raw): Replace const_strneq with 1697 1.8 christos startswith. 1698 1.8 christos (display_debug_lines_decoded): Likewise. 1699 1.8 christos (display_debug_links): Likewise. 1700 1.8 christos * elfcomm.c (setup_archive): Likewise. 1701 1.8 christos * elfcomm.h (const_strneq): Likewise. 1702 1.8 christos * readelf.c (process_section_headers): Likewise. 1703 1.8 christos (slurp_ia64_unwind_table): Likewise. 1704 1.8 christos (slurp_hppa_unwind_table): Likewise. 1705 1.8 christos (decode_arm_unwind): Likewise. 1706 1.8 christos (display_debug_section): Likewise. 1707 1.8 christos (process_note): Likewise. 1708 1.8 christos 1709 1.8 christos 2021-03-31 Alan Modra <amodra (a] gmail.com> 1710 1.8 christos 1711 1.8 christos * sysdep.h (POISON_BFD_BOOLEAN): Define. 1712 1.8 christos * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c, 1713 1.8 christos * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c, 1714 1.8 christos * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h, 1715 1.8 christos * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c, 1716 1.8 christos * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c, 1717 1.8 christos * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h, 1718 1.8 christos * windmc.c, * windmc.h, * windres.c, * winduni.c, 1719 1.8 christos * wrstabs.c: Replace bfd_boolean with bool, FALSE with false, 1720 1.8 christos and TRUE with true throughout. 1721 1.8 christos 1722 1.8 christos 2021-03-31 Alan Modra <amodra (a] gmail.com> 1723 1.8 christos 1724 1.8 christos * coffdump.c: Include stdint.h in place of bfd_stdint.h. 1725 1.8 christos * dwarf.c: Likewise. 1726 1.8 christos 1727 1.8 christos 2021-03-31 Alan Modra <amodra (a] gmail.com> 1728 1.8 christos 1729 1.8 christos * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy. 1730 1.8 christos 1731 1.8 christos 2021-03-29 Alan Modra <amodra (a] gmail.com> 1732 1.8 christos 1733 1.8 christos * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE". 1734 1.8 christos * dwarf.c (read_and_display_attr_value): Likewise. 1735 1.8 christos (display_debug_str_offsets): Likewise. 1736 1.8 christos * objdump.c (dump_bfd): Likewise. 1737 1.8 christos * readelf.c (dump_section_as_strings): Likewise. 1738 1.8 christos (dump_section_as_bytes): Likewise. 1739 1.8 christos 1740 1.8 christos 2021-03-29 Alan Modra <amodra (a] gmail.com> 1741 1.8 christos 1742 1.8 christos * objdump.c (process_links): Use type int. 1743 1.8 christos * readelf.c (request_dump): Don't increment do_dump, set it. 1744 1.8 christos * windint.h (target_is_bigendian): Use type bfd_boolean. 1745 1.8 christos * windmc.c (target_is_bigendian): Likewise. 1746 1.8 christos * windres.c (target_is_bigendian): Likewise. 1747 1.8 christos 1748 1.8 christos 2021-03-22 Martin Liska <mliska (a] suse.cz> 1749 1.8 christos 1750 1.8 christos * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ 1751 1.8 christos with startswith. 1752 1.8 christos * emul_aix.c (ar_emul_aix_parse_arg): Likewise. 1753 1.8 christos * objcopy.c (is_mergeable_note_section): Likewise. 1754 1.8 christos * objdump.c (dump_dwarf_section): Likewise. 1755 1.8 christos * prdbg.c (pr_method_type): Likewise. 1756 1.8 christos (pr_class_baseclass): Likewise. 1757 1.8 christos (tg_class_baseclass): Likewise. 1758 1.8 christos * readelf.c (process_lto_symbol_tables): Likewise. 1759 1.8 christos * stabs.c (ULLHIGH): Likewise. 1760 1.8 christos (parse_stab_argtypes): Likewise. 1761 1.8 christos (stab_demangle_function_name): Likewise. 1762 1.8 christos 1763 1.8 christos 2021-03-19 H.J. Lu <hongjiu.lu (a] intel.com> 1764 1.8 christos 1765 1.8 christos * readelf.c (get_machine_name): Add EM_INTELGT. 1766 1.8 christos 1767 1.8 christos 2021-03-18 Nick Clifton <nickc (a] redhat.com> 1768 1.8 christos 1769 1.8 christos PR 27478 1770 1.8 christos * readelf.c (dump_section_as_strings): Mention separate filename. 1771 1.8 christos (dump_section_as_bytes): Likewise. 1772 1.8 christos (dump_section_as_ctf): Likewise. 1773 1.8 christos (initialise_dumkps_byname): Only issue a warning for missing 1774 1.8 christos sections if processing the main file. 1775 1.8 christos (process_section_contents): Only issue a warning for unsumped 1776 1.8 christos section numbers in the main file. 1777 1.8 christos (initialise_dump_sects): New function. Contains code extracted 1778 1.8 christos from ... 1779 1.8 christos (process_object): ... here. Also call initialise_dump_sects for 1780 1.8 christos separate files. 1781 1.8 christos 1782 1.8 christos 2021-03-16 Nick Clifton <nickc (a] redhat.com> 1783 1.8 christos 1784 1.8 christos PR 27534 1785 1.8 christos * readelf.c (display_debug_section): Also retain .debug_addr 1786 1.8 christos sections. 1787 1.8 christos 1788 1.8 christos 2021-03-16 Nick Clifton <nickc (a] redhat.com> 1789 1.8 christos 1790 1.8 christos PR 27533 1791 1.8 christos * readelf.c (process_section_contents): Only dump debug 1792 1.8 christos information for separate files unless process_links is enabled. 1793 1.8 christos (process_object): Always call process_section_contents for 1794 1.8 christos separate info files. 1795 1.8 christos 1796 1.8 christos 2021-03-15 Nick Clifton <nickc (a] redhat.com> 1797 1.8 christos 1798 1.8 christos PR 27487 1799 1.8 christos * nm.c (FORMAT_JUST_SYMBOLS): Define. 1800 1.8 christos (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS. 1801 1.8 christos (long_options): Add just-symbols. 1802 1.8 christos (set_output_format): Add support for just-symbols. 1803 1.8 christos (get_print_format): Likewise. 1804 1.8 christos (do_not_print_object_filename): New function. 1805 1.8 christos (do_not_print_archive_filename): New function. 1806 1.8 christos (do_not_print_archive_member): New function. 1807 1.8 christos (do_not_print_symbol_filename): New function. 1808 1.8 christos (just_print_symbol_name): New function. 1809 1.8 christos (main): Handle --just-symbols. 1810 1.8 christos * NEWS: Mention the new feature. 1811 1.8 christos * doc/binutils.texi: Document the new feature. 1812 1.8 christos 1813 1.8 christos 2021-03-12 Clment Chigot <clement.chigot (a] atos.net> 1814 1.8 christos 1815 1.8 christos * od-xcoff.c: Replace RTB by TRL entry. 1816 1.8 christos 1817 1.8 christos 2021-03-05 Craig Blackmore <craig.blackmore (a] embecosm.com> 1818 1.8 christos Andrew Burgess <andrew.burgess (a] embecosm.com> 1819 1.8 christos 1820 1.8 christos * readelf.c (get_note_type): Handle NT_RISCV_CSR. 1821 1.8 christos 1822 1.8 christos 2021-03-05 Craig Blackmore <craig.blackmore (a] embecosm.com> 1823 1.8 christos Andrew Burgess <andrew.burgess (a] embecosm.com> 1824 1.8 christos 1825 1.8 christos * readelf.c (get_note_type): Handle NT_GDB_TDESC. 1826 1.8 christos 1827 1.8 christos 2021-03-05 Nick Clifton <nickc (a] redhat.com> 1828 1.8 christos 1829 1.8 christos PR 27387 1830 1.8 christos * dwarf.c (display_debug_macro): Handle the displaying of 1831 1.8 christos DW_MACRO_define_strp and DW_MACRO_undef_strp in v4 1832 1.8 christos .debug_macro.dwo sections. 1833 1.8 christos 1834 1.8 christos 2021-03-04 Nick Clifton <nickc (a] redhat.com> 1835 1.8 christos 1836 1.8 christos PR 27478 1837 1.8 christos * objdump.c (process_links): New variable. 1838 1.8 christos (usage): Add --process-links. 1839 1.8 christos (long_options): Likewise. 1840 1.8 christos (dump_bfd): Stop processing once the bfd has been loaded unless 1841 1.8 christos this is the main file or process_links has been enabled. 1842 1.8 christos (main): Handle the process-links option. 1843 1.8 christos * readelf.c (process_links): New variable. 1844 1.8 christos (struct filedata): Add is_separate field. 1845 1.8 christos (options): Add --process-links. 1846 1.8 christos (usage): Likewise. 1847 1.8 christos (parse_args): Likewise. 1848 1.8 christos (process_file_header): Include the filename when dumping 1849 1.8 christos information for separate debuginfo files. 1850 1.8 christos (process_program_headers): Likewise. 1851 1.8 christos (process_section_headers): Likewise. 1852 1.8 christos (process_section_groups): Likewise. 1853 1.8 christos (process_relocs): Likewise. 1854 1.8 christos (process_dynamic_section): Likewise. 1855 1.8 christos (process_version_sections): Likewise. 1856 1.8 christos (display_lto_symtab): Likewise. 1857 1.8 christos (process_symbol_table): Likewise. 1858 1.8 christos (process_syminfo): Likewise. 1859 1.8 christos (initialise_dumps_by_name): Likewise. 1860 1.8 christos (process_section_contents): Likewise. 1861 1.8 christos (process_notes_at): Likewise. 1862 1.8 christos (process_notes): Likewise. 1863 1.8 christos (open_file): Add is_separate parameter. Use to initialise the 1864 1.8 christos is_separate field in the filedata structure. 1865 1.8 christos (open_deug): Update call to open_file. 1866 1.8 christos (process_object): Add processing of the contents of separate 1867 1.8 christos debuginfo files, gated by the process_links variable. 1868 1.8 christos (process_archive): Update call to open_file. 1869 1.8 christos (process_file): Initialise the is_separate field in the filedata 1870 1.8 christos structure. 1871 1.8 christos * dwarf.c (load_separate_debug_info_file): Only report the 1872 1.8 christos loading of a separate file if debug links are being dumped. 1873 1.8 christos * objcopy.c (keep_section_symbols): New variable. 1874 1.8 christos (enum command_line_switch): Add OPTION_KEEP_SYMBOLS. 1875 1.8 christos (strip_options): Add keep-section-symbols. 1876 1.8 christos (copy_options): Likewise. 1877 1.8 christos (copy_usage): Likewise. 1878 1.8 christos (strip_usage): Likewise. 1879 1.8 christos (copy_object): Keep section symbols if requested by command line 1880 1.8 christos option. 1881 1.8 christos (strip_main): Handle --keep-section-symbols. 1882 1.8 christos (copy_main): Likewise. 1883 1.8 christos * doc/binutils.texi: Document the new options. 1884 1.8 christos * NEWS: Mention the new features. 1885 1.8 christos * testsuite/binutils-all/compress.exp (test_gnu_debuglink): 1886 1.8 christos Update options passed to objdump. Use diff rather than cmp to 1887 1.8 christos compare the dumped data. 1888 1.8 christos * testsuite/binutils-all/objdump.WK2: Update regexp. 1889 1.8 christos * testsuite/binutils-all/objdump.WK3: Update regexp. 1890 1.8 christos * testsuite/binutils-all/objdump.exp: Use --process-links 1891 1.8 christos instead of --dwarf=follow-links. 1892 1.8 christos * testsuite/binutils-all/readelf.exp (readelf_test): Include 1893 1.8 christos readelf's output in the log when the test fails. 1894 1.8 christos Add the -P option to the -wKis test. 1895 1.8 christos * testsuite/binutils-all/readelf.wKis: Update expected output. 1896 1.8 christos 1897 1.8 christos 2021-03-03 Alan Modra <amodra (a] gmail.com> 1898 1.8 christos 1899 1.8 christos PR 27493 1900 1.8 christos * objcopy.c (filter_symbols): Apply --weaken to undefined symbols. 1901 1.8 christos * NEWS: Mention feature. 1902 1.8 christos 1903 1.8 christos 2021-03-01 H.J. Lu <hongjiu.lu (a] intel.com> 1904 1.8 christos 1905 1.8 christos PR binutils/27486 1906 1.8 christos * dwarf.c (load_separate_debug_info): Issue warning only if 1907 1.8 christos do_debug_links is set. 1908 1.8 christos * testsuite/binutils-all/compress.exp: Run objdump and readelf 1909 1.8 christos with missing debug file. 1910 1.8 christos 1911 1.8 christos 2021-03-01 Alan Modra <amodra (a] gmail.com> 1912 1.8 christos 1913 1.8 christos PR 27128 1914 1.8 christos * doc/binutils.texi: Add nm --with-symbol-versions and 1915 1.8 christos --without-symbol-versions documentation. 1916 1.8 christos * nm.c (with_symbol_versions): New variable. 1917 1.8 christos (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS. 1918 1.8 christos (long_options): Make --with-symbol-versions entry twiddle the flag. 1919 1.8 christos Add --without-symbol-versions. 1920 1.8 christos (print_symname): Strip version when !with_symbol_versions. Add 1921 1.8 christos dynamic version info under control of with_symbol_versions. 1922 1.8 christos (main): Remove OPTION_WITH_SYMBOL_VERSIONS case. 1923 1.8 christos 1924 1.8 christos 2021-02-26 Fangrui Song <maskray (a] google.com> 1925 1.8 christos 1926 1.8 christos PR 27408 1927 1.8 christos * readelf.c (quiet): New option flag. 1928 1.8 christos (enum long_option_values): New enum to hold long option value. 1929 1.8 christos (long_options): Add --quiet. 1930 1.8 christos (usage): Mention --quiet. 1931 1.8 christos (display_rel_file): If quiet is enabled, suppress "no symbols". 1932 1.8 christos (main): Handle the new option. 1933 1.8 christos * NEWS: Mention --quiet. 1934 1.8 christos * docs/binutils.texi: Document --quiet. 1935 1.8 christos 1936 1.8 christos 2021-02-26 Tom de Vries <tdevries (a] suse.de> 1937 1.8 christos 1938 1.8 christos * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits. 1939 1.8 christos 1940 1.8 christos 2021-02-26 Tom de Vries <tdevries (a] suse.de> 1941 1.8 christos 1942 1.8 christos PR 27390 1943 1.8 christos * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and 1944 1.8 christos DW_FORM_addrx*. 1945 1.8 christos (read_and_display_attr_value): Likewise. 1946 1.8 christos 1947 1.8 christos 2021-02-25 Nick Clifton <nickc (a] redhat.com> 1948 1.8 christos 1949 1.8 christos * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup 1950 1.8 christos forms. 1951 1.8 christos (read_and_display_attr_value): Handle sup forms. 1952 1.8 christos (display_debug_sup): New function. Displays the contents of a 1953 1.8 christos .debug_sup section. 1954 1.8 christos (load_debug_sup_file): New function. Loads the contents of a file 1955 1.8 christos referenced by a .debug_sup section. 1956 1.8 christos (check_for_and_load_links): Call load_debug_sup_file. 1957 1.8 christos (debug_displays): Add entry for .debug_sup. 1958 1.8 christos * dwarf.h (enum dwarf_section_display_enum): Add debug_sup. 1959 1.8 christos * readelf.c (process_section_headers): Add support for debug_sup. 1960 1.8 christos * doc/debug.options.texi: Note that the =links option will display 1961 1.8 christos the contents of .debug_sup sections. 1962 1.8 christos * NEWS: Mention the new support. 1963 1.8 christos 1964 1.8 christos 2021-02-25 Alan Modra <amodra (a] gmail.com> 1965 1.8 christos 1966 1.8 christos PR 27456 1967 1.8 christos * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED. 1968 1.8 christos 1969 1.8 christos 2021-02-24 Nick Clifton <nickc (a] redhat.com> 1970 1.8 christos 1971 1.8 christos PR 27285 1972 1.8 christos * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows 1973 1.8 christos when adding together the section sizes. 1974 1.8 christos 1975 1.8 christos 2021-02-24 Nick Clifton <nickc (a] redhat.com> 1976 1.8 christos 1977 1.8 christos * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU 1978 1.8 christos build notes. 1979 1.8 christos * readelf.c (print_gnu_build_attribute_description): Likewise. 1980 1.8 christos 1981 1.8 christos 2021-02-24 Alan Modra <amodra (a] gmail.com> 1982 1.8 christos Siddhesh Poyarekar <siddhesh (a] gotplt.org> 1983 1.8 christos 1984 1.8 christos PR 27456 1985 1.8 christos * bucomm.h (smart_rename): Update prototype. 1986 1.8 christos * rename.c (smart_rename): Add fromfd and preserve_dates params. 1987 1.8 christos Pass fromfd and target_stat to simple_copy. Call set_times 1988 1.8 christos when preserve_dates. 1989 1.8 christos (simple_copy): Accept fromfd rather than from filename. Add 1990 1.8 christos target_stat param. Rewind fromfd rather than opening. Open 1991 1.8 christos "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID. 1992 1.8 christos * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before 1993 1.8 christos closing output temp file, and pass tmpfd to smart_rename. 1994 1.8 christos * arsup.c (temp_fd): Rename from real_fd. 1995 1.8 christos (ar_save): Dup temp_fd and pass to smart_rename. 1996 1.8 christos * objcopy.c (strip_main, copy_main): Likewise, and pass 1997 1.8 christos preserve_dates. 1998 1.8 christos 1999 1.8 christos 2021-02-24 Alan Modra <amodra (a] gmail.com> 2000 1.8 christos 2001 1.8 christos PR 27456 2002 1.8 christos * rename.c: Tidy throughout. 2003 1.8 christos (smart_rename): Always copy. Remove windows specific code. 2004 1.8 christos 2005 1.8 christos 2021-02-20 Alan Modra <amodra (a] gmail.com> 2006 1.8 christos 2007 1.8 christos * testsuite/lib/binutils-common.exp: Whitespace fixes throughout. 2008 1.8 christos (run_dump_test): Fail if expecting errors from a file like we do 2009 1.8 christos for error strings, if no error is seen. 2010 1.8 christos 2011 1.8 christos 2021-02-19 Alan Modra <amodra (a] gmail.com> 2012 1.8 christos 2013 1.8 christos * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too. 2014 1.8 christos 2015 1.8 christos 2021-02-19 Siddhesh Poyarekar <siddhesh (a] gotplt.org> 2016 1.8 christos 2017 1.8 christos * ar.c (write_archive): Remove TARGET_STAT. Adjust call to 2018 1.8 christos SMART_RENAME. 2019 1.8 christos * arsup.c (ar_save): Likewise. 2020 1.8 christos * objcopy (strip_main): Don't copy TMPFD. Don't set times on 2021 1.8 christos temporary file and adjust call to SMART_RENAME. 2022 1.8 christos (copy_main): Likewise. 2023 1.8 christos * rename.c [!S_ISLNK]: Remove definitions. 2024 1.8 christos (try_preserve_permissions): Remove function. 2025 1.8 christos (smart_rename): Remove FD, PRESERVE_DATES arguments. Use 2026 1.8 christos rename system call only if TO does not exist. 2027 1.8 christos * bucomm.h (smart_rename): Adjust declaration. 2028 1.8 christos 2029 1.8 christos 2021-02-18 Nick Clifton <nickc (a] redhat.com> 2030 1.8 christos 2031 1.8 christos * objcopy.c (merge_gnu_build_notes): Handle notes with a start 2032 1.8 christos address that is higher than the end address. 2033 1.8 christos 2034 1.8 christos 2021-02-17 Alan Modra <amodra (a] gmail.com> 2035 1.8 christos 2036 1.8 christos * dwarf.c: Include limits.h. 2037 1.8 christos (CHAR_BIT): Provide backup define. 2038 1.8 christos (read_leb128): Use CHAR_BIT to size "result" in bits. Correct 2039 1.8 christos signed overflow checking. 2040 1.8 christos * testsuite/binutils-all/pr26548.s, 2041 1.8 christos * testsuite/binutils-all/pr26548.d, 2042 1.8 christos * testsuite/binutils-all/pr26548e.d: New tests. 2043 1.8 christos * testsuite/binutils-all/readelf.exp: Run them. 2044 1.8 christos (readelf_test): Drop unused "xfails" parameter. Update all uses. 2045 1.8 christos 2046 1.8 christos 2021-02-16 Jan Beulich <jbeulich (a] suse.com> 2047 1.8 christos 2048 1.8 christos * dwarf.c (process_debug_info): Initialize "dwo_id". 2049 1.8 christos 2050 1.8 christos 2021-02-15 Alan Modra <amodra (a] gmail.com> 2051 1.8 christos 2052 1.8 christos * objdump.c (load_specific_debug_section): Don't call 2053 1.8 christos bfd_cache_section_contents. Rearrange so that 2054 1.8 christos bfd_get_full_section_contents is not called on path where 2055 1.8 christos bfd_simple_get_relocated_section_contents is called. 2056 1.8 christos Don't set section->user_data. 2057 1.8 christos (free_debug_section): Always free section->start. Don't twiddle 2058 1.8 christos section flags. 2059 1.8 christos * readelf.c (load_specific_debug_section): Don't set user_data. 2060 1.8 christos * dwarf.h (struct dwarf_section): Remove use_data field. 2061 1.8 christos * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit. 2062 1.8 christos 2063 1.8 christos 2021-02-15 Alan Modra <amodra (a] gmail.com> 2064 1.8 christos 2065 1.8 christos * testsuite/binutils-all/compress.exp: Remove nds32 xfails. 2066 1.8 christos * testsuite/binutils-all/objdump.exp: Likewise. 2067 1.8 christos 2068 1.8 christos 2021-02-14 Alan Modra <amodra (a] gmail.com> 2069 1.8 christos 2070 1.8 christos * objdump.c (slurp_symtab): Don't add an extra entry for NULL 2071 1.8 christos to the symbol array. 2072 1.8 christos (slurp_dynamic_symtab): Likewise. 2073 1.8 christos (dump_bfd): Formatting. Copy terminating NULL from extra_syms. 2074 1.8 christos 2075 1.8 christos 2021-02-14 Alan Modra <amodra (a] gmail.com> 2076 1.8 christos 2077 1.8 christos * Makefile.in: Regenerate. 2078 1.8 christos * doc/Makefile.in: Regenerate. 2079 1.8 christos 2080 1.8 christos 2021-02-13 Mike Frysinger <vapier (a] gentoo.org> 2081 1.8 christos 2082 1.8 christos * aclocal.m4: Regenerate. 2083 1.8 christos 2084 1.8 christos 2021-02-12 Nick Clifton <nickc (a] redhat.com> 2085 1.8 christos 2086 1.8 christos * configure.ac (follow-debug-links): Add option to enable or 2087 1.8 christos disable the following of debug links by default. Set the 2088 1.8 christos default for the option to be 'follow'. 2089 1.8 christos * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS. 2090 1.8 christos (dwarf_select_sections_by_names): Add no-follow-links option. 2091 1.8 christos (dwarf_select_sections_by_letter): Add 'N' option. 2092 1.8 christos * objdump.c (usage): Add conditional text describing the 2093 1.8 christos follow links option. 2094 1.8 christos (slurp_symtab): Ensure that there is a NULL entry at the end 2095 1.8 christos of the symbol table. 2096 1.8 christos (slurp_dynamic_symtab): Likewise. 2097 1.8 christos (dump_bfd): When extending the symbol table, ensure that there 2098 1.8 christos is still a NULL entry at the end. 2099 1.8 christos * readelf.c (usage): Add conditional text describing the 2100 1.8 christos follow links option. 2101 1.8 christos * doc/binutils.texi: Update documentation for objcopy and 2102 1.8 christos readelf. 2103 1.8 christos * doc/debug.options.texi: Update documentation of the 2104 1.8 christos follow-links option. 2105 1.8 christos * config.in: Regenerate. 2106 1.8 christos * configure: Regenerate. 2107 1.8 christos * testsuite/binutils-all/compress.exp: Add the -WN option to 2108 1.8 christos objdump command lines that are not expecting to follow links. 2109 1.8 christos * testsuite/binutils-all/readelf.exp: Add the 2110 1.8 christos --debug-dump=no-follow-links option to tests that are not 2111 1.8 christos expecting to follow debug links. 2112 1.8 christos * NEWS: Mention the new behaviour. 2113 1.8 christos 2114 1.8 christos 2021-02-12 Alan Modra <amodra (a] gmail.com> 2115 1.8 christos 2116 1.8 christos * testsuite/binutils-all/objcopy.exp: Report "unsupported" when 2117 1.8 christos gas or ld fails to build a testcase rather than "unresolved". 2118 1.8 christos Report "fail" when readelf returns an error status rather than 2119 1.8 christos "unresolved". 2120 1.8 christos * testsuite/binutils-all/ar.exp: Likewise. 2121 1.8 christos * testsuite/binutils-all/compress.exp: Likewise. 2122 1.8 christos * testsuite/binutils-all/readelf.exp: Likewise. 2123 1.8 christos 2124 1.8 christos 2021-02-12 Alan Modra <amodra (a] gmail.com> 2125 1.8 christos 2126 1.8 christos * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and 2127 1.8 christos "c" with "ccc" labels. 2128 1.8 christos 2129 1.8 christos 2021-02-12 Tom de Vries <tdevries (a] suse.de> 2130 1.8 christos 2131 1.8 christos * dwarf.h (debug_info): Fix typo in comment. 2132 1.8 christos 2133 1.8 christos 2021-02-12 Tom de Vries <tdevries (a] suse.de> 2134 1.8 christos 2135 1.8 christos * dwarf.c (display_debug_str_offsets): Handle multiple sets of 2136 1.8 christos entries. 2137 1.8 christos 2138 1.8 christos 2021-02-12 Tom de Vries <tdevries (a] suse.de> 2139 1.8 christos 2140 1.8 christos * dwarf.c (process_debug_info): Print DWO ID. 2141 1.8 christos 2142 1.8 christos 2021-02-11 Alan Modra <amodra (a] gmail.com> 2143 1.8 christos 2144 1.8 christos PR 27290 2145 1.8 christos PR 27293 2146 1.8 christos PR 27295 2147 1.8 christos * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting. 2148 1.8 christos Use bfd_malloc_and_get_section. 2149 1.8 christos (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity 2150 1.8 christos check namesz. Return NULL if descsz is too small. Ensure 2151 1.8 christos string table is terminated. 2152 1.8 christos (elf32_avr_get_device_info): Formatting. Add note_size param. 2153 1.8 christos Sanity check note. 2154 1.8 christos (elf32_avr_dump_mem_usage): Adjust to suit. 2155 1.8 christos 2156 1.8 christos 2021-02-10 Tom de Vries <tdevries (a] suse.de> 2157 1.8 christos 2158 1.8 christos PR binutils/27391 2159 1.8 christos * dwarf.c (load_dwo_file): Handle case that name is absolute path. 2160 1.8 christos 2161 1.8 christos 2021-02-10 Tom de Vries <tdevries (a] suse.de> 2162 1.8 christos 2163 1.8 christos PR binutils/27371 2164 1.8 christos * dwarf.c (display_debug_ranges): Filter range lists according to 2165 1.8 christos section. 2166 1.8 christos 2167 1.8 christos 2021-02-09 Tom de Vries <tdevries (a] suse.de> 2168 1.8 christos 2169 1.8 christos PR binutils/27370 2170 1.8 christos * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8. 2171 1.8 christos 2172 1.8 christos 2021-02-09 Tom de Vries <tdevries (a] suse.de> 2173 1.8 christos 2174 1.8 christos PR binutils/27386 2175 1.8 christos * dwarf.c (process_debug_info): Handling DW_UT_skeleton and 2176 1.8 christos DW_UT_split_compile. 2177 1.8 christos 2178 1.8 christos 2021-02-09 Alan Modra <amodra (a] gmail.com> 2179 1.8 christos 2180 1.8 christos * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove 2181 1.8 christos symbianelf. 2182 1.8 christos 2183 1.8 christos 2021-02-07 Alan Modra <amodra (a] gmail.com> 2184 1.8 christos 2185 1.8 christos * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer 2186 1.8 christos uninitialised on invalid input. 2187 1.8 christos 2188 1.8 christos 2021-02-06 Alan Modra <amodra (a] gmail.com> 2189 1.8 christos 2190 1.8 christos PR 27349 2191 1.8 christos * rename.c (smart_rename): Test for existence and type of output 2192 1.8 christos file with lstat. 2193 1.8 christos 2194 1.8 christos 2021-02-05 Nick Clifton <nickc (a] redhat.com> 2195 1.8 christos 2196 1.8 christos * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer. 2197 1.8 christos 2198 1.8 christos 2021-02-05 Eli Zaretskii <eliz (a] gnu.org> 2199 1.8 christos 2200 1.8 christos PR 27252 2201 1.8 christos * elfedit.c (check_file): 2202 1.8 christos * bucomm.c (get_file_size): Fix typos in comments. 2203 1.8 christos 2204 1.8 christos 2021-02-05 Alan Modra <amodra (a] gmail.com> 2205 1.8 christos 2206 1.8 christos PR 27345 2207 1.8 christos * arsup.c (ar_save): Use stat rather than lstat. 2208 1.8 christos 2209 1.8 christos 2021-02-03 Alan Modra <amodra (a] gmail.com> 2210 1.8 christos 2211 1.8 christos PR 27270 2212 1.8 christos PR 27284 2213 1.8 christos PR 26945 2214 1.8 christos * ar.c: Don't include libbfd.h. 2215 1.8 christos (write_archive): Replace xmalloc+strcpy with xstrdup. Use 2216 1.8 christos bfd_stat rather than fstat on iostream. Move stat and fd tests 2217 1.8 christos outside of _WIN32 ifdef. Delete skip_stat variable. 2218 1.8 christos * arsup.c (temp_name, real_ofd): New static variables. 2219 1.8 christos (ar_open): Use make_tempname and bfd_fdopenw. 2220 1.8 christos (ar_save): Adjust to suit ar_open changes. Move stat output 2221 1.8 christos of _WIN32 ifdef. 2222 1.8 christos * objcopy.c: Don't include libbfd.h. 2223 1.8 christos (copy_file): Use bfd_stat. 2224 1.8 christos 2225 1.8 christos 2021-02-02 H.J. Lu <hongjiu.lu (a] intel.com> 2226 1.8 christos 2227 1.8 christos PR binutils/27281 2228 1.8 christos * readelf.c (process_section_headers): Add 'R' and 'D' to 2229 1.8 christos "Key to Flags:". 2230 1.8 christos * testsuite/binutils-all/retain1a.d: Updated. 2231 1.8 christos 2232 1.8 christos 2021-01-30 Nick Clifton <nickc (a] redhat.com> 2233 1.8 christos 2234 1.8 christos * README-how-to-make-a-release: Small updates after the 2.35.2 2235 1.8 christos release. 2236 1.8 christos 2237 1.8 christos 2021-01-28 Eli Zaretskii <eliz (a] gnu.org> 2238 1.8 christos 2239 1.8 christos PR 4356 2240 1.8 christos * windres.c (quot): Use double quotes to protect strings on 2241 1.8 christos Windows platforms. 2242 1.8 christos 2243 1.8 christos 2021-01-28 Eli Zaretskii <eliz (a] gnu.org> 2244 1.8 christos 2245 1.8 christos PR 27252 2246 1.8 christos * bucomm.c (get_file_size): Add code to handle /dev/null on 2247 1.8 christos Windows systems. 2248 1.8 christos * elfedit.c (check_file): Likewise. 2249 1.8 christos 2250 1.8 christos 2021-01-27 Nick Clifton <nickc (a] redhat.com> 2251 1.8 christos 2252 1.8 christos * objcopy.c (copy_main): Remove conditional control of the calls 2253 1.8 christos to free, simplifying the code and making it easier to detect 2254 1.8 christos typos. 2255 1.8 christos 2256 1.8 christos 2021-01-26 Frederic Cambus <fred (a] statdns.com> 2257 1.8 christos 2258 1.8 christos * objcopy.c (copy_main): Fix a double free happening when both 2259 1.8 christos --localize-symbols and --globalize-symbols options are invoked 2260 1.8 christos together. 2261 1.8 christos 2262 1.8 christos 2021-01-24 Nick Clifton <nickc (a] redhat.com> 2263 1.8 christos 2264 1.8 christos * README-how-to-make-a-release: Minor updates after the 2.36 release. 2265 1.8 christos 2266 1.8 christos 2021-01-16 Alan Modra <amodra (a] gmail.com> 2267 1.8 christos 2268 1.8 christos * readelf.c (uncompress_section_contents): Tidy inflateEnd result test. 2269 1.8 christos 2270 1.8 christos 2021-01-15 Alan Modra <amodra (a] gmail.com> 2271 1.8 christos 2272 1.8 christos PR 26539 2273 1.8 christos * readelf.c (uncompress_section_contents): Always call inflateEnd. 2274 1.8 christos 2275 1.8 christos 2021-01-14 Alexandre Oliva <oliva (a] gnu.org> 2276 1.8 christos 2277 1.8 christos * MAINTAINERS: Update my email address. 2278 1.8 christos 2279 1.8 christos 2021-01-14 Nick Clifton <nickc (a] redhat.com> 2280 1.8 christos 2281 1.8 christos * po/sv.po: Updated Swedish translation. 2282 1.8 christos 2283 1.8 christos 2021-01-13 Alan Modra <amodra (a] gmail.com> 2284 1.8 christos 2285 1.8 christos * Makefile.in: Regenerate. 2286 1.8 christos * doc/Makefile.in: Regenerate. 2287 1.8 christos 2288 1.8 christos 2021-01-13 Zebediah Figura <z.figura12 (a] gmail.com> 2289 1.8 christos 2290 1.8 christos PR 27037 2291 1.8 christos * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry 2292 1.8 christos and before exit. 2293 1.8 christos (i386_x64_trampoline): Add SEH annotations. 2294 1.8 christos (struct mac): Add how_seh field. 2295 1.8 christos (make_delay_head): If how_set field is true add SEh instructions. 2296 1.8 christos 2297 1.8 christos 2021-01-12 H.J. Lu <hongjiu.lu (a] intel.com> 2298 1.8 christos 2299 1.8 christos PR binutils/26792 2300 1.8 christos * configure.ac: Use GNU_MAKE_JOBSERVER. 2301 1.8 christos * aclocal.m4: Regenerated. 2302 1.8 christos * configure: Likewise. 2303 1.8 christos 2304 1.8 christos 2021-01-12 Nick Clifton <nickc (a] redhat.com> 2305 1.8 christos 2306 1.8 christos * po/fr.po: Updated French translation. 2307 1.8 christos 2308 1.8 christos 2021-01-11 H.J. Lu <hongjiu.lu (a] intel.com> 2309 1.8 christos 2310 1.8 christos PR ld/27173 2311 1.8 christos * configure: Regenerated. 2312 1.8 christos 2313 1.8 christos 2021-01-11 Nick Clifton <nickc (a] redhat.com> 2314 1.6 christos 2315 1.7 christos * po/pt.po: Updated Portuguese translation. 2316 1.8 christos * po/sr.po: Updated Serbian translation. 2317 1.6 christos * po/uk.po: Updated Ukranian translation. 2318 1.6 christos 2319 1.8 christos 2021-01-09 H.J. Lu <hongjiu.lu (a] intel.com> 2320 1.8 christos 2321 1.8 christos * configure: Regenerated. 2322 1.8 christos 2323 1.8 christos 2021-01-09 Nick Clifton <nickc (a] redhat.com> 2324 1.3 christos 2325 1.3 christos * configure: Regenerate. 2326 1.6 christos * po/binutils.pot: Regenerate. 2327 1.6 christos 2328 1.8 christos 2021-01-09 Nick Clifton <nickc (a] redhat.com> 2329 1.3 christos 2330 1.8 christos * 2.36 release branch crated. 2331 1.8 christos * README-how-to-make-a-release: Add note about updating Makefiles 2332 1.8 christos and libtool files. 2333 1.8 christos * BRANCHES: Add binutils-2.36-branch. 2334 1.3 christos 2335 1.8 christos 2021-01-09 Alan Modra <amodra (a] gmail.com> 2336 1.3 christos 2337 1.8 christos * configure: Regenerate. 2338 1.3 christos 2339 1.8 christos 2021-01-07 Samuel Thibault <samuel.thibault (a] gnu.org> 2340 1.3 christos 2341 1.8 christos * configure: Regenerate. 2342 1.3 christos 2343 1.8 christos 2021-01-07 H.J. Lu <hongjiu.lu (a] intel.com> 2344 1.3 christos 2345 1.8 christos PR 27109 2346 1.8 christos * objcopy.c (copy_object): Handle section symbols for 2347 1.8 christos non-relocatable inputs. 2348 1.8 christos * testsuite/binutils-all/readelf.exp (readelf_test): Check 2349 1.8 christos is_elf_unused_section_symbols. 2350 1.8 christos * testsuite/binutils-all/readelf.s-64: Updated. 2351 1.8 christos * testsuite/binutils-all/readelf.ss: Likewise. 2352 1.8 christos * testsuite/binutils-all/readelf.ss-64: Likewise. 2353 1.8 christos * testsuite/binutils-all/readelf.s-64-unused: New file. 2354 1.8 christos * testsuite/binutils-all/readelf.ss-64-unused: Likewise. 2355 1.8 christos * testsuite/binutils-all/readelf.ss-unused: Likewise. 2356 1.8 christos * testsuite/lib/binutils-common.exp 2357 1.8 christos (is_elf_unused_section_symbols): New proc. 2358 1.8 christos 2359 1.8 christos 2021-01-06 Reuben Thomas <rrt (a] sc3d.org> 2360 1.8 christos 2361 1.8 christos * binutils/readelf.c: Correct grammar in comment. 2362 1.8 christos 2363 1.8 christos 2021-01-01 Nicolas Boulenguez <nicolas (a] debian.org> 2364 1.8 christos 2365 1.8 christos * coffgrok.c (do_type): Correct spelling of auxiliary in errors. 2366 1.8 christos * doc/binutils.texi: Correct grammar. 2367 1.8 christos * readelf.c (process_version_sections): Correct spelling of auxiliary 2368 1.8 christos in warning. 2369 1.8 christos * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix. 2370 1.1 christos 2371 1.8 christos 2021-01-01 Alan Modra <amodra (a] gmail.com> 2372 1.1 christos 2373 1.3 christos Update year range in copyright notice of all files. 2374 1.1 christos 2375 1.8 christos For older changes see ChangeLog-2020 2376 1.1 christos 2378 1.3 christos Copyright (C) 2021-2025 Free Software Foundation, Inc. 2379 1.3 christos 2380 1.3 christos Copying and distribution of this file, with or without modification, 2381 1.3 christos are permitted in any medium without royalty provided the copyright 2382 1.3 christos notice and this notice are preserved. 2383 1.1 christos 2384 1.1 christos Local Variables: 2385 1.1 christos mode: change-log 2386 1.1 christos left-margin: 8 2387 1.1 christos fill-column: 74 2388 1.1 christos version-control: never 2389 End: 2390