1*75fd0b74Schristos2013-12-31 Nick Clifton <nickc@redhat.com> 2*75fd0b74Schristos 3*75fd0b74Schristos * objcopy.c (dump_sections): New list. 4*75fd0b74Schristos (command_line_switch): Add OPTION_DUMP_SECTION. 5*75fd0b74Schristos (copy_options): Add dump-section. 6*75fd0b74Schristos (copy_usage): Document new option. 7*75fd0b74Schristos (copy_object): Dump requested sections. 8*75fd0b74Schristos (copy_main): Handle --dump-section. 9*75fd0b74Schristos * doc/binutils.texi: Document --dump-section option. 10*75fd0b74Schristos * NEWS: Mention new feature. 11*75fd0b74Schristos 12*75fd0b74Schristos2013-12-20 Nick Clifton <nickc@redhat.com> 13*75fd0b74Schristos 14*75fd0b74Schristos PR binutils/16218 15*75fd0b74Schristos * dwarf.c (read_and_display_attr_value): Only print a tab 16*75fd0b74Schristos character if it preceeds further text. 17*75fd0b74Schristos 18*75fd0b74Schristos2013-12-19 Tom Tromey <tromey@redhat.com> 19*75fd0b74Schristos 20*75fd0b74Schristos * dwarf.c (fetch_indirect_string): Don't bias by section address. 21*75fd0b74Schristos (fetch_indexed_string): Likewise. 22*75fd0b74Schristos (process_debug_info): Likewise. 23*75fd0b74Schristos (display_debug_loc): Likewise. 24*75fd0b74Schristos (display_debug_ranges): Likewise. 25*75fd0b74Schristos 26*75fd0b74Schristos2013-12-13 Kuan-Lin Chen <kuanlinchentw@gmail.com> 27*75fd0b74Schristos Wei-Cheng Wang <cole945@gmail.com> 28*75fd0b74Schristos 29*75fd0b74Schristos * readelf.c: Include elf/nds32.h 30*75fd0b74Schristos (guess_is_rela): Add case for EM_NDS32. 31*75fd0b74Schristos (dump_relocations): Add case for EM_NDS32. 32*75fd0b74Schristos (decode_NDS32_machine_flags): New. 33*75fd0b74Schristos (get_machine_flags): Add case for EM_NDS32. 34*75fd0b74Schristos (is_32bit_abs_reloc): Likewise. 35*75fd0b74Schristos (is_16bit_abs_reloc): Likewise. 36*75fd0b74Schristos (process_nds32_specific): New. 37*75fd0b74Schristos (process_arch_specific): Add case for EM_NDS32. 38*75fd0b74Schristos * NEWS: Announce Andes nds32 support. 39*75fd0b74Schristos * MAINTAINERS: Add nds32 maintainers. 40*75fd0b74Schristos 41*75fd0b74Schristos2013-12-10 Roland McGrath <mcgrathr@google.com> 42*75fd0b74Schristos 43*75fd0b74Schristos * Makefile.am (install-exec-local): Prefix libtool invocation with 44*75fd0b74Schristos $(INSTALL_PROGRAM_ENV). 45*75fd0b74Schristos * Makefile.in: Regenerate. 46*75fd0b74Schristos 47*75fd0b74Schristos2013-11-22 Cory Fields <cory@coryfields.com> 48*75fd0b74Schristos 49*75fd0b74Schristos * windres.c (define_resource): Use zero for timestamp, making 50*75fd0b74Schristos output deterministic. time.h include is no longer needed. 51*75fd0b74Schristos * resres.c (res_append_resource): Likewise. 52*75fd0b74Schristos 53*75fd0b74Schristos2013-11-13 Martin Mitas <mity@morous.org> 54*75fd0b74Schristos 55*75fd0b74Schristos * rescoff.c (write_coff_file): Use 64-bit alignment for resource 56*75fd0b74Schristos data. 57*75fd0b74Schristos (coff_res_to_bin): Likewise. 58*75fd0b74Schristos 59*75fd0b74Schristos2013-11-07 Doug Evans <dje@google.com> 60*75fd0b74Schristos 61*75fd0b74Schristos Add pretty-printing of .debug_gnu_pubnames, .debug_gnu_pubtypes. 62*75fd0b74Schristos * dwarf.c (get_gdb_index_symbol_kind_name): New function. 63*75fd0b74Schristos (display_debug_pubnames_worker): Renamed from display_debug_pubnames. 64*75fd0b74Schristos Add support for .debug_gnu_pubnames, .debug_gnu_pubtypes. 65*75fd0b74Schristos (display_debug_pubnames, display_debug_pubnames_gnu): New functions. 66*75fd0b74Schristos (display_gdb_index): Redo printing of symbol kind. 67*75fd0b74Schristos (debug_displays): Add .debug_gnu_pubnames, .debug_gnu_pubtypes. 68*75fd0b74Schristos * dwarf.h (dwarf_section_display_enum): Add gnu_pubnames, gnu_pubtypes. 69*75fd0b74Schristos * readelf.c (process_section_headers): Add gnu_pubnames, gnu_pubtypes. 70*75fd0b74Schristos 71*75fd0b74Schristos2013-11-07 Roland McGrath <mcgrathr@google.com> 72*75fd0b74Schristos 73*75fd0b74Schristos * objdump.c (dump_dwarf): Grok bfd_mach_x86_64_nacl and 74*75fd0b74Schristos bfd_mach_x64_32_nacl as equivalent to bfd_mach_x86_64. 75*75fd0b74Schristos 76*75fd0b74Schristos2013-10-30 Alan Modra <amodra@gmail.com> 77*75fd0b74Schristos 78*75fd0b74Schristos * readelf.c (get_ppc_dynamic_type): Replace PPC_TLSOPT with PPC_OPT. 79*75fd0b74Schristos (get_ppc64_dynamic_type): Replace PPC64_TLSOPT with PPC64_OPT. 80*75fd0b74Schristos 81*75fd0b74Schristos2013-10-30 Ulrich Weigand <uweigand@de.ibm.com> 82*75fd0b74Schristos 83*75fd0b74Schristos * readelf.c (get_ppc64_symbol_other): New function. 84*75fd0b74Schristos (get_symbol_other): Use it for EM_PPC64. 85*75fd0b74Schristos 86*75fd0b74Schristos2013-10-30 Alan Modra <amodra@gmail.com> 87*75fd0b74Schristos 88*75fd0b74Schristos * readelf.c (get_machine_flags): Display ABI version for EM_PPC64. 89*75fd0b74Schristos 90*75fd0b74Schristos2013-10-24 Nick Clifton <nickc@redhat.com> 91*75fd0b74Schristos 92*75fd0b74Schristos * nm.c (display_rel_file): Treat bfd_error_no_symbols as 93*75fd0b74Schristos non-fatal. 94*75fd0b74Schristos 95*75fd0b74Schristos2013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com> 96*75fd0b74Schristos 97*75fd0b74Schristos * readelf.c (display_mips_gnu_attribute): Support Tag_GNU_MIPS_ABI_MSA. 98*75fd0b74Schristos * doc/binutils.texi: Document -Mmsa disassembler option. 99*75fd0b74Schristos 100*75fd0b74Schristos2013-10-14 Jan-Benedict Glaw <jbglaw@lug-owl.de> 101*75fd0b74Schristos 102*75fd0b74Schristos * readelf.c (decode_arm_unwind): Don't initialize `addr'. 103*75fd0b74Schristos 104*75fd0b74Schristos2013-10-14 Nick Clifton <nickc@redhat.com> 105*75fd0b74Schristos 106*75fd0b74Schristos * readelf.c (decode_arm_unwind): Initialise addr structure. 107*75fd0b74Schristos (process_symbol_table): Free lengths. 108*75fd0b74Schristos * srcconv.c (wr_sc): Free info. 109*75fd0b74Schristos 110*75fd0b74Schristos2013-10-11 Roland McGrath <mcgrathr@google.com> 111*75fd0b74Schristos 112*75fd0b74Schristos * winduni.c (languages): Use \345 (octal syntax) rather than 113*75fd0b74Schristos literal non-ASCII/non-UTF8 character in string literal. 114*75fd0b74Schristos 115*75fd0b74Schristos * readelf.c (print_dynamic_symbol): Use array subscript syntax 116*75fd0b74Schristos rather than addition syntax with string literal. 117*75fd0b74Schristos 118*75fd0b74Schristos2013-10-09 Nick Clifton <nickc@redhat.com> 119*75fd0b74Schristos 120*75fd0b74Schristos PR binutils/16023 121*75fd0b74Schristos * debug.c (debug_type_samep): Add missing break statement. 122*75fd0b74Schristos 123*75fd0b74Schristos PR binutils/16024 124*75fd0b74Schristos * objdump.c (usage): Mark as a no-return function. 125*75fd0b74Schristos (main): Add comment explaining why a break statement is not 126*75fd0b74Schristos needed. 127*75fd0b74Schristos 128*75fd0b74Schristos * dwarf.c (add64): New function. 129*75fd0b74Schristos (read_and_display_attr_value): Add CU offset in to the value 130*75fd0b74Schristos displayed for a DW_AT_ref8 attribute. 131*75fd0b74Schristos 132*75fd0b74Schristos2013-10-01 Cory Fields <cory@coryfields.com> 133*75fd0b74Schristos 134*75fd0b74Schristos * arsup.c (ar_save): Respect the deterministic setting when 135*75fd0b74Schristos reading from an mri script. 136*75fd0b74Schristos * ar.c (main): Set the default deterministic mode when reading 137*75fd0b74Schristos from an mri script. 138*75fd0b74Schristos 139*75fd0b74Schristos2013-10-01 Jan-Benedict Glaw <jbglaw@lug-owl.de> 140*75fd0b74Schristos 141*75fd0b74Schristos * dwarf.c (SAFE_BYTE_GET): Fix argument check. 142*75fd0b74Schristos 143*75fd0b74Schristos2013-09-27 H.J. Lu <hongjiu.lu@intel.com> 144*75fd0b74Schristos 145*75fd0b74Schristos * dwarf.c (display_debug_frames): Pass offset_size to 146*75fd0b74Schristos print_dwarf_vma for cie_id. 147*75fd0b74Schristos 148*75fd0b74Schristos2013-09-20 Alan Modra <amodra@gmail.com> 149*75fd0b74Schristos 150*75fd0b74Schristos * configure: Regenerate. 151*75fd0b74Schristos 152*75fd0b74Schristos2013-09-18 Tristan Gingold <gingold@adacore.com> 153*75fd0b74Schristos 154*75fd0b74Schristos * NEWS: Add marker for 2.24. 155*75fd0b74Schristos 156*75fd0b74Schristos2013-09-18 Tristan Gingold <gingold@adacore.com> 157*75fd0b74Schristos 158*75fd0b74Schristos * Makefile.am (LEXLIB): Define. Replase references to @LEXLIB@ 159*75fd0b74Schristos by $(LEXLIB). 160*75fd0b74Schristos * Makefile.in: Regenerate. 161*75fd0b74Schristos 162*75fd0b74Schristos2013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com> 163*75fd0b74Schristos 164*75fd0b74Schristos * readelf.c (get_machine_flags): Handle EF_MIPS_FP64. 165*75fd0b74Schristos 166*75fd0b74Schristos2013-09-12 Nick Clifton <nickc@redhat.com> 167*75fd0b74Schristos 168*75fd0b74Schristos * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a 169*75fd0b74Schristos precision parameter. 170*75fd0b74Schristos (dwarf_vmatoa): New wrapper for dwarf_vmatoa_1. 171*75fd0b74Schristos (print_dwarf_vma): Use dwarf_vmatoa_1. 172*75fd0b74Schristos (SAFE_BYTE_GET): Add check that VAL is big enough to contain 173*75fd0b74Schristos AMOUNT bytes. 174*75fd0b74Schristos (process_debug_info): Use an unsigned int for the offset size. 175*75fd0b74Schristos (process_debug_pubnames): Likewise. 176*75fd0b74Schristos (display_debug_aranges): Likewise. 177*75fd0b74Schristos (struct Frame_Chunk): Use dwarf_vma type for pc_begin and pc_range 178*75fd0b74Schristos fields. 179*75fd0b74Schristos (frame_display_row): Use print_dwarf_vma to display dwarf_vma 180*75fd0b74Schristos values. 181*75fd0b74Schristos (display_debug_frames): Likewise. 182*75fd0b74Schristos 183*75fd0b74Schristos2013-09-10 Nick Clifton <nickc@redhat.com> 184*75fd0b74Schristos 185*75fd0b74Schristos * dwarf.c (display_debug_frames): Check for DW64_CIE_ID when 186*75fd0b74Schristos parsing 64-bit frames. 187*75fd0b74Schristos 188*75fd0b74Schristos2013-08-27 Nick Clifton <nickc@redhat.com> 189*75fd0b74Schristos 190*75fd0b74Schristos PR binutils/15796 191*75fd0b74Schristos * ar.c (map_over_members): Correctly handle multiple same-name 192*75fd0b74Schristos entries on the command line and in the archive. 193*75fd0b74Schristos 194*75fd0b74Schristos2013-08-23 H.J. Lu <hongjiu.lu@intel.com> 195*75fd0b74Schristos 196*75fd0b74Schristos * doc/binutils.texi: Remove the extra space. 197*75fd0b74Schristos 198*75fd0b74Schristos2013-08-23 Mikael Pettersson <mikpe@it.uu.se> 199*75fd0b74Schristos 200*75fd0b74Schristos PR binutils/15779 201*75fd0b74Schristos * doc/binutils.texi (ranlib -D): Correct description. 202*75fd0b74Schristos PR binutils/15777 203*75fd0b74Schristos (nm --special-syms): Fix typo. 204*75fd0b74Schristos 205*75fd0b74Schristos2013-08-23 Nick Clifton <nickc@redhat.com> 206*75fd0b74Schristos 207*75fd0b74Schristos PR binutils/15798 208*75fd0b74Schristos * doc/binutils.texi (ar cmdline): Update description of 'q' 209*75fd0b74Schristos command. 210*75fd0b74Schristos 211*75fd0b74Schristos PR binutils/14136 212*75fd0b74Schristos (nm): Add description of 'I' symbol type. 213*75fd0b74Schristos 214*75fd0b74Schristos2013-08-23 Yuri Chornoivan <yurchor@ukr.net> 215*75fd0b74Schristos 216*75fd0b74Schristos PR binutils/15834 217*75fd0b74Schristos * od-xcoff.c: Fix typos. 218*75fd0b74Schristos 219*75fd0b74Schristos2013-08-19 Tristan Gingold <gingold@adacore.com> 220*75fd0b74Schristos 221*75fd0b74Schristos * nm.c (print_size_symbols): Directly get symbol size. 222*75fd0b74Schristos 223*75fd0b74Schristos2013-08-12 Andreas Schwab <schwab@suse.de> 224*75fd0b74Schristos 225*75fd0b74Schristos PR binutils/15818 226*75fd0b74Schristos * objdump.c (disassemble_section): Return early if nothing from 227*75fd0b74Schristos this section needs to be disassembled. 228*75fd0b74Schristos 229*75fd0b74Schristos2013-08-09 Nick Clifton <nickc@redhat.com> 230*75fd0b74Schristos 231*75fd0b74Schristos * readelf.c (get_machine_flags): Handle RL78 G10 flag. 232*75fd0b74Schristos 233*75fd0b74Schristos2013-07-26 Sergey Guriev <sergey.s.guriev@intel.com> 234*75fd0b74Schristos Alexander Ivchenko <alexander.ivchenko@intel.com> 235*75fd0b74Schristos Maxim Kuznetsov <maxim.kuznetsov@intel.com> 236*75fd0b74Schristos Sergey Lega <sergey.s.lega@intel.com> 237*75fd0b74Schristos Anna Tikhonova <anna.tikhonova@intel.com> 238*75fd0b74Schristos Ilya Tocar <ilya.tocar@intel.com> 239*75fd0b74Schristos Andrey Turetskiy <andrey.turetskiy@intel.com> 240*75fd0b74Schristos Ilya Verbin <ilya.verbin@intel.com> 241*75fd0b74Schristos Kirill Yukhin <kirill.yukhin@intel.com> 242*75fd0b74Schristos Michael Zolotukhin <michael.v.zolotukhin@intel.com> 243*75fd0b74Schristos 244*75fd0b74Schristos * dwarf.c (dwarf_regnames_i386): Add k0-k7 registers and 245*75fd0b74Schristos numeration in comments. 246*75fd0b74Schristos (dwarf_regnames_x86_64): Add xmm16-31 and k0-k7 registers to 247*75fd0b74Schristos dwarf table. 248*75fd0b74Schristos 249*75fd0b74Schristos2013-07-19 Nick Clifton <nickc@redhat.com> 250*75fd0b74Schristos 251*75fd0b74Schristos PR binutils/15745 252*75fd0b74Schristos * readelf.c (get_unwind_section_word): Whilst searching for a 253*75fd0b74Schristos reloc section associated with an unwind section, check the type as 254*75fd0b74Schristos well as the section number. 255*75fd0b74Schristos 256*75fd0b74Schristos2013-07-18 Jim Thomas <thomas@cfht.hawaii.edu> 257*75fd0b74Schristos 258*75fd0b74Schristos * ar.c (usage): Fix C conformance issue. 259*75fd0b74Schristos 260*75fd0b74Schristos2013-07-18 Nick Clifton <nickc@redhat.com> 261*75fd0b74Schristos 262*75fd0b74Schristos * doc/binutils.texi (nm, objdump): Remove bogus links to STABS 263*75fd0b74Schristos documentation. 264*75fd0b74Schristos 265*75fd0b74Schristos * readelf.c (process_unwind): Do not return the result of a void 266*75fd0b74Schristos function. 267*75fd0b74Schristos 268*75fd0b74Schristos2013-07-15 Maciej W. Rozycki <macro@codesourcery.com> 269*75fd0b74Schristos 270*75fd0b74Schristos * readelf.c (display_mips_gnu_attribute): Replace hardcoded magic 271*75fd0b74Schristos numbers with enum values. 272*75fd0b74Schristos 273*75fd0b74Schristos2013-07-12 Maciej W. Rozycki <macro@codesourcery.com> 274*75fd0b74Schristos 275*75fd0b74Schristos * readelf.c (get_machine_flags): Handle EF_MIPS_NAN2008. 276*75fd0b74Schristos 277*75fd0b74Schristos2013-07-10 Tristan Gingold <gingold@adacore.com> 278*75fd0b74Schristos 279*75fd0b74Schristos * od-xcoff.c (OPT_LDINFO): Define. 280*75fd0b74Schristos (options): Add ldinfo. 281*75fd0b74Schristos (xcoff_help): Mention ldinfo. 282*75fd0b74Schristos (xcoff_dump): Rename to ... 283*75fd0b74Schristos (xcoff_dump_obj): ... this. Add a break. 284*75fd0b74Schristos (dump_dumpx_core): New function. 285*75fd0b74Schristos (xcoff_dump_core): Likewise. 286*75fd0b74Schristos (xcoff_dump): Likewise. 287*75fd0b74Schristos * doc/binutils.texi (objdump): Mention ldinfo. 288*75fd0b74Schristos 289*75fd0b74Schristos2013-07-09 Tristan Gingold <gingold@adacore.com> 290*75fd0b74Schristos 291*75fd0b74Schristos * configure.com: Add new defines to match changes in configure. 292*75fd0b74Schristos 293*75fd0b74Schristos2013-05-28 Cary Coutant <ccoutant@google.com> 294*75fd0b74Schristos 295*75fd0b74Schristos * dwarf.c (display_debug_lines_raw): Print section offsets. 296*75fd0b74Schristos 297*75fd0b74Schristos2013-05-15 Cary Coutant <ccoutant@google.com> 298*75fd0b74Schristos 299*75fd0b74Schristos * dwarf.c (SAFE_BYTE_GET64): Correct end-of-buffer check; 300*75fd0b74Schristos don't increment PTR. 301*75fd0b74Schristos (decode_location_expression): DW_OP_const2u should read 2 bytes. 302*75fd0b74Schristos (display_debug_lines_decoded): Adjust formatting. 303*75fd0b74Schristos * elfcomm.c (byte_get_little_endian): Add cases for 5-, 6-, and 304*75fd0b74Schristos 7-byte reads. 305*75fd0b74Schristos (byte_get_big_endian): Likewise. 306*75fd0b74Schristos (byte_get_signed): Likewise. 307*75fd0b74Schristos 308*75fd0b74Schristos2013-05-09 Andrew Pinski <apinski@cavium.com> 309*75fd0b74Schristos 310*75fd0b74Schristos * doc/binutils.texi: Document -Mvirt disassembler option. 311*75fd0b74Schristos 312*75fd0b74Schristos2013-05-02 Nick Clifton <nickc@redhat.com> 313*75fd0b74Schristos 314*75fd0b74Schristos * readelf.c: Add support for MSP430X architecture. 315*75fd0b74Schristos 316*75fd0b74Schristos2013-05-02 Nick Clifton <nickc@redhat.com> 317*75fd0b74Schristos 318*75fd0b74Schristos * dwarf.c (display_debug_lines_raw): Do not treat .debug_line.dwo 319*75fd0b74Schristos sections as if they were fragmentary .debug_line sections. 320*75fd0b74Schristos (display_debug_lines_decoded): Likewise. 321*75fd0b74Schristos 322*75fd0b74Schristos2013-04-29 Nick Clifton <nickc@redhat.com> 323*75fd0b74Schristos 324*75fd0b74Schristos * dwarf.c (read_debug_line_header): New function. Reads in a 325*75fd0b74Schristos header in a .debug_line section. 326*75fd0b74Schristos (display_debug_lines_raw): Use new function. Handle fragmentary 327*75fd0b74Schristos .debug_line sections. 328*75fd0b74Schristos (display_debug_lines_decoded): Likewise. 329*75fd0b74Schristos * readelf.c (process_section_headers): Handle fragmenatry 330*75fd0b74Schristos .debug_line sections. 331*75fd0b74Schristos (display_debug_section): Likewise. 332*75fd0b74Schristos 333*75fd0b74Schristos2013-04-26 Ian Lance Taylor <iant@google.com> 334*75fd0b74Schristos 335*75fd0b74Schristos * MAINTAINERS: Add myself and Cary as gold maintainers. 336*75fd0b74Schristos 337*75fd0b74Schristos2013-04-08 Tom Tromey <tromey@redhat.com> 338*75fd0b74Schristos 339*75fd0b74Schristos * dwarf.c (process_debug_info): Check dwarf_cutoff_level. 340*75fd0b74Schristos 341*75fd0b74Schristos2013-04-08 Tom Tromey <tromey@redhat.com> 342*75fd0b74Schristos 343*75fd0b74Schristos * dwarf-mode.el: Bump version number. 344*75fd0b74Schristos (dwarf-mode): Remove autoload. 345*75fd0b74Schristos (dwarf-die-reference): Relax regexp. 346*75fd0b74Schristos 347*75fd0b74Schristos2013-04-05 Alan Modra <amodra@gmail.com> 348*75fd0b74Schristos 349*75fd0b74Schristos PR binutils/15324 350*75fd0b74Schristos * configure.in: Add strnlen to AC_CHECK_DECLS, sort. 351*75fd0b74Schristos * dwarf.c (strnlen): Provide fallback decl. 352*75fd0b74Schristos * config.in: Regnerate. 353*75fd0b74Schristos * configure: Regenerate. 354*75fd0b74Schristos 355*75fd0b74Schristos2013-03-29 H.J. Lu <hongjiu.lu@intel.com> 356*75fd0b74Schristos 357*75fd0b74Schristos * dwarf.c (process_debug_info): Increment hdrptr by 8 after 358*75fd0b74Schristos SAFE_BYTE_GET64. 359*75fd0b74Schristos 360*75fd0b74Schristos2013-03-27 Phil Krylov <phil.krylov@gmail.com> 361*75fd0b74Schristos 362*75fd0b74Schristos PR binutils/13409 363*75fd0b74Schristos * winduni.c (codepages[]): Use UTF-16LE. 364*75fd0b74Schristos (wind_MultiByteToWideChar): Likewise. 365*75fd0b74Schristos (wind_WideCharToMultiByte): Likewise. 366*75fd0b74Schristos 367*75fd0b74Schristos2013-03-27 Alan Modra <amodra@gmail.com> 368*75fd0b74Schristos 369*75fd0b74Schristos PR binutils/15206 370*75fd0b74Schristos * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int. 371*75fd0b74Schristos 372*75fd0b74Schristos2013-03-26 Nick Clifton <nickc@redhat.com> 373*75fd0b74Schristos 374*75fd0b74Schristos PR binutils/15206 375*75fd0b74Schristos * dwarf.c (SAFE_BYTE_GET): New macro - checks remaining buffer 376*75fd0b74Schristos space before calling byte_get. 377*75fd0b74Schristos (SAFE_BYTE_GET_AND_INC): New macro. 378*75fd0b74Schristos (SAFE_SIGNED_BYTE_GET): New macro. 379*75fd0b74Schristos (SAFE_SIGNED_BYTE_GET_AND_INC): New macro. 380*75fd0b74Schristos (SAFE_BYTE_GET64): New macro. 381*75fd0b74Schristos (process_extened_line_op): Use new macros. Use strnlen when 382*75fd0b74Schristos appropriate. 383*75fd0b74Schristos (fetch_indirect_string): Likewise. 384*75fd0b74Schristos (get_FORM_name): Likewise. 385*75fd0b74Schristos (decode_location_expression): Likewise. 386*75fd0b74Schristos (read_and_display_attr_value): Likewise. 387*75fd0b74Schristos (process_debug_info): Likewise. 388*75fd0b74Schristos (display_debug_lines_raw): Likewise. 389*75fd0b74Schristos (display_debug_lines_decoded): Likewise. 390*75fd0b74Schristos (display_debug_pubnames): Likewise. 391*75fd0b74Schristos (display_debug_macinfo): Likewise. 392*75fd0b74Schristos (get_line_filename_and_dirname): Likewise. 393*75fd0b74Schristos (display_debug_macro): Likewise. 394*75fd0b74Schristos (display_loc_list): Likewise. 395*75fd0b74Schristos (display_loc_list_dwo): Likewise. 396*75fd0b74Schristos (display_debug_aranges): Likewise. 397*75fd0b74Schristos (display_debug_ranges): Likewise. 398*75fd0b74Schristos (frame_display_row): Likewise. 399*75fd0b74Schristos (display_debug_frames): Likewise. 400*75fd0b74Schristos 401*75fd0b74Schristos2013-03-25 Nick Clifton <nickc@redhat.com> 402*75fd0b74Schristos 403*75fd0b74Schristos PR binutils/15202 404*75fd0b74Schristos * dwarf.c (read_leb128): Add END parameter. Do not read at or 405*75fd0b74Schristos beyond end. 406*75fd0b74Schristos (read_sleb128): Add END parameter. 407*75fd0b74Schristos (read_uleb128): New function. 408*75fd0b74Schristos (process_extended_line_op): Pass END to leb128 functions. 409*75fd0b74Schristos (process_abbrev_section): Likewise. 410*75fd0b74Schristos (decode_location_expression): Likewise. 411*75fd0b74Schristos (read_and_display_attr_value): Likewise. 412*75fd0b74Schristos (read_and_display_attr): Likewise. 413*75fd0b74Schristos (process_debug_info): Likewise. 414*75fd0b74Schristos (display_debug_lines_raw): Likewise. 415*75fd0b74Schristos (display_debug_lines_decoded): Likewise. 416*75fd0b74Schristos (display_debug_macinfo): Likewise. 417*75fd0b74Schristos (get_line_filename_and_dirname): Likewise. 418*75fd0b74Schristos (display_debug_macro): Likewise. 419*75fd0b74Schristos (display_loc_list_dwo): Likewise. 420*75fd0b74Schristos (display_debug_ranges): Likewise. 421*75fd0b74Schristos * dwarf.h (read_leb128): Update prototype. 422*75fd0b74Schristos * readelf.c (read_uleb128): Add END parameter. 423*75fd0b74Schristos (decode_arm_unwind_bytecode): Pass END to read_uleb128. 424*75fd0b74Schristos (decode_tic6x_unwind_bytecode): Likewise. 425*75fd0b74Schristos (display_tag_value): New function. 426*75fd0b74Schristos (display_arm_attribute): Add END parameter. Pass END to 427*75fd0b74Schristos read_uleb128. Use display_tag_value. 428*75fd0b74Schristos (display_gnu_attribute): Likewise. 429*75fd0b74Schristos (display_power_gnu_attribute): Likewise. 430*75fd0b74Schristos (display_sparc_gnu_attribute): Likewise. 431*75fd0b74Schristos (display_mips_gnu_attribute): Likewise. 432*75fd0b74Schristos (display_tic6x_attribute): Likewise. 433*75fd0b74Schristos (process_attributes): Likewise. 434*75fd0b74Schristos (display_raw_attribute): New function. 435*75fd0b74Schristos 436*75fd0b74Schristos2013-03-22 Nick Clifton <nickc@redhat.com> 437*75fd0b74Schristos 438*75fd0b74Schristos PR binutils/15201 439*75fd0b74Schristos * dwarf.c (display_debug_ranges): Add checks for reading beyond 440*75fd0b74Schristos the end of the section. 441*75fd0b74Schristos 442*75fd0b74Schristos PR binutils/15157 443*75fd0b74Schristos * readelf.c (apply_relocations): Catch relocations with negative 444*75fd0b74Schristos offsets. 445*75fd0b74Schristos 446*75fd0b74Schristos2013-03-15 Nick Clifton <nickc@redhat.com> 447*75fd0b74Schristos 448*75fd0b74Schristos * addr2line.c (slurp_symtab): If canonicalization reveals that 449*75fd0b74Schristos there were no ordinary symbols, try loading the dynamic symbols 450*75fd0b74Schristos instead. 451*75fd0b74Schristos 452*75fd0b74Schristos2013-03-14 Markos Chandras <markos.chandras@imgtec.com> 453*75fd0b74Schristos 454*75fd0b74Schristos * MAINTAINERS: Add myself as Meta maintainer. 455*75fd0b74Schristos 456*75fd0b74Schristos2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com> 457*75fd0b74Schristos 458*75fd0b74Schristos * readelf.c (get_note_type): Add NT_S390_TDB. 459*75fd0b74Schristos 460*75fd0b74Schristos2013-03-07 Alan Modra <amodra@gmail.com> 461*75fd0b74Schristos 462*75fd0b74Schristos * strings.c (get_char): Dispense with buf[]. Instead shift 463*75fd0b74Schristos chars into big-endian value and byte-swap later if 464*75fd0b74Schristos little-endian. Don't EOF check value read from object. 465*75fd0b74Schristos 466*75fd0b74Schristos2013-03-05 Corinna Vinschen <vinschen@redhat.com> 467*75fd0b74Schristos 468*75fd0b74Schristos * configure.in: Build DLL tools on x86_64-*-cygwin* as well. 469*75fd0b74Schristos * configure: Regenerate. 470*75fd0b74Schristos 471*75fd0b74Schristos2013-03-04 Nick Clifton <nickc@redhat.com> 472*75fd0b74Schristos 473*75fd0b74Schristos * elfcomm.c (error): Flush stdout before emitting the error 474*75fd0b74Schristos message. 475*75fd0b74Schristos (warn): Likewise. 476*75fd0b74Schristos 477*75fd0b74Schristos2013-03-01 Cary Coutant <ccoutant@google.com> 478*75fd0b74Schristos 479*75fd0b74Schristos * dwarf.c (cu_tu_indexes_read, shndx_pool, shndx_pool_size) 480*75fd0b74Schristos (shndx_pool_used): Move to top of file. 481*75fd0b74Schristos (struct cu_tu_set): New type. 482*75fd0b74Schristos (cu_count, tu_count, cu_sets, tu_sets): New file scope variables. 483*75fd0b74Schristos (fetch_indexed_string): Add "this_set" parameter. Update all callers. 484*75fd0b74Schristos (find_cu_tu_set_v2): New function. 485*75fd0b74Schristos (read_and_display_attr_value): Add "this_set" parameter. 486*75fd0b74Schristos (read_and_display_attr): Likewise. 487*75fd0b74Schristos (process_debug_info): Track base offsets for DWARF package files. 488*75fd0b74Schristos (load_debug_info): Call load_cu_tu_indexes. 489*75fd0b74Schristos (get_DW_SECT_short_name): New function. 490*75fd0b74Schristos (process_cu_tu_index): Add support for version 2 DWARF package files. 491*75fd0b74Schristos 492*75fd0b74Schristos2013-02-27 Alan Modra <amodra@gmail.com> 493*75fd0b74Schristos 494*75fd0b74Schristos PR binutils/15191 495*75fd0b74Schristos * readelf.c (offsetof): Define. 496*75fd0b74Schristos (CHECK_ENTSIZE_VALUES): Remove extraneous indefinite article. 497*75fd0b74Schristos (process_corefile_note_segment): Allow notes without name or 498*75fd0b74Schristos desc. Combine out-of-range checks. Disallow "negative" 499*75fd0b74Schristos notesz or descsz. 500*75fd0b74Schristos 501*75fd0b74Schristos2013-02-26 Nick Clifton <nickc@redhat.com> 502*75fd0b74Schristos 503*75fd0b74Schristos PR binutils/15191 504*75fd0b74Schristos * readelf.c (process_corefile_note_segment): Prevent attempts to 505*75fd0b74Schristos read beyond the end of the note buffer. 506*75fd0b74Schristos 507*75fd0b74Schristos2013-02-15 Kai Tietz <ktietz@redhat.com> 508*75fd0b74Schristos 509*75fd0b74Schristos * objcopy.c (copy_main): Initialize context variable. 510*75fd0b74Schristos 511*75fd0b74Schristos2013-02-15 Nick Clifton <nickc@redhat.com> 512*75fd0b74Schristos 513*75fd0b74Schristos PR binutils/15140 514*75fd0b74Schristos * ar.c (open_inarch): Fail on attempts to convert a normal archive 515*75fd0b74Schristos to a thin archive or vice versa. 516*75fd0b74Schristos * elfcomm.c (make_qualified_name): Handle corrupted thin 517*75fd0b74Schristos archives. 518*75fd0b74Schristos * readelf.c (process_archive): Likewise. 519*75fd0b74Schristos * doc/binutils.texi: Clarify documentation describing thin 520*75fd0b74Schristos archives. 521*75fd0b74Schristos 522*75fd0b74Schristos2013-02-15 Nick Clifton <nickc@redhat.com> 523*75fd0b74Schristos 524*75fd0b74Schristos PR binutils/15033 525*75fd0b74Schristos * objcopy.c (enum change_action): Delete. 526*75fd0b74Schristos (struct section_list): Delete remove, copy, change_vma, change_lma 527*75fd0b74Schristos and set_flags fields. Add context field. 528*75fd0b74Schristos (find_section_list): Add a context parameter. Add support for 529*75fd0b74Schristos wildcard characters in section names. 530*75fd0b74Schristos (is_strip_section): Check for sections being both copied and 531*75fd0b74Schristos removed. 532*75fd0b74Schristos (copy_object): Pass context to find_section_list. 533*75fd0b74Schristos (setup_section): Likewise. 534*75fd0b74Schristos (copy_section): Likewise. 535*75fd0b74Schristos (copy_main): Likewise. 536*75fd0b74Schristos * doc/binutils: Document the new behaviour. 537*75fd0b74Schristos * NEWS: Mention the new feature 538*75fd0b74Schristos 539*75fd0b74Schristos2013-02-14 Nick Clifton <nickc@redhat.com> 540*75fd0b74Schristos 541*75fd0b74Schristos PR binutils/15125 542*75fd0b74Schristos * objcopy.c (copy_object): Provide a helpful warning message when 543*75fd0b74Schristos adding a gnu_debuglink section to an object which already contains 544*75fd0b74Schristos one. 545*75fd0b74Schristos 546*75fd0b74Schristos2013-02-07 Nick Clifton <nickc@redhat.com> 547*75fd0b74Schristos 548*75fd0b74Schristos * elfcomm.c (get_archive_member_name): Prevent seg-fault if a 549*75fd0b74Schristos corrupt archive uses long names but has no long name table. 550*75fd0b74Schristos 551*75fd0b74Schristos2013-02-06 Sandra Loosemore <sandra@codesourcery.com> 552*75fd0b74Schristos Andrew Jenner <andrew@codesourcery.com> 553*75fd0b74Schristos 554*75fd0b74Schristos Based on patches from Altera Corporation. 555*75fd0b74Schristos 556*75fd0b74Schristos * readelf.c: Include elf/nios2.h. 557*75fd0b74Schristos (dump_relocations): Add case for EM_ALTERA_NIOS2. 558*75fd0b74Schristos (get_nios2_dynamic_type): New. 559*75fd0b74Schristos (get_dynamic_type): Add case for EM_ALTERA_NIOS2. 560*75fd0b74Schristos (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case. 561*75fd0b74Schristos (is_16bit_abs_reloc): Likewise. 562*75fd0b74Schristos (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases. 563*75fd0b74Schristos * NEWS: Note Altera Nios II support. 564*75fd0b74Schristos * MAINTAINERS: Add Nios II maintainers. 565*75fd0b74Schristos 566*75fd0b74Schristos2013-01-29 Xi Wang <xi.wang@gmail.com> 567*75fd0b74Schristos 568*75fd0b74Schristos * readelf.c (process_version_sections): Fix overflow checks to 569*75fd0b74Schristos avoid undefined behaviour. 570*75fd0b74Schristos 571*75fd0b74Schristos2013-01-28 Doug Evans <dje@google.com> 572*75fd0b74Schristos 573*75fd0b74Schristos * dwarf.c (display_gdb_index): Handle .gdb_index version 8. 574*75fd0b74Schristos 575*75fd0b74Schristos2013-01-28 Robert Schiele <rschiele@gmail.com> 576*75fd0b74Schristos 577*75fd0b74Schristos * objcopy.c (parse_flags): Add merge and strings section flags. 578*75fd0b74Schristos 579*75fd0b74Schristos2013-01-25 Cary Coutant <ccoutant@google.com> 580*75fd0b74Schristos 581*75fd0b74Schristos * dwarf.c (display_loc_list): Update offset for each line 582*75fd0b74Schristos printed. 583*75fd0b74Schristos (print_addr_index): New function. 584*75fd0b74Schristos (display_loc_list_dwo): Update offset for each line printed. 585*75fd0b74Schristos Fix problems displaying loclists in .dwo files. Add support 586*75fd0b74Schristos for type 4 entries. 587*75fd0b74Schristos (display_debug_loc): Remove custom header for .dwo files. 588*75fd0b74Schristos (display_debug_addr): Adjust formatting. 589*75fd0b74Schristos 590*75fd0b74Schristos2013-01-25 Marco Atzeri <marco.atzeri@gmail.com> 591*75fd0b74Schristos 592*75fd0b74Schristos * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK. 593*75fd0b74Schristos 594*75fd0b74Schristos2013-01-24 Doug Evans <dje@google.com> 595*75fd0b74Schristos 596*75fd0b74Schristos * dwarf.c (display_debug_addr): Add missing parentheses to expression. 597*75fd0b74Schristos 598*75fd0b74Schristos2013-01-24 Nick Clifton <nickc@redhat.com> 599*75fd0b74Schristos 600*75fd0b74Schristos * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH. 601*75fd0b74Schristos 602*75fd0b74Schristos2013-01-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 603*75fd0b74Schristos 604*75fd0b74Schristos * readelf.c: Add strings for NT_S390_LAST_BREAK and 605*75fd0b74Schristos NT_S390_SYSTEM_CALL. 606*75fd0b74Schristos 607*75fd0b74Schristos2013-01-18 Nick Clifton <nickc@redhat.com> 608*75fd0b74Schristos 609*75fd0b74Schristos PR binutils/15026 610*75fd0b74Schristos * addr2line.c (translate_addresses): When pretty printing, print 611*75fd0b74Schristos unknown function names on the same line as unknown symbol names. 612*75fd0b74Schristos 613*75fd0b74Schristos2013-01-17 Nickolai Zeldovich <nickolai@csail.mit.edu> 614*75fd0b74Schristos 615*75fd0b74Schristos * objdump.c (dump_target_specific): Fix NULL pointer test. 616*75fd0b74Schristos 617*75fd0b74Schristos2013-01-16 Alan Modra <amodra@gmail.com> 618*75fd0b74Schristos 619*75fd0b74Schristos PR binutils/15018 620*75fd0b74Schristos * stabs.c (parse_stab_members): Always set physname here to avoid 621*75fd0b74Schristos gcc warning.. 622*75fd0b74Schristos (parse_stab_argtypes): ..and don't duplicate the init here. 623*75fd0b74Schristos 624*75fd0b74Schristos2013-01-10 Will Newton <will.newton@imgtec.com> 625*75fd0b74Schristos 626*75fd0b74Schristos * binutils/readelf.c: (guess_is_rela): Add EM_METAG. 627*75fd0b74Schristos (dump_relocations): Add EM_METAG. 628*75fd0b74Schristos (get_machine_name): Correct case for Meta. 629*75fd0b74Schristos (is_32bit_abs_reloc): Add support for Meta ADDR32 reloc. 630*75fd0b74Schristos (is_none_reloc): Add support for Meta NONE reloc. 631*75fd0b74Schristos 632*75fd0b74Schristos2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com> 633*75fd0b74Schristos 634*75fd0b74Schristos * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK 635*75fd0b74Schristos and NT_ARM_HW_WATCH. 636*75fd0b74Schristos 637*75fd0b74Schristos2013-01-07 Roland McGrath <mcgrathr@google.com> 638*75fd0b74Schristos 639*75fd0b74Schristos * objcopy.c (deterministic): Make int rather than bfd_boolean, 640*75fd0b74Schristos initialize to -1. 641*75fd0b74Schristos (strip_options, copy_options): Add -U/--disable-deterministic-archives. 642*75fd0b74Schristos (default_deterministic): New function. 643*75fd0b74Schristos (strip_main, copy_main): Handle -U. Call default_deterministic. 644*75fd0b74Schristos (copy_usage, strip_usage): Describe -U. Cite whether -D or -U is 645*75fd0b74Schristos the default based on DEFAULT_AR_DETERMINISTIC. 646*75fd0b74Schristos * doc/binutils.texi (objcopy, strip): Describe -U and effect of 647*75fd0b74Schristos configure options on -D. 648*75fd0b74Schristos 649*75fd0b74Schristos * ar.c (default_deterministic): Comment fix. 650*75fd0b74Schristos 651*75fd0b74Schristos2013-01-07 Patrice Dumas <pertusus@free.fr> 652*75fd0b74Schristos 653*75fd0b74Schristos * doc/binutils.texi: Fix ordering of top level nodes. 654*75fd0b74Schristos Replace erroneous uses of @itemx with @item. 655*75fd0b74Schristos 656*75fd0b74Schristos2013-01-04 Andreas Schwab <schwab@linux-m68k.org> 657*75fd0b74Schristos 658*75fd0b74Schristos * doc/binutils.texi (elfedit): Fix use of @itemx in @table. 659*75fd0b74Schristos 660*75fd0b74Schristos2013-01-03 Marcus Shawcroft <marcus.shawcroft@arm.com> 661*75fd0b74Schristos 662*75fd0b74Schristos * MAINTAINERS: Add myself as AArch64 co-maintainer. 663*75fd0b74Schristos 664*75fd0b74Schristos2013-01-02 H.J. Lu <hongjiu.lu@intel.com> 665*75fd0b74Schristos 666*75fd0b74Schristos * version.c (print_version): Update copyright year to 2013. 667*75fd0b74Schristos 668*75fd0b74SchristosFor older changes see ChangeLog-2012 669*75fd0b74Schristos 670*75fd0b74SchristosCopyright (C) 2013 Free Software Foundation, Inc. 671*75fd0b74Schristos 672*75fd0b74SchristosCopying and distribution of this file, with or without modification, 673*75fd0b74Schristosare permitted in any medium without royalty provided the copyright 674*75fd0b74Schristosnotice and this notice are preserved. 675*75fd0b74Schristos 676*75fd0b74SchristosLocal Variables: 677*75fd0b74Schristosmode: change-log 678*75fd0b74Schristosleft-margin: 8 679*75fd0b74Schristosfill-column: 74 680*75fd0b74Schristosversion-control: never 681*75fd0b74SchristosEnd: 682