Commit Graph

1691 Commits

Author SHA1 Message Date
Ian Lance Taylor
e566cb381e * Makefile.am (MAINTAINERCLEANFILES): Define.
* Makefile.in: Rebuild.
1998-07-08 18:03:30 +00:00
Ian Lance Taylor
3964a18abe * Makefile.am (ldver.texi): New target.
(ld.info, ld.dvi): Depend upon ldver.texi.
	* ld.texinfo: Include ldver.texi.  Mention version number on title
	page and in top node.
	* Makefile.in: Rebuild.
1998-07-07 22:04:16 +00:00
Ian Lance Taylor
53fc351582 * configure.tgt (i[3456]86-*-solaris*): New target. 1998-07-06 18:55:37 +00:00
Ian Lance Taylor
b58e666f2e * ldlang.c (wild_section): Don't get an assertion failure if the
section is discarded.
1998-07-03 22:10:22 +00:00
Ian Lance Taylor
7617a82283 * scripttempl/pe.sc: Use SORT to sort sections appropriately.
* emultempl/pe.em (sort_by_file_name): Remove.
	(sort_by_section_name): Remove.
	(sort_sections_1, sort_sections): Remove.
	(gld_${EMULATION_NAME}_before_allocation): Don't call
	sort_sections.
	(hold_section, hold_section_name): New static variables.
	(hold_use, hold_text, hold_rdata, hold_data, hold_bss): Likewise.
	(gld_${EMULATION_NAME}_place_orphan): Rewrite.  Look for a good
	place to put the section.  Align the section.  Sort the input
	sections by name.
	(gld_${EMULATION_NAME}_place_section): New static function.
1998-07-03 21:52:58 +00:00
Ian Lance Taylor
6ccce8e82b * ldlang.c (wild_sort): When sorting by file name, sort by archive
name first.
1998-07-03 21:52:43 +00:00
Ian Lance Taylor
5b6ca067a8 * emultempl/pe.em (set_pe_subsystem): Don't call
ldlang_add_undef.
	(gld_${EMULATION_NAME}_after_parse): New static function.
	(ld_${EMULATION_NAME}_emulation): Use new after_parse function
	rather than after_parse_default.
1998-07-03 18:40:38 +00:00
Ian Lance Taylor
749c81f717 comment fixes 1998-07-03 18:40:17 +00:00
Ian Lance Taylor
b2529df1be * ldgram.y (extern_name_list): Do not require symbols to be
separated by commas.
	(ifile_p1): Add EXTERN.
	* ldlex.l: Accept EXTERN in BOTH and SCRIPT mode as well as MRI
	mode.
	* ld.texinfo (Options): Mention that EXTERN is equivalent to -u.
	(Miscellaneous Commands): Document EXTERN.
1998-07-03 18:25:46 +00:00
Richard Henderson
5cc30c0a87 gc note 1998-07-02 06:23:44 +00:00
Richard Henderson
71b012a810 * ld.h (args_type): Add gc_sections.
* ldgram.y (ldgram_had_keep, KEEP): New.
        (input_section_spec_no_keep): Rename from old input_section_spec.
        (input_section_spec): New.  Recognize KEEP.
        * ldlang.c (wild_section): Handle keep sections.
        (lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New.
        (lang_gc_sections_1, lang_gc_sections): New.
        (lang_process): Invoke lang_gc_sections.
        (lang_add_wild): Add keep argument.  Update all callers.
        * ldlang.h (lang_wild_statement_struct): Add keep_sections.
        * ldlex.l (KEEP): Match it.
        * ldmain.c (main): Error on -r and --gc-sections.
        * lexsup.c: Add --gc-sections.

        * scripttempl/elf.sc: Merge .text.* etc sections appropriately.
        Mark startup sections with KEEP.
        * scripttempl/elfppc.sc: Likewise.

        * ld.texinfo: Update for --gc-sections and KEEP.
1998-07-02 02:52:31 +00:00
Nick Clifton
d8d4c4e71a Pass thumb-pe and arm-pe 1998-07-01 17:52:43 +00:00
Ian Lance Taylor
8392754096 * Makefile.am (install-data-local): Make ldscripts subdirectory.
* Makefile.in: Rebuild.

Tue Jun 23 15:17:04 1998  Mike Stump  <mrs@wrs.com>

	* Makefile.am (install-exec-local): Don't let EXEEXT interfere
	with the program transform name.
	* Makefile.in: Rebuild.
1998-06-23 19:17:56 +00:00
Jeff Law
e2ebb8ed49 * ld.texinfo: Note that -relax may make symbolic debugging
impossible on some platforms.
1998-06-22 05:59:49 +00:00
Ian Lance Taylor
0d61eedd67 * ld-scripts/weak.exp: New test.
* ld-scripts/weak.t: New file.
	* ld-scripts/weak1.s: New file.
	* ld-scripts/weak2.s: New file.
1998-06-19 21:13:57 +00:00
Doug Evans
7beb913807 emulparams/m32relf.sh: Back out INPUT_FILES change. libgcc1-test fails. 1998-06-13 05:38:21 +00:00
Doug Evans
695bc2ee12 * scripttempl/elf.sc (INPUT_FILES): Optional INPUT spec.
* emulparams/m32relf.sh (INPUT_FILES): Define.
	(OTHER_RELOCATING_SECTIONS): Change top of stack to 8MB.
1998-06-13 00:53:24 +00:00
Ian Lance Taylor
7e41967244 * Makefile.am (HFILES): Remove config.h.
(EMULATION_OFILES, POTFILES): Move patch of May 14 from
	Makefile.in to Makefile.am.
	(earmcoff.c): Depend upon armcoff.em, not generic.em.
	* po/Make-in (all-yes): Correct misspelling in $(PACKAGE).
	($(srcdir)/$(PACKAGE).pot): Pass -C to $(XGETTEXT).
	* Makefile.in, po/POTFILES.in, po/ld.pot: Rebuild.
1998-06-12 23:36:05 +00:00
Tom Tromey
3d935b64eb * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
($(PACKAGE).pot): Unconditionally depend on POTFILES.
1998-06-12 22:39:34 +00:00
Nick Clifton
18993a6868 Make 'send' be CONST char * to avoid compiler warning. 1998-06-09 16:38:11 +00:00
Doug Evans
71dfb81d2c * configure.tgt (dvp-*-*): Set targ_emul=elf32l5900. 1998-06-05 23:00:19 +00:00
Doug Evans
bf86ea82b3 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set vma to 0
for .DVP.overlay.*.
1998-06-05 22:58:06 +00:00
Ian Lance Taylor
b469b73492 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
config.has_shared to true.
	* emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
	Likewise.
	* emultempl/sunos.em (gld${EMULATION_NAME}_before_parse):
	Likewise.
1998-06-05 22:21:31 +00:00
Ian Lance Taylor
d2256aeb70 * ldlang.c (lang_finish): If the entry symbol is not found, try
parsing it as a number.
	* ld.texinfo (Options): Document this.
1998-06-02 16:59:37 +00:00
Ian Lance Taylor
da713b8f08 * ld.texinfo (Input Section Wildcards): Document SORT keyword. 1998-06-01 18:01:37 +00:00
Ian Lance Taylor
8c02e37df8 * ld-srec/srec.exp: Add xfails for powerpc*-*-eabi.
(run_srec_test): On mn10200, define __truncsipsi2_do_d2.
	* ld-srec/sr1.c (__main): Change return type to void.
	* ld-srec/sr3.cc (__main): Likewise.
	(__builtin_delete, __builtin_new): Likewise.
	(__get_dynamic_handler_chain): Return 0.
	(__get_eh_context): Likewise.
1998-05-29 19:04:42 +00:00
Ian Lance Taylor
b4c61dc900 From Jason Merrill <jason@cygnus.com>:
* ldlang.c (wild_sort): Correct order of sort.
	* scripttempl/elf.sc: Put *crtbegin.o before other .ctors and
	.dtors.
	* scripttempl/elfd10v.sc: Likewise.
start-sanitize-d30v
	* scripttempl/elfd30v.sc: Likewise.
end-sanitize-d30v
	* scripttempl/elfppc.sc: Likewise.
1998-05-18 20:21:22 +00:00
Ian Lance Taylor
26c7ca95b4 * ldlex.l: Recognize keyword SORT.
* ldgram.y (current_file): Change to struct wildcard_spec.
	(%union): Add new fields cname and wildcard.
	(wildcard_name, wildcard_spec): New nonterminals.
	(file_NAME_list): Use wildcard_spec.
	(input_section_spec): Change current_file usage.
	* ld.h (struct wildcard_spec): Define.
	* ldlang.h (lang_wild_statement_struct): Add new fields
	sections_sorted and filenames_sorted.
	(lang_add_wild): Update declaration.
	* ldlang.c (wild_sort): New static function.
	(wild_section): Use wild_sort.
	(print_wild_statement): Print sorting information.
	(lang_add_wild): Add new parameters sections_sorted and
	filenames_sorted.  Change all callers.
	* mri.c (mri_draw_tree): Update calls to lang_add_wild.
	* scripttempl/elf.sc: Sort .ctors.* and .dtors.* by section name.
	* scripttempl/elfd10v.sc: Likewise.
	* scripttempl/elfd30v.sc: Likewise.
	* scripttempl/elfppc.sc: Likewise.
1998-05-15 07:29:35 +00:00
Richard Henderson
5bb1a7be9d * emulparams/m32relf.sh (TEMPLATE_NAME): Define. 1998-05-15 01:43:31 +00:00
Nick Clifton
f0ba99a671 Added support for display emulation specific command line options.
Added internationalisation to emulation templates.
Added --support-old-code command line option to armcoff and pe emulations.
1998-05-14 22:07:30 +00:00
Ian Lance Taylor
ee66b572a8 fix xgettext invocation 1998-05-06 18:16:28 +00:00
Ian Lance Taylor
cc96256766 * ld-shared/main.c (shlib_overriddencall2): New function.
(main): Call shlib_shlibcall2.
	* ld-shared/sh1.c (shlib_shlibcall2): New function.
	(shlib_overriddencall2): New function.
	* ld-shared/shared.dat: Add output line for new test.
	* ld-shared/sun4.dat: Likewise.
1998-05-04 21:45:13 +00:00
Ian Lance Taylor
792dfb93dc comment changes 1998-05-04 21:44:57 +00:00
Ian Lance Taylor
7b9f7f9917 * ld-srec/sr3.cc (__get_eh_context): New function. 1998-05-04 21:12:24 +00:00
Tom Tromey
5873cbec2b Fixed xgettext invocation in .Sanitize files 1998-04-29 00:11:07 +00:00
Ian Lance Taylor
5b10df4a85 * configure.in: Change version number to 2.9.4
* configure: Rebuild.
1998-04-27 20:42:00 +00:00
Ian Lance Taylor
6581c418e3 * ld.texinfo (Options) [-rpath-link]: Mention ld.so.conf. 1998-04-27 16:40:18 +00:00
Ian Lance Taylor
d091d2ab3b x 1998-04-27 16:15:36 +00:00
Ian Lance Taylor
bef28bc98a * emultempl/elf32.em (global_vercheck_needed): New file static
variable.
	(global_vercheck_failed): New file static variable.
	(gld${EMULATION_NAME}_after_open): Check for shared libraries
	twice, once with force set to 0 and once with it set to 1.
 	(gld${EMULATION_NAME}_check_ld_so_conf): Add force parameter.
	Change all callers.
	(gld${EMULATION_NAME}_search_needed): Likewise.
	(gld${EMULATION_NAME}_try_needed): Likewise.  If not force, check
	whether the libraries needs any incompatible versions.
	(gld${EMULATION_NAME}_vercheck): New static function.
1998-04-27 16:14:37 +00:00
Tom Tromey
d6f3da9bc4 If xgettext fails, make Sanitize fail 1998-04-23 05:17:30 +00:00
Tom Tromey
560270b75d * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir). 1998-04-22 22:47:40 +00:00
Tom Tromey
3d96e9b4cf .Sanitize now re-computes gettext-related files 1998-04-22 22:40:45 +00:00
Ian Lance Taylor
f3b96ecc60 * Makefile.am (check-DEJAGNU): Add $(INTLLIBS) to LIBIBERTY when
invoking runtest.
	* Makefile.in: Rebuild.
1998-04-22 20:03:56 +00:00
Ian Lance Taylor
fc4826cf4d * lexsup.c (parse_args): Change -l options into --library options
to avoid confusion between -li and -library.
1998-04-22 20:03:00 +00:00
Ian Lance Taylor
7d8f6751c2 fix gettext merge error on ld.info and ld.dvi 1998-04-22 16:42:34 +00:00
Ian Lance Taylor
f8a86f8f3f * ld.texinfo (MEMORY): Clarify use of >REGION. 1998-04-22 16:41:28 +00:00
Ian Lance Taylor
e33bfde75c fix sanitization for gettext changes 1998-04-22 16:18:07 +00:00
Tom Tromey
8bc8f4bc00 * Many files: Added gettext invocations around user-visible
strings.
	* ld.h: Added gettext-related includes and defines.
	* ldmain.c: Call setlocale, bindtextdomain, textdomain.
	* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
	HAVE_LC_MESSAGES): Define.
	* configure.in: Call CY_GNU_GETTEXT.  Create po/Makefile.in and
	po/Makefile.  Use AM_PROG_LEX.
	(TDIRS): AC_SUBST early on, to avoid having value split when it
	happens to cross line 90 of the generated sed script.
	* Makefile.am (SUBDIRS): New macro.
	(POTFILES): Likewise.
	(po/POTFILES.in): New target.
	(ld_new_LDADD): Added INTLLIBS.
	(ld_new_DEPENDENCIES): Added INTLDEPS.
	* po/Make-in, po/POTFILES.in, po/gas.pot: New files.
1998-04-22 06:58:37 +00:00
Ian Lance Taylor
36a8f215e7 * ld.texinfo (Simple Example): Rewrite a few things as suggested
by Nick Clifton <nickc@cygnus.com>.
	(PROVIDE): Likewise.
1998-04-22 03:55:41 +00:00
Nick Clifton
5de921b816 Changes to conform to BFD coding conventions. 1998-04-21 16:59:22 +00:00