Commit graph

120 commits

Author SHA1 Message Date
Fred Fish
11effa691a * emulparams/tic80coff.sh: New (dummy) file for TIc80.
* scripttempl/tic80coff.sc: New (dummy) file for TIc80.
	* Makefile.in (etic80coff.c): Add target and rule to build it.
	* configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
1997-02-10 01:17:14 +00:00
Ian Lance Taylor
f5f212fb56 * scripttempl/elf.sc: Put linkonce reloc section in other
appropriate reloc sections.
	* scripttempl/elfmips.sc: Add linkonce support.
	* scripttempl/elfppc.sc: Likewise.
1997-01-27 17:39:24 +00:00
Ian Lance Taylor
093427533c * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
* scripttempl/elfmips.sc: Use __start as the entry address for
	mips*-*-linux*.
1997-01-02 23:15:34 +00:00
Michael Meissner
c43452b052 Add .tbyte and .tbss sections 1996-12-30 18:57:36 +00:00
Michael Meissner
93f8f531b0 Make __{e,g}p correctly start relative to the beginning of the section; Cleanup 1996-12-13 20:37:35 +00:00
Jason Merrill
264677bbe1 * scripttempl/{elfd10v.sc,elfmips.sc,elfppc.sc,v850.sc}: Likewise. 1996-11-27 11:29:23 +00:00
Stan Shebs
de61c9e1f3 Fix sanitization of D10V script template 1996-11-01 02:14:43 +00:00
Ian Lance Taylor
aa9b7dedc8 handle v850.sc 1996-10-28 23:48:06 +00:00
Jeff Law
4ad9452c46 * scriptempl/v850.sc (zdata): Make sure this stays
in lo-memory.
zda testing.
1996-10-23 22:18:55 +00:00
Jeff Law
5549ebeda0 * scripttempl/v850.sc (__ep): Put it at the start
of the tda section.
v850.
1996-10-23 03:19:16 +00:00
Jeff Law
06c5b0fc96 * scriptempl/v850.sc: Move all "normal" sections into
the external memory region (0x100000 - 0x200000).
So plumhall works again (hopefully).
1996-10-22 17:45:57 +00:00
Michael Meissner
36cf21ce53 Make d10v .text start at 0x10000 1996-10-21 21:26:59 +00:00
Jeff Law
b502879f75 * scripttempl/v850.sc (__gp, __ep): Define. 1996-10-18 18:59:45 +00:00
Jeff Law
c23b6a6bc9 * scripttempl/v850.sc (.zdata): Add this before .text.
(.sdata): Also include .rosdata as part of the .sdata.
        (.tdata): Include this just before .sdata.
1996-10-17 20:48:42 +00:00
Jeff Law
2b8cd389ae * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
* scripttempl/v850.sc: Wrap script with a "cat << EOF".
Problems with last night's changes.
1996-10-17 16:58:31 +00:00
Jeff Law
d27d34c382 * scripttempl/v850.sc: New linker script for the V850.
* Makefile.in: Use it.
1996-10-17 05:10:52 +00:00
Jason Merrill
9193c60b55 Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
* scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
1996-10-07 05:36:57 +00:00
Ian Lance Taylor
4fc7ca82bf * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
elf.sc does, so that glibc works better.
1996-10-01 22:31:27 +00:00
Ian Lance Taylor
df6b92ed1b * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
1996-09-16 21:56:33 +00:00
Ian Lance Taylor
18f0961ed9 * scripttempl/elf.sc: Put .gnu.linkonce* sections in .text. 1996-08-21 18:27:28 +00:00
Jeff Law
cce8528df9 No longer sanitize away h8s stuff. 1996-07-05 18:54:28 +00:00
Michael Meissner
edcfb9db65 Do not do PROVIDE of _GLOBAL_OFFSET_TABLE_ 1996-06-24 22:57:16 +00:00
Jeff Law
71415be57c * scripttempl/h8300s.sc: New file for H8/S.
* emulpararms/h8300s.sh: New file for H8/S.
        * Makefile.in (ALL_EMULATIONS): Add H8/S.
        (e_h8300s.c): Add dependencies.
        * configure.tgt: Add H8/S to targ_extra_emuls.
H8/S linker stuff.  Sanitized until status of this code is known.
1996-06-18 22:55:30 +00:00
Jim Wilson
f98286385f Kill r16/rce/acp stuff. 1996-06-08 03:52:13 +00:00
Ian Lance Taylor
90557a6aea * scripttempl/elfmips.sc: Quote test -z argument. 1996-05-29 20:10:22 +00:00
Michael Meissner
fb2a7661fb Set __stack = 0 if it is referenced and not defined. 1996-05-10 20:32:07 +00:00
Rob Savoye
01d8a35928 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
Set a new variable to signify if the final target is an embedded
	system.
	* scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
	.text for an embedded system.
1996-05-09 15:56:58 +00:00
Jeff Law
00e6a1b14d * scripttempl/h8300.sc: Place ".tiny" sections right
after ".data" sections.
        * scripttempl/h8300h.sc: Place ".tiny" sections into
        the "tiny" memory region, 0xff8000 through 0xffff00.
HMSE.
1996-05-07 21:26:58 +00:00
Jeff Law
12688490b2 * scripttempl/h8300.sc: Set the entry point to the value of
"_start" rather than the start of the text segment.
        * scripttempl/h8300h.sc: Likewise.
So we can have data at the start of the text space.
1996-05-07 19:36:38 +00:00
Jeff Law
d38d6b7a85 * scripttempl (h8300.sc, h8300h.sc): Place .rodata sections
before .text sections in main ram.
Gets "read only" data out of the instruction stream -- improves
relaxing linker.  HMSE.
1996-05-07 17:33:17 +00:00
Jeff Law
4015337ec7 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
8-bit region and 8-bit sections.
HMSE.
1996-05-07 05:30:14 +00:00
David Edelsohn
f2618f8252 * scripttempl/pe.sc (.endjunk): Define __end__. 1996-04-30 03:33:23 +00:00
Rob Savoye
10533b5b48 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
in m68k/crt0.S without things blowing up.
1996-04-15 20:53:00 +00:00
Ian Lance Taylor
aa59d90e55 * scripttempl/m68kcoff.sc: Remove regions and simplify. 1996-04-11 16:07:40 +00:00
Michael Meissner
28ad0357c6 Put .init/.fini in correct places. 1996-04-09 18:23:54 +00:00
Steve Chamberlain
0c1abe0623 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/. 1996-03-31 08:37:51 +00:00
Jeff Law
0e88ffa284 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
so as not to overwrite the magic syscall entry at 0xc4.
        * scripttempl/h8300h.sc: Likewise.
hmse.
1996-03-29 07:01:22 +00:00
J.T. Conklin
c56c921821 * scripttmpl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
in a different manner to work around differences in shell variable
expansion.
1996-03-07 00:12:34 +00:00
Ian Lance Taylor
307585f1c9 Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
* ldlang.c (lang_set_startof): Don't do anything for a
	relocateable link.

	* ldgram.y (mri_script_file): Call mri_draw_tree.
	* mri.c (mri_draw_tree): Make globally visible.  Don't bother to
	create memory regions.
	(mri_load): Don't call mri_draw_tree.
	* mri.h (mri_draw_tree): Declare.

	* configure.tgt (m68*-*-psos): New target.
	* emulparams/m68kpsos.sh: New file.
	* scripttempl/psos.sc: New file.
	* Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
	(em68kpsos.c): New target.
1996-02-14 21:43:54 +00:00
Michael Meissner
c2b6884b97 Move .sdata2/.sbss2 into read-only section 1996-02-03 00:31:03 +00:00
Ian Lance Taylor
40ab9bb9d7 Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
* configure.tgt (m68*-apple-aux*): New target.
	* emulparams/m68kaux.sh: New file.
	* scripttempl/m68kaux.sc: New file.
	* Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
	(em68kaux.c): New target.
1996-01-31 19:36:20 +00:00
Ian Lance Taylor
7df4ba266b Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
	* genscripts.sh: Set host, target and target_alias variables.
	Check for native compile by comparing ${target} and ${host}.
	* emultempl/elf32.em: Likewise.
	* scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
1996-01-22 18:03:56 +00:00
Michael Meissner
4d99a9505c Refine eabi support 1996-01-22 16:05:26 +00:00
Ian Lance Taylor
fe1379d45a Add some Irix 5 support, mostly from Kazumoto Kojima
<kkojima@info.kanagawa-u.ac.jp>:
	* emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
	(SHLIB_TEXT_START_ADDR): Define.
	(OTHER_GOT_SYMBOLS): Define.
	(OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
	(EXECUTABLE_SYMBOLS): Don't define.
	(DYNAMIC_LINK): Don't define.
	* emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
	* scripttempl/elfmips.sc: New file.
	* configure.host (mips*-dec-bsd*): Change mips to mips*.
	(mips*-sgi-irix4*): Likewise.
	(mips*-sgi-irix5*): New entry.
	* Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
	elf.sc.
	(eelf32lmip.c): Likewise.
1996-01-15 20:13:04 +00:00
Michael Meissner
be03dc3e37 Add .rela.got.neg section; remove .rel.* sections 1996-01-13 14:44:48 +00:00
Michael Meissner
4fe13b2bdd Add support for .sdata2/.sbss2 and old 2.7.2 compiler; Make text start at 64k; make data follow on next 64k page after text 1996-01-12 18:37:47 +00:00
Michael Meissner
9dee2948a2 Move creating section begin/end labels to compiler crt{i,n}.o 1996-01-05 17:27:39 +00:00
Kim Knuttila
d611a82e67 Expose .edata section 1995-11-30 18:18:38 +00:00
David Edelsohn
781332facb Add a comment saying .junk sections are discarded by the linker. 1995-11-30 17:15:12 +00:00
David Edelsohn
d87e370ba8 * scripttempl/pe.sc: Two .junk's is too much junk. 1995-11-25 02:37:58 +00:00