aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2008-07-26 * binutils-all/objdump.exp: Run compressed debug test only for ELF.Alan Modra1-0/+4
2008-07-11 * binutils-all/objdump.W: Generalize to adjust for targets withHans-Peter Nilsson1-0/+5
non-byte-size instructions.
2008-07-10bfd/Craig Silverstein1-0/+12
* Makefile.am (BFD32_LIBS): Add compress.lo. (BFD32_LIBS_CFILES): Add compress.c. (BFD_H_FILES): Likewise. * Makefile.in: Regenerate. * bfd-in2.h: Regenerate. * config.in: Add HAVE_ZLIB_H * configure.in: Add test for libz and zlib.h * configure: Regenerate. * dwarf2.c (read_section): New function. (read_indirect_string): Call new function read_section. (read_abbrevs): Likewise. (decode_line_info): Likewise. (read_debug_ranges): Likewise. (find_line): Call new function read_section when just one .zdebug_info section is found, otherwise read and compress multiple sections. (_bfd_dwarf2_cleanup_debug_info): Free sec_info_ptr. * elf.c (_bfd_elf_make_section_from_shdr): Add zdebug prefix. (special_sections_z): New struct. (special_sections): Refer to special_sections_z. * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Recognize sections named .zdebug_*. (_bfd_mips_elf_fake_sections): Likewise. * compress.c: New file. (bfd_uncompress_section_contents): New function. bfd/doc/ * Makefile.am (BFD_H_DEP): Add ../compress.c. * Makefile.in: Regenerate. binutils/ * config.in: Add HAVE_ZLIB_H * configure.in: Add test for libz and zlib.h * configure: Regenerate. * dwarf.c (debug_displays): Add .zdebug_* strings. * dwarf.h (struct dwarf_section): Add fields uncompressed_namd and compressed_name. * objdump.c (load_debug_section): Call bfd_uncompress_section_contents when loading a compressed section. (dump_dwarf_section): Recognize compressed section name. (mach_o_dwarf_sections): Rename as mach_o_uncompressed_dwarf_sections. (mach_o_compressed_dwarf_sections): New variable. (generic_dwarf_section): Rename as generic_uncompressed_dwarf_sections. (generic_compressed_dwarf_sections): New variable. (check_mach_o_dwarf): Save and restore mach_o_compressed_dwarf_sections. * readelf.c: Add #include for config.h and zlib.h (process_section_headers): Recognize compressed section name. (uncompress_section_contents): New function. (load_debug_section): Call uncompress_section_contents when loading a compressed section. (display_debug_section): Recognize compressed section name. binutils/testsuite: * binutils-all/objdump.exp: Add test for objdump -s on a file with a compressed debug section. Add test for objdump -W on a file that contains a compressed debug section. * binutils-all/readelf.exp: Call readelf_compressed_wa_test. (readelf_compressed_wa_test): New function. * binutils-all/dw2-compressed.S: New file. * binutils-all/objdump.W: New file. * binutils-all/objdump.s: New file. * binutils-all/readelf.wa: New file.
2008-07-082008-07-08 Kai Tietz <kai.tietz@onevision.com>Kai Tietz1-0/+8
* binutils-all/objcopy.exp (copy_setup): Check if host-triplet is target-triplet for execution tests. (copy_executable): Likewise. (strip_executable): Likewise. (strip_executable_with_saving_a_symbol): Likewise.
2008-05-29bfd/Jan Kratochvil1-0/+6
* elf.c (assign_file_positions_for_load_sections): Adjust pre-section gaps based on VMA and P_VADDR instead of LMA and P_PADDR addresses. binutils/testsuite/ * binutils-all/objcopy.exp: Call KEEP_DEBUG_SYMBOLS_AND_TEST_COPY. (keep_debug_symbols_and_test_copy): New function. (test5, test6): New variables.
2008-03-28Add support for thin archives.Nick Clifton1-0/+4
* bfd/archive.c (_bfd_find_nested_archive): New function. (get_extended_arelt_filename): Add origin parameter. (_bfd_generic_read_ar_hdr_mag): Deal with extended name combined with a file offset. (append_relative_path): New function. (_bfd_get_elt_at_filepos): Deal with external members and nested archives. (bfd_generic_openr_next_archived_file): Thin archives. (bfd_generic_archive_p): Recognize new magic string. (adjust_relative_path): New function. (_bfd_construct_extended_name_table): Construct extended names for thin archive members. (_bfd_write_archive_contents): Emit new magic string, skip copying files for thin archives. * bfd/bfd-in.h (bfd_is_thin_archive): New macro. * bfd/bfd.c (struct bfd): New fields for thin archives. * bfd/libbfd-in.h (struct areltdata): New field for thin archives. * bfd/opncls.c (bfd_close): Delete BFDs for nested archives. * binutils/ar.c (make_thin_archive): New global flag. (map_over_members): Deal with full pathnames in thin archives. (usage, main): Add 'T' option for building thin archives. (replace_members): Pass thin archive flag to ar_emul_append. * binutils/arsup.c (ar_open): Initialize new flag. * binutils/binemul.c (ar_emul_append): Add new parameter for flattening nested archives. (do_ar_emul_default_append): New function. (ar_emul_default_append): Factored out recursive code. * binutils/binemul.h (ar_emul_default_append): Add new parameter. (struct bin_emulation_xfer_struct): New parameter for ar_append. * binutils/dlltool.c (gen_lib_file): Initialize thin archive flag. * binutils/emul_aix.c (ar_emul_aix_internal): Add new flatten parameter, currently unimplemented. All callers changed. * binutils/objcopy.c (copy_archive): Preserve thin archive flag. * binutils/doc/binutils.texi: Update ar documentation. * binutils/testsuite/binutils-all/ar.exp: Add thin archive tests. * include/aout/ar.h (ARMAGT): New magic string for thin archives.
2008-02-26 * config/default.exp (gcc_gas_flag, dlltool_gas_flag): Define toJoseph Myers1-0/+5
empty for testing an installed toolchain.
2008-02-04binutils/testsuite/Bob Wilson1-0/+4
* binutils-all/objdump.exp (cpus_expected): Add xtensa. ld/testsuite/ * ld-undefined/undefined.exp: XFAIL for xtensa*-*-linux*.
2007-10-26 * binutils-all/windres/windres.exp: Don't xfail.Alan Modra1-0/+4
2007-10-16Support the use of the STT_COMMON type. (In source and object files only at ↵Nick Clifton1-0/+7
the moment)
2007-08-30* readelf.c (dump_type): New type used to classify the kinds of dump ↵Nick Clifton1-0/+5
requested by the user. (dump_sects, cmdline_dump_sects): Use the new type. (options): Add --string-dump option. (request_dump): Rename to request_dump_bynumber. Use dump_type. (request_dump_byname): Use dump_type. (parse_args): Parse --string-dump option. (process_section_headers): Fix calls to request_dump. (initialise_dumps_byname): Likewise. (dump_section): Rename to dump_section_as_bytes. (dump_section_as_strings): New function. Display the contents of a section as printable strings. (process_section_contents): String dump the section if requested. (process_object): Use dump_type. (main): Likewise. * Makefile.am: Add dependency for readelf.c on safe-ctype.h. * Makefile.in: Regenerate. * NEWS: Mention the new feature. * doc/binutils.texi: Document the new feature. * testsuite/binutils-all/dumptest.s: New test file. * testsuite/binutils-all/readelf.exp: Add test of readelf's -p switch.
2007-08-28bfd:Joseph Myers1-0/+17
2007-08-28 Mark Shinwell <shinwell@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * elf32-arm.c (elf32_arm_compare_mapping): Compare first on vma, then on type. binutils/testsuite: 2007-08-28 Mark Shinwell <shinwell@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * binutils-all/ar.exp (long_filenames): Delete temporary files on the host. * binutils-all/arm/objdump.exp: Only check "which $OBJDUMP" if host is local. * binutils-all/objcopy.exp: Use ${srecfile} to get the name of the srec file to be passed to binutils_run. (objcopy_test_readelf): Use remote_exec. * binutils-all/readelf.exp (readelf_find_size): Use remote_exec. (readelf_test): Likewise. (readelf_wi_test): Likewise. * lib/utils-lib.exp (run_dump_test): Only check "which $binary" if host is local. Use remote_exec. Use $tempfile not tmpdir/bintest.o. gas: 2007-08-28 Mark Shinwell <shinwell@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * as.c (main): Flush stderr before printing listings to ensure consistent output order across platforms. gas/testsuite: 2007-08-28 Mark Shinwell <shinwell@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * lib/gas-defs.exp (gas_version): Use remote_* functions instead of exec. (gas_host_run): New. (gas_run): Use gas_host_run. (gas_start): Likewise. (run_dump_test): Likewise. (objdump): Use gas_host_run. (objdump_start_no_subdir): Likewise. * lib/gas-dg.exp (gas-dg-test): Use "remote_file host delete". * lib/run: Remove. * gas/macros/macros.exp: Download app4b.s to host. * gas/i386/i386.exp (gas_64_check): Use gas_host_run. (gas_32_check): Likewise. * gas/maxq10/maxq10.exp (gas_64_check): Likewise (gas_32_check): Likewise. * gas/maxq20/maxq20.exp (gas_64_check): Likewise (gas_32_check): Likewise. * gas/sparc/sparc.exp (gas_64_check): Likewise. * gas/cfi/cfi.exp: Likewise. * gas/elf/elf.exp (run_list_test): Likewise. Use temporary file for readelf output in place of pipe. * gas/all/gas.exp: Download incbin.dat to host. (do_comment): Allow \r\r\n. ld: 2007-08-28 Mark Shinwell <shinwell@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * ldlang.c (sort_sections_by_lma): Sort by internal id after lma for stable sort. ld/testsuite: 2007-08-28 Mark Shinwell <shinwell@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * ld-elfcomm/elfcomm.exp: Use run_host_cmd. Only check "which $CC" if host is local. * ld-checks/checks.exp: Use run_host_cmd. * ld-elf/exclude.exp: Likewise. * ld-elf/elf.exp: Download merge.ld if host is remote. * ld-elf/binutils.exp (binutils_test): Use remote_exec. * ld-elf/tls_common.exp: Use run_host_cmd. * lib/ld-lib.exp (ld_version): Only check "which $ld" if host is local. Use remote_exec. (run_host_cmd): New. (run_host_cmd_yesno): New. (default_ld_relocate): Use run_host_cmd_yesno. (default_ld_link): Likewise. (default_ld_simple_link): Use run_host_cmd. (default_ld_compile): Only check "which $ccprog" if host is local. Use remote_file and remote_exec. (default_ld_assemble): Only check "which $as" if host is local. Use run_host_cmd. (default_ld_nm): Use remote_exec, remote_upload and remote_file. (run_dump_test): Use remote_exec, remote_upload and remote_file. Only check "which $binary" if host is local. (run_ld_link_tests): Use remote_exec, remote_upload and remote_file. * ld-selective/selective.exp: Only check "which $CXX" if host is local. Use remote_exec. * ld-scripts/phdrs.exp: Only check "which $objdump" if host is local. Use run_host_cmd. * ld-scripts/phdrs2.exp: Likewise. * ld-scripts/weak.exp: Likewise. * ld-undefined/weak-undef.exp: Likewise. * ld-scripts/crossref.exp: Only check "which $CC" if host is local. Use run_host_cmd. * ld-scripts/map-address.exp: Upload map_address.map if host is remote. * ld-srec/srec.exp (run_srec_tests): Use run_host_cmd. Only check "which $CC" and "which $CXX" if host is local. * ld-undefined/undefined.exp: Only check "which $CC" if host is local. Use remote_file and run_host_cmd. * config/default.exp: Use remote_exec to create tmpdir.
2007-08-09 * windres/windres.exp: Return unsupported rather than fail ifAlan Modra1-0/+2
windows.h not found.
2007-08-09binutils/testsuite/Alan Modra1-0/+7
* binutils-all/copy-2.d (not-target): Match *-*-*aout. * binutils-all/copy-3.d (not-target): Likewise. * binutils-all/objcopy.exp (objcopy_test): Remove extraneous setup_xfail. gas/testsuite/ * gas/all/weakref1u.d (not-target): Match *-*-*aout.
2007-07-05Change sources over to using GPLv3Nick Clifton1-0/+10
2007-06-232007-06-23 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+4
* binutils-all/strip-3.d: Also strip .xtensa.info section.
2007-05-24* rcparse.y: Join strings for elements having no side-effects in "rc"-grammar.Nick Clifton1-0/+5
* testsuite/binutils-all/windres/version_cat.rc: New. * testsuite/binutils-all/windres/version_cat.rsd: New.
2007-05-23Updated windres toolNick Clifton1-0/+15
2007-05-17 * binutils-all/strip-3.d: Strip .pdr section.Joseph Myers1-0/+4
2007-05-15 * binutils-all/objcopy.exp: Only run needed-by-reloc test for ELF.Alan Modra1-0/+4
2007-05-11 * binutils-all/needed-by-reloc.s: Use .long rather than .4byte.Alan Modra1-0/+4
2007-05-08 binutils/testsuite/Mark Shinwell1-0/+5
* binutils-all/strip-3.d: Strip .ARM.attributes and .reginfo sections.
2007-05-02 * binutils-all/objcopy.exp (copy_setup): Don't perror, use send_log.Alan Modra1-0/+7
(copy_executable): Return early if test2 is blank. Return unsupported rather than unresolved if we can't run executables. Do test1 if we can compile.
2007-04-24* objcopy.c (filter_symbols): Explicitly stripping a symbol used in ↵Nick Clifton1-0/+7
relocations is an error. Retype 'keep' to bfd_boolean. * binutils-all/objcopy.exp: Add test for stripping a symbol used in a relocation. * binutils-all/needed-by-reloc.s: New file.
2007-04-23* objcopy.c (reverse_bytes): New variable.Nick Clifton1-0/+6
(command_line_switch, copy_main): Add OPTION_REVERSE_ENDIAN. (copy_options, copy_usage): Add "reverse-bytes" entry. (copy_section): Reverse bytes within output sections. * doc/binutils.texi: Document new objcopy option. * testsuite/binutils-all/objcopy.exp: Add test for --reverse-bytes.
2007-04-21 * binutils-all/readelf.exp (regexp_diff): Delete.Richard Earnshaw1-0/+4
2007-04-19 * binutils-all/arm/thumb2-cond.s: Allow for tab expansion by the pty.Richard Earnshaw1-0/+5
Rename the second test.
2007-04-122007-04-12 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+8
PR binutils/4348 * objcopy.c (copy_object): Don't stop when there are no sections to be copied. testsuite/ 2007-04-12 H.J. Lu <hongjiu.lu@intel.com> PR binutils/4348 * binutils-all/empty.s: New file. * binutils-all/strip-3.d: Likewise. * binutils-all/objcopy.exp: Run strip-3 for ELF target.
2007-02-27 * binutils-all/objcopy.exp: Skip for uclinux targets.Nathan Sidwell1-0/+4
2007-02-14* binutils-all/readelf.exp (readelf_wi_test): Fix unexpected output failure ↵Nick Clifton1-0/+5
message.
2007-01-08Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.Nick Clifton1-0/+8
2006-09-20Add x86_64-mingw64 targetNick Clifton1-0/+10
2006-09-15Fix PR references.H.J. Lu1-1/+1
2006-09-14binutils/H.J. Lu1-0/+11
2006-09-14 H.J. Lu <hongjiu.lu@intel.com> PR binutils/3182 * objcopy.c (group_signature): Return proper group signature. binutils/testsuite/ 2006-09-14 H.J. Lu <hongjiu.lu@intel.com> PR binutils/3182 * binutils-all/objcopy.exp: Run strip-1 and strip-2 for ELF targets. * binutils-all/strip-1.d: New file. * binutils-all/strip-2.d: Likewise. * lib/utils-lib.exp (run_dump_test): Support strip.
2006-08-15 [ ChangeLog ]Thiemo Seufer1-0/+6
* config.sub: Add support for sde as alias of mipsisa32-sde-elf. [ bfd/ChangeLog ] * config.bfd: Add configurations for mips*el-sde-elf* and mips*-sde-elf*. [ binutils/testsuite/ChangeLog ] * binutils-all/readelf.exp (readelf_test): Handle mips*-sde-elf*. [ gas/ChangeLog ] * configure.tgt: Handle mips*-sde-elf*. [ gas/testsuite/ChangeLog ] * gas/mips/mips.exp: Handle mips*-sde-elf*.
2006-06-24binutils/testsuite/Richard Sandiford1-0/+5
* binutils-all/localize-hidden-1.d: Use objdump --syms instead of readelf.
2006-06-23binutils/Richard Sandiford1-0/+8
* objcopy.c (localize_hidden): New variable. (OPTION_LOCALIZE_HIDDEN): New command_line_switch value. (copy_options): Add --localize-hidden. (copy_usage): Mention --localize-hidden. (is_hidden_symbol): New function. (filter_symbols): Handle localize_hidden. (copy_object): Call filter_symbols if localize_hidden. (copy_main): Handle OPTION_LOCALIZE_HIDDEN. * doc/binutils.texi (--localize-hidden): Document new option. binutils/testsuite/ * binutils-all/localize-hidden-1.s, * binutils-all/localize-hidden-1.d, * binutils-all/localize-hidden-2.s, * binutils-all/localize-hidden-2.d: New tests. * binutils-all/objcopy.exp: Run them.
2006-06-072006-06-06 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+5
opcodes/ * arm-dis.c (coprocessor_opcodes): Add %c to unconditional arm instructions. (neon_opcodes): Add conditional execution specifiers. (thumb_opcodes): Ditto. (thumb32_opcodes): Ditto. (arm_conditional): Change 0xe to "al" and add "" to end. (ifthen_state, ifthen_next_state, ifthen_address): New. (IFTHEN_COND): Define. (print_insn_coprocessor, print_insn_neon): Print thumb conditions. (print_insn_arm): Change %c to use new values of arm_conditional. (print_insn_thumb16): Print thumb conditions. Add %I. (print_insn_thumb32): Print thumb conditions. (find_ifthen_state): New function. (print_insn): Track IT block state. gas/testsuite/ * gas/arm/thumb2_bcond.d: Update expected output. * gas/arm/thumb32.d: Ditto. * gas/arm/vfp1_t2.d: Ditto. * gas/arm/vfp1xD_t2.d: Ditto. binutils/testsuite/ * binutils-all/arm/objdump.exp: New file. * binutils-all/arm/thumb2-cond.s: New test.
2006-05-032006-05-03 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+4
* binutils-all/copy-3.d: Fix a typo.
2006-05-032006-05-03 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+6
* binutils-all/copy-3.d: New. * objcopy.exp: Run copy-3.
2006-05-022006-05-02 Dave Korn <dave.korn@artimi.com>Dave Korn1-0/+5
* binutils-all/copy-1.d (name): Correct spelling of 'setting'. * binutils-all/copy-2.d (name): Likewise.
2006-05-02* binutils-all/copy-2.d: Change the name of the section whose flags areNick Clifton1-0/+7
changed to "foo" so that the test will work with PE based targets. Skip this test for AOUT based targeted. * binutils-all/copytest.s: New file.
2006-05-012006-05-01 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+4
* binutils-all/objcopy.exp: Run "copy-1" for ELF only.
2006-05-01 * binutils-all/objcopy.exp (objcopy_test_readelf): Remove stray ;Ben Elliston1-0/+4
2006-04-262006-04-26 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+16
PR binutils/2593 * binutils-all/copy-1.d: New file. * binutils-all/copy-1.s: Likewise. * binutils-all/copy-2.d: Likewise. * binutils-all/objcopy.exp: Add run_dump_test "copy-1" and run_dump_test "copy-2". * lib/utils-lib.exp (run_dump_test): New. (slurp_options): Likewise. (regexp_diff): Likewise. (file_contents): Likewise. (verbose_eval): Likewise.
2006-04-252006-04-25 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+6
PR binutils/2467 * binutils-all/objcopy.exp (strip_test): Also test "strip -g" on archive.
2006-04-102006-04-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+4
* lib/utils-lib.exp (default_binutils_run): Check exit status.
2005-12-24 * config/default.exp: Do not load the unneeded util-defs.exp.Ben Elliston1-0/+4
2005-11-15binutils/testsuite/Jan Beulich1-0/+5
2005-11-15 Jan Beulich <jbeulich@novell.com> * config/default.exp (link_or_copy): New. Use it for setting up assembler and linker for the compiler to use. ld/testsuite/ 2005-11-15 Jan Beulich <jbeulich@novell.com> * ld-bootstrap/bootstrap.exp: Delete ld-partial.o and ld[123]* after test. * ld-elf/elf.exp: Delete preinit, init, and fini after test. * ld-elf/sec64k.exp: Use macro and repeat in generated source files. Delete object files after test.
2005-10-20binutils/testsuite/H.J. Lu1-1/+10
2005-10-20 H.J. Lu <hongjiu.lu@intel.com> PR ld/251 * binutils-all/group.s: New file. * binutils-all/objcopy.exp (objcopy_test_readelf): New procedure. Use it to test ELF group. ld/testsuite/ 2005-10-20 H.J. Lu <hongjiu.lu@intel.com> PR ld/251 * ld-elf/group.2d: New file.