Commit Graph

1796 Commits

Author SHA1 Message Date
Nick Clifton 22f94ab06c Fix for PR 19070 - add ability to detect and generate errors when sections
overlap.
1999-02-11 16:14:01 +00:00
Nick Clifton 29b5edecd7 Add support for StrongARM target. 1999-02-08 12:47:01 +00:00
Ian Lance Taylor d17a18df0a * ldctor.c (ldctor_build_sets): Just set SEC_KEEP once. Check for
an owner of a section before using it to look up a reloc type.
	Don't set SEC_KEEP for the absolute section.
1999-02-04 00:42:03 +00:00
Catherine Moore f4355fa583 * ld-selective/selective.exp: Disable test for unsupported
targets.  Change tests to check for absence of symbols instead
        of address zero.
1999-02-03 01:16:50 +00:00
Catherine Moore 78d1380307 add armelf_oabi.em 1999-02-01 22:39:43 +00:00
Catherine Moore 951253ca27 add armelf_oabi.sh 1999-02-01 22:38:59 +00:00
Catherine Moore 72cfd23f2a * Makefile.am (earmelf_oabi.o): New.
* Makefile.in:  Regenerate.
        * configure.tgt (arm-*-oabi):  New.
        (thumb-*-oabi):  New.
        * emulparams/armelf_oabi.sh:  New.
        * emultempl/armelf_oabi.em:  New.
1999-02-01 19:45:14 +00:00
Nick Clifton a21a12e39e Remove v850e sanitization 1999-02-01 11:21:32 +00:00
Vladimir Makarov 3d26bb0e8e 1999-01-31 17:57:31 1998 Michael Meissner <meissner@cygnus.com>
* scripttempl/elfppc.sc: Add support for -fleading-underscores
	switch in all linker generated symbols.

	* configure.tgt (powerpc{,le}*-*-vxworks): Add as aliases for
	powerpc{,le}-*-eabi.
1999-02-01 00:02:52 +00:00
Nick Clifton 02c548d743 Only allow allocated sections to contribute to the size of a region. 1999-01-15 08:50:15 +00:00
Nick Clifton 393034a970 Removed fr30.sh and fr30.sc.
Added elf32fr30.sh
1999-01-13 09:23:09 +00:00
Nick Clifton 0c14d9537c Remove .stack section, replace with __stack symbol. 1999-01-12 14:11:45 +00:00
Nick Clifton e79b7f1e01 Switch over to using generic elf script rather than an fr30 specific one. 1999-01-12 09:51:38 +00:00
Nick Clifton f55ba3999c Fill .init and .fini sections with NOPs 1999-01-11 09:10:54 +00:00
Ken Raeburn 7cada34aec (Ugh. Last checkin was supposed to have been aborted. Oops.)
Replace elf-offset.ld with a version we can ship.
Use "-T" in linker invocation when specifying linker script.
1999-01-03 23:55:33 +00:00
Ken Raeburn 6772620740 sanitization for new test case. discard it when sanitizing, until it gets
rewritten or assigned to the fsf.
1999-01-03 23:27:11 +00:00
Ken Raeburn c81b48112f * Makefile.am (check-DEJAGNU): No longer provide HOSTING_EMU, HOSTING_CRT0,
HOSTING_LIBS; the test suite can extract them from configure.host and
configure.tgt now.
* Makefile.in: Rebuild.
1999-01-03 16:09:55 +00:00
Ken Raeburn 687788cd4b * config/default.exp (get_link_files, get_target_emul): New procs;
run shell commands to extract information from configure.host and
	configure.tgt in the source tree.
	(top level): Use them to get information needed to run tests, if
	not otherwise provided.

Should allow running of at least some of the tests by releng.

	* ld-shared/elf-offset.ld: New file.  Builds a shared library, but
	gives non-zero addresses for memory region.
	* ld-shared/shared.exp: Run the non-PIC non-AIX test again using
	the new linker script.

PR ld/17962 -- not fixed, but customer has what should be an adequate
workaround.
1999-01-03 16:03:47 +00:00
Ulrich Drepper 4b68b83dc0 Update. 1998-12-27 21:44:58 +00:00
Ian Lance Taylor e1dfd97dc8 Thu Dec 10 11:12:28 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* Makefile.am (ALL_EMULATIONS): Remove pe-dll.o and deffilep.o.
	(ALL_EMUL_EXTRA_OFILES): New variable.  Put them here instead.
	* configure.in: Set EMUL_EXTRA_OFILES to $(ALL_EMUL_EXTRA_OFILES)
	if configuring with all targets.
	* configure, Makefile.in, aclocal.m4: Rebuild.

	* emultempl/pe.em (pe_enable_stdcall_fixup): Make static.
	(pe_dll_do_default_excludes): Removed, unused.
	(pe_def_file, pe_dll_export_everything, pe_dll_kill_ats,
	pe_dll_stdcall_aliases): Don't initialize them, this file may be
	compiled more than once.
	* pe-dll.c (pe_def_file, pe_dll_export_everything,
	pe_dll_do_default_excludes, pe_dll_kill_ats,
	pe_dll_stdcall_aliases): Define and initialize them here instead.
	(generate_reloc): Fix allocation of reloc_addresses array to use
	bfd_vma instead of unsigned long.  Fix element size in qsort call.
	(reloc_sort): Compare pointers to bfd_vma instead of unsigned
	long.
1998-12-10 16:16:08 +00:00
Ian Lance Taylor 6b02231371 Mon Dec 7 21:10:09 1998 J.J. van der Heijden <j.j.vanderheijden@student.utwente.nl>
* configure.tgt (i[3456]86-*-mingw32*): Add cygwin target specific
	files.
1998-12-08 02:11:38 +00:00
Ian Lance Taylor 4bd1816047 * configure.tgt (m68*-*-gnu*): New target. From Aymeric Vincent
<aymeric.vincent@emi.u-bordeaux.fr>.
1998-12-06 21:34:37 +00:00
Ian Lance Taylor d11b289ba8 Sun Dec 6 12:59:37 1998 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers1.c: Add missing return types and values.
	* ld-elfvers/vers2.c: Likewise.
	* ld-elfvers/vers3.c: Likewise.
	* ld-elfvers/vers4.c: Likewise.
	* ld-elfvers/vers5.c: Likewise.
	* ld-elfvers/vers6.c: Likewise.
	* ld-elfvers/vers7.c: Likewise.
	* ld-elfvers/vers9.c: Likewise.
	* ld-elfvers/vers15.c: Likewise.
1998-12-06 18:01:41 +00:00
Nick Clifton 24776ee006 Change default start address to 0x10000 so that it fits in 20 bits 1998-12-04 10:14:35 +00:00
DJ Delorie f1b2a4d619 * ldemul.h (ld_emulation_xfer_struct): new hook "recognized_file"
* ldemul.c (ldemul_recognized_file): new function, new hook
* ldint.texinfo: document new hook.
* ldlang.c (load_symbols): call recognized_hook for all objects we
do recognize, in case the emulation needs to handle them
specially.  PE DLLs use this.
* pe-dll.c (pe_dll_generate_def_file): take out hack and debug
printfs
* emultempl/pe.em (gld_i386_recognized_file): new function
(gld_i486_unrecognized_file): take out hack
1998-11-25 23:03:47 +00:00
Gavin Romig-Koch f8c41900fc For top level:
* config.sub (mips64vr4xxx,mips64vr4xxxel): New.


For gcc:
	* config.sub (mips64vr4xxx,mips64vr4xxxel): New.
	* configure.in (mips64vr4xxx,mips64vr4xxxel): New.
	* config/mips/t-vr4xxx: New.
	* config/mips/elfb4xxx.h: New.
	* config/mips/elfl4xxx.h: New.
	* configure: Rebuilt.

For gas:
	* config/tc-mips.c (md_begin): Added mip64vr4xxx as a
	possible CPU_TARGET.

For gdb:
	* configure.tgt: Handle mips64*vr4xxx.

For ld:
	* configure.tgt: Handle mips64*vr4xxx.
1998-11-25 01:10:52 +00:00
DJ Delorie c59356d3b4 * pe-dll.c (make_head): name object files sequentially to ensure
they link in the right order.
	(make_tail): same here
	(pe_process_import_defs): use sequential names for bfds to ensure
	proper link order.
	(pe_implied_import_dll): new function; handles linking directly
	against DLLs by simulating IMPORTS directives.  * emultempl/pe.em
	(gld_i386pe_before_parse): hack bfd to not recognize .dll files
	via bfd_pe_dll_not_recognized_hack
1998-11-24 04:33:33 +00:00
DJ Delorie 6952c60277 * emultempl/pe.em (gld_i386pe_parse_args): Conditionalize call to
pe_dll_add_excludes
1998-11-24 00:24:06 +00:00
Nick Clifton 715e7aadec fix for arm-pe linker testsuite failures - only define an entry symbol if one has been specified. 1998-11-23 22:38:48 +00:00
DJ Delorie 3feaa5aff8 * emultempl/pe.em (gld_i386pe_after_open): call
pe_process_import_defs
	* pe-dll.c (pe_dll_generate_def_file): calculate BASE from
	pe_data, only print if actually set.  Print version only if
	set.
	(save_relocs): save relocs for both input and output.
	(make_one): support internal/external different names.
	(pe_dll_generate_implib): support new make_one
	(pe_process_import_defs): new function; handles IMPORT
	directives in .def files.
1998-11-23 19:47:31 +00:00
Nick Clifton d6644919f6 Coper with empty symbol names. 1998-11-20 21:08:14 +00:00
Nick Clifton 51142ebcf5 Add provision of _end symbol. 1998-11-19 21:32:57 +00:00
Geoffrey Noer 27c12d6196 Wed Nov 18 18:18:43 1998 Geoffrey Noer <noer@cygnus.com>
* configure.tgt: change refs from cygwin32* to cygwin*.
        * aclocal.m4: regenerate
        * configure.in: don't need to call AM_CYGWIN32.
        * configure: regenerate
1998-11-19 02:22:42 +00:00
Geoffrey Noer 040c9024d4 Wed Nov 18 18:18:43 1998 Geoffrey Noer <noer@cygnus.com>
* configure.tgt: change refs from cygwin32* to cygwin*.
1998-11-19 02:20:06 +00:00
DJ Delorie f5eb8577bd typo 1998-11-17 03:32:36 +00:00
DJ Delorie d3ca9a538c * emultempl/pe.em (gld_i386_finish): generate import library
* deffile.h: add hint member.
* pe-dll.c (pe_dll_generate_implib): New function with helpers;
generates the import library directly from the export table.
(fill_edata): remember the actual hint for the import library.
1998-11-17 03:18:06 +00:00
Ian Lance Taylor d66300ea5f * ld.1: Some cleanups from NOKUBI Hirotaka <hnokubi@yyy.or.jp>. 1998-11-14 19:37:14 +00:00
Dave Brolley 89c795fe13 Thu Nov 12 19:21:57 1998 Dave Brolley <brolley@cygnus.com>
* po/ld.pot: Regenerated.
	* po/POTFILES.in: Regenerated.
1998-11-13 00:35:52 +00:00
Dave Brolley e102ec4865 Thu Nov 12 19:21:57 1998 Dave Brolley <brolley@cygnus.com>
* po/ld.pot: Regenerated.
	* po/POTFILES.in: Regenerated.
	* configure: Regenerated.
	* aclocal.m4: Regenerated.
	* Makefile.in: Regenerated.
1998-11-13 00:35:16 +00:00
DJ Delorie b138a74d47 * pe-dll.c (generate_reloc): don't output PE relocs for sections
that won't be loaded.
1998-11-11 23:11:38 +00:00
DJ Delorie a18b9a3df3 * pe-dll.c (fill_edata): don't strip underscores 1998-11-11 18:50:40 +00:00
DJ Delorie a6ae89f731 * ld.texinfo: added i386pe option summary 1998-11-11 02:29:03 +00:00
DJ Delorie e2586bc8de * pe-dll.c (process_def_file): properly note undefined exported
symbols, clean up old code.
	(pe_dll_generate_def_file): don't crash if pe_def_file is NULL
	* emultempl/pe.em (gld_i386_parse_args): add
 	(en/dis)able-stdcall-fixups
	(pe_fixup_stdcalls): warn about stdcall fixups
	(gld_i386_unrecognized_file): make exported symbols undefs so that
 	archive members get pulled in
1998-11-10 22:57:13 +00:00
Catherine Moore fa718276e8 * scripttempl/elfd10v.sc: Add KEEP attribute to .init,
.fini, .dtors and .ctors.  Add .data and .text
        wildcards to support section garbage collection.
1998-11-10 21:00:40 +00:00
DJ Delorie a3606134a2 * deffilep.y: properly handle relocs with multiple def_files,
cache import module names
1998-11-10 03:54:00 +00:00
DJ Delorie 91c7ad9a6a * pe-dll.c (process_def_file): don't assume exports won't move
during a realloc
1998-11-10 03:45:43 +00:00
DJ Delorie 69c4fd86f9 * pe-dll.c (process_def_file): auto-export everything if
nothing is otherwise exported.
1998-11-09 23:06:47 +00:00
DJ Delorie 854d50bd51 * emultempl/pe.em (gld_i386_list_options): list dll-specific options. 1998-11-09 22:58:45 +00:00
DJ Delorie 8550b2d7c0 oops, wasn't done editing that one yet. 1998-11-09 21:58:35 +00:00
DJ Delorie eb8061bf35 * pe-dll.c: New file; direct support for PE DLLs
* deffile.h: New file; direct support for PE DLLs
	* deffilep.y: New file; direct support for PE DLLs
	* emultempl/pe.em: add direct support for PE DLLs
	* configure.tgt: allow target-specific extra files
	* configure.in: allow target-specific extra files
	* ldlang.c (lang_add_assignment): return the assignment so that
 	one can change the value later based on the object files (pe-dll
 	DEF files do this)
	* ldint.texinfo: add section for emulation walkthrough
1998-11-09 21:51:51 +00:00