Commit Graph

563 Commits

Author SHA1 Message Date
David Edelsohn 73f5d5febb * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
types of different sizes (eg: 64 and 32 bits), so coerce.
* ld.h (ALIGN_N): Add warning about usage.
1993-10-15 09:29:32 +00:00
Ian Lance Taylor 98b5caadf3 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
which we already have a definition, rather than checking in
	several different places whether the symbol is weak.
1993-10-13 20:04:30 +00:00
Ian Lance Taylor a71da76017 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
* scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
	OTHER_READWRITE_SECTIONS if relocating.  Shell variables are not
	expanded within them.
	* config/mipsb-elf32.mt: New file.
	* emulparams/elf32mipb.sh: New file.
	* Makefile.in (em_elf32mipb.c): New target.
1993-10-12 21:46:52 +00:00
Ian Lance Taylor f1d043f50f elf32mipb.sh: New emulation parameter file for big endian MIPS ELF. 1993-10-12 21:36:05 +00:00
Ian Lance Taylor 514977a5ea mipsb-elf32.mt: New configuration file for big endian MIPS ELF. 1993-10-12 21:33:57 +00:00
Steve Chamberlain 9ddf56994c Use both h8300 emulations. 1993-10-08 17:45:23 +00:00
Roland Pesch 7f9ae73e76 Makefile.in: correct out-of-date TEXIDIR default
ld.texinfo: (a) fix INPUT cmd description (b) fix bad formatting in FSF
            style (warning examples) (c) add some index entries on warnings
1993-10-01 21:08:13 +00:00
Rob Savoye a4aeaacf69 * ldlang.c (lang_add_input_file): If it's a library brought in by
INPUT(), then change the file type to lang_input_file_is_l_enum.
	* ldgram.y: In input_list, change lang_input_file_is_file_enum to
	lang_input_file_is_search_file_enum so objects brought in using
	INPUT() do a path lookup.
1993-10-01 01:28:55 +00:00
Stan Shebs bd7b78f769 Lynx support 1993-09-28 20:59:59 +00:00
Stan Shebs 3f905ec153 Lynx support 1993-09-28 20:51:22 +00:00
Ian Lance Taylor 15fff00f6e * config/solaris2.mh: New file. Define HOSTING_CRT0 and
HOSTING_LIBS for testing.
1993-09-23 21:53:33 +00:00
Ian Lance Taylor 03451d7fa4 Add i386 SVR4 configuration files that I couldn't add remotely. See
ChangeLog.
1993-09-17 22:17:52 +00:00
Ian Lance Taylor 9a467cb2b5 Finish up support for i386-sysv4 (without shared libraries):
* ld.h (flag_is_weak): Define.
	* ldlang.c (print_symbol): Mention whether symbol is weak.
	(print_input_section): Print weak symbols as globals.
	* ldmain.c (refize): Do not zero out BSF_WEAK flag.
	(enter_global_ref): Do not warn if a weak symbol redefines a
	global symbol.  Do not let a weak symbol redefine a common symbol.
	(enter_file_symbols): Treat weak symbols as global symbols.
	(subfile_wanted_p): Do not pull in an object file from a archive
	just to resolve an undefined weak symbol.
	* ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
	error; the error might be that malloc has run out of space.
	* ldsym.c (write_file_locals): Treat weak symbols as global.
	* configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
	use i386-elf.
	* config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
	* config/i386-elf.mt: New file; set EMUL to elf_i386.
	* emulparams/elf_i386.sh: New file.
	* scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
	* Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
	(ALL_EMULATIONS): Add em_elf_i386.o.
	(GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
	(em_elf_i386.c): New target, like other em_*.c targets.
	($(LD_PROG)): Pass $(CFLAGS) to $(CC).
	* genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument.  If
	nonempty, and configured for native, add it to LIB_PATH.
1993-09-17 22:11:00 +00:00
Stan Shebs 4f6d6db937 Added statements for stab sections in coff files. 1993-09-17 20:16:17 +00:00
David Edelsohn d71cbf2a83 Add EMUL=h8300h. 1993-09-12 23:12:31 +00:00
David Edelsohn 1bff7c388a * ldmain.c (main): Call set_scripts_dir after argv has been processed. 1993-09-12 23:07:40 +00:00
Jeffrey Wheat 67d9694933 Added CXXFLAGS to compile stage in ld.cdtest/cdtest.exp 1993-09-10 17:00:19 +00:00
Jeffrey Wheat 108f145ba4 Changed CXX back to g++. Using ../gcc/xgcc breaks because of <assert.h> 1993-09-10 16:53:33 +00:00
Jeffrey Wheat 8a6665aef8 Changed CXX back to g++. ../gcc/xgcc breaks the cdtest because of <assert.h> 1993-09-10 16:50:52 +00:00
Jeffrey Wheat 3a9149a7b7 Fixed RUNTEST* CXX CXXFLAGS macros and check rule. 1993-09-10 16:37:47 +00:00
David MacKenzie cbb5c2d133 * Makefile.in (TAGS): Use shell wildcards. 1993-09-10 14:29:45 +00:00
Jeffrey Osier 959eba2070 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target 1993-09-08 01:08:26 +00:00
Roland Pesch a0a55af6a7 * ld.texinfo: re-enable included config file; conditionalize doc
for -oformat to interact properly with SingleFormat doc config
	var; rename @up/@down to @raisesections/@lowersections.
1993-09-03 23:48:59 +00:00
David MacKenzie 836a5ee449 tiny additions & fixes 1993-09-03 22:47:04 +00:00
David Edelsohn c10744770c * ld.h (BYTE_SIZE, SHORT_SIZE, LONG_SIZE): Define as suggested by
Steve.
1993-08-26 22:22:36 +00:00
Ken Raeburn 4346166b07 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
* emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
ELF emulation is "elf32-hppa" not "elf-big".
(hppaosf_before_parse): Remove unneeded processing of environment variables.
* scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
.text segment of output file.
* emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
1993-08-24 23:45:26 +00:00
K. Richard Pixley 95a2b9d2ce move BYTE_SIZE, SHORT_SIZE, LONG_SIZE from ldlang.c into ld.h 1993-08-24 23:34:32 +00:00
K. Richard Pixley b98bd3db83 define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no longer in bfd.h. 1993-08-24 23:17:52 +00:00
David D. Zuhn 3b55444d36 keep i386-linux.h 1993-08-18 22:54:11 +00:00
Ian Lance Taylor ddddcdf0f3 * ldlang.c (open_output, lang_check): Check return value of
bfd_set_arch_mach.
1993-08-17 19:25:18 +00:00
Steve Chamberlain ea1c0ad276 * scripttempl/h8500.sc: Start all sections in a different segment.
* scripttempl/z8ksim.sc: Handle constructors
1993-08-17 14:04:24 +00:00
Jeffrey Wheat 8b46d73404 added support for the original "make chech-cdtest" 1993-08-12 23:20:25 +00:00
Jeffrey Wheat 26f709de0f cleaned up tests to work like they did originally in the makefile 1993-08-12 23:19:09 +00:00
Jeffrey Wheat d301e438b5 check targets reimplemented to old way. 1993-08-12 15:54:30 +00:00
Ian Lance Taylor d62026add2 * config/i386v.mh, config/irix4.mh: Use gcc
-print-libgcc-file-name rather than $(libdir)/libgcc.a.
1993-08-11 19:14:25 +00:00
Ian Lance Taylor 75fe54719c * config/i386sco.mh: New file; copy of i386v.mh to correspond to
bfd/configure.host change.
1993-08-11 15:57:39 +00:00
David MacKenzie 91fd30d46c mention that [section] is no longer supported 1993-08-10 16:12:30 +00:00
David MacKenzie 31f55aa540 clean up error messages 1993-08-06 20:13:28 +00:00
Ian Lance Taylor 3353630442 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
(BSS_VAR): Removed; now always define _fbss.
	* emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
	Removed.
1993-08-06 18:35:03 +00:00
David MacKenzie 867a1b8a18 error fixes and clarifications 1993-08-05 22:49:26 +00:00
Jeffrey Wheat 7c6a9e798c Changes to add dejagnu testsuite support 1993-08-05 04:16:43 +00:00
Jeffrey Wheat 671fe6e9a3 New files for ld testsuites 1993-08-05 04:14:51 +00:00
David MacKenzie 8bf66be8aa add missing newlines in messages 1993-08-05 02:52:17 +00:00
Steve Chamberlain cdbcb08c10 Keep h8300h.sc 1993-08-04 17:24:11 +00:00
Steve Chamberlain 8f20740950 Keep h8300h.em 1993-08-04 17:23:30 +00:00
Steve Chamberlain e85fd7216e Keep m88kbcs.em 1993-08-04 17:19:22 +00:00
David MacKenzie 1cd4cca9bf add more info about -warn-common 1993-08-03 23:09:03 +00:00
David MacKenzie 2a28d8b006 add -warn-common option 1993-08-03 22:47:28 +00:00
David MacKenzie 3e27cc11c4 don't list objfiles... as an option 1993-08-03 00:33:38 +00:00
Ken Raeburn 94f9d427e5 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
target-specific sections, and for changing data section vma.
1993-08-02 16:52:10 +00:00