Commit Graph

1666 Commits

Author SHA1 Message Date
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
Richard Henderson
79cee2b768 * ldlang.c (lang_one_common): Manipulate the section's cooked size
rather than its raw size.

pr 15650
1998-04-19 01:41:34 +00:00
Ian Lance Taylor
55ca0ccbb6 Tue Apr 7 13:35:29 1998 H.J. Lu <hjl@gnu.org>
* configure.in (TESTBFDLIB): New.  Defined and substituted.
	* Makefile.am (TESTBFDLIB): Changed to @TESTBFDLIB@.
	* configure, Makefile.in: Rebuild.
1998-04-07 17:37:33 +00:00
Ian Lance Taylor
83a33a21ad * Makefile.am (ld.info): Invoke makeinfo with -I options directly
rather than relying on default rule.  Don't depend upon
	bfdsumm.texi.
	(ld.dvi): Likewise.
	(bfdsumm.texi): Remove target.
	(CLEANFILES): Take bfdsumm.texi out of value.
	* Makefile.in: Rebuild.
1998-04-06 19:35:06 +00:00
Ian Lance Taylor
2a08e1decb * scripttempl/pe.sc: Use shell variables to avoid depending upon
how $ is handled when expanding a shell substitution.
1998-04-05 17:08:58 +00:00
Ian Lance Taylor
193bbe8581 * Makefile.am (MOSTLYCLEANFILES): Add ld.log and ld.sum.
(DISTCLEANFILES): Add site.exp and site.bak.
	* Makefile.in: Rebuild.
1998-04-03 19:48:22 +00:00
Ian Lance Taylor
3c68cb41f4 x 1998-04-03 18:32:10 +00:00
Ian Lance Taylor
03abc2bd65 * configure.in: Put the tdirs in a file and use AC_SUBST_FILE,
rather than in a shell variable and using AC_SUBST.
	* Makefile.am (DISTCLEANFILES): Remove ldscripts.  Add tdirs.
 	(distclean-local): New target.
	* configure, Makefile.in: Rebuild.
1998-04-03 18:30:15 +00:00
Ian Lance Taylor
ed1cc83df2 tweak 1998-04-03 18:04:12 +00:00
Ian Lance Taylor
f8cf2baa85 tweak 1998-04-03 17:55:04 +00:00
Ian Lance Taylor
af54556ad3 * ld.texinfo: Completely rewrite linker script documentation. 1998-04-03 05:57:33 +00:00
Ian Lance Taylor
0d3e84dd92 * configure.in: Set version to 2.9.1.
* configure: Rebuild.
1998-03-30 22:56:58 +00:00
Ian Lance Taylor
437a04cb40 * Makefile.am (MOSTLYCLEANFILES): Remove tmpdir.
(mostlyclean-local): New target to remove tmpdir.
	* Makefile.in: Rebuild.
1998-03-28 22:17:43 +00:00
Ian Lance Taylor
26c61946fb Fix some gcc -Wall warnings:
* ldcref.c (output_cref): Add casts to avoid warnings.
	* ldfile.c (ldfile_add_arch): Likewise.
	* ldlang.c (lang_leave_overlay_section): Likewise.
	* lexsup.c (OPTION_COUNT): Likewise.
	(parse_args): Likewise.
	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan):
	Likewise.
	* emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Likewise.
	* ldlang.c (lang_check): Initialize variables to avoid warnings.
	* ldwrite.c (build_link_order): Likewise.
	* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Likewise.
	* emultempl/armcoff.em (gld${EMULATION_NAME}_before_allocation):
	Remove unused variables.
1998-03-28 21:54:33 +00:00
Ian Lance Taylor
3697773065 * Makefile.am (MOSTLYCLEANFILES): Correct name (was
MOSTCLEANFILES).
	* Makefile.in: Rebuild.
1998-03-28 21:54:11 +00:00
Ian Lance Taylor
c8e8b829fe * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Put
ARM code inside ifdef TARGET_IS_armpe.
1998-03-27 21:40:06 +00:00
Nick Clifton
3535c3c044 Add interworking support for arm-pe/thumb-pe targets. 1998-03-26 00:00:54 +00:00
Ian Lance Taylor
51b9a79bdd Based on patch from H.J. Lu <hjl@gnu.org>:
* Makefile.am (LDDISTSTUFF): New variable.
	(diststuff): New target.
	* Makefile.in: Rebuild.
1998-03-25 17:48:56 +00:00
Ian Lance Taylor
9216fffaef * scripttempl/pe.sc: Only include .idata\$[0-7] in .idata when
relocating.
1998-03-25 16:35:13 +00:00
Ian Lance Taylor
a096e9b7aa Mon Mar 23 18:54:15 1998 Joel Sherrill <joel@OARcorp.com>
* configure.tgt: (sh*-*-rtems*): Switched from ELF to COFF.
1998-03-23 23:56:06 +00:00
Geoffrey Noer
155d9cc48a Thu Mar 19 14:54:45 1998 Geoffrey Noer <noer@cygnus.com>
* scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy
        section to avoid copying certain data on fork.  The linker used to
        include this between __data_start__ and __data_end__, but that
        breaks building the cygwin32 dll.  The fix is to rename the
        section ".data_cygwin_nocopy" and explictly include it after
        __data_end__.
1998-03-19 23:04:54 +00:00
Nick Clifton
c21f1da31c Add thumb-pe target. 1998-03-18 17:42:51 +00:00
Gavin Romig-Koch
7cdb3e273a * configure.tgt (mips*vr4320el-*-elf*,mips*vr4320-*-elf*): Added. 1998-03-03 16:20:17 +00:00
Michael Meissner
3a0d0c15e7 Fix setting memory from default attributes 1998-03-03 00:35:48 +00:00
Michael Meissner
e08a28c456 Add eit_vb section support 1998-02-27 19:22:13 +00:00
Ian Lance Taylor
fc96bc860d * emultempl/pe.em (sort_sections): Permit the wildcard to include
a trailing '*' when sorting grouped sections.
	* scripttempl/pe.sc: Include grouped sections using NAME\$*.  Only
	include them when relocating.
1998-02-23 22:48:20 +00:00