aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2008-05-29bfd/Jan Kratochvil2-0/+42
* 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 Clifton2-1/+111
* 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 Myers2-2/+13
empty for testing an installed toolchain.
2008-02-04binutils/testsuite/Bob Wilson2-1/+5
* 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 Modra2-18/+4
2007-10-16Support the use of the STT_COMMON type. (In source and object files only at ↵Nick Clifton5-4/+11
the moment)
2007-08-30* readelf.c (dump_type): New type used to classify the kinds of dump ↵Nick Clifton3-5/+68
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 Myers6-21/+55
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 Modra2-1/+7
windows.h not found.
2007-08-09binutils/testsuite/Alan Modra4-5/+9
* 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 Clifton16-29/+39
2007-06-232007-06-23 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* 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 Clifton3-0/+93
* testsuite/binutils-all/windres/version_cat.rc: New. * testsuite/binutils-all/windres/version_cat.rsd: New.
2007-05-23Updated windres toolNick Clifton13-4/+219
2007-05-17 * binutils-all/strip-3.d: Strip .pdr section.Joseph Myers2-1/+5
2007-05-15 * binutils-all/objcopy.exp: Only run needed-by-reloc test for ELF.Alan Modra2-16/+21
2007-05-11 * binutils-all/needed-by-reloc.s: Use .long rather than .4byte.Alan Modra2-1/+5
2007-05-08 binutils/testsuite/Mark Shinwell2-1/+6
* 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 Modra2-5/+19
(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 Clifton3-1/+34
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 Clifton2-0/+40
(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 Earnshaw2-102/+4
2007-04-19 * binutils-all/arm/thumb2-cond.s: Allow for tab expansion by the pty.Richard Earnshaw2-4/+9
Rename the second test.
2007-04-122007-04-12 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu4-0/+21
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 Sidwell2-0/+8
2007-02-14* binutils-all/readelf.exp (readelf_wi_test): Fix unexpected output failure ↵Nick Clifton2-1/+6
message.
2007-01-08Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.Nick Clifton6-7/+15
2006-09-20Add x86_64-mingw64 targetNick Clifton8-11/+25
2006-09-15Fix PR references.H.J. Lu1-1/+1
2006-09-14binutils/H.J. Lu5-4/+50
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 Seufer2-1/+7
* 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 Sandiford2-13/+20
* binutils-all/localize-hidden-1.d: Use objdump --syms instead of readelf.
2006-06-23binutils/Richard Sandiford6-0/+75
* 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 Brook3-0/+74
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. Lu2-1/+5
* binutils-all/copy-3.d: Fix a typo.
2006-05-032006-05-03 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-0/+24
* binutils-all/copy-3.d: New. * objcopy.exp: Run copy-3.
2006-05-022006-05-02 Dave Korn <dave.korn@artimi.com>Dave Korn3-2/+7
* 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 Clifton3-4/+22
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. Lu2-1/+5
* binutils-all/objcopy.exp: Run "copy-1" for ELF only.
2006-05-01 * binutils-all/objcopy.exp (objcopy_test_readelf): Remove stray ;Ben Elliston2-1/+5
2006-04-262006-04-26 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu6-0/+547
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. Lu2-0/+12
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. Lu2-0/+10
* 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 Elliston2-2/+5
2005-11-15binutils/testsuite/Jan Beulich2-15/+25
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-25oops - omitted from previous deltaNick Clifton1-0/+3
2005-10-20binutils/testsuite/H.J. Lu3-1/+65
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.
2005-10-19binutils/testsuite/H.J. Lu3-84/+81
2005-10-19 H.J. Lu <hongjiu.lu@intel.com> PR binutils/1487 * binutils-all/objcopy.exp (objcopy_test): New procedure. Use it to test simple copy, ia64 link order and ELF unknown section type. * binutils-all/unknown.s: New file. ld/testsuite/ 2005-10-19 H.J. Lu <hongjiu.lu@intel.com> PR binutils/1487 * ld-elf/unknown.d: New file.
2005-10-192005-10-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-0/+59
PR binutils/1321 * binutils-all/link-order.s: New. * binutils-all/objcopy.exp: Check ia64 link order.
2005-10-122005-10-11 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith3-0/+18
* binutils-all/windres/escapex-2.rc: New file. * binutils-all/windres/escapex-2.rsd: Generate.