aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
2010-12-29Mention PR ld/12327 in ChangeLog entry.H.J. Lu1-0/+1
2010-12-28Add testcases for PR ld/12327.H.J. Lu9-3/+60
2010-12-28 H.J. Lu <hongjiu.lu@intel.com> PR ld/12327 * ld-scripts/defined4.d: New. * ld-scripts/defined4.s: Likewise. * ld-scripts/defined4.t: Likewise. * ld-scripts/expr2.d: Likewise. * ld-scripts/expr2.s: Likewise. * ld-scripts/expr2.t: Likewise. * ld-scripts/defined.exp: Run defined4. * ld-scripts/expr.exp: Run expr2.
2010-12-212010-12-21 Kai Tietz <kai.tietz@onevision.com>Kai Tietz5-0/+39
* peXXigen.c (_bfd_XXi_final_link_postscript): Use bfd_get_symbol_leading_char to determine "_tls_used" name. 2010-12-21 Kai Tietz <kai.tietz@onevision.com> * ld-pe/pe.exp: Add TLS directory test. * ld-pe/tlssec.s: New. * ld-pe/tlssec64.d: New. * ld-pe/tlssec32.d: New.
2010-12-21Adjust URLs.Thomas Schwinge3-3/+3
2010-12-20 * ld-bootstrap/bootstrap.exp: Fix misplaced comment.Alan Modra2-3/+7
2010-12-20 * ld.texinfo (Expression Section): Describe treatment of numbersAlan Modra19-23/+75
and absolute symbols. * ldemul.c (after_open_default): Look up __ld_compatibility. * ldexp.c (fold_name): Convert absolute symbols to numbers when inside output section definitions, or when __ld_compatibility >= 221. (exp_fold_tree_1): Convert numbers to absolute when not in output section definition and __ld_compatibility < 221. Don't always convert values outside an output section definition to absolute. * ldexp.h (uses_defined): Comment. * ldlang.c (ld_compatibility): New variable. * ldlang.h (ld_compatibility): Declare. * emultempl/aix.em, * emultempl/armcoff.em, * emultempl/beos.em, * emultempl/elf32.em, * emultempl/genelf.em, * emultempl/lnk960.em, * emultempl/m68kcoff.em, * emultempl/mmo.em, * emultempl/pe.em, * emultempl/pep.em, * emultempl/sunos.em, * emultempl/z80.em: Call after_open_default from after_open function.
2010-12-20 PR ld/12001Alan Modra6-73/+46
Revert 2010-11-03 Nick Clifton * ldlang.c (ldlang_def_chain_list): Delete. (insert_defined, ldlang_add_def, lang_place_defineds): Delete. (lang_process): Don't call lang_place_defineds. (lang_add_assignment): Don't do anything special for --defsym. * ldexp.h (struct ldexp_control): Add uses_defined. (exp_fold_tree_no_dot): Declare. * ldexp.c (exp_fold_tree): Clear uses_defined. (exp_fold_tree_no_dot): Likewise. Make global. (fold_name <DEFINED>): Set uses_defined. (exp_fold_tree_1 <etree_assign>): Define symbol during first phase even when the value being assigned isn't valid. * ldlang.c (open_input_bfds): Process assignment statements. (lang_process): Bump lang_statement_iteration. (scan_for_self_assignment): Formatting. (print_assignment): Style. testsuite/ * ld-scripts/default-script2.d: Revert 2010-11-03 change.
2010-12-15Add SORT_BY_INIT_PRIORITY.H.J. Lu18-11/+319
bfd/ 2010-12-15 H.J. Lu <hongjiu.lu@intel.com> * elf.c (_bfd_elf_new_section_hook): Special handling for .init_array/.fini_array output sections. ld/ 2010-12-15 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am (GENSCRIPTS): Add @enable_initfini_array@. * NEWS: Mention SORT_BY_INIT_PRIORITY. * configure.in: Add AC_CANONICAL_BUILD. Add --enable-initfini-array. * genscripts.sh (ENABLE_INITFINI_ARRAY): New. * ld.h (sort_type): Add by_init_priority. * ld.texinfo: Document SORT_BY_INIT_PRIORITY. * ldgram.y (SORT_BY_INIT_PRIORITY): New. (wildcard_spec): Handle SORT_BY_INIT_PRIORITY. * ldlang.c (get_init_priority): New. (compare_section): Use get_init_priority for by_init_priority. * ldlex.l (SORT_BY_INIT_PRIORITY): New. * scripttempl/elf.sc: Support ENABLE_INITFINI_ARRAY. * Makefile.in: Regenerated. * aclocal.m4: Regenerated. * config.in: Likewise. * configure: Likewise. ld/testsuite/ 2010-12-15 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/elf.exp (array_tests): Add init-mixed. (array_tests_static): Likewise. Also delete tmpdir/init-mixed. * ld-elf/init-mixed.c: New. * ld-elf/init-mixed.out: Likewise.
2010-12-13 * ldlang.c (load_symbols): Correct last change.Alan Modra2-3/+8
2010-12-12Optimize for add_archive_element.H.J. Lu2-3/+6
bfd/ 2010-12-12 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (elf_link_add_archive_symbols): Remove subsbfd. ld/ 2010-12-12 H.J. Lu <hongjiu.lu@intel.com> * ldlang.c (load_symbols): Optimize for add_archive_element.
2010-12-11 * ld-elfvers/vers25a.dsym: Really include _? in match.Alan Modra2-5/+11
2010-12-10ld: elfvers tests: support symbol prefixed targetsMike Frysinger66-132/+196
The symbol versioning tests mix C-visible symbols and linker-visible symbols in order to verify .symver behavior. This works for most people, but fail for targets that have a symbol prefix. So add a helper file with macros that expand gcc's __USER_LABEL_PREFIX__ as necessary and convert all .symver users over to it. Now that the tests are usable on prefixed targets, update the tests to take into account an optional leading underscore. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-12-09bfd/binutils/gas/gprof/ld/libiberty/opcodes: add .gitignoreMike Frysinger2-0/+20
This seems to cover a few random targets as well as --enable-targets=all. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-12-06Add -flto and -flto-partition=.H.J. Lu2-0/+11
2010-12-06 H.J. Lu <hongjiu.lu@intel.com> * lexsup.c (ld_options): Add -flto and -flto-partition= for GCC LTO option compatibility.
2010-12-06Don't add the trailing `\n' for LDPL_ERROR.H.J. Lu2-2/+8
2010-12-06 H.J. Lu <hongjiu.lu@intel.com> PR ld/12288 * plugin.c (message): Don't add the trailing `\n' for LDPL_ERROR.
2010-12-06Remove the trailing `\n' from TV_MESSAGE.H.J. Lu2-24/+26
2010-12-06 H.J. Lu <hongjiu.lu@intel.com> PR ld/12288 * testplug.c: Remove the trailing `\n' from TV_MESSAGE.
2010-12-06Use putchar for the trailing `\n' in plugin message.H.J. Lu2-1/+6
bfd/ 2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com> PR ld/12288 * plugin.c (message): Add putchar for the trailing `\n'. ld/ 2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com> PR ld/12288 * plugin.c (message): Use putchar for the trailing `\n'.
2010-12-06Call xatexit with plugin_call_cleanup.H.J. Lu4-16/+20
2010-12-06 H.J. Lu <hongjiu.lu@intel.com> Dmitry Gorbachev <d.g.gorbachev@gmail.com> PR ld/12289 * ldmain.c (main): Don't call plugin_call_cleanup. * plugin.c (plugin_call_cleanup): Make it static. (message): Don't call plugin_call_cleanup. (plugin_load_plugins): Call xatexit with plugin_call_cleanup.
2010-12-06Call plugin_call_cleanup on plugin fatal error.H.J. Lu2-0/+9
2010-12-05 H.J. Lu <hongjiu.lu@intel.com> PR ld/12289 * plugin.c (message): Call plugin_call_cleanup on fatal error.
2010-12-06Add a space after `:' in plugin error message.H.J. Lu2-1/+6
2010-12-05 H.J. Lu <hongjiu.lu@intel.com> * plugin.c (message): Add a space after `:' in error message.
2010-12-06Add `%P' on error in plugin message.H.J. Lu1-1/+1
2010-12-06Add the trailing `\n' to einfo in plugin.c.H.J. Lu2-6/+14
2010-12-05 H.J. Lu <hongjiu.lu@intel.com> * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n' to einfo. (get_symbols): Likewise. (plugin_notice): Likewise. (plugin_multiple_definition): Likewise.
2010-12-06Mention PR ld/12277 in ChangeLog.H.J. Lu1-0/+1
2010-12-06Add the trailing `\n' to pluin message.H.J. Lu2-1/+8
2010-12-05 H.J. Lu <hongjiu.lu@intel.com> PR ld/12288 * plugin.c (message): Add the trailing `\n'.
2010-12-06Replace is_archive with maybe_archive.H.J. Lu11-19/+36
2010-12-05 H.J. Lu <hongjiu.lu@intel.com> * ldfile.c (ldfile_open_file_search): Check maybe_archive instead of is_archive. * emultempl/aix.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/pep.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/vms.em: Likewise. * ldlang.c (new_afile): Set maybe_archive instead of is_archive.. * ldlang.h (lang_input_statement_struct): Replace is_archive with maybe_archive.
2010-12-06Properly convert LTO plugin visibility to ELF visibility.H.J. Lu4-8/+39
ld/ 2010-12-05 H.J. Lu <hongjiu.lu@intel.com> * plugin.c (asymbol_from_plugin_symbol): Properly convert LTO plugin visibility to ELF visibility. (is_visible_from_outside): Re-indent. ld/testsuite/ 2010-12-05 H.J. Lu <hongjiu.lu@intel.com> * ld-plugin/plugin-vis-1.d: Updated.
2010-12-04Don't pass -fvtable-gc to GCC 3.4.0 or above.H.J. Lu2-2/+9
2010-12-04 H.J. Lu <hongjiu.lu@intel.com> * ld-selective/selective.exp: Don't pass -fvtable-gc to GCC 3.4.0 or above.
2010-12-04Replace -export-dynamic with -Wl,-export-dynamic.H.J. Lu2-3/+8
2010-12-04 H.J. Lu <hongjiu.lu@intel.com> * ld-elfvers/vers.exp: Replace -export-dynamic with -Wl,-export-dynamic.
2010-12-04 * ldlang.c (lang_size_sections_1): Align lma using same alignmentAlan Modra2-10/+14
as for vma.
2010-12-03Fix a typo in comments.H.J. Lu2-2/+5
2010-12-03 H.J. Lu <hongjiu.lu@intel.com> * lexsup.c (ld_options): Fix a typo in comments.
2010-12-02Break long lines.H.J. Lu1-4/+6
2010-12-02Re-indent plugin.h.H.J. Lu2-6/+10
2010-12-01 H.J. Lu <hongjiu.lu@intel.com> * plugin.h: Re-indent.
2010-11-30 * ld/testsuite/ld-scripts/script.exp: Remove full path from REGION_ALIAS testMatthew Gretton-Dann2-2/+8
names.
2010-11-30Add sparc64-rtems.Alan Modra2-1/+6
2010-11-26update japanese translationAlan Modra2-37/+43
2010-11-25 * ld/testsuite/ld-arm/arm-elf.exp (armeabitests): Replace --defsym argument inMatthew Gretton-Dann2-3/+8
jump-reloc-veneers* tests with --section-start .text=0x8000.
2010-11-25Update translationsAlan Modra6-1498/+3968
2010-11-25 * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hotAlan Modra2-0/+8
sections.
2010-11-23 * configure.ac: For --enable-gold, handle value `default' instead ofNick Clifton3-10/+17
`both*'. New configure option --{en,dis}able-ld. ld, gold/ * configure.ac: For --enable-gold, handle value `default' instead of `both*'. Always install ld as ld.gold, install as ld if gold is the default.
2010-11-21Re-indent plugin code.H.J. Lu5-119/+129
2010-11-21 H.J. Lu <hongjiu.lu@intel.com> * ldfile.c: Re-indent plugin code. * ldlang.c: Likewise. * ldmain.c: Likewise. * plugin.c: Likewise.
2010-11-20Set alignment of common plugin symbol to 1 for For ELF targets.H.J. Lu2-0/+9
2010-11-20 H.J. Lu <hongjiu.lu@intel.com> PR ld/12246 * plugin.c (asymbol_from_plugin_symbol): Set alignment of common symbol to 1 for For ELF targets.
2010-11-20Properly report loading plugin error.H.J. Lu2-1/+7
2010-11-20 H.J. Lu <hongjiu.lu@intel.com> PR ld/12247 * lexsup.c (parse_args): Properly report loading plugin error.
2010-11-20binutils/testsuite/Richard Sandiford2-188/+6
* lib/binutils-common.exp (regexp_diff): New procedure. * lib/utils-lib.exp (regexp_diff): Delete. gas/testsuite/ * lib/gas-defs.exp (regexp_diff): Delete. (run_dump_test): Remove final "" argument in call to regexp_diff. (run_list_test): Likewise. (run_list_test_stdin): Likewise. * gas/all/gas.exp (test_cond): Likewise. * gas/elf/elf.exp (run_elf_list_test): Likewise. * gas/m68k/all.exp: Likewise. * gas/mep/complex-relocs.exp (regexp_test): Likewise. * gas/mt/relocs.exp (regexp_test): Likewise. * gas/symver/symver.exp (run_error_test): Likewise. ld/testsuite/ * lib/ld-lib.exp (regexp_diff, simple_diff): Delete.
2010-11-20binutils/testsuite/Richard Sandiford2-132/+13
* lib/binutils-common.exp: New file. * lib/utils-lib.exp (load_common_lib): New function. Load binutils-common.exp. (is_elf_format): Delete. gas/testsuite/ * lib/gas-defs.exp (load_common_lib): New function. Load binutils-common.exp. (is_elf_format, is_aout_format, is_pecoff_format): Delete. ld/testsuite/ * lib/ld-lib.exp (load_common_lib): New function. Load binutils-common.exp. (is_elf_format, is_elf64, is_aout_format, is_pecoff_format): Delete.
2010-11-19 * plugin.c (is_visible_from_outside): New function.Dave Korn2-8/+59
(get_symbols): Use it.
2010-11-18 * ld-elf/binutils.exp: Correct x86 gnu target match.Alan Modra8-68/+77
* ld-i386/i386.exp: Likewise. * ld-ifunc/binutils.exp: Likewise. * ld-ifunc/ifunc.exp: Likewise. * ld-discard/discard.exp: Remove unnecessary line continuations. * ld-elfvers/vers.exp: Likewise. Simplify linuxaout and linuxoldld test. * ld-elfweak/elfweak.exp: Likewise.
2010-11-16* ld/testsuite/ld-gc/pr11218-2.c: DeclareAndreas Schwab2-0/+6
unresolved_detected_at_runtime_not_at_linktime.
2010-11-16 * ld-plugin/plugin.exp: Define printf and puts as main.Alan Modra2-1/+5
2010-11-16blackfin: add support for L1 code/data flagsMike Frysinger1-0/+65
forgot to `cvs add` this file
2010-11-15blackfin: add support for L1 code/data flagsMike Frysinger5-6/+18
Add new linker options for marking programs to load into L1 memory at runtime. This needs new EF flag bits, so declare them. Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>