Commit graph

907 commits

Author SHA1 Message Date
Michael Meissner
7f7e2b0027 Make d30v defaults match chip 1997-11-17 01:21:37 +00:00
Ian Lance Taylor
50d20d05fc Sun Nov 2 14:51:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* configure.host (alpha*-*-linux*): Correct HOSTING_CRT0.  Set
	HOSTING_LIBS.
1997-11-02 19:53:39 +00:00
Ian Lance Taylor
a8880edadc * ld.h (args_type): Add warn_mismatch field.
* ldmain.c (main): Initialize warn_mismatch field.
	* lexsup.c (parse_args): Handle --no-warn-mismatch option.
	* ldlang.c (ignore_bfd_error): New static function.
	(lang_check): If warn_mismatch is false, don't warn about
	mismatched input files.
	* ld.texinfo, ld.1: Document new option.
PR 12714.
1997-10-30 17:28:55 +00:00
Gavin Romig-Koch
d020618aeb * configure.tgt: Add tx49 configury based on 4300. 1997-10-29 22:53:58 +00:00
Nick Clifton
c439ad7503 Rename '_stack' to '__stack' 1997-10-23 21:34:51 +00:00
Richard Henderson
2b3ce0b3c4 * Makefile.in (ALL_EMULATIONS): Move eelf64_sparc.o ...
(ALL_64_EMULATIONS): ... here.
        (eelf64_sparc.c): Template should be elf32 not generic.
        * emulparams/elf64_sparc.sh (TEMPLATE_NAME): New definition.
1997-10-23 07:56:30 +00:00
Richard Henderson
639da7eb77 * configure.tgt: Add sparc64-*-linux*.
* emulparams/elf64_sparc.sh (GENERATE_SHLIB_SCRIPT, NOP): New.
1997-10-23 07:43:44 +00:00
Ian Lance Taylor
34ed833edd * scripttempl/pe.sc: Put .eh_frame in .rdata. 1997-10-22 15:29:48 +00:00
Richard Henderson
b038ec7bd9 * ldlang.c (lang_register_vers_node): Only check globals<=>locals,
since we need to be able to export different versions of the same
        symbol.
1997-10-17 07:05:05 +00:00
Ian Lance Taylor
a12e621548 * scripttempl/pe.sc: Put .stab and .stabstr sections at end. 1997-10-15 18:53:18 +00:00
Richard Henderson
f38b497493 * configure.tgt, configure.host: Change alpha-*-* to alpha*-*-*;
config.guess now recognizes alphaev5 etc.
1997-10-08 19:39:25 +00:00
Ian Lance Taylor
46d2f9e1d6 * ldlang.c (wild_doit): Rewrite flag handling for clarity. If we
are not adding the first input section, and SEC_READONLY is clear
 	on the output section, then don't copy it from the input section.
  	If SEC_READONLY is not set on the input section, then clear it on
 	the output section.
1997-10-02 23:08:14 +00:00
Ian Lance Taylor
353e5cb604 * configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
elf32bmip.
	(mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
	to elf32bsmip.
	(mips*-*-linux*): Likewise.
	* emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
	setting ENTRY to __start.
	* emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
	setting ENTRY to __start.
	* scripttempl/elf.sc: Always set ENTRY to _start if it was not
	already set.
1997-10-02 22:45:25 +00:00
Nick Clifton
0fd15e0e09 Created seperate sections for read only data in order to prevent their
attributes from being inherited by their original containing sections.
1997-10-01 23:45:44 +00:00
Ian Lance Taylor
900f895c8e * ld.texinfo (Section Options): Improve documentation of NOLOAD
directive.
1997-09-24 17:23:06 +00:00
Ian Lance Taylor
b5db0960f3 * aclocal.m4: Rebuild with new libtool.
* configure: Rebuild.
1997-09-24 15:34:43 +00:00
Ian Lance Taylor
57cdbf7e00 * ldlang.c (wild_doit): Revert patch of September 3.
It doesn't work with linker scripts that use NOLOAD for debugging
sections.
1997-09-22 22:33:48 +00:00
Nick Clifton
2e6fa283b4 Added support for the call table data area. 1997-09-17 23:45:41 +00:00
Ken Raeburn
c8c76225c7 merge from d30v-970225-branch 1997-09-15 16:27:23 +00:00
Fred Fish
f403d30440 * ldlang.c (lang_memory_region_lookup): Remove extraneous
initialization of p.
1997-09-09 14:54:43 +00:00
Ian Lance Taylor
df2ea1f67a * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): In
expression produced for -bpT and -bpD options, align to a 32 byte
	boundary rather than an 8 byte boundary.
	* scripttempl/aix.sc: Put .tocbss at start of .bss section.
For AIX 4.2 support (PR 12957).
1997-09-04 16:43:22 +00:00
Ian Lance Taylor
f1dcefc69f * ldmisc.h, ldmisc.c, ldcref.c: Rename finfo to lfinfo, to avoid
function name conflict with AIX 4.2 unistd.h header file.
1997-09-04 16:41:18 +00:00
Ian Lance Taylor
7e519ffc58 * ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
noload_section.
PR 13139.
1997-09-03 19:13:14 +00:00
Ian Lance Taylor
24d2330e75 * Makefile.am (ld_new_DEPENDENCIES): Remove @LEXLIB@.
* Makefile.in: Rebuild.
1997-08-29 04:33:13 +00:00
David Edelsohn
0c0b16f9d4 * configure.tgt (arc-*-elf*): Recognize.
* Makefile.am (ALL_EMULATIONS): Add earcelf.o.
	* Makefile.in: Regenerate.
	* emulparams/arcelf.sh: New file.
Removes arc sanitization.
1997-08-28 17:19:45 +00:00
Ian Lance Taylor
9f19768a57 * ldlang.c (wildcardp): Don't let a backslash by itself cause a
pattern to be treated as a wildcard pattern.
PR 13113.
1997-08-20 15:24:15 +00:00
Ian Lance Taylor
72068e8ec0 * ldgram.y (atype): Accept parentheses with no type.
* ld.texinfo (Section Definition): Clarify use of whitespace.
	(Section Placement): Likewise.
PR 13112.
1997-08-20 15:15:22 +00:00
Ian Lance Taylor
0485d3df51 tipo 1997-08-09 04:58:27 +00:00
Ian Lance Taylor
49c009b56f * Makefile.am: New file, based on old Makefile.in.
* acinclude.m4: New file, from old aclocal.m4.
	* configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL.  Remove
	shared library handling; now handled by libtool.  Replace
	AC_CONFIG_HEADER with AM_CONFIG_HEADER.  Call AC_PROG_YACC,
	AC_PROG_LEX, and AC_DECL_YYTEXT.  Call AM_MAINTAINER_MODE,
	AM_CYGWIN32, and AM_EXEEXT.  Don't call CY_CYGWIN32 or CY_EXEEXT.
	* configure.host: Don't set HLDFLAGS, HLDENV, or RPATH_ENVVAR.
	* acconfig.h: Mention PACKAGE and VERSION.
	* stamp-h.in: New file.
	* ldver.c (ld_program_vresion): Set ld_program_version from
	VERSION.
	* ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
	* Makefile.in: Now built with automake.
	* aclocal.m4: Now built with aclocal.
	* configure, config.in: Rebuild.
1997-08-09 04:54:28 +00:00
Rob Savoye
b9a5c27fa7 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
win32 dependencies.
        * configure: Regenerated with autoconf 2.12.
        * Makefile.in: Add $(EXEEXT) to executable.
1997-07-29 01:34:09 +00:00
Ian Lance Taylor
beb76c0ade Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
* emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
	(SEGMENT_SIZE): Set to 0x200.
	* scripttempl/i386go32.sc: Rewrite.
	* configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
1997-07-22 22:52:15 +00:00
Jeff Law
d1ce2fc04f * configure.tgt: Default the r5900 to little endian. 1997-07-15 16:15:40 +00:00
Ian Lance Taylor
81272efdfd From Manfred Hollstein <manfred@s-direktnet.de>:
* configure.host (i[3456]86-*-linux*libc1*): Renamed from
	i[3456]86-*-linux*.
	(i[3456]86-*-linux*): New host.
1997-07-07 16:41:04 +00:00
Ian Lance Taylor
34260fe0d0 * scripttempl/pe.sc: Put .rsrc after .reloc. Put input .rsrc
sections in the output .rsrc section.
1997-06-26 17:54:35 +00:00
Ian Lance Taylor
fe80f6384a Wed Jun 25 12:48:41 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* configure.host (m68*-*-linux*libc1*): Renamed from
	`m68*-*-linux*'.
	(m68*-*-linux*): New configuration for use with GNU libc 2.
1997-06-25 16:49:19 +00:00
Ian Lance Taylor
4602e5f401 Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>
* scripttempl/elfppc.sc: Correct .rela.sdata entries.

	* scripttempl/elfppc.sc: Put the PLT between the small and large
	BSS segments.
	* emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A
	program base of 0x02000000 is recommended...' because otherwise
	shared libraries are less efficient.  We use 0x01800000 because
	otherwise it's impossible to branch to location 0, for instance if
	you have an undefined weak symbol.
1997-06-16 23:21:18 +00:00
Ian Lance Taylor
f4ae97e1bd Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* ldlang.c (lang_place_undefineds): Add \n in einfo call.
	(lang_size_sections): Likewise.
	* ldlex.l: Likewise.
	* emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
	* emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
	Likewise.
	(check_sections): Likewise.
	(gld${EMULATION_NAME}_after_allocation): Likewise.
	* emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
	Likewise.
	* mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
	* mpw-idtmips.c (gldmipsidt_after_open): Likewise.
	(check_sections): Likewise.
	(gldmipsidt_after_allocation): Likewise.
1997-06-16 16:56:22 +00:00
Ian Lance Taylor
02fbf07071 Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
1997-06-16 16:50:43 +00:00
Ian Lance Taylor
94d8217d65 * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
the import list.
1997-06-07 03:48:00 +00:00
Ian Lance Taylor
b4a4a6dc0f * ldmain.c (main): Correct check of fclose return value when
handling --force-exe-suffix.
1997-05-21 21:44:47 +00:00
Ian Lance Taylor
1a7f2a866e * scripttempl/elfmips.sc: Remove.
* scripttempl/elf.sc: Set ENTRY based on target.  Permit
	TEXT_DYNAMIC to control .dynamic segment.  Permit
	SHLIB_TEXT_START_ADDR to set start of shared object.  Support
	INITIAL_READONLY_SECTIONS.  Put .stub in .text.  Only put
	.gnu.linkonce.t* in .text when relocating.  Support
	OTHER_TEXT_SECTIONS.  Support SHLIB_DATA_ADDR as well as
	DATA_ADDR.  Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
	* emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
	(DATA_ADDR): Don't set.
	(INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
	(OTHER_TEXT_SECTIONS): Set.
	(OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
	(MACHINE): Set to empty string.
	* emulparams/elf32l4300.sh: Likewise.
	* emulparams/elf32ebmip.sh: Likewise.
	* emulparams/elf32elmip.sh: Likewise.
	* emulparams/elf32bmip.sh: Likewise.  Also:
	(TEXT_DYNAMIC): Set.
	* emulparams/elf32lmips.sh: Likewise.
	* Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
	elfmips.sc.
	(eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
1997-05-13 03:30:20 +00:00
Ian Lance Taylor
3d046499bc Mon May 12 11:11:06 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* scripttempl/elf.sc: Don't align the data segment on the next 8
	byte boundary, instead let the linker use whatever the individual
	sections require.
1997-05-12 15:12:12 +00:00
Ian Lance Taylor
f7f90eaaf5 * configure.tgt (i[3456]86-*-gnu*): Don't include Mach support. 1997-05-09 21:46:21 +00:00
Ian Lance Taylor
1ba1da8650 From Sean McNeil <sean@mcneil.com>:
* emultempl/pe.em (sort_by_file_name): Sort by archive name
	first.
	(sort_sections): Sort all sections, not just sections in the same
	archive.
1997-05-06 17:22:35 +00:00
Ian Lance Taylor
a59a42aef7 Mon May 5 18:19:55 1997 Philip Blundell <pjb27@cam.ac.uk>
* configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
	targets.
1997-05-05 22:56:03 +00:00
Michael Meissner
f1687b6f99 Rework static constructors and destructors 1997-05-02 22:29:38 +00:00
Michael Meissner
df184f82b2 Fix name of constructors/destructors 1997-05-02 19:57:12 +00:00
Ian Lance Taylor
cfa7c448a1 * ldctor.c (ldctor_build_sets): Make sure the set is aligned
appropriately.
1997-04-17 17:07:35 +00:00
Ian Lance Taylor
ba69384dc8 * Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
	(install): Depend upon ld.new and installdirs.  Use
	$(program_transform_name) directly, rather than using
	$(INSTALL_XFORM) and $(INSTALL_XFORM1).
	(installdirs): New target.
	(install-info): Run mkinstalldirs.
1997-04-15 17:21:15 +00:00
Ian Lance Taylor
21d83d1cf9 From Thomas Graichen <graichen@rzpd.de>:
* configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
	* configure: Rebuild.
1997-04-14 16:10:39 +00:00