aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
2010-09-10 * ld-gc/abi-note.d: Exclude aout and oldld targets.Alan Modra4-1/+9
* ld-gc/start.d: Likewise. * ld-scripts/section-match-1.d: Likewise, and tic30.
2010-09-10 PR ld/11931Alan Modra4-58/+28
* ldlang.h (lang_for_each_statement_worker): Declare. * ldlang.c (lang_for_each_statement_worker): Make global. Don't recurse into children of output_section_statement with constraint set to -1. (print_assignment): Handle NULL output_section->bfd_section. (lang_size_sections_1): Ignore output section statement address when constraint is -1. * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
2010-09-10 * ld-scripts/rgn-at5.d: Restrict to *-*-linux*.Hans-Peter Nilsson2-0/+5
2010-09-09Don't warn zero LMA adjustment.H.J. Lu4-0/+67
bfd/ 2010-09-09 H.J. Lu <hongjiu.lu@intel.com> PR ld/11998 * elf.c (assign_file_positions_for_load_sections): Don't warn zero LMA adjustment. ld/testsuite/ 2010-09-09 H.J. Lu <hongjiu.lu@intel.com> PR ld/11998 * ld-scripts/rgn-at5.d: New. * ld-scripts/rgn-at5.s: Likewise. * ld-scripts/rgn-at5.t: Likewise.
2010-09-09binutils/Tristan Gingold2-0/+6
2010-09-09 Tristan Gingold <gingold@adacore.com> * NEWS: Add entry to NEWS for hppa/som. ld/ 2010-09-09 Tristan Gingold <gingold@adacore.com> * NEWS: Add a entry for alpha-vms.
2010-09-07Add missing files.H.J. Lu2-0/+13
2010-09-07 * ldwrite.c (clone_section): Call bfd_copy_private_section_data onNick Clifton5-2/+37
newly cloned section. * ld-x86-64/split-by-file.rd: New test. * ld-x86-64/split-by-file1.s: New test source code. * ld-x86-64/split-by-file2.s: New test source code. * ld-x86-64/x86-64.exp: Run the new test. * readelf.c (process_section_headers): Mention meaning of 'l' section flag for x86-64 targets.
2010-09-02Select 32-bit pei for 64-bit pei configurations.Richard Henderson2-1/+6
2010-09-01Fix typoNick Clifton2-2/+2
2010-09-01 * ld-scripts/section-match.exp: New file. Runs thsNick Clifton5-0/+67
section-match-1 test. * ld-scripts/section-match-1.d: New file. * ld-scripts/section-match-1.s: New file. * ld-scripts/section-match-1.t: New file.
2010-08-31 * ldlex.l (WILDCHAR): Add the caret and exclamation pointNick Clifton2-1/+6
characters, so that they can be used inside regexps.
2010-08-31 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character inNick Clifton2-1/+6
a region's attributes.
2010-08-31 * scripttempl/mmo.sc: Move assignment to "Main" inside .textAlan Modra2-1/+6
output section statement.
2010-08-25Check audit entry only on ELF input.H.J. Lu2-24/+31
2010-08-25 H.J. Lu <hongjiu.lu@intel.com> PR ld/11946 * emultempl/elf32.em (_before_allocation): Check audit entry only on ELF input.
2010-08-25Move gas/ld NEWS from binutils to gas/ld.H.J. Lu2-0/+7
2010-08-25 bfd/Julian Brown4-0/+1198
* elf32-arm.c (arm_stub_required_alignment): New. (arm_build_one_stub): Use above to partition stubs. (make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not arm_stub_a8_veneer_b_cond. ld/testsuite/ * ld-arm/arm-elf.exp (armelftests): Add cortex-a8-fix-blx-bcond.s. * ld-arm/cortex-a8-fix-blx-bcond.s: New. * ld-arm/cortex-a8-fix-blx-bcond.d: New.
2010-08-24Fix typos in ld-x86-64/x86-64.exp.H.J. Lu2-3/+7
2010-08-24 H.J. Lu <hongjiu.lu@intel.com> * ld-x86-64/x86-64.exp: Fix typos.
2010-08-23 binutils/Maciej W. Rozycki4-3/+10
* readelf.c (display_mips_gnu_attribute): Replace GCC options with a textual description of a MIPS32r2 64-bit FPU. ld/testsuite/ * ld-mips-elf/attr-gnu-4-04.d: Adjust Tag_GNU_MIPS_ABI_FP for the new MIPS32r2 64-bit FPU description. * ld-mips-elf/attr-gnu-4-40.d: Likewise. * ld-mips-elf/attr-gnu-4-44.d: Likewise.
2010-08-22Find one .eh_frame section for --eh-frame-hdr.H.J. Lu2-5/+16
2010-08-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/11937 * emultempl/elf32.em (_after_open): Find one .eh_frame section for --eh-frame-hdr.
2010-08-22Don't check relocation if input ELF object ID doesn't match output.H.J. Lu6-0/+71
bfd/ 2010-08-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/11933 * elflink.c (elf_link_add_object_symbols): Don't check relocation if input ELF object ID doesn't match output. ld/testsuite/ 2010-08-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/11933 * ld-x86-64/mixed1a.s: New. * ld-x86-64/mixed1b.s: Likewise. * ld-x86-64/mixed2a.s: Likewise. * ld-x86-64/mixed2b.s: Likewise. * ld-x86-64/x86-64.exp: Text mixed x86_64 and i386 inputs.
2010-08-22Find an ELF input for --build-id and --eh-frame-hdr.H.J. Lu2-17/+32
2010-08-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/11937 * emultempl/elf32.em (_after_open): Find an ELF input for --build-id and --eh-frame-hdr.
2010-08-20 * Makefile.am (eshlelf_fd.c): Correct the name of the toolMaciej W. Rozycki3-2/+8
directory. * Makefile.in: Regenerate.
2010-08-20 * ld-sh/sh.exp: Add missing newline.Maciej W. Rozycki2-2/+6
2010-08-20 binutils/Maciej W. Rozycki9-8/+19
* ChangeLog: Add a missing entry for 2010-04-20's commit. ld/testsuite/ * ld-mips-elf/attr-gnu-4-01.d: Correct Tag_GNU_MIPS_ABI_FP. * ld-mips-elf/attr-gnu-4-02.d: Likewise. * ld-mips-elf/attr-gnu-4-10.d: Likewise. * ld-mips-elf/attr-gnu-4-11.d: Likewise. * ld-mips-elf/attr-gnu-4-15.d: Likewise. * ld-mips-elf/attr-gnu-4-20.d: Likewise. * ld-mips-elf/attr-gnu-4-22.d: Likewise. * ld-mips-elf/attr-gnu-4-25.d: Likewise.
2010-08-20 * emultempl/elf32.em (_after_open): Check for get_elf_backend_dataNick Clifton2-3/+11
returning NULL.
2010-08-19binutils/Alan Modra6-124/+220
* NEWS: Mention change in linker script expression evaluation. ld/ * ld.texinfo (Expression Section): Detail expression evaluation. (Builtin Functions <ADDR>): Correct. (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally the same as ADDR. (Builtin Functions <SEGMENT_START>): Typo fix. * ldexp.c (new_number): New function. (make_abs, exp_get_abs_int): Cope with NULL expld.result.section. (fold_unary <'~', '!', '-'>): Don't make_abs. (fold_binary): Simplify result section logic. Return NULL section for logical ops. (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to a consistent result. (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs. (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise. (fold_name <NAME>): No need to handle absolute symbols differently from relative ones. (fold_name <ORIGIN>): Don't return valid result when lang_first_phase_enum. Return new_rel_from_abs, not new_abs. (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel. (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning a plain number to dot, assume the value is relative to expld.section. Make terms not in an output section, absolute. * ldlang.c (print_assignment): Fix style nit. (lang_size_sections_1): Cope with NULL expld.result.section. (lang_do_assignments_1): Likewise. ld/testsuite/ * ld-scripts/memory.t: Remove ORIGIN fudge.
2010-08-13Check if .got.plt section is discarded before using it.H.J. Lu9-0/+61
bfd/ 2010-08-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/11913 * elf32-i386.c (elf_i386_finish_dynamic_sections): Check if .got.plt section is discarded. * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Likewise. ld/testsuite/ 2010-08-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/11913 * ld-i386/discarded1.d: New. * ld-i386/discarded1.s: Likewise. * ld-i386/discarded1.t: Likewise. * ld-x86-64/discarded1.d: Likewise. * ld-x86-64/discarded1.s: Likewise. * ld-x86-64/discarded1.t: Likewise. * ld-i386/i386.exp: Run discarded1. * ld-x86-64/x86-64.exp: Likewise.
2010-08-12 * ldexp.c (new_rel): Remove "str". Update all call sites.Alan Modra2-8/+15
(exp_fold_tree_1): When assigning to dot, calculate nextdot using expld.result.section rather than expld.section.
2010-08-092010-08-09 Catherine Moore <clm@codesourcery.com>Catherine Moore5-0/+49
* elfxx-mips.c (mips_elf_perform_relocation): Improve interlinking error message. 2010-08-09 Catherine Moore <clm@codesourcery.com> * ld-mips-elf/mode-change-error-1.d: New. * ld-mips-elf/mode-change-error-1a.s: New. * ld-mips-elf/mode-change-error-1b.s: New. * ld-mips-elf/mips-elf.exp: Run new test.
2010-08-06 PR ld/11887Alan Modra2-4/+11
* ldlang.c (lang_add_vers_depend): Don't leave version_needed uninitialised.
2010-08-05 * ld-powerpc/tocopt.s, * ld-powerpc/tocopt.d: New test.Alan Modra4-0/+72
* ld-powerpc/powerpc.exp: Run it.
2010-07-28 * ldexp.c (exp_print_tree): Print function-like binary nodes asAlan Modra2-11/+35
functions rather than in-fix operators. Use fputs and fputc where appropriate.
2010-07-23Add support for v850E2 and v850E2V3Nick Clifton3-7/+18
2010-07-20ld: improve linker script sectionMike Frysinger2-3/+9
The example version script in the manual currently suggests: extern "C++" { "int f(int, double)"; } But a C++ function like that doesn't encode the return type into the mangled name, so when the linker demangles things, it ends up with "f(int, double)" and so it never matches. The example also lacks a trailing semicolon after the brace, so the linker always complains about a syntax error in the file. While the language section documents the possibilities, it isn't clear as to which is the default language. So explicitly state that the C language is the default. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-07-20include/elf/Alan Modra5-4/+11
* internal.h (ELF_TBSS_SPECIAL): New macro, extracted from.. (ELF_SECTION_SIZE): ..here. (ELF_SECTION_IN_SEGMENT_1): Add "strict" arg. (ELF_SECTION_IN_SEGMENT_STRICT): New macro. bfd/ * elf.c (assign_file_positions_for_load_sections): Check that zero size sections are allocated in segments too. (assign_file_positions_for_non_load_sections): Warn if zero size alloc sections are found here. (copy_elf_program_header): Don't drop zero size sections from segment map. (copy_private_bfd_data): Check for changes in zero size sections. binutils/ * readelf.c (process_program_headers): Don't ignore all zero size sections. ld/testsuite/ * ld-powerpc/tlsexe.r: Update. * ld-powerpc/tlsexetoc.r: Update. * ld-powerpc/tlsso.r: Update. * ld-powerpc/tlstocso.r: Update.
2010-07-20 * ld-powerpc/vxworks-relax.s: Add branches to match expected output.Alan Modra4-7/+15
* ld-powerpc/vxworks-relax-2.s: Likewise. * ld-powerpc/vxworks1-lib.rd: Reorder reloc sections.
2010-07-19binutils/testsuite/:Andreas Schwab15-42/+31
* binutils-all/readelf.s: Ignore "Key to Flags" contents. * binutils-all/readelf.s-64: Likewise. * binutils-all/i386/compressed-1b.d: Likewise. * binutils-all/i386/compressed-1c.d: Likewise. * binutils-all/x86-64/compressed-1b.d: Likewise. * binutils-all/x86-64/compressed-1c.d: Likewise. gas/testsuite/: * gas/i386/x86-64-unwind.d: Ignore "Key to Flags" contents. * gas/ia64/alias-ilp32.d: Likewise. * gas/ia64/alias.d: Likewise. * gas/ia64/group-1.d: Likewise. * gas/ia64/group-2.d: Likewise. * gas/ia64/secname-ilp32.d: Likewise. * gas/ia64/secname.d: Likewise. * gas/ia64/unwind-ilp32.d: Likewise. * gas/ia64/unwind.d: Likewise. * gas/mmix/byte-1.d: Likewise. * gas/mmix/loc-1.d: Likewise. * gas/mmix/loc-2.d: Likewise. * gas/mmix/loc-3.d: Likewise. * gas/mmix/loc-4.d: Likewise. * gas/mmix/loc-5.d: Likewise. ld/testsuite/: * ld-mmix/bspec1.d: Ignore "Key to Flags" contents. * ld-mmix/bspec2.d: Likewise. * ld-mmix/local1.d: Likewise. * ld-mmix/local3.d: Likewise. * ld-mmix/local5.d: Likewise. * ld-mmix/local7.d: Likewise. * ld-mmix/undef-3.d: Likewise. * ld-sh/sh64/crange1.rd: Likewise. * ld-sh/sh64/crange2.rd: Likewise. * ld-sh/sh64/crange3-cmpct.rd: Likewise. * ld-sh/sh64/crange3-media.rd: Likewise. * ld-sh/sh64/crange3.rd: Likewise. * ld-sh/sh64/crangerel1.rd: Likewise. * ld-sh/sh64/crangerel2.rd: Likewise.
2010-07-17 * ldlang.c (lang_check_section_addresses): Catch overlap forAlan Modra2-11/+21
sections that wrap around the address space.
2010-07-15Add testcases for PR ld/11817.H.J. Lu7-0/+404
2010-07-14 H.J. Lu <hongjiu.lu@intel.com> PR ld/11817 * ld-i386/compressed1.s: New. * ld-i386/compressed1.d: Likewise. * ld-x86-64/compressed1.s: Likewise. * ld-x86-64/compressed1.d: Likewise. * ld-i386/i386.exp: Run compressed1. * ld-x86-64/x86-64.exp: Likewise.
2010-07-14Don't allocate .got.plt section if there are no GOT nor PLT entries.H.J. Lu9-2/+64
bfd/ 2010-07-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/11812 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't allocate .got.plt section if there are no GOT nor PLT entries. * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise. ld/testsuite/ 2010-07-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/11812 * ld-elf/exclude3b.d: Don't run on ia64-*-*. Replace .got with .dynamic. * ld-elf/exclude3d.d: New. * ld-i386/nogot1.d: Likewise. * ld-i386/nogot1.s: Likewise. * ld-x86-64/nogot1.d: Likewise. * ld-x86-64/nogot1.s: Likewise. * ld-i386/i386.exp: Run nogot1. * ld-x86-64/x86-64.exp: Likewise.
2010-07-13Don't hard code expected output.H.J. Lu5-4/+11
2010-07-13 H.J. Lu <hongjiu.lu@intel.com> * ld-i386/hidden2.d: Don't hard code expected output. * ld-i386/protected3.d: Likewise. * ld-x86-64/hidden2.d: Likewise. * ld-x86-64/protected3.d: Likewise.
2010-07-13Support garbage collection against STT_GNU_IFUNC symbols.H.J. Lu9-0/+118
bfd/ 2010-07-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/11791 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Support garbage collection against STT_GNU_IFUNC symbols. * elf32-i386.c (elf_i386_get_local_sym_hash): Don't set elf.plt.offset/elf.got.offset to -1. (elf_i386_tls_transition): Skip TLS transition for functions. (elf_i386_gc_sweep_hook): Support STT_GNU_IFUNC symbols. * elf64-x86-64.c (elf64_x86_64_get_local_sym_hash): Don't set elf.plt.offset/elf.got.offset to -1. (elf64_x86_64_tls_transition): Skip TLS transition for functions. (elf64_x86_64_gc_sweep_hook): Support STT_GNU_IFUNC symbols. ld/testsuite/ 2010-07-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/11791 * ld-ifunc/ifunc-10-i386.d: New. * ld-ifunc/ifunc-10-i386.s: Likewise. * ld-ifunc/ifunc-10-x86-64.d: Likewise. * ld-ifunc/ifunc-10-x86-64.s: Likewise. * ld-ifunc/ifunc-11-i386.d: Likewise. * ld-ifunc/ifunc-11-i386.s: Likewise. * ld-ifunc/ifunc-11-x86-64.d: Likewise. * ld-ifunc/ifunc-11-x86-64.s: Likewise.
2010-07-06bfd/Alan Modra4-2/+10
* elf32-ppc.c (ppc_elf_relax_section): Insert branch around trampolines only for .init and .fini sections. ld/testsuite/ * ld-powerpc/relax.s: Add branch back to _start. * ld-powerpc/relax.d: Update. * ld-powerpc/relaxr.d: Update.
2010-07-01 * lib/ld-lib.exp (default_ld_simple_link): Add $gcc_ld_flag beforeAlan Modra2-3/+11
any other options in $ld.
2010-06-29 * scripttempl/xstormy16.sc (.gcc_except_table): Include sectionsNick Clifton2-1/+6
with the .gcc_except_table. prefix.
2010-06-29remove maxq-coff portAlan Modra9-159/+0
2010-06-29remove maxq-coff portAlan Modra10-121/+30
2010-06-27fix set but unused variable warningsAlan Modra4-23/+14
2010-06-25include/elf/Alan Modra2-9/+26
* ppc64.h (R_PPC64_LO_DS_OPT): Define. bfd/ * elf64-ppc.c (toc_skip_enum): Define. (ppc64_elf_edit_toc): Use two low bits of skip array as markers. Optimize largetoc sequences. (adjust_toc_syms): Update for skip array change. (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT. ld/ * emultempl/ppc64elf.em (prelim_size_sections): New function. (ppc_before_allocation): Use it. Size sections before toc edit too.
2010-06-25 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.Alan Modra2-3/+8