aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts
AgeCommit message (Collapse)AuthorFilesLines
2009-10-14 * ld-scripts/phdrs3.d: Allow colon in name of linker binary.Joseph Myers1-1/+1
2009-10-082009-10-07 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-0/+25
PR ld/10744 * ld-scripts/phdrs3.exp: Run phdrs3a. * ld-scripts/phdrs3a.d: New. * ld-scripts/phdrs3a.t: Likewise.
2009-10-08 PR ld/10744Alan Modra1-1/+1
* ld-scripts/phdrs3.d: Update.
2009-10-07 ld/Nathan Sidwell3-0/+58
* ldlang.c (lang_new_phdr): Check PHDRS and FILEHDR in loadable segments do not appear after a different loadable segment. * ld.texinfo (PHDRS): Document order of processing segments. Document where PHDRS and FILEHDR may appear. ld/testsuite/ * ld-scripts/phdrs3.d: New. * ld-scripts/phdrs3.t: New. * ld-scripts/phdrs3.exp: New.
2009-09-09 * ld-elf/sec64k.exp: For frv-linux use "aw" sections.Alan Modra22-0/+142
* ld-elf/seg.d: Cater for GNU_STACK segment. * ld-elf/symbol1ref.s: Use data section. * ld-elf/symbol2ref.s: Likewise. * ld-scripts/empty-address-1.d: Don't run on frv-linux. * ld-scripts/empty-address-2a.d: Likewise. * ld-scripts/empty-address-2b.d: Likewise. * ld-scripts/empty-aligned.d: Likewise. * ld-elf/extract-symbol-1sym.d: Tolerate extra target supplied syms. * ld-scripts/sort_b_a-1.d: Likewise. * ld-scripts/sort_b_a.d: Likewise. * ld-scripts/sort_b_a_a-1.d: Likewise. * ld-scripts/sort_b_a_a-2.d: Likewise. * ld-scripts/sort_b_a_a-3.d: Likewise. * ld-scripts/sort_b_a_n-1.d: Likewise. * ld-scripts/sort_b_a_n-2.d: Likewise. * ld-scripts/sort_b_a_n-3.d: Likewise. * ld-scripts/sort_b_n-1.d: Likewise. * ld-scripts/sort_b_n.d: Likewise. * ld-scripts/sort_b_n_a-1.d: Likewise. * ld-scripts/sort_b_n_a-2.d: Likewise. * ld-scripts/sort_b_n_a-3.d: Likewise. * ld-scripts/sort_b_n_n-1.d: Likewise. * ld-scripts/sort_b_n_n-2.d: Likewise. * ld-scripts/sort_b_n_n-3.d: Likewise. * ld-scripts/sort_no-1.d: Likewise. * ld-scripts/sort_no-2.d: Likewise.
2009-09-02update copyright datesAlan Modra19-19/+19
2009-07-30 * ld-scripts/empty-address-3a.d, ld-scripts/empty-address-3b.d:Hans-Peter Nilsson2-0/+2
Skip for mmix-knuth-mmixware.
2009-07-29 * ld-scripts/default-script.s (text): Globalize.Hans-Peter Nilsson5-4/+5
* ld-scripts/default-script1.d, ld-scripts/default-script2.d, ld-scripts/default-script3.d, ld-scripts/default-script4.d: Adjust accordingly.
2009-06-252009-06-25 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-1/+5
* ld-pe/aligncomm-1.c (size_t): Add typedef. (main): Use it for casting pointer to scalar. * ld-pe/aligncomm-2.c: Likewise. * ld-pe/aligncomm-3.c: Likewise. * ld-pe/aligncomm-4.c: Likewise. * ld-scripts/empty-address.exp: Make sure that for x86_64-*-mingw* target imagebase is set to zero. * ld-scripts/weak.exp: Don't fail for x86_64-*-mingw* target.
2009-05-22 * ld-scripts/rgn-over7.d: Adjust expected message for recent change.Hans-Peter Nilsson1-1/+1
2009-05-22 * ldlang.c (lang_check_section_addresses): Ignore non-loadableNathan Sidwell2-0/+27
sections when checking for overlap. Clarify error message concerns load address. testsuite/ * ld-scripts/rgn-at4.t: New. * ld-scripts/rgn-at4.d: New.
2009-05-21Missed from my 2009-04-16 commitAlan Modra1-1/+1
2009-04-22 * ld-scripts/rgn-at1.d: Cope with larger padding on sections.Nathan Sidwell3-9/+9
* ld-scripts/rgn-at2.d: Likewise. * ld-scripts/rgn-at3.d: Likewise.
2009-04-03 * ld-scripts/rgn-at.s: Use explicit .section pseudos.Nathan Sidwell1-3/+3
2009-04-03 * ldlang.c (lang_leave_output_section_statement): Set lma_regionNathan Sidwell8-0/+115
if it is not overridden and section is for the same vma region as the previous section. * ld-scripts/rgn-at.exp: New. * ld-scripts/rgn-at.s: New. * ld-scripts/rgn-at1.d: New. * ld-scripts/rgn-at1.t: New. * ld-scripts/rgn-at2.d: New. * ld-scripts/rgn-at2.t: New. * ld-scripts/rgn-at3.d: New. * ld-scripts/rgn-at3.t: New.
2009-03-02 * ldgram.y: Add support for REGION_ALIAS operator.Nick Clifton13-9/+50
* ldlang.c: Likewise. * ldlang.h: Likewise. * ldlex.l: Likewise. * NEWS: Mention the new feature. * ld.texinfo: Document the new feature. * ld-scripts/regions-alias-1.t: New file. * ld-scripts/regions-alias-2.t: New file. * ld-scripts/regions-alias-3.t: New file. * ld-scripts/regions-alias-4.t: New file. * ld-scripts/script.exp: Run region alias tests.
2009-01-12 * ld-elf/elf.exp: Save and restore LDFLAGS.Alan Modra3-2/+8
* ld-scripts/default-script.exp: Likewise. * ld-scripts/empty-orphan.exp: Likewise, and add to LDFLAGS rather than replacing. * ld-scripts/include.exp: Set --local-store for SPU.
2008-07-26 * ld-scripts/include.exp: Don't run test for aout.Alan Modra3-8/+8
* ld-scripts/include.s: Use .fill rather than .4byte. * ld-scripts/include-1.d: Adjust.
2008-07-21 * ld-scripts/include-sections.t: Discard all sections notNick Clifton3-3/+6
explicitly requested by the rest of the linker script. * ld-scripts/include-1.d: Expect test to fail for AIX ports. Do not assume that the .text section will be marked readonly. * ld-scripts/include.s: Replace .section directives with just .text or .data.
2008-07-06 * ld.texinfo (File Commands): Document that INCLUDE can be used inNathan Sidwell9-0/+75
several different places. * ldgram.y (statement, memory_spec, section): Allow INCLUDE. (memory, memory_spec_list): Simplify BNF (memory_spec_list_opt): New rule. * ldlex.l (INCLUDE): Recognize in EXPRESSION. testsuite/ * ld-scripts/include-1.d: New. * ld-scripts/include-1.t: New. * ld-scripts/include-data.t: New. * ld-scripts/include-mem.t: New. * ld-scripts/include-ram.t: New. * ld-scripts/include-sections.t: New. * ld-scripts/include-subdata.t: New. * ld-scripts/include.exp: New. * ld-scripts/include.s: New.
2008-06-12 * ldlang.c (print_output_section_statement): If the output sectionNick Clifton2-0/+12
statement has an update_dot_tree expression, apply it to print_dot. (print_input_section): Do not update print_dot if it would move print_dot backwards. (lang_do_assignments_1): If the output section statement has an update_dot_tree expression apply it to dot. * ld-scripts/overlay-size.t (end_of_bss_overlays): Define. (end_of_text_overlays): Define. (end_of_data_overlays): Define. * ld-scripts/overlay-size-map.d: Add expected values for end_of_bss_overlays, end_of_text_overlays and end_of_data_overlays.
2008-05-032008-05-03 Mike Frysinger <vapier@gentoo.org>Mike Frysinger1-1/+1
* ld-scripts/defined.s: Use .set syntax rather than =.
2008-05-022008-05-02 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-3/+3
PR ld/6475 * ld-scripts/rgn-over8-ok.d: Accept any alignment.
2008-04-28 * ld-scripts/rgn-over8.s: Tweak.Nathan Sidwell1-1/+1
2008-04-28ld/Nathan Sidwell4-9/+43
* ldlang.c (lang_size_sections_1): Don't check LMA overflow on non-load sections. ld/testsuite/ * ld-scripts/rgn-over.exp: Allow -ok file names to pass. * ld-scripts/rgn-over8.s: New. * ld-scripts/rgn-over8.t: New. * ld-scripts/rgn-over8-ok.d: New.
2007-12-14 * ld-scripts/rgn-over.exp: Add --no-overlays for spu.Alan Modra1-0/+6
2007-11-04includeDanny Smith2-8/+2
* coff/pe.h (COFF_ENCODE_ALIGNMENT) Define. gas * read.c (ALIGN_LIMIT): Rename to ... (TC_ALIGN_LIMIT): Guard against prior definition. * config/tc-i386.h (TC_ALIGN_LIMIT)[TE_PE]: Define. bfd * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Let .data, .text and .bss section use the default. * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. ld/testsuite * ld-scripts/align.exp: Enable for PECOFF. * ld-scripts/alignof.exp: Likewise.
2007-10-26 * ld-scripts/rgn-over1.d: Accept extra LOAD at end of map file.Alan Modra7-0/+7
* ld-scripts/rgn-over2.d: Likewise. * ld-scripts/rgn-over3.d: Likewise. * ld-scripts/rgn-over4.d: Likewise. * ld-scripts/rgn-over5.d: Likewise. * ld-scripts/rgn-over6.d: Likewise. * ld-scripts/rgn-over7.d: Likewise.
2007-10-172007-10-17 Zack Weinberg <zack@codesourcery.com>Daniel Jacobowitz16-0/+396
* ldlang.c (lang_check_section_addresses): Also report size of overflow for any overflowed memory regions. (os_region_check): Diagnose an overflowed region only once per region. Do not reset region->current on overflow. 2007-10-17 Zack Weinberg <zack@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com> Mark Shinwell <shinwell@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * ld-scripts/rgn-over.exp: New driver. * ld-scripts/rgn-over.s: New file. * ld-scripts/rgn-over1.d, ld-scripts/rgn-over1.t, ld-scripts/rgn-over2.d, ld-scripts/rgn-over2.t, ld-scripts/rgn-over3.d, ld-scripts/rgn-over3.t, ld-scripts/rgn-over4.d, ld-scripts/rgn-over4.t, ld-scripts/rgn-over5.d, ld-scripts/rgn-over5.t, ld-scripts/rgn-over6.d, ld-scripts/rgn-over6.t, ld-scripts/rgn-over7.d, ld-scripts/rgn-over7.t: New test cases.
2007-09-19* ld-scripts/crossref.exp: Compile test source with -mtiny=0 in order toNick Clifton1-0/+6
prevent the use of the small data area.
2007-08-31* ldlang.c (lang_map): Increment lang_statement_iteration so that DEFINED() ↵Nick Clifton2-0/+4
expressions are correctly computed. * testsuite/ld-script/map-address.d, * testsuite/ld-script/map-address.t: Add a test for testing DEFINED in map output.
2007-08-28bfd:Joseph Myers5-22/+18
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-07-13 * ld-scripts/assert.t: Tweak to avoid relying on empty's VMA beingNathan Sidwell1-2/+2
zero.
2007-07-06Update sources to GPLv3Nick Clifton23-124/+210
2007-07-02 * ld-scripts/alignof.exp: Skip on non-elfNathan Sidwell1-0/+6
2007-06-262007-06-29 H.J. Lu <hjl@gnu.org>H.J. Lu1-0/+1
* ld-scripts/assert.t: Discard .reginfo sections.
2007-06-18 * ld-scripts/cross3.t: Add .opd section.Andreas Schwab1-1/+1
2007-06-18 * ldlex.l, ldgram.y: Add ALIGNOF.Nathan Sidwell3-0/+81
* ldexp.c (exp_print_token, foldname): Likewise. * ld.texinfo: Likewise. ld/testsuite/ * ld-scripts/alignof.s: New. * ld-scripts/alignof.t: New * ld-scripts/alignof.exp: New.
2007-05-24 * ldlex.l: ASSERT is recognized in SCRIPT env. NAMES cannotNathan Sidwell4-1/+88
contain commas in EXP env. * ldgram.y (extern_name_list): Push to EXP env, move body to ... (extern_name_list_body): ... here. (script_file, ifile_list): Reformat. (statement): Add ASSERT. testsuite: * ld-scripts/assert.t: Add additional cases. * ld-scripts/extern.t, ld-scripts/extern.s, ld-scripts/extern.exp: New.
2007-02-132007-02-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu4-0/+12
* ld-scripts/default-script1.d: Expect extra symbols. * ld-scripts/default-script2.d: Likewise. * ld-scripts/default-script3.d: Likewise. * ld-scripts/default-script4.d: Likewise.
2007-02-01 * ld-scripts/default-script.exp: Add "--local-store 0:0" toAlan Modra1-0/+4
LDFLAGS for spu.
2007-01-19ld/H.J. Lu7-0/+59
2007-01-19 H.J. Lu <hongjiu.lu@intel.com> * NEWS: Mention --default-script/-dT. * ld.h (args_type): Add a default_script field. * ld.texinfo: Document --default-script/-dT. * ldmain.c (main): Handle command_line.default_script. * lexsup.c (option_values): Add OPTION_DEFAULT_SCRIPT. (ld_options): Add entries for --default-script and -dT. (parse_args): Handle --default-script/-dT. ld/testsuite/ 2007-01-19 H.J. Lu <hongjiu.lu@intel.com> * ld-scripts/default-script.exp: New file. * ld-scripts/default-script.s: Likewise. * ld-scripts/default-script.t: Likewise. * ld-scripts/default-script1.d: Likewise. * ld-scripts/default-script2.d: Likewise. * ld-scripts/default-script3.d: Likewise. * ld-scripts/default-script4.d: Likewise.
2007-01-08Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.Nick Clifton4-6/+6
2007-01-06ld/Nathan Sidwell4-0/+36
* ldexp.c (fold_name): Issue error on undefined sections. ld/testsuite/ * ld-scripts/expr.exp: New. * ld-scripts/expr1.s: New. * ld-scripts/expr1.d: New. * ld-scripts/expr1.t: New.
2006-12-12 * ldlang.c (print_output_section_statement): Print load addressAlan Modra1-9/+9
when lma differs from vma. testsuite/ * ld-scripts/overlay-size-map.d: Update.
2006-10-25New Cell SPU port.Alan Modra3-4/+20
2006-10-17bfd/Alan Modra3-3/+3
* elf-bfd.h (struct elf_link_hash_table): Reorder. Add text_index_section and data_index_section. (struct elf_backend_data): Add elf_backend_init_index_section. (_bfd_elf_init_1_index_section): Declare. (_bfd_elf_init_2_index_sections): Declare. * elfxx-target.h (elf_backend_init_index_section): Define. (elfNN_bed): Init new field. * elflink.c (_bfd_elf_link_omit_section_dynsym): Keep first tls section and text_index_section plus data_index_section. (_bfd_elf_link_renumber_dynsyms): Clear dynindx on omitted sections. (_bfd_elf_init_1_index_section): New function. (_bfd_elf_init_2_index_sections): New function. (bfd_elf_size_dynsym_hash_dynstr): Call elf_backend_init_index_section. (elf_link_input_bfd): When emitting relocs, use text_index_section and data_index_section for removed sections. * elf-m10300.c (elf_backend_omit_section_dynsym): Define. * elf32-i386.c: Likewise. * elf32-m32r.c: Likewise. * elf32-sh.c: Likewise. * elf32-xstormy16.c: Likewise. * elf32-xtensa.c: Likewise. * elf64-alpha.c: Likewise. * elf64-hppa.c: Likewise. * elf64-mmix.c: Likewise. * elf64-sh64.c: Likewise. * elfxx-ia64.c: Likewise. * elf32-arm.c (elf32_arm_final_link_relocate): Use text_index_section and data_index_section sym for relocs against sections with no dynamic section sym. (elf_backend_init_index_section): Define. * elf32-cris.c: Similarly. * elf32-hppa.c: Similarly. * elf32-i370.c: Similarly. * elf32-m68k.c: Similarly. * elf32-mips.c: Similarly. * elf32-ppc.c: Similarly. * elf32-s390.c: Similarly. * elf32-sparc.c: Similarly. * elf32-vax.c: Similarly. * elf64-mips.c: Similarly. * elf64-ppc.c: Similarly. * elf64-s390.c: Similarly. * elf64-sparc.c: Similarly. * elf64-x86-64.c: Similarly. * elfn32-mips.c: Similarly. * elfxx-mips.c: Similarly. * elfxx-sparc.c: Similarly. * linker.c (fix_syms): Base symbols in removed sections on previous section in preference to using absolute section. ld/ * ldlang.c (strip_excluded_output_sections): Do strip sections that define syms, but don't ignore them. * ld.texinfo (Output Section Discarding): Revise. * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Always call finish_default. ld/testsuite/ Update for section sym changes.
2006-09-27bfd/H.J. Lu16-0/+151
2006-09-26 H.J. Lu <hongjiu.lu@intel.com> PR ld/3223 PR ld/3267 * elf.c (assign_file_positions_for_non_load_sections): Don't warn zero size allocated sections. ld/ 2006-09-26 H.J. Lu <hongjiu.lu@intel.com> PR ld/3223 PR ld/3267 * ld.texinfo: Updated Output Section Discarding. * ldlang.h (lang_output_section_statement_type): Add section_relative_symbol. * ldlang.c (strip_excluded_output_sections): Don't strip a section with a symbol relative to it. (lang_size_sections_1): Mark if an output section has a symbol symbol relative to it. ld/testsuite/ 2006-09-26 H.J. Lu <hongjiu.lu@intel.com> PR ld/3223 PR ld/3267 * ld-scripts/empty-address-1.d: New file. * ld-scripts/empty-address-1.s: Likewise. * ld-scripts/empty-address-1.t: Likewise. * ld-scripts/empty-address-2.s: Likewise. * ld-scripts/empty-address-2a.d: Likewise. * ld-scripts/empty-address-2a.t: Likewise. * ld-scripts/empty-address-2b.d: Likewise. * ld-scripts/empty-address-2b.t: Likewise. * ld-scripts/empty-address-3.s: Likewise. * ld-scripts/empty-address-3a.d: Likewise. * ld-scripts/empty-address-3a.t: Likewise. * ld-scripts/empty-address-3b.d: Likewise. * ld-scripts/empty-address-3b.t: Likewise. * ld-scripts/empty-address-3c.d: Likewise. * ld-scripts/empty-address-3c.t: Likewise. * ld-scripts/empty-address.exp: Likewise.
2006-09-20Add x86_64-mingw64 targetNick Clifton6-16/+47
2006-09-152006-09-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+1
* ld-scripts/overlay-size.t: Discard .reginfo sections.