1 1.1 christos 2019-12-30 Alan Modra <amodra (a] gmail.com> 2 1.1 christos 3 1.1 christos * od-macho.c: Include elfcomm.h. 4 1.1 christos (dump_dyld_info_rebase, dump_dyld_info_bind): Fix read_leb128 args. 5 1.1 christos (dump_dyld_info_export_1, dump_segment_split_info): Likewise. 6 1.1 christos 7 1.1 christos 2019-12-23 Hans-Peter Nilsson <hp (a] axis.com> 8 1.1 christos 9 1.1 christos * dwarf.c (display_debug_lines_decoded): Cast printf parameter to 10 1.1 christos format type to correct last change. 11 1.1 christos 12 1.1 christos 2019-12-23 Alan Modra <amodra (a] gmail.com> 13 1.1 christos 14 1.1 christos * dwarf.h (read_leb128): Update prototype. 15 1.1 christos (report_leb_status): New inline function. 16 1.1 christos (SKIP_ULEB, SKIP_SLEB, READ_ULEB, READ_SLEB): Define. 17 1.1 christos * dwarf.c: Use above macros throughout file. Formatting. 18 1.1 christos (read_leb128): Reorder params. Add status return param. 19 1.1 christos Don't stop reading until finding terminator or end of data. 20 1.1 christos Detect loss of significant bits. Sign extend only on 21 1.1 christos terminating byte. 22 1.1 christos (read_sleb128, read_uleb128): Delete functions. 23 1.1 christos (SKIP_ULEB, SKIP_SLEB, READ_ULEB, READ_SLEB): Delete macros. 24 1.1 christos (read_and_print_leb128): Rewrite. 25 1.1 christos (process_extended_line_op): Return a size_t. Use size_t vars. 26 1.1 christos Adjust to suit new macros. Add proper name size to "data" when 27 1.1 christos processing DW_LNE_define_file. 28 1.1 christos (process_abbrev_section): Adjust to suit new macros. 29 1.1 christos (decode_location_expression, skip_attr_bytes): Likewise. 30 1.1 christos (get_type_signedness): Likewise. 31 1.1 christos (read_and_display_attr_value): Likewise. Consolidate block code. 32 1.1 christos (process_debug_info): Adjust to suit new macros. 33 1.1 christos (display_formatted_table, display_debug_lines_raw): Likewise. 34 1.1 christos (display_debug_lines_decoded): Likewise. Properly check for end 35 1.1 christos of DW_LNS_extended_op. 36 1.1 christos (display_debug_macinfo): Adjust to suit new macros. 37 1.1 christos (get_line_filename_and_dirname, display_debug_macro): Likewise. 38 1.1 christos (display_view_pair_list): Likewise. Don't back off when hitting 39 1.1 christos end of data. 40 1.1 christos (display_loc_list): Adjust to suit new macros. 41 1.1 christos (display_loclists_list, display_loc_list_dwo): Likewise. 42 1.1 christos (display_debug_rnglists_list, read_cie): Likewise. 43 1.1 christos (display_debug_frames): Likewise. 44 1.1 christos * readelf.c: Use new ULEB macros throughout file. 45 1.1 christos (read_uleb128): Delete. 46 1.1 christos (decode_arm_unwind_bytecode): Use read_leb128. 47 1.1 christos (decode_tic6x_unwind_bytecode): Likewise. 48 1.1 christos (display_tag_value): Adjust to suit new macros. 49 1.1 christos (display_arc_attribute, display_arm_attribute): Likewise. 50 1.1 christos (display_gnu_attribute, display_power_gnu_attribute): Likewise. 51 1.1 christos (display_s390_gnu_attribute, display_sparc_gnu_attribute): Likewise. 52 1.1 christos (display_mips_gnu_attribute, display_tic6x_attribute): Likewise. 53 1.1 christos (display_msp430x_attribute, display_msp430_gnu_attribute): Likewise. 54 1.1 christos (display_riscv_attribute, process_attributes): Likewise. 55 1.1 christos 56 1.1 christos 2019-12-17 Alan Modra <amodra (a] gmail.com> 57 1.1 christos 58 1.1 christos * objdump.c (compare_section): New static var. 59 1.1 christos (compare_symbols): Sort by current section only. Don't access 60 1.1 christos symbol name out of bounds when checking for file symbols. 61 1.1 christos Sort section symbols and object symbols. 62 1.1 christos (find_symbol_for_address): Remove bogus debugging and section 63 1.1 christos symbol test. 64 1.1 christos (disassemble_data): Move symbol sort from here.. 65 1.1 christos (disassemble_section): ..to here. Set compare_section. 66 1.1 christos 67 1.1 christos 2019-12-17 Alan Modra <amodra (a] gmail.com> 68 1.1 christos 69 1.1 christos * testsuite/binutils-all/objcopy.exp: Remove tic80 support. 70 1.1 christos * testsuite/binutils-all/objdump.exp: Likewise. 71 1.1 christos 72 1.1 christos 2019-12-11 Alan Modra <amodra (a] gmail.com> 73 1.1 christos 74 1.1 christos * od-xcoff.c (dump_dumpx_core): Adjust for bfd_h_get_8 change. 75 1.1 christos 76 1.1 christos 2019-12-10 Alan Modra <amodra (a] gmail.com> 77 1.1 christos 78 1.1 christos PR 24960 79 1.1 christos * objdump.c (disassemble_data): Call disassemble_free_target. 80 1.1 christos 81 1.1 christos 2019-12-10 Alan Modra <amodra (a] gmail.com> 82 1.1 christos 83 1.1 christos * objdump.c (struct objdump_disasm_info): Delete "sec". 84 1.1 christos (find_symbol_for_address): Use inf->section rather than aux->sec. 85 1.1 christos (objdump_print_addr, disassemble_bytes): Likewise. 86 1.1 christos (disassemble_section): Don't set aux->sec. 87 1.1 christos 88 1.1 christos 2019-12-08 Alan Modra <amodra (a] gmail.com> 89 1.1 christos 90 1.1 christos * testsuite/lib/binutils-common.exp (regexp_diff): Support #?REGEXP. 91 1.1 christos 92 1.1 christos 2019-11-22 Andrew Burgess <andrew.burgess (a] embecosm.com> 93 1.1 christos 94 1.1 christos * dwarf.c (regname_internal_riscv): New function. 95 1.1 christos (init_dwarf_regnames_riscv): Use new function. 96 1.1 christos 97 1.1 christos 2019-11-22 Andrew Burgess <andrew.burgess (a] embecosm.com> 98 1.1 christos 99 1.1 christos * dwarf.c (typedef dwarf_regname_lookup_ftype): New typedef. 100 1.1 christos (dwarf_regnames_lookup_func): New static global. 101 1.1 christos (init_dwarf_regnames_i386): Set dwarf_regnames_lookup_func. 102 1.1 christos (init_dwarf_regnames_iamcu): Likewise. 103 1.1 christos (init_dwarf_regnames_x86_64): Likewise. 104 1.1 christos (init_dwarf_regnames_aarch64): Likewise. 105 1.1 christos (init_dwarf_regnames_s390): Likewise. 106 1.1 christos (init_dwarf_regnames_riscv): Likewise. 107 1.1 christos (init_dwarf_regnames_by_elf_machine_code): Reset 108 1.1 christos dwarf_regnames_lookup_func to NULL. 109 1.1 christos (init_dwarf_regnames_by_bfd_arch_and_mach): Likewise. 110 1.1 christos (regname_internal_by_table_only): New function. 111 1.1 christos (regname): Make use of dwarf_regnames_lookup_func. 112 1.1 christos 113 1.1 christos 2019-11-22 Andrew Burgess <andrew.burgess (a] embecosm.com> 114 1.1 christos 115 1.1 christos * dwarf.c (init_dwarf_regnames_i386): Make static. 116 1.1 christos (init_dwarf_regnames_iamcu): Make static. 117 1.1 christos (init_dwarf_regnames_x86_64): Make static. 118 1.1 christos (init_dwarf_regnames_aarch64): Make static. 119 1.1 christos (init_dwarf_regnames_s390): Make static. 120 1.1 christos (init_dwarf_regnames_riscv): Make static. 121 1.1 christos * dwarf.h (init_dwarf_regnames_i386): Delete declaration. 122 1.1 christos (init_dwarf_regnames_iamcu): Delete declaration. 123 1.1 christos (init_dwarf_regnames_x86_64): Delete declaration. 124 1.1 christos (init_dwarf_regnames_aarch64): Delete declaration. 125 1.1 christos (init_dwarf_regnames_s390): Delete declaration. 126 1.1 christos (init_dwarf_regnames_riscv): Delete declaration. 127 1.1 christos 128 1.1 christos 2019-11-22 Andrew Burgess <andrew.burgess (a] embecosm.com> 129 1.1 christos 130 1.1 christos * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): New 131 1.1 christos function. 132 1.1 christos * dwarf.h (init_dwarf_regnames_by_bfd_arch_and_mach): Declare. 133 1.1 christos * objdump.c (dump_dwarf): Call new function instead of calling 134 1.1 christos specific initialization routines. Restrucure so that eh_addr_size 135 1.1 christos is still calculated correctly. 136 1.1 christos 137 1.1 christos 2019-11-22 Andrew Burgess <andrew.burgess (a] embecosm.com> 138 1.1 christos 139 1.1 christos * dwarf.c (init_dwarf_regnames): Renamed to... 140 1.1 christos (init_dwarf_regnames_by_elf_machine_code): ...this. 141 1.1 christos * dwarf.h (init_dwarf_regnames): Renamed to... 142 1.1 christos (init_dwarf_regnames_by_elf_machine_code): ...this. 143 1.1 christos * readelf.c (process_file_header): Update call to use new name. 144 1.1 christos 145 1.1 christos 2019-11-22 Andrew Burgess <andrew.burgess (a] embecosm.com> 146 1.1 christos 147 1.1 christos * dwarf.c (frame_need_space): Compare dwarf_regnames_count against 148 1.1 christos 0, and only warn about large numbers of registers if the number is 149 1.1 christos more than the dwarf_regnames_count. 150 1.1 christos 151 1.1 christos 2019-11-25 Christian Eggers <ceggers (a] gmx.de> 152 1.1 christos 153 1.1 christos * objdump.c (disassemble_data): Provide section parameter to 154 1.1 christos bfd_octets_per_byte. 155 1.1 christos (dump_section): likewise 156 1.1 christos (dump_section_header): likewise. Show SEC_ELF_OCTETS flag if set. 157 1.1 christos 158 1.1 christos 2019-11-21 Alan Modra <amodra (a] gmail.com> 159 1.1 christos 160 1.1 christos PR 273 161 1.1 christos * size.c (sysv_internal_sizer, sysv_internal_printer): Exclude 162 1.1 christos sections with no flag bits set. 163 1.1 christos * testsuite/binutils-all/size.exp: Allow $CODE$ as a text section. 164 1.1 christos 165 1.1 christos 2019-11-21 Nick Clifton <nickc (a] redhat.com> 166 1.1 christos 167 1.1 christos * objcopy.c (merge_gnu_build_notes): Allow for the possibility 168 1.1 christos that the new notes might actually be larger than the original 169 1.1 christos notes. 170 1.1 christos 171 1.1 christos 2019-11-21 Alan Modra <amodra (a] gmail.com> 172 1.1 christos 173 1.1 christos * testsuite/lib/binutils-common.exp (is_pecoff_format): Rewrite 174 1.1 christos with positive logic and add more target triples. 175 1.1 christos 176 1.1 christos 2019-11-19 Alan Modra <amodra (a] gmail.com> 177 1.1 christos 178 1.1 christos PR 24499 179 1.1 christos * objcopy.c (copy_file): Ignore --add-gnu-debuglink for archives. 180 1.1 christos 181 1.1 christos 2019-11-19 Alan Modra <amodra (a] gmail.com> 182 1.1 christos 183 1.1 christos PR 24968 184 1.1 christos * objcopy.c (copy_object): For ELF output and non-ELF input without 185 1.1 christos arch, take arch from output file if not given by -B. Don't 186 1.1 christos bfd_get_arch_info when we already have iarch. 187 1.1 christos 188 1.1 christos 2019-11-19 Alan Modra <amodra (a] gmail.com> 189 1.1 christos 190 1.1 christos PR 25191 191 1.1 christos * objcopy.c (is_nondebug_keep_contents_section): Use bfd_get_flavour. 192 1.1 christos (copy_object): Likewise. 193 1.1 christos (setup_section): Likewise. If flavour of input and output files 194 1.1 christos differ, restrict section flags to the intersection of input and 195 1.1 christos output bfd_applicable_section_flags. 196 1.1 christos 197 1.1 christos 2019-11-19 Alan Modra <amodra (a] gmail.com> 198 1.1 christos 199 1.1 christos * bucomm.c (bfd_nonfatal_message): Add a space between program 200 1.1 christos name and file. 201 1.1 christos 202 1.1 christos 2019-11-18 Alan Modra <amodra (a] gmail.com> 203 1.1 christos 204 1.1 christos PR 25198 205 1.1 christos * prdbg.c (tg_start_class_type): Correct scope of idbuf. 206 1.1 christos 207 1.1 christos 2019-11-08 Alan Modra <amodra (a] gmail.com> 208 1.1 christos 209 1.1 christos PR 25172 210 1.1 christos * objdump.c (usage): Correct --stop-address description. 211 1.1 christos 212 1.1 christos 2019-11-07 Nick Clifton <nickc (a] redhat.com> 213 1.1 christos 214 1.1 christos * ar.c (open_output_file): Check for filename validity before 215 1.1 christos prefixing with output directory. 216 1.1 christos Display the constructed output filename if in verbose mode. 217 1.1 christos (extract_file): Let open_output_file display the filename. 218 1.1 christos 219 1.1 christos 2019-11-07 Nick Clifton <nickc (a] redhat.com> 220 1.1 christos 221 1.1 christos * objcopy.c (copy_object): Skip note sections that do not have 222 1.1 christos an output section. Always copy note sections, even if no 223 1.1 christos changes are made. 224 1.1 christos 225 1.1 christos 2019-11-06 Christian Eggers <ceggers (a] gmx.de> 226 1.1 christos 227 1.1 christos * readelf.c (IN_RANGE): Rename parameter OFF to NELEM. Add 228 1.1 christos comment. Catch potential integer overflow and fix off by one 229 1.1 christos error whilst checking reloc location against section size. 230 1.1 christos (apply_relocations): Use IN_RANGE macro. 231 1.1 christos 232 1.1 christos 2019-11-04 Fangrui Song <maskray (a] google.com> 233 1.1 christos 234 1.1 christos * objcopy.c (enum option_values): Add OPTION_KEEP_SECTION. 235 1.1 christos (SECTION_CONTEXT_KEEP): Define. Adjust other SECTION_CONTEXT macros. 236 1.1 christos (copy_usage): Describe --keep-section. 237 1.1 christos (strip_usage): Likewise. 238 1.1 christos (copy_main): Handle SECTION_CONTEXT_KEEP. 239 1.1 christos (strip_main): Likewise. 240 1.1 christos (is_strip_section_1): Likewise. 241 1.1 christos * testsuite/binutils-all/objcopy.exp: Add tests. 242 1.1 christos * testsuite/binutils-all/keep-section-1.d: New test driver file. 243 1.1 christos * testsuite/binutils-all/keep-section-2.d: Likewise. 244 1.1 christos * doc/binutils.texi: Document the new feature. 245 1.1 christos * NEWS: Mention the new feature. 246 1.1 christos 247 1.1 christos 2019-10-20 Palmer Dabbelt <palmer (a] sifive.com> 248 1.1 christos 249 1.1 christos * MAINTAINERS: Change palmer (a] sifive.com to palmer (a] dabbelt.com. 250 1.1 christos 251 1.1 christos 2019-10-30 Fangrui Song <i (a] maskray.me> 252 1.1 christos Nick Clifton <nickc (a] redhat.com> 253 1.1 christos 254 1.1 christos * ar.c (emum long option numbers): Declare. Use to provide 255 1.1 christos numerical values for long options. 256 1.1 christos (long_options): Add --output option. 257 1.1 christos (usage): Mention the --output option. 258 1.1 christos (open_output_file): New function. Create a filepath for an output 259 1.1 christos file and open it. 260 1.1 christos (extract_file): Use open_output_file(). 261 1.1 christos (open_output_file): 262 1.1 christos * testsuite/binutils-all/ar.exp: Add a test of the new feature. 263 1.1 christos * doc/binutils.texi: Document the new feature. 264 1.1 christos * NEWS: Mention the new feature. 265 1.1 christos 266 1.1 christos 2019-10-26 Alan Modra <amodra (a] gmail.com> 267 1.1 christos 268 1.1 christos * objcopy.c (sort_gnu_build_notes): Correct sort of deleted 269 1.1 christos note2. 270 1.1 christos 271 1.1 christos 2019-10-25 H.J. Lu <hongjiu.lu (a] intel.com> 272 1.1 christos 273 1.1 christos * elfedit.c (elf_x86_feature): Report unknown x86 feature. 274 1.1 christos 275 1.1 christos 2019-10-25 H.J. Lu <hongjiu.lu (a] intel.com> 276 1.1 christos 277 1.1 christos * elfedit.c (update_gnu_property): Replace BYTE_PUT with byte_put. 278 1.1 christos 279 1.1 christos 2019-10-25 Nick Clifton <nickc (a] redhat.com> 280 1.1 christos 281 1.1 christos * objcopy.c (struct merged_note_section): New structure. Used to 282 1.1 christos chain together details of mergeable note sections. 283 1.1 christos (is_merged_note_section): Rename to is_megreable_note_section and 284 1.1 christos return true for note sections that use GNU_BUILD_ATTRS_SECTION_NAME 285 1.1 christos as a prefix. 286 1.1 christos (num_bytes): Delete 287 1.1 christos (objcoopy_internal_note): Add padded_namesz field. 288 1.1 christos (DEBUG_MERGE): New macro. Set to non-zero to enable debugging of 289 1.1 christos the note merging code. 290 1.1 christos (gap_exists): Rename to overlaps_or_adjoins and return TRUE for 291 1.1 christos overlapping notes or adjoining notes. 292 1.1 christos (contained_by, is_deleted_note, is_version_note) 293 1.1 christos (compare_gnu_build_notes, sort_gnu_build_notes): New functions. 294 1.1 christos (merge_gnu_build_notes): Rework. Sort notes into a mergeable 295 1.1 christos order first. Merge them. Then sort them into an ascending 296 1.1 christos address order before writing them out. 297 1.1 christos (copy_object): Handle more than one mergeable note section. 298 1.1 christos * testsuite/binutils-all/note-2-32.d: Update for new merging 299 1.1 christos behaviour. 300 1.1 christos * testsuite/binutils-all/note-2-32.s: Likewise. 301 1.1 christos * testsuite/binutils-all/note-2-64.d: Likewise. 302 1.1 christos * testsuite/binutils-all/note-2-64.s: Likewise. 303 1.1 christos * testsuite/binutils-all/note-3-32.d: Likewise. 304 1.1 christos * testsuite/binutils-all/note-3-32.s: Likewise. 305 1.1 christos * testsuite/binutils-all/note-3-64.d: Likewise. 306 1.1 christos * testsuite/binutils-all/note-3-64.s: Likewise. 307 1.1 christos * testsuite/binutils-all/note-4-32.d: Likewise. 308 1.1 christos * testsuite/binutils-all/note-4-32.s: Likewise. 309 1.1 christos * testsuite/binutils-all/note-4-64.d: Likewise. 310 1.1 christos * testsuite/binutils-all/note-4-64.s: Likewise. 311 1.1 christos * testsuite/binutils-all/note-6-32.s: New test source file. 312 1.1 christos * testsuite/binutils-all/note-6-64.s: New test source file. 313 1.1 christos * testsuite/binutils-all/note-6-32.d: New test driver file. 314 1.1 christos * testsuite/binutils-all/note-6-64.d: New test driver file. 315 1.1 christos * testsuite/binutils-all/objcopy.exp: Run the new test. 316 1.1 christos 317 1.1 christos 2019-10-25 Alan Modra <amodra (a] gmail.com> 318 1.1 christos 319 1.1 christos * readelf.c (process_program_headers): Check PT_PHDR p_offset 320 1.1 christos as well as p_vaddr. Use p_filesz, not p_memsz, in vaddr test. 321 1.1 christos 322 1.1 christos 2019-10-21 Alan Modra <amodra (a] gmail.com> 323 1.1 christos 324 1.1 christos PR 452 325 1.1 christos PR 25104 326 1.1 christos * ar.c (write_archive): Set BFD_ARCHIVE_FULL_PATH. 327 1.1 christos * doc/binutils.texi (extract from archive): Mention 328 1.1 christos restrictions when extracting from archives with full paths. 329 1.1 christos (ar P): Update to current P support. 330 1.1 christos (ar -X32_64): Fix spelling. 331 1.1 christos 332 1.1 christos 2019-10-14 Alan Modra <amodra (a] gmail.com> 333 1.1 christos 334 1.1 christos * objcopy.c (compare_section_lma): Correct comment. Dereference 335 1.1 christos section pointer earlier and lose unnecessary const. Style fixes. 336 1.1 christos Add final sort by id. 337 1.1 christos 338 1.1 christos 2019-10-13 Nick Clifton <nickc (a] redhat.com> 339 1.1 christos 340 1.1 christos * README-how-to-make-a-release: Add a note to reset the 341 1.1 christos development flag back to true after making a point release. 342 1.1 christos 343 1.1 christos 2019-10-12 Nick Clifton <nickc (a] redhat.com> 344 1.1 christos 345 1.1 christos * README-how-to-make-a-release: Tweak a few sections based on the 346 1.1 christos results of the 2.33.1 release. 347 1.1 christos 348 1.1 christos 2019-10-11 Nick Clifton <nickc (a] redhat.com> 349 1.1 christos 350 1.1 christos * po/zh_TW.po: Updated Chinese (traditional) translation. 351 1.1 christos 352 1.1 christos 2019-10-09 Alan Modra <amodra (a] gmail.com> 353 1.1 christos 354 1.1 christos PR 25079 355 1.1 christos * ar.c (decode_options): Don't try for command options if 356 1.1 christos write_armap or mri_mode is selected. 357 1.1 christos 358 1.1 christos 2019-10-07 Jozef Lawrynowicz <jozef.l (a] mittosystems.com> 359 1.1 christos 360 1.1 christos * readelf.c (display_msp430_gnu_attribute): New. 361 1.1 christos (process_arch_specific): Use msp430 specific handler for GNU 362 1.1 christos attributes. 363 1.1 christos 364 1.1 christos 2019-09-30 Nick Alcock <nick.alcock (a] oracle.com> 365 1.1 christos 366 1.1 christos * objdump.c (main): Fix tabdamage. 367 1.1 christos * readelf.c (CTF_DUMP): Likewise. 368 1.1 christos (options): Likewise. 369 1.1 christos (dump_section_as_ctf): Likewise. 370 1.1 christos 371 1.1 christos 2019-08-03 Nick Alcock <nick.alcock (a] oracle.com> 372 1.1 christos 373 1.1 christos * objdump.c (dump_ctf): Use the default CTF archive member as the 374 1.1 christos parent even when no parent section is specified. 375 1.1 christos (dump_ctf_archive_member): Only import from the parent 376 1.1 christos if this is not the default ".ctf" member. 377 1.1 christos 378 1.1 christos 2019-09-23 Nick Alcock <nick.alcock (a] oracle.com> 379 1.1 christos 380 1.1 christos * Makefile.am (LIBCTF): Mention the .la file. 381 1.1 christos (LIBCTF_NOBFD): New. 382 1.1 christos (readelf_DEPENDENCIES): Use it. 383 1.1 christos (readelf_LDADD): Likewise. 384 1.1 christos * Makefile.in: Regenerated. 385 1.1 christos 386 1.1 christos 2019-07-13 Nick Alcock <nick.alcock (a] oracle.com> 387 1.1 christos 388 1.1 christos * readelf.c (dump_ctf_symtab_name): Give default value. 389 1.1 christos (dump_ctf_strtab_name): Likewise. 390 1.1 christos (dump_section_as_ctf): Allow for the null string. 391 1.1 christos 392 1.1 christos 2019-07-08 Nick Alcock <nick.alcock (a] oracle.com> 393 1.1 christos 394 1.1 christos * objdump.c (dump_ctf_archive_member): Dump the CTF header. 395 1.1 christos * readelf.c (dump_section_as_ctf): Likewise. 396 1.1 christos 397 1.1 christos 2019-10-02 Niklas Grtler <profclonk (a] gmail.com> 398 1.1 christos 399 1.1 christos PR 24942 400 1.1 christos * objcopy.c (copy_usage): Update description of 401 1.1 christos --set-section-alignment. 402 1.1 christos (copy_main): Interpret numeric argument of --set-section-alignment 403 1.1 christos as a byte alignment, not a power of two alignment. 404 1.1 christos * doc/binutils.texi: Update description of 405 1.1 christos --set-section-alignment. 406 1.1 christos * testsuite/binutils-all/set-section-alignment.d: New test. 407 1.1 christos * testsuite/binutils-all/objcopy.exp: Run the new test. 408 1.1 christos 409 1.1 christos 2019-09-30 Alan Modra <amodra (a] gmail.com> 410 1.1 christos 411 1.1 christos PR 25046 412 1.1 christos * readelf.c (process_program_headers): Clear dynamic_addr and 413 1.1 christos dynamic_size earlier. 414 1.1 christos 415 1.1 christos 2019-09-24 Alan Modra <amodra (a] gmail.com> 416 1.1 christos 417 1.1 christos PR 25031 418 1.1 christos * nm.c (print_format_string): New. 419 1.1 christos (get_print_format): Delete saved_format. Move earlier. 420 1.1 christos (set_print_width): Call get_print_format. 421 1.1 christos (print_value): Use print_format_string. 422 1.1 christos 423 1.1 christos 2019-09-23 Alan Modra <amodra (a] gmail.com> 424 1.1 christos 425 1.1 christos * dlltool.c: Include coff-bfd.h. 426 1.1 christos 427 1.1 christos 2019-09-23 Alan Modra <amodra (a] gmail.com> 428 1.1 christos 429 1.1 christos PR 25018 430 1.1 christos * dwarf.c (get_type_signedness): Delete ineffective pointer 431 1.1 christos comparison check. Properly range check uvalue offset on 432 1.1 christos recursive call. 433 1.1 christos (read_and_display_attr_value): Range check uvalue offset before 434 1.1 christos calling get_type_signedness. 435 1.1 christos 436 1.1 christos 2019-09-20 Alan Modra <amodra (a] gmail.com> 437 1.1 christos 438 1.1 christos * ar.c (write_archive): Use bfd_set_thin_archive. 439 1.1 christos 440 1.1 christos 2019-09-18 Tamar Christina <tamar.christina (a] arm.com> 441 1.1 christos 442 1.1 christos * testsuite/binutils-all/objdump.exp (objump -S): Update testcases. 443 1.1 christos 444 1.1 christos 2019-09-18 Alan Modra <amodra (a] gmail.com> 445 1.1 christos 446 1.1 christos * addr2line.c, * bucomm.c, * coffgrok.c, * dlltool.c, * nm.c, 447 1.1 christos * objcopy.c, * objdump.c, * od-elf32_avr.c, * od-macho.c, 448 1.1 christos * od-xcoff.c, * prdbg.c, * rdcoff.c, * rddbg.c, * rescoff.c, 449 1.1 christos * resres.c, * size.c, * srconv.c, * strings.c, * windmc.c: Update 450 1.1 christos throughout for bfd section macro and function changes. 451 1.1 christos 452 1.1 christos 2019-09-18 Alan Modra <amodra (a] gmail.com> 453 1.1 christos 454 1.1 christos * nm.c: Update bfd_get_section to bfd_asymbol_section throughout. 455 1.1 christos * objcopy.c: Likewise. 456 1.1 christos * objdump.c: Likewise. 457 1.1 christos * rdcoff.c: Likewise. 458 1.1 christos * objcopy.c (create_new_symbol): Use bfd_set_asymbol_name. 459 1.1 christos (filter_symbols): Likewise. 460 1.1 christos 461 1.1 christos 2019-09-18 Simon Marchi <simon.marchi (a] polymtl.ca> 462 1.1 christos 463 1.1 christos * doc/Makefile.am (MOSTLYCLEANFILES): Clean all man pages, 464 1.1 christos cxxfilt.man and binutils.info. 465 1.1 christos (MAINTAINERCLEANFILES): Remove. 466 1.1 christos * doc/Makefile.in: Re-generate. 467 1.1 christos 468 1.1 christos 2019-09-18 Simon Marchi <simon.marchi (a] polymtl.ca> 469 1.1 christos 470 1.1 christos * doc/Makefile.am: Remove references to binutils_TEXINFOS. 471 1.1 christos * doc/Makefile.in: Re-generate. 472 1.1 christos 473 1.1 christos 2019-09-18 Simon Marchi <simon.marchi (a] polymtl.ca> 474 1.1 christos 475 1.1 christos * doc/Makefile.am (install-data-loca): Remove target. 476 1.1 christos (DISTCLEANFILES): Remove variable. 477 1.1 christos * doc/Makefile.in: Re-generate. 478 1.1 christos 479 1.1 christos 2019-09-18 Simon Marchi <simon.marchi (a] polymtl.ca> 480 1.1 christos 481 1.1 christos * Makefile.in: Re-generate. 482 1.1 christos * configure: Re-generate. 483 1.1 christos * doc/Makefile.in: Re-generate. 484 1.1 christos 485 1.1 christos 2019-09-16 Phil Blundell <pb (a] pbcl.net> 486 1.1 christos 487 1.1 christos * Makefile.in, configure. doc/Makefile.in: Regenerated. 488 1.1 christos 489 1.1 christos 2019-09-11 Tom Tromey <tom (a] tromey.com> 490 1.1 christos 491 1.1 christos * objcopy.c (copy_archive): Update. 492 1.1 christos * bucomm.h (make_tempname, make_tempdir): Make argument const. 493 1.1 christos * bucomm.c (make_tempname, make_tempdir): Make argument const. 494 1.1 christos 495 1.1 christos 2019-09-11 Alan Modra <amodra (a] gmail.com> 496 1.1 christos 497 1.1 christos PR 24907 498 1.1 christos * objdump.c (disassemble_bytes): Adjust code to avoid overlong 499 1.1 christos lines. Correct max_reloc_offset_into_insn test. 500 1.1 christos 501 1.1 christos 2019-09-10 Nick Clifton <nickc (a] redhat.com> 502 1.1 christos 503 1.1 christos PR 24907 504 1.1 christos * objdump.c (null_print): New function. 505 1.1 christos (disassemble_bytes): Delete previous_octets local and replace with 506 1.1 christos a test of the max_reloc_offset_into_insn field of the 507 1.1 christos bfd_arch_info structure. If a reloc is a potential match for the 508 1.1 christos next insn, then perform a dummy disassembly in order to calculate 509 1.1 christos its real length. 510 1.1 christos 511 1.1 christos 2019-09-09 Phil Blundell <pb (a] pbcl.net> 512 1.1 christos 513 1.1 christos binutils 2.33 branch created. 514 1.1 christos 515 1.1 christos 2019-09-06 Alan Modra <amodra (a] gmail.com> 516 1.1 christos 517 1.1 christos * nm.c (print_object_filename_bsd, print_object_filename_sysv), 518 1.1 christos (print_object_filename_posix, print_archive_filename_bsd), 519 1.1 christos (print_archive_filename_sysv, print_archive_filename_posix), 520 1.1 christos (print_archive_member_bsd, print_archive_member_sysv), 521 1.1 christos (print_archive_member_posix): Constify parameter. 522 1.1 christos (struct output_fns <print_object_filename, print_archive_filename>), 523 1.1 christos (<print_archive_member>): Likewise. 524 1.1 christos * objcopy.c (copy_archive): Add cast for make_tempdir. 525 1.1 christos 526 1.1 christos 2019-08-29 Alan Modra <amodra (a] gmail.com> 527 1.1 christos 528 1.1 christos * dwarf.c (check_uvalue): Remove unnecessary pointer checks. 529 1.1 christos 530 1.1 christos 2019-08-28 Niklas Grtler <profclonk (a] gmail.com> 531 1.1 christos 532 1.1 christos PR 24942 533 1.1 christos * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant. 534 1.1 christos (struct section_list): Add alignment field. 535 1.1 christos (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT. 536 1.1 christos (copy_options): Add --set-section-alignment. 537 1.1 christos (copy_usage): Describe --set-section-alignment. 538 1.1 christos (find_section_list): Initialise the alignment field. 539 1.1 christos (setup_section): Handle the alignment field. 540 1.1 christos (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT. 541 1.1 christos * doc/binutils.texi: Document the new feature. 542 1.1 christos * NEWS: Mention the new feature. 543 1.1 christos 544 1.1 christos 2019-08-28 Nick Clifton <nickc (a] redhat.com> 545 1.1 christos 546 1.1 christos PR 24931 547 1.1 christos * objdump.c (source_comment): New static variable. 548 1.1 christos (option_values): Add OPTION_SOURCE_COMMENT. 549 1.1 christos (long_opions): Add --source-comment. 550 1.1 christos (print_line): If source comment is set, use it as a prefix to the 551 1.1 christos source code line. 552 1.1 christos (main): Handle OPTION_SOURCE_COMMENT. 553 1.1 christos * doc/binutils.texi: Document the new option. 554 1.1 christos * NEWS: Mention the new feature. 555 1.1 christos * testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests 556 1.1 christos of the -S and --source-comment options. 557 1.1 christos 558 1.1 christos 2019-08-27 Nick Clifton <nickc (a] redhat.com> 559 1.1 christos 560 1.1 christos PR 24510 561 1.1 christos * dwarf.c (MAX_CU_NESTING): New constant. 562 1.1 christos (level_type_signed): New static array. 563 1.1 christos (skip_attr_bytes): New function. 564 1.1 christos (get_type_signedness): New function. 565 1.1 christos (read_and_print_leb128): New function. 566 1.1 christos (display_discr_list): New function. 567 1.1 christos (read_and_display_attr_value): Add start parameter. 568 1.1 christos Use new functions when handling DW_AT_type and DW_AT_discr_list. 569 1.1 christos (read_and_display_attr): Add start parameter. Pass to 570 1.1 christos read_and_display_attr_value. 571 1.1 christos (process_debug_info): Update call to read_and_display_attr. 572 1.1 christos (display_formatted_table): Likewise. 573 1.1 christos (display_debug_lines_decoded): Likewise. Also add start 574 1.1 christos parameter. 575 1.1 christos (display_debug_lines): Likewise. 576 1.1 christos * testsuite/binutils-all/dwarf-attributes.S: Update discrimination 577 1.1 christos lists. 578 1.1 christos * testsuite/binutils-all/dwarf-attributes.W: Update expected 579 1.1 christos output. 580 1.1 christos 581 1.1 christos 2019-08-26 Alan Modra <amodra (a] gmail.com> 582 1.1 christos 583 1.1 christos PR 24938 584 1.1 christos * debug.c (debug_write_type): Call empty_type for NULL type here.. 585 1.1 christos (debug_write_type): ..rather than in just one case here. 586 1.1 christos 587 1.1 christos 2019-08-23 Nick Clifton <nickc (a] redhat.com> 588 1.1 christos 589 1.1 christos PR 24829 590 1.1 christos * dwarf.c (check_uvalue): New function. Ensures that a block's 591 1.1 christos size is valid. 592 1.1 christos (read_and_display_attr_value): Use check_value when processsing 593 1.1 christos DW_FORM_block<n> attributes. 594 1.1 christos 595 1.1 christos 2019-08-22 Nick Clifton <nickc (a] redhat.com> 596 1.1 christos 597 1.1 christos PR 24921 598 1.1 christos * dwarf.c (process_cu_tu_index): Handle the case where a table 599 1.1 christos does not have any columns. 600 1.1 christos 601 1.1 christos 2019-08-19 Alan Modra <amodra (a] gmail.com> 602 1.1 christos 603 1.1 christos PR 24898 604 1.1 christos * dwarf.c (display_debug_frames): Use the read_cie check and error 605 1.1 christos for augmentation data length. 606 1.1 christos 607 1.1 christos 2019-08-17 Alan Modra <amodra (a] gmail.com> 608 1.1 christos 609 1.1 christos PR 24911 610 1.1 christos * dwarf.c (comp_addr_base): Dereference args. 611 1.1 christos 612 1.1 christos 2019-08-16 Alan Modra <amodra (a] gmail.com> 613 1.1 christos 614 1.1 christos PR 24909 615 1.1 christos PR 23499 616 1.1 christos * readelf.c (get_symbol_version_string): Set sym_info earlier. 617 1.1 christos 618 1.1 christos 2019-08-15 Nick Clifton <nickc (a] redhat.com> 619 1.1 christos 620 1.1 christos PR 24767 621 1.1 christos * doc/binutils.texi (nm): Document the 'n' symbol type. 622 1.1 christos 623 1.1 christos 2019-08-15 Christophe Vidal <support (a] krizalys.com> 624 1.1 christos 625 1.1 christos * docs/binutils.texi: Fixed notice message disassembler options 626 1.1 christos section of the man page. 627 1.1 christos 628 1.1 christos 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic (a] rt-rk.com> 629 1.1 christos 630 1.1 christos * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type. 631 1.1 christos (get_mips_section_type_name): Return MI{S_XHASH name string. 632 1.1 christos (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic 633 1.1 christos info. 634 1.1 christos (process_symbol_table): Initialize the .MIPS.xhash section 635 1.1 christos pointer. Adjust the readelf output to support the new section. 636 1.1 christos (process_object): Set the .MIPS.xhash dynamic info to zero. 637 1.1 christos 638 1.1 christos 2019-08-09 Tamar Christina <tamar.christina (a] arm.com> 639 1.1 christos 640 1.1 christos * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff. 641 1.1 christos * testsuite/binutils-all/arm/in-order.d: Likewise. 642 1.1 christos * testsuite/binutils-all/arm/out-of-order-all.d: Likewise. 643 1.1 christos * testsuite/binutils-all/arm/out-of-order.d: Likewise. 644 1.1 christos 645 1.1 christos 2019-08-08 Nick Clifton <nickc (a] redhat.com> 646 1.1 christos 647 1.1 christos PR 24887 648 1.1 christos * readelf.c (process_notes_at): Left justify the "Data size" 649 1.1 christos column heading. 650 1.1 christos * testsuite/binutils-all/i386/empty.d: Adjust for new output format. 651 1.1 christos * testsuite/binutils-all/i386/ibt.d: Likewise. 652 1.1 christos * testsuite/binutils-all/i386/pr21231a.d: Likewise. 653 1.1 christos * testsuite/binutils-all/i386/pr21231b.d: Likewise. 654 1.1 christos * testsuite/binutils-all/i386/shstk.d: Likewise. 655 1.1 christos * testsuite/binutils-all/note-2-32.d: Likewise. 656 1.1 christos * testsuite/binutils-all/note-2-64.d: Likewise. 657 1.1 christos * testsuite/binutils-all/x86-64/empty-x32.d: Likewise. 658 1.1 christos * testsuite/binutils-all/x86-64/empty.d: Likewise. 659 1.1 christos * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise. 660 1.1 christos * testsuite/binutils-all/x86-64/ibt.d: Likewise. 661 1.1 christos * testsuite/binutils-all/x86-64/pr21231a.d: Likewise. 662 1.1 christos * testsuite/binutils-all/x86-64/pr21231b.d: Likewise. 663 1.1 christos * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise. 664 1.1 christos * testsuite/binutils-all/x86-64/pr23494a.d: Likewise. 665 1.1 christos * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise. 666 1.1 christos * testsuite/binutils-all/x86-64/pr23494c.d: Likewise. 667 1.1 christos * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise. 668 1.1 christos * testsuite/binutils-all/x86-64/pr23494d.d: Likewise. 669 1.1 christos * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise. 670 1.1 christos * testsuite/binutils-all/x86-64/pr23494e.d: Likewise. 671 1.1 christos * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise. 672 1.1 christos * testsuite/binutils-all/x86-64/shstk.d: Likewise. 673 1.1 christos 674 1.1 christos 2019-08-08 Nick Clifton <nickc (a] redhat.com> 675 1.1 christos 676 1.1 christos * testsuite/gentestdlls.c (main): Move declaration of loop 677 1.1 christos variable outside of the for() statement. 678 1.1 christos 679 1.1 christos 2019-08-08 Jordan Rupprecht <rupprecht (a] google.com> 680 1.1 christos 681 1.1 christos * readelf.c (process_note): Mask unknown description data bytes. 682 1.1 christos 683 1.1 christos 2019-08-08 Alan Modra <amodra (a] gmail.com> 684 1.1 christos 685 1.1 christos * readelf.c (get_data): Improve overflow checks. 686 1.1 christos 687 1.1 christos 2019-08-07 Nick Clifton <nickc (a] redhat.com> 688 1.1 christos 689 1.1 christos PR 24777 690 1.1 christos * doc/binutils.texi: Ensure consistent formating of title strings 691 1.1 christos for man pages. Extend the title of the size man page to be more 692 1.1 christos informative. 693 1.1 christos 694 1.1 christos 2019-08-07 Omair Majid <omajid (a] redhat.com> 695 1.1 christos 696 1.1 christos * testsuite/binutils-all/objdump.exp 697 1.1 christos (test_objdump_dotnet_assemblies): Fix test to distinguish errors 698 1.1 christos in parsing simple pei-i386 and pei-x86-64 vs parsing the newly 699 1.1 christos introduced machine types. 700 1.1 christos * testsuite/gentestdlls.c (write_simple_dll): New function. 701 1.1 christos (main): Generate simple and Linux-specific variants of pei-i386 702 1.1 christos and pei-x86-64 files so both can be used by tests. 703 1.1 christos 704 1.1 christos 2019-08-07 Alan Modra <amodra (a] gmail.com> 705 1.1 christos 706 1.1 christos PR 24876 707 1.1 christos * readelf.c (dump_ia64_unwind): Check that buffer is large 708 1.1 christos enough for "stamp" before reading. 709 1.1 christos 710 1.1 christos 2019-08-05 Nick Clifton <nickc (a] redhat.com> 711 1.1 christos 712 1.1 christos PR 24874 713 1.1 christos * objcopy.c (merge_gnu_build_notes): Do not insist on the first 714 1.1 christos note being a version note. 715 1.1 christos Remove spurious debugging fprintf. 716 1.1 christos 717 1.1 christos 2019-08-05 Nick Clifton <nickc (a] redhat.com> 718 1.1 christos 719 1.1 christos PR 24829 720 1.1 christos * readelf.c (apply_relocations): Catch potential integer overflow 721 1.1 christos whilst checking reloc location against section size. 722 1.1 christos 723 1.1 christos 2019-08-02 Alan Modra <amodra (a] gmail.com> 724 1.1 christos 725 1.1 christos PR 24871 726 1.1 christos * readelf.c (ABSADDR): Delete. 727 1.1 christos (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section. 728 1.1 christos 729 1.1 christos 2019-07-29 Martin Liska <mliska (a] suse.cz> 730 1.1 christos 731 1.1 christos PR 24768 732 1.1 christos * nm.c (filter_symbols): Set report_plugin_err if 733 1.1 christos error is reported. 734 1.1 christos (display_rel_file): Report error for a missing LTO plugin. 735 1.1 christos 736 1.1 christos 2019-07-26 Alan Modra <amodra (a] gmail.com> 737 1.1 christos 738 1.1 christos PR 24798 739 1.1 christos * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit 740 1.1 christos systems by casting ncols and nslots expressions to size_t. Display 741 1.1 christos number of columns and slots before giving up due to buffer overflow. 742 1.1 christos Use %u to display unsigned ints. Perform more pointer wrap tests. 743 1.1 christos 744 1.1 christos 2019-07-25 Tom Tromey <tromey (a] adacore.com> 745 1.1 christos 746 1.1 christos PR 24809 747 1.1 christos * dwarf.c (display_debug_names): Display the contents of the 748 1.1 christos augmentation string, if it is printable. 749 1.1 christos 750 1.1 christos 2019-07-25 Nick Clifton <nickc (a] redhat.com> 751 1.1 christos 752 1.1 christos PR 24837 753 1.1 christos * readelf.c (process_mips_specific): Check for buffer overflow 754 1.1 christos before reading reginfo information. 755 1.1 christos 756 1.1 christos 2019-07-24 Nick Clifton <nickc (a] redhat.com> 757 1.1 christos 758 1.1 christos PR 13256 759 1.1 christos * ar.c (decode_options): Restart option scanning if no operation 760 1.1 christos is detected and argument remain to be scanned. 761 1.1 christos 762 1.1 christos 2019-07-23 Nick Clifton <nickc (a] redhat.com> 763 1.1 christos 764 1.1 christos PR 24818 765 1.1 christos * objdump.c (is_relocateable): Delete. 766 1.1 christos (load_specific_debug_section): Test the abfd for relocations 767 1.1 christos directly, rather than relying upon is_relocateable. 768 1.1 christos (dump_dwarf): Delete initlialization of is_relocateable. 769 1.1 christos 770 1.1 christos 2019-07-23 Alan Modra <amodra (a] gmail.com> 771 1.1 christos 772 1.1 christos * readelf.c (get_parisc_segment_type): Split off hpux entries.. 773 1.1 christos (get_ia64_segment_type): ..and these.. 774 1.1 christos (get_hpux_segment_type): ..to here. 775 1.1 christos (get_segment_type): Condition GNU_MBIND on osabi. Use 776 1.1 christos get_hpux_segment_type. 777 1.1 christos (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE. 778 1.1 christos (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE. 779 1.1 christos 780 1.1 christos 2019-07-23 Alan Modra <amodra (a] gmail.com> 781 1.1 christos 782 1.1 christos * testsuite/binutils-all/objcopy.exp (elf64): Correct object 783 1.1 christos file used to set this variable. 784 1.1 christos 785 1.1 christos 2019-07-23 Omar Majid <omajid (a] redhat.com> 786 1.1 christos 787 1.1 christos * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects 788 1.1 christos (GENTESTDLLSPROG): Define. 789 1.1 christos (TEST_PROGS): Add GENTESTDLLSPROG. 790 1.1 christos * Makefile.in: Regenerate. 791 1.1 christos * testsuite/binutils-all/objdump.exp 792 1.1 christos (test_objdump_dotnet_assemblies): New proc. 793 1.1 christos Run the new proc. 794 1.1 christos * testsuite/gentestdlls.c: New source file. 795 1.1 christos 796 1.1 christos 2019-06-28 Nick Clifton <nickc (a] redhat.com> 797 1.1 christos 798 1.1 christos PR 24707 799 1.1 christos * objdump.c (slurp_symtab): Fail with a helpful error message if 800 1.1 christos the symbol table is too large. Skip this check for MMO format 801 1.1 christos files. 802 1.1 christos 803 1.1 christos 2019-06-26 Nick Clifton <nickc (a] redhat.com> 804 1.1 christos 805 1.1 christos PR 24703 806 1.1 christos * bucomm.c (bfd_nonfatal): If no bfd error code has been set then 807 1.1 christos indicate this in the output. 808 1.1 christos (bfd_nonfatal_message): Likewise. 809 1.1 christos 810 1.1 christos 2019-06-25 Jan Beulich <jbeulich (a] suse.com> 811 1.1 christos 812 1.1 christos * readelf.c (dump_ctf_indent_lines): Rename local variable 813 1.1 christos "spaces" to "blanks". 814 1.1 christos 815 1.1 christos 2019-06-25 Jan Beulich <jbeulich (a] suse.com> 816 1.1 christos 817 1.1 christos * objdump.c (dump_ctf_indent_lines): Rename local variable 818 1.1 christos "spaces" to "blanks". 819 1.1 christos 820 1.1 christos 2019-06-14 Alan Modra <amodra (a] gmail.com> 821 1.1 christos 822 1.1 christos * Makefile.in: Regenerate. 823 1.1 christos * aclocal.m4: Regenerate. 824 1.1 christos * doc/Makefile.in: Regenerate. 825 1.1 christos 826 1.1 christos 2019-06-12 Christos Zoulas <christos (a] zoulas.com> 827 1.1 christos 828 1.1 christos PR 24663 829 1.1 christos * readelf.c (process_netbsd_elf_note): Add support for 830 1.1 christos NT_NETBSD_PAX. 831 1.1 christos (process_note): Add support for PaX notes. 832 1.1 christos 833 1.1 christos 2019-06-12 Christos Zoulas <christos (a] zoulas.com> 834 1.1 christos 835 1.1 christos PR 24665 836 1.1 christos * readelf.c (get_netbsd_elfcore_note_type): Add support for SH 837 1.1 christos core notes. 838 1.1 christos 839 1.1 christos 2019-06-12 Christos Zoulas <christos (a] zoulas.com> 840 1.1 christos 841 1.1 christos PR 24664 842 1.1 christos * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD 843 1.1 christos auxv notes. 844 1.1 christos 845 1.1 christos 2019-06-11 Christos Zoulas <christos (a] zoulas.com> 846 1.1 christos 847 1.1 christos PR 24662 848 1.1 christos * readelf.c (get_alpha_symbol_other): New function. 849 1.1 christos (get_symbol_other): Use for Alpha symbols. 850 1.1 christos (is_32bit_pcrel_reloc): Add R_VAX_PCREL32. 851 1.1 christos 852 1.1 christos 2019-06-11 Christos Zoulas <christos (a] zoulas.com> 853 1.1 christos 854 1.1 christos PR 24661 855 1.1 christos * readelf.c (decode_arm_unwind): Ensure that the local variable 856 1.1 christos 'addr' is always initialised. 857 1.1 christos 858 1.1 christos 2019-06-10 Christos Zoulas <christos (a] zoulas.com> 859 1.1 christos 860 1.1 christos PR 24651 861 1.1 christos * strings.c (print_strings): Use %u to print unsigned values in 862 1.1 christos decimal. 863 1.1 christos 864 1.1 christos 2019-06-10 Christos Zoulas <christos (a] zoulas.com> 865 1.1 christos 866 1.1 christos PR 24649 867 1.1 christos * arsup.c (ar_open): Use asprintf in place of xmalloc and 868 1.1 christos sprintf. 869 1.1 christos 870 1.1 christos 2019-06-03 Nick Clifton <nickc (a] redhat.com> 871 1.1 christos 872 1.1 christos Revert: 873 1.1 christos 2019-05-29 Nick Clifton <nickc (a] redhat.com> 874 1.1 christos 875 1.1 christos * configure.ac (LIBCTF): Export. Set to empty for non-ELF based 876 1.1 christos targets. 877 1.1 christos (HAVE_LIBCTF): Define if libctf support is available. 878 1.1 christos * Makefile.am (LIBCTF): Set value to @LIBCTF@. 879 1.1 christos * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being 880 1.1 christos defined. 881 1.1 christos * readelf.c: Likewise. 882 1.1 christos * configure: Regenerate. 883 1.1 christos * Makefile.in: Regenerate. 884 1.1 christos * config.in: Regenerate. 885 1.1 christos 886 1.1 christos 2019-05-30 Nick Alcock <nick.alcock (a] oracle.com> 887 1.1 christos 888 1.1 christos * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and 889 1.1 christos cts_offset. 890 1.1 christos * readelf.c (shdr_to_ctf_sect): Likewise. 891 1.1 christos 892 1.1 christos 2019-05-30 Nick Clifton <nickc (a] redhat.com> 893 1.1 christos 894 1.1 christos PR 24627 895 1.1 christos * readelf.c (process_version_sections): Add 0x prefix to address 896 1.1 christos display. Correct indentation. 897 1.1 christos 898 1.1 christos 2019-05-30 Alan Modra <amodra (a] gmail.com> 899 1.1 christos 900 1.1 christos * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add 901 1.1 christos s12z to targets not supporting this feature. 902 1.1 christos 903 1.1 christos 2019-05-30 Alan Modra <amodra (a] gmail.com> 904 1.1 christos 905 1.1 christos * testsuite/lib/binutils-common.exp (run_dump_test): Support 906 1.1 christos tcl procedures for xfail args. 907 1.1 christos 908 1.1 christos 2019-05-29 Nick Clifton <nickc (a] redhat.com> 909 1.1 christos 910 1.1 christos * README-how-to-make-a-release: Add libctf to list of directories 911 1.1 christos that need updates in their ChangeLogs. 912 1.1 christos 913 1.1 christos 2019-05-29 Nick Clifton <nickc (a] redhat.com> 914 1.1 christos 915 1.1 christos * configure.ac (LIBCTF): Export. Set to empty for non-ELF based 916 1.1 christos targets. 917 1.1 christos (HAVE_LIBCTF): Define if libctf support is available. 918 1.1 christos * Makefile.am (LIBCTF): Set value to @LIBCTF@. 919 1.1 christos * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being 920 1.1 christos defined. 921 1.1 christos * readelf.c: Likewise. 922 1.1 christos * configure: Regenerate. 923 1.1 christos * Makefile.in: Regenerate. 924 1.1 christos * config.in: Regenerate. 925 1.1 christos 926 1.1 christos 2019-05-28 Nick Alcock <nick.alcock (a] oracle.com> 927 1.1 christos 928 1.1 christos * MAINTAINERS: Add myself as CTF maintainer. 929 1.1 christos 930 1.1 christos 2019-05-28 Nick Alcock <nick.alcock (a] oracle.com> 931 1.1 christos 932 1.1 christos * objdump.c (ctf-api.h): New include. 933 1.1 christos (dump_ctf_section_info): New variable. 934 1.1 christos (dump_ctf_section_name): Likewise. 935 1.1 christos (usage): Describe new options. 936 1.1 christos (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT. 937 1.1 christos (main): Use them to add --ctf and --ctf-parent. 938 1.1 christos (read_section_stabs): Add new parameter, entsize_ptr. 939 1.1 christos (find_stabs_section): Adjust accordingly. 940 1.1 christos (make_ctfsect): New. 941 1.1 christos (dump_ctf_indent_lines): New. 942 1.1 christos (dump_ctf_archive_member): New. 943 1.1 christos (dump_ctf): New. 944 1.1 christos (dump_bfd): Call it. Free resources afterwards. 945 1.1 christos * readelf.c (ctf-api.h): New include. 946 1.1 christos (CTF_DUMP): New. 947 1.1 christos (static bfd_boolean do_ctf): Likewise. 948 1.1 christos (dump_ctf_parent_name): Likewise. 949 1.1 christos (dump_ctf_symtab_name): Likewise. 950 1.1 christos (dump_ctf_strtab_name): Likewise. 951 1.1 christos (OPTION_CTF_DUMP): Likewise. 952 1.1 christos (OPTION_CTF_PARENT): Likewise. 953 1.1 christos (OPTION_CTF_SYMBOLS): Likewise. 954 1.1 christos (OPTION_CTF_STRINGS): Likewise. 955 1.1 christos (options): Add them. 956 1.1 christos (usage): Likewise. 957 1.1 christos (parse_args): Handle the new options, requesting CTF_DUMP. 958 1.1 christos (process_section_contents): Handle CTF_DUMP. 959 1.1 christos (shdr_to_ctf_sect): New. 960 1.1 christos (dump_ctf_indent_lines): New. 961 1.1 christos (dump_section_as_ctf): New. 962 1.1 christos (main): Free resources. 963 1.1 christos * Makefile.am (LIBCTF): New variable. 964 1.1 christos (objdump_DEPENDENCIES): Use it. 965 1.1 christos (readelf_DEPENDENCIES): Likewise. 966 1.1 christos (objdump_LDADD): Likewise. 967 1.1 christos (readelf_LDADD): Likewise. 968 1.1 christos * aclocal.m4: Regenerated. 969 1.1 christos * Makefile.in: Likewise. 970 1.1 christos 971 1.1 christos * doc/binutils.texi (objdump): Document the new options. 972 1.1 christos (readelf): Likewise. 973 1.1 christos * doc/ctf.options.texi: New. 974 1.1 christos * doc/Makefile.in: Regenerated. 975 1.1 christos * NEWS: Mention the new feature. 976 1.1 christos 977 1.1 christos 2019-05-27 Alan Modra <amodra (a] gmail.com> 978 1.1 christos 979 1.1 christos * readelf.c (process_section_groups): Continue processing groups 980 1.1 christos when sh_entsize exceeds group size. 981 1.1 christos 982 1.1 christos 2019-05-24 Szabolcs Nagy <szabolcs.nagy (a] arm.com> 983 1.1 christos 984 1.1 christos * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS. 985 1.1 christos (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS. 986 1.1 christos (get_symbol_other): Call get_aarch64_symbol_other. 987 1.1 christos 988 1.1 christos 2019-05-24 Alan Modra <amodra (a] gmail.com> 989 1.1 christos 990 1.1 christos * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags. 991 1.1 christos 992 1.1 christos 2019-05-23 Jose E. Marchesi <jose.marchesi (a] oracle.com> 993 1.1 christos 994 1.1 christos * MAINTAINERS: Add myself as the maintainer for BPF. 995 1.1 christos 996 1.1 christos 2019-05-23 Jose E. Marchesi <jose.marchesi (a] oracle.com> 997 1.1 christos 998 1.1 christos * readelf.c: Include elf/bpf.h. 999 1.1 christos (guess_is_rela): Hanle EM_BPF. 1000 1.1 christos (dump_relocations): Likewise. 1001 1.1 christos (is_32bit_abs_reloc): Likewise. 1002 1.1 christos * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of 1003 1.1 christos ELF targets. 1004 1.1 christos 1005 1.1 christos 2019-05-21 Tamar Christina <tamar.christina (a] arm.com> 1006 1.1 christos 1007 1.1 christos * dwarf.c (dwarf_regnames_aarch64): Add SVE registers. 1008 1.1 christos * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test. 1009 1.1 christos * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test. 1010 1.1 christos 1011 1.1 christos 2019-05-20 Faraz Shahbazker <fshahbazker (a] wavecomp.com> 1012 1.1 christos 1013 1.1 christos PR 14798 1014 1.1 christos * testsuite/binutils-all/readelf.ss-mips: Update reference output. 1015 1.1 christos * testsuite/binutils-all/readelf.ss-tmips: Likewise. 1016 1.1 christos 1017 1.1 christos 2019-05-20 Nick Clifton <nickc (a] redhat.com> 1018 1.1 christos 1019 1.1 christos * po/ca.po: Updated Catalan translation. 1020 1.1 christos 1021 1.1 christos 2019-05-16 Andre Vieira <andre.simoesdiasvieira (a] arm.com> 1022 1.1 christos 1023 1.1 christos * NEWS: Mention Armv8.1-M Mainline and MVE. 1024 1.1 christos 1025 1.1 christos 2019-05-16 Andre Vieira <andre.simoesdiasvieira (a] arm.com> 1026 1.1 christos 1027 1.1 christos * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values. 1028 1.1 christos (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch. 1029 1.1 christos 1030 1.1 christos 2019-05-14 Jamey Hicks <jamey.hicks (a] gmail.com> 1031 1.1 christos 1032 1.1 christos PR 19921 1033 1.1 christos * objcopy.c: Add new option --verilog-data-width. Use it to set 1034 1.1 christos the value of VerilogDataWidth. 1035 1.1 christos * doc/binutils.texi: Document the new option. 1036 1.1 christos * testsuite/binutils-all/objcopy.exp: Run tests of new option. 1037 1.1 christos * testsuite/binutils-all/verilog-1.hex: New file. 1038 1.1 christos * testsuite/binutils-all/verilog-2.hex: New file. 1039 1.1 christos * testsuite/binutils-all/verilog-4.hex: New file. 1040 1.1 christos * testsuite/binutils-all/verilog-8.hex: New file. 1041 1.1 christos * NEWS: Mention the new feature. 1042 1.1 christos 1043 1.1 christos 2019-05-10 Alan Modra <amodra (a] gmail.com> 1044 1.1 christos 1045 1.1 christos * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited), 1046 1.1 christos (test_objdump_content_limited): Add text arg, use in place of .text. 1047 1.1 christos (bintest_signed.o): Call get_standard_section_names for name of 1048 1.1 christos text section. 1049 1.1 christos 1050 1.1 christos 2019-05-08 Faraz Shahbazker <fshahbazker (a] wavecomp.com> 1051 1.1 christos 1052 1.1 christos * objdump.c (sign_extend_address): New function. 1053 1.1 christos (dump_bfd): Sign-extend user-specified start/stop addresses 1054 1.1 christos for targets that need it. 1055 1.1 christos * testsuite/binutils-all/objdump.exp: Add tests for objdump 1056 1.1 christos with start and stop addresses in higher address ranges. 1057 1.1 christos 1058 1.1 christos 2019-05-01 Matthew Malcomson <matthew.malcomson (a] arm.com> 1059 1.1 christos 1060 1.1 christos * testsuite/binutils-all/objdump.exp: Correct executable 1061 1.1 christos spelling. 1062 1.1 christos * testsuite/binutils-all/compress.exp: Likewise. 1063 1.1 christos 1064 1.1 christos 2019-05-01 Nick Clifton <nickc (a] redhat.com> 1065 1.1 christos 1066 1.1 christos PR 24507 1067 1.1 christos * nm.c: (print_format): New variable. 1068 1.1 christos (value_format_32bit, value_format_64bit): Delete. 1069 1.1 christos (set_print_radix): Remove code to alter value_format strings. 1070 1.1 christos (set_output_format): Record chosen format in print_format. 1071 1.1 christos (get_print_format): New function - constructs a printf formatting 1072 1.1 christos string according to the requirements of size, radix, and output 1073 1.1 christos format. 1074 1.1 christos (print_value): Use get_print_format. 1075 1.1 christos * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix" 1076 1.1 christos and "nm -t d". 1077 1.1 christos 1078 1.1 christos 2019-04-30 Alan Modra <amodra (a] gmail.com> 1079 1.1 christos 1080 1.1 christos * wrstabs.c (stab_start_class_type): Add assert to work around 1081 1.1 christos gcc9 warning. Tidy. 1082 1.1 christos 1083 1.1 christos 2019-04-24 Nick Clifton <nickc (a] redhat.com> 1084 1.1 christos 1085 1.1 christos * objcopy.c (strip_main): Do not enable note merging by default if 1086 1.1 christos just stripping debug or dwo information. 1087 1.1 christos * doc/binutils.texi (strip): Update documentation. 1088 1.1 christos 1089 1.1 christos 2019-04-23 Nick Clifton <nickc (a] redhat.com> 1090 1.1 christos 1091 1.1 christos * README-how-to-make-a-release: Add note to update the symbolic 1092 1.1 christos link from "docs" to "docs-2.x" on the sourceware website. 1093 1.1 christos 1094 1.1 christos 2019-04-16 Alan Modra <amodra (a] gmail.com> 1095 1.1 christos 1096 1.1 christos * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*. 1097 1.1 christos * testsuite/binutils-all/copy-3.d: Likewise. 1098 1.1 christos 1099 1.1 christos 2019-04-15 Thomas Preud'homme <thomas.preudhomme (a] arm.com> 1100 1.1 christos 1101 1.1 christos * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline. 1102 1.1 christos 1103 1.1 christos 2019-04-08 H.J. Lu <hongjiu.lu (a] intel.com> 1104 1.1 christos 1105 1.1 christos * readelf.c (decode_x86_isa): Handle 1106 1.1 christos GNU_PROPERTY_X86_ISA_1_AVX512_BF16. 1107 1.1 christos * testsuite/binutils-all/i386/pr21231b.d: Updated. 1108 1.1 christos * testsuite/binutils-all/x86-64/pr21231b.d: Likewise. 1109 1.1 christos 1110 1.1 christos 2019-04-08 H.J. Lu <hongjiu.lu (a] intel.com> 1111 1.1 christos 1112 1.1 christos * testsuite/binutils-all/nm.exp: Count i386-moss as ELF. 1113 1.1 christos 1114 1.1 christos 2019-03-26 Tamar Christina <tamar.christina (a] arm.com> 1115 1.1 christos 1116 1.1 christos * testsuite/binutils-all/aarch64/in-order-all.d: Update. 1117 1.1 christos * testsuite/binutils-all/aarch64/in-order.d: Likewise. 1118 1.1 christos * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise. 1119 1.1 christos * testsuite/binutils-all/aarch64/out-of-order.d: Likewise. 1120 1.1 christos * testsuite/binutils-all/aarch64/out-of-order.s: Likewise. 1121 1.1 christos * testsuite/binutils-all/arm/in-order-all.d: Likewise. 1122 1.1 christos * testsuite/binutils-all/arm/in-order.d: Likewise. 1123 1.1 christos * testsuite/binutils-all/arm/out-of-order-all.d: Likewise. 1124 1.1 christos * testsuite/binutils-all/arm/out-of-order.d: Likewise. 1125 1.1 christos * testsuite/binutils-all/arm/out-of-order.s: Likewise. 1126 1.1 christos 1127 1.1 christos 2019-03-26 Nick Clifton <nickc (a] redhat.com> 1128 1.1 christos 1129 1.1 christos * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30, 1130 1.1 christos FRV and MEP. 1131 1.1 christos 1132 1.1 christos 2019-03-26 Alan Modra <amodra (a] gmail.com> 1133 1.1 christos 1134 1.1 christos * objdump.c (dump_relocs_in_section): Warning fix. 1135 1.1 christos 1136 1.1 christos 2019-03-25 Tamar Christina <tamar.christina (a] arm.com> 1137 1.1 christos 1138 1.1 christos * testsuite/binutils-all/arm/in-order-all.d: New test. 1139 1.1 christos * testsuite/binutils-all/arm/in-order.d: New test. 1140 1.1 christos * testsuite/binutils-all/arm/objdump.exp: Support .d tests. 1141 1.1 christos * testsuite/binutils-all/arm/out-of-order-all.d: New test. 1142 1.1 christos * testsuite/binutils-all/arm/out-of-order.T: New test. 1143 1.1 christos * testsuite/binutils-all/arm/out-of-order.d: New test. 1144 1.1 christos * testsuite/binutils-all/arm/out-of-order.s: New test. 1145 1.1 christos 1146 1.1 christos 1147 1.1 christos 2019-03-25 Tamar Christina <tamar.christina (a] arm.com> 1148 1.1 christos 1149 1.1 christos * testsuite/binutils-all/aarch64/in-order-all.d: New test. 1150 1.1 christos * testsuite/binutils-all/aarch64/out-of-order-all.d: New test. 1151 1.1 christos * testsuite/binutils-all/aarch64/out-of-order.d: 1152 1.1 christos 1153 1.1 christos 2019-03-25 Tamar Christina <tamar.christina (a] arm.com> 1154 1.1 christos 1155 1.1 christos * testsuite/binutils-all/aarch64/in-order.d: New test. 1156 1.1 christos * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as 1157 1.1 christos well. 1158 1.1 christos 1159 1.1 christos 2019-03-25 Tamar Christina <tamar.christina (a] arm.com> 1160 1.1 christos 1161 1.1 christos * objdump.c (disassemble_bytes): Pass stop_offset. 1162 1.1 christos * testsuite/binutils-all/aarch64/out-of-order.T: New test. 1163 1.1 christos * testsuite/binutils-all/aarch64/out-of-order.d: New test. 1164 1.1 christos * testsuite/binutils-all/aarch64/out-of-order.s: New test. 1165 1.1 christos 1166 1.1 christos 2019-03-19 Nick Clifton <nickc (a] redhat.com> 1167 1.1 christos 1168 1.1 christos PR 24360 1169 1.1 christos * objdump.c (load_specific_debug_section): Check that the amount 1170 1.1 christos of memory to be allocated matches the size of the section. 1171 1.1 christos 1172 1.1 christos 2019-03-13 Sudakshina Das <sudi.das (a] arm.com> 1173 1.1 christos 1174 1.1 christos * readelf.c (get_aarch64_dynamic_type): Add case for 1175 1.1 christos DT_AARCH64_PAC_PLT. 1176 1.1 christos (dynamic_section_aarch64_val): Likewise. 1177 1.1 christos 1178 1.1 christos 2019-03-13 Sudakshina Das <sudi.das (a] arm.com> 1179 1.1 christos Szabolcs Nagy <szabolcs.nagy (a] arm.com> 1180 1.1 christos 1181 1.1 christos * readelf.c (get_aarch64_dynamic_type): New. 1182 1.1 christos (get_dynamic_type): Use above for EM_AARCH64. 1183 1.1 christos (dynamic_section_aarch64_val): New. 1184 1.1 christos (process_dynamic_section): Use above for EM_AARCH64. 1185 1.1 christos 1186 1.1 christos 2019-03-13 Sudakshina Das <sudi.das (a] arm.com> 1187 1.1 christos 1188 1.1 christos * readelf.c (decode_aarch64_feature_1_and): New. 1189 1.1 christos (print_gnu_property_note): Add case for AArch64 gnu notes. 1190 1.1 christos 1191 1.1 christos 2019-03-12 Alan Modra <amodra (a] gmail.com> 1192 1.1 christos 1193 1.1 christos * objdump.c (load_specific_debug_section): Don't compare section 1194 1.1 christos size against file size. 1195 1.1 christos (dump_relocs_in_section): Don't compare reloc size against file size. 1196 1.1 christos Print "failed to read relocs" on bfd_get_reloc_upper_bound error. 1197 1.1 christos 1198 1.1 christos 2019-03-05 Nick Clifton <nickc (a] redhat.com> 1199 1.1 christos 1200 1.1 christos PR 24295 1201 1.1 christos * doc/binutils.texi (ar cmdline): Fix spelling mistake. 1202 1.1 christos 1203 1.1 christos 2019-03-05 Nick Clifton <nickc (a] redhat.com> 1204 1.1 christos 1205 1.1 christos * po/sv.po: Updated Swedish translation. 1206 1.1 christos 1207 1.1 christos 2019-03-05 Matthew Malcomson <matthew.malcomson (a] arm.com> 1208 1.1 christos 1209 1.1 christos PR 24287 1210 1.1 christos * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use 1211 1.1 christos of "lmap" with a "foreach" loop. 1212 1.1 christos 1213 1.1 christos 2019-03-04 Nick Clifton <nickc (a] redhat.com> 1214 1.1 christos 1215 1.1 christos PR 24281 1216 1.1 christos * objcopy.c (copy_archive): Do not copy thin archives. 1217 1.1 christos 1218 1.1 christos 2019-02-27 Matthew Malcomson <matthew.malcomson (a] arm.com> 1219 1.1 christos 1220 1.1 christos * testsuite/lib/binutils-common.exp: Allow multiple "as" lines. 1221 1.1 christos 1222 1.1 christos 2019-02-25 Nick Clifton <nickc (a] redhat.com> 1223 1.1 christos 1224 1.1 christos * objdump.c (sym_ok): New function. 1225 1.1 christos (find_symbol_for_address): Use new function. 1226 1.1 christos (disassemble_section): Compare sections by name, not pointer. 1227 1.1 christos (dump_dwarf): Move code to initialise byte_get pointer and iterate 1228 1.1 christos over separate debug files from here to ... 1229 1.1 christos (dump_bfd): ... here. Add parameter indicating that a separate 1230 1.1 christos debug info file is being dumped. For main file, pull in the 1231 1.1 christos symbol tables from all separate debug info files. 1232 1.1 christos (display_object): Update call to dump_bfd. 1233 1.1 christos * doc/binutils.texi: Document extened behaviour of the 1234 1.1 christos --dwarf=follow-links option. 1235 1.1 christos * NEWS: Mention this new feature. 1236 1.1 christos * testsuite/binutils-all/objdump.WK2: Update expected output. 1237 1.1 christos * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add 1238 1.1 christos options and dump file parameters. 1239 1.1 christos Add extra test. 1240 1.1 christos * testsuite/binutils-all/objdump.WK3: New file. 1241 1.1 christos * testsuite/binutils-all/readelf.exp: Change expected output for 1242 1.1 christos readelf -wKis test. 1243 1.1 christos * testsuite/binutils-all/readelf.wKis: New file. 1244 1.1 christos 1245 1.1 christos 2019-02-22 Nick Clifton <nickc (a] redhat.com> 1246 1.1 christos 1247 1.1 christos PR 23843 1248 1.1 christos * dwarf.h (struct separate_info): New structure for containing 1249 1.1 christos information on separate debug info files. 1250 1.1 christos * dwarf.c (struct dwo_info): New structure for containing dwo 1251 1.1 christos links. 1252 1.1 christos (first_dwo_info): Chain of dwo_info structures. 1253 1.1 christos (first_separate_file): Chain of separate_info structures. 1254 1.1 christos (separate_debug_file, separate_debug_filename): Delete. 1255 1.1 christos (fetch_alt_indirect_string): Scan all separate debug info files 1256 1.1 christos for the requested string. 1257 1.1 christos (add_dwo_info): New function. 1258 1.1 christos (add_dwo_name): New function. 1259 1.1 christos (add_dwo_dir): New function. 1260 1.1 christos (add_dwo_id: New function. 1261 1.1 christos (free_dwo_info): New function. 1262 1.1 christos (read_and_display_attr_value): Store DWO data using the new 1263 1.1 christos functions. 1264 1.1 christos (load_debug_section_with_follow): If necessary, scan the list of 1265 1.1 christos separate debug info files for the requested section. 1266 1.1 christos (add_separate_debug_file): New function. 1267 1.1 christos (load_separate_debug_info): Call add_separate_debug_file to store 1268 1.1 christos the information on the newly loaded file. 1269 1.1 christos (load_dwo_file): Likewise. 1270 1.1 christos (load_separate_debif_file): Rename to load_separate_debug_files. 1271 1.1 christos Change return type to boolean. If following links then attempt to 1272 1.1 christos load all separate debug info files, not just the first one. 1273 1.1 christos (free_debug_memory): Release memory in dwo_info and separate_info 1274 1.1 christos chains. 1275 1.1 christos * objdump.c (dump_dwarf): Iterate over all loaded debg info files. 1276 1.1 christos * readelf.c (process_object): Likewise. 1277 1.1 christos * doc/debug.options.texi: Update descriptions of links and 1278 1.1 christos follow-links options. 1279 1.1 christos * testsuite/binutils-all/objdump.WK2: Update expected output. 1280 1.1 christos * testsuite/binutils-all/readelf.k2: Likewise. 1281 1.1 christos * NEWS: Announce the new feature. 1282 1.1 christos 1283 1.1 christos 2019-02-21 Nick Clifton <nickc (a] redhat.com> 1284 1.1 christos 1285 1.1 christos PR 24247 1286 1.1 christos * unwind-ia64.c: Include sysdep.h. 1287 1.1 christos (unw_decode_x1): Check current pointer against end pointer before 1288 1.1 christos accessing memory. 1289 1.1 christos (unw_decode_x2): Likewise. 1290 1.1 christos (unw_decode_x3): Likewise. 1291 1.1 christos (unw_decode_x4): Likewise. 1292 1.1 christos (unw_decode_r2): Likewise. 1293 1.1 christos (unw_decode_p2_p5): Likewise. 1294 1.1 christos (unw_decode_p7_p10): Likewise. 1295 1.1 christos (unw_decode): Likewise. 1296 1.1 christos 1297 1.1 christos 2019-02-20 Nick Clifton <nickc (a] redhat.com> 1298 1.1 christos 1299 1.1 christos PR 24246 1300 1.1 christos * readelf.c (print_stapsdt_note): Harden against corrupt notes. 1301 1.1 christos 1302 1.1 christos PR 24244 1303 1.1 christos * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to 1304 1.1 christos prevent walking off the end of the buffer. 1305 1.1 christos (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128. 1306 1.1 christos (unw_decode_x2): Likewise. 1307 1.1 christos (unw_decode_x3): Likewise. 1308 1.1 christos (unw_decode_x4): Likewise. 1309 1.1 christos (unw_decode_r2): Pass the end parameter to unw_decode_uleb128. 1310 1.1 christos (unw_decode_r3): Likewise. 1311 1.1 christos (unw_decode_p7_p10): Likewise. 1312 1.1 christos (unw_decode_b2): Likewise. 1313 1.1 christos (unw_decode_b3_x4): Likewise. 1314 1.1 christos 1315 1.1 christos PR 24243 1316 1.1 christos * readelf.c (process_mips_specific): Check for an options section 1317 1.1 christos that is too small to even contain a single option. 1318 1.1 christos 1319 1.1 christos PR 24242 1320 1.1 christos * readelf.c (print_ia64_vms_note): Harden against corrupt notes. 1321 1.1 christos 1322 1.1 christos 2019-02-20 Alan Modra <amodra (a] gmail.com> 1323 1.1 christos 1324 1.1 christos PR 24132 1325 1.1 christos PR 24138 1326 1.1 christos * readelf.c (get_data): Avoid possibility of overflow when 1327 1.1 christos checking for a read that may extend past end of file. 1328 1.1 christos (process_program_headers): Likewise. 1329 1.1 christos 1330 1.1 christos 2019-02-20 Alan Modra <amodra (a] gmail.com> 1331 1.1 christos 1332 1.1 christos PR 24233 1333 1.1 christos * objdump.c (dump_bfd_private_header): Print warning if 1334 1.1 christos bfd_print_private_bfd_data returns false. 1335 1.1 christos 1336 1.1 christos 2019-02-12 Nick Clifton <nickc (a] redhat.com> 1337 1.1 christos 1338 1.1 christos PR 23440 1339 1.1 christos * README-how-to-make-a-release: Use git clean to delete spurious 1340 1.1 christos files from the local source repository. 1341 1.1 christos 1342 1.1 christos 2019-02-08 Andrew Burgess <andrew.burgess (a] embecosm.com> 1343 1.1 christos 1344 1.1 christos * size.c (berkeley_format): Delete. 1345 1.1 christos (enum output_format): New enum. 1346 1.1 christos (selected_output_format): New variable. 1347 1.1 christos (usage): Update to mention GNU format. 1348 1.1 christos (main): Update to extract options, and select format as needed. 1349 1.1 christos Handle GNU format where needed. 1350 1.1 christos (berkeley_sum): Renamed to... 1351 1.1 christos (berkeley_or_gnu_sum): ...this, and updated to handle both formats. 1352 1.1 christos (berkeley_format): Renamed to... 1353 1.1 christos (berkeley_or_gnu_format): ...this, and updated to handle both 1354 1.1 christos formats. 1355 1.1 christos (print_sizes): Handle GNU format. 1356 1.1 christos * doc/binutils.texi (size): Document new GNU format. 1357 1.1 christos * testsuite/binutils-all/size.exp: Add test of extended 1358 1.1 christos functionality. 1359 1.1 christos * NEWS: Mention new functionality. 1360 1.1 christos 1361 1.1 christos 2019-02-08 Andrew Burgess <andrew.burgess (a] embecosm.com> 1362 1.1 christos 1363 1.1 christos * doc/binutils.texi (size): Update example output for Berkeley 1364 1.1 christos format output. 1365 1.1 christos 1366 1.1 christos 2019-02-07 Nick Clifton <nickc (a] redhat.com> 1367 1.1 christos 1368 1.1 christos * README-how-to-make-a-release: Add a note about updating the 1369 1.1 christos obsolete targets in the bfd/config.bfd file. 1370 1.1 christos 1371 1.1 christos 2019-02-04 Nick Clifton <nickc (a] redhat.com> 1372 1.1 christos 1373 1.1 christos * README-how-to-make-a-release: Add more notes on making a release. 1374 1.1 christos 1375 1.1 christos 2019-01-25 Nick Clifton <nickc (a] redhat.com> 1376 1.1 christos 1377 1.1 christos PR 24131 1378 1.1 christos * readelf.c (process_notes_at): Prevent an illegal memory access 1379 1.1 christos when the note's namesize is zero. 1380 1.1 christos (decode_tic6x_unwind_bytecode): Add code to handle the case where 1381 1.1 christos no registers are specified in a frame pop instruction. 1382 1.1 christos 1383 1.1 christos 2019-01-25 Nick Clifton <nickc (a] redhat.com> 1384 1.1 christos 1385 1.1 christos * po/bg.po: Updated Bulgarian translation. 1386 1.1 christos 1387 1.1 christos 2019-01-23 Nick Clifton <nickc (a] redhat.com> 1388 1.1 christos 1389 1.1 christos * po/fr.po: Updated French translation. 1390 1.1 christos * po/pt.po: Updated Portuguese translation. 1391 1.1 christos 1392 1.1 christos 2019-01-21 Nick Clifton <nickc (a] redhat.com> 1393 1.1 christos 1394 1.1 christos * po/uk.po: Updated Ukranian translation. 1395 1.1 christos 1396 1.1 christos 2019-01-19 Nick Clifton <nickc (a] redhat.com> 1397 1.1 christos 1398 1.1 christos * configure: Regenerate. 1399 1.1 christos * binutils/po/binutils.pot. 1400 1.1 christos 1401 1.1 christos * README-how-to-make-a-release: Update description on how to make 1402 1.1 christos a branch. 1403 1.1 christos 1404 1.1 christos 2018-06-24 Nick Clifton <nickc (a] redhat.com> 1405 1.1 christos 1406 1.1 christos 2.32 branch created. 1407 1.1 christos 1408 1.1 christos 2019-01-17 Nick Clifton <nickc (a] redhat.com> 1409 1.1 christos 1410 1.1 christos * objdump.c (disassemble_section): When disassembling from a 1411 1.1 christos symbol only stop at the next symbol if the original symbol was not 1412 1.1 christos a function symbol. Otherwise continue disassembling until a new 1413 1.1 christos function is reached. 1414 1.1 christos * testsuite/binutils-all/objdump.exp: Add tests of extended 1415 1.1 christos functionality. 1416 1.1 christos * testsuite/binutils-all/disasm.s: New test source file. 1417 1.1 christos 1418 1.1 christos 2019-01-16 Kito Cheng <kito (a] andestech.com> 1419 1.1 christos Nelson Chu <nelson (a] andestech.com> 1420 1.1 christos 1421 1.1 christos * readelf.c (get_riscv_section_type_name): New function. 1422 1.1 christos (get_section_type_name): Add handler for RISC-V. 1423 1.1 christos (riscv_attr_tag_t): Declare. 1424 1.1 christos (riscv_attr_tag): New. 1425 1.1 christos (display_riscv_attribute): New function. 1426 1.1 christos (process_attributes): Add handler for RISC-V. 1427 1.1 christos * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute 1428 1.1 christos section. 1429 1.1 christos 1430 1.1 christos 2019-01-10 Nick Clifton <nickc (a] redhat.com> 1431 1.1 christos 1432 1.1 christos PR 23963 1433 1.1 christos * objdump.c (sanitize_string): New function. Removes control 1434 1.1 christos characters from symbol names. 1435 1.1 christos (dump_section_header): Use new function. 1436 1.1 christos (objdump_print_symname): Likewise. 1437 1.1 christos (objdump_print_addr_with_sym): Likewise. 1438 1.1 christos (show_line): Likewise. 1439 1.1 christos (disassemble_bytes): Likewise. 1440 1.1 christos (disassemble_section): Likewise. 1441 1.1 christos (load_specific_debug_section): Likewise. 1442 1.1 christos (read_section_stabs): Likewise. 1443 1.1 christos (print_section_stabs): Likewise. 1444 1.1 christos (dump_section): Likewise. 1445 1.1 christos (dump_reloc_set): Likewise. 1446 1.1 christos (dump_relocs_in_section): Likewise. 1447 1.1 christos (dump_bfd): Likewise. 1448 1.1 christos (display_any_bfd): Likewise. 1449 1.1 christos 1450 1.1 christos 2019-01-09 Nick Clifton <nickc (a] redhat.com> 1451 1.1 christos 1452 1.1 christos PR 24049 1453 1.1 christos * readelf.c (process_archive): Use arch.file_name in error 1454 1.1 christos messages until the qualified name is available. 1455 1.1 christos 1456 1.1 christos 2019-01-09 Andrew Paprocki <andrew (a] ishiboo.com> 1457 1.1 christos 1458 1.1 christos * configure: Regenerate. 1459 1.1 christos 1460 1.1 christos 2019-01-09 Alan Modra <amodra (a] gmail.com> 1461 1.1 christos 1462 1.1 christos * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores 1463 1.1 christos unconditionally to tests needing the option rather than via a 1464 1.1 christos list of targets. 1465 1.1 christos 1466 1.1 christos 2019-01-08 Nick Clifton <nickc (a] redhat.com> 1467 1.1 christos 1468 1.1 christos PR 24044 1469 1.1 christos * cxxfilt.c (hp_symbol_characters): Delete. 1470 1.1 christos (main): Remove depcreated demangling styles. 1471 1.1 christos * stabs.c (parse_stab_argtypes): Remove support for old gnu v2 1472 1.1 christos demangling opnames. 1473 1.1 christos * testsuite/binutils-all/cxxfilt.exp: Use the 1474 1.1 christos --no-strip-underscore option for targets that do prefix their 1475 1.1 christos symbols with underscores. 1476 1.1 christos Update tests to eliminate those that use gnu v2 encoding. 1477 1.1 christos 1478 1.1 christos 2019-01-08 Tamar Christina <tamar.christina (a] arm.com> 1479 1.1 christos 1480 1.1 christos PR 24065 1481 1.1 christos * testsuite/binutils-all/copy-6.d: New test. 1482 1.1 christos * testsuite/binutils-all/objcopy.exp: Use it. 1483 1.1 christos 1484 1.1 christos 2019-01-08 Alan Modra <amodra (a] gmail.com> 1485 1.1 christos 1486 1.1 christos * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend 1487 1.1 christos $srcdir/$subdir to source file name if it starts with "./". 1488 1.1 christos 1489 1.1 christos 2019-01-05 Yoshinori Sato <ysato (a] users.sourceforge.jp> 1490 1.1 christos 1491 1.1 christos * readelf.c (get_machine_flags): Add RXv3 output. 1492 1.1 christos 1493 1.1 christos 2019-01-04 Nick Clifton <nickc (a] redhat.com> 1494 1.1 christos 1495 1.1 christos PR 24005 1496 1.1 christos * objdump.c (load_specific_debug_section): Check for integer 1497 1.1 christos overflow before attempting to allocate contents. 1498 1.1 christos 1499 1.1 christos 2019-01-04 Nick Clifton <nickc (a] redhat.com> 1500 1.1 christos 1501 1.1 christos PR 24001 1502 1.1 christos * objcopy.c (copy_object): Free dhandle after writing out the 1503 1.1 christos debug information. 1504 1.1 christos * objdump.c (dump_bfd): Free dhandle after printing out the debug 1505 1.1 christos information. 1506 1.1 christos 1507 1.1 christos 1508 1.1 christos 2019-01-01 Alan Modra <amodra (a] gmail.com> 1509 1.1 christos 1510 1.1 christos Update year range in copyright notice of all files. 1511 1.1 christos 1512 1.1 christos For older changes see ChangeLog-2018 1513 1.1 christos 1515 1.1 christos Copyright (C) 2019 Free Software Foundation, Inc. 1516 1.1 christos 1517 1.1 christos Copying and distribution of this file, with or without modification, 1518 1.1 christos are permitted in any medium without royalty provided the copyright 1519 1.1 christos notice and this notice are preserved. 1520 1.1 christos 1521 1.1 christos Local Variables: 1522 1.1 christos mode: change-log 1523 1.1 christos left-margin: 8 1524 1.1 christos fill-column: 74 1525 1.1 christos version-control: never 1526 End: 1527