aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
AgeCommit message (Collapse)AuthorFilesLines
1994-09-12 * config/i386lynx.mh: New file.Ian Lance Taylor1-2/+2
* scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text unless CONSTRUCTING.
1994-09-07 * scripttempl/m68kcoff.sc: Put .bss in data segment.Ian Lance Taylor1-2/+2
* scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of 0, and to only be marked as NOLOAD if relocating. * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise. * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise. * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise. * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise. * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise. * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise. * scripttempl/sparclynx.sc: Likewise.
1994-09-05ARM Acorn/RISCiX target and host patches from Richard EarnshawKen Raeburn1-0/+35
1994-07-22 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.Ian Lance Taylor1-3/+16
Add a new script operator, PROVIDE, to define a symbol only if it is needed. * ldgram.y (PROVIDE): New token. (assignment): Accept PROVIDE. * ldlex.l (PROVIDE): New token. * ldexp.h (node_type): Add etree_provide to node_class enum. (exp_provide): Declare. * ldexp.c (exp_fold_tree): Handle etree_provide. (exp_provide): New function. (exp_print_tree): Handle etree_provide. * ld.texinfo: Document PROVIDE.
1994-06-22 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside anIan Lance Taylor1-1/+1
ALIGN.
1994-06-15 * scripttempl/aout.sc: Define __etext and __edata to go along withIan Lance Taylor1-0/+2
_etext and _edata.
1994-06-02 Add support for SunOS shared libraries.Ian Lance Taylor1-0/+44
* aout.sc: Don't define __DYNAMIC here. Add new sections used by shared library support code. * emultempl/sunos.em: New file. * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos. * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
1994-05-27changes from gas-2.3/binutils-2.4 dist (details in branch log msgs, changelogs)Ken Raeburn1-21/+8
1994-05-19 Add support for ELF shared libraries.Ian Lance Taylor1-37/+39
* ld.h (ld_config_type): Add field dynamic_link. * ldmain.c (main): Initialize config.dynamic_link to false. Warn on attempts to use -r with -relax, -call_shared or -s. * lexsup.c (longopts): Separate OPTION_CALL_SHARED from OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values accordingly. Add "dy" and "non_shared" options. Change "Qy" to OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and OPTION_NON_SHARED by setting dynamic_link field accordingly. Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for -r and -Ur. * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try opening a file with a .so extension first. * emultempl/elf32.em: New file. * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000. (NONPAGED_TEXT_START_ADDR): Likewise. (TEMPLATE_NAME): Define as elf32. (DATA_PLT): Define. * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32. * scripttempl/elf.sc: Add placement for new dynamic sections. Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end outside of any section. Don't use ALIGN(8); just let one section VMA follow another. Put .dynbss in .bss. Don't mention debugging sections; they'll be handled correctly anyhow. * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
1994-05-16 * emultempl/hppaelf.em: Change all references ofJeff Law1-0/+35
.hppa_linker_stubs to .PARISC.stubs. * scripttempl/hppaelf.sc: Likewise.
1994-05-06support for Xgo32X.Steve Chamberlain2-0/+45
1994-05-02Keep Lynx linker scripts.Stan Shebs1-1/+3
1994-04-27 * Makefile.in, configure.in: Support for go32 coff.Steve Chamberlain2-0/+46
* config/i386-go32.mt: New file * emulparams/i386go32.sh: New file * scripttempl/i386go32.sc: New file
1994-04-27Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-0/+93
* Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use Lynx-specific script templates. * configure.in (sparclite*-*-coff): Use coff-sparc. * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx. * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx. (ENTRY): Set to __main. * scripttempl/i386lynx.sc: New file, script for I386 Lynx. * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections. * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
1994-02-26 * scripttempl/elf.sc: Force all sections to be aligned.Ian Lance Taylor1-12/+19
1994-02-24H8/500 bits.Steve Chamberlain1-0/+4
1994-02-08Opps.Jeff Law1-1/+1
1994-02-08Renamed hppaosf.sc to hppaelf.scJeff Law1-35/+0
1994-02-04Support for various sicko segmented memory models.Steve Chamberlain4-0/+240
1994-01-14 Motorola Delta sysV68 support from phdm@info.ucl.ac.BE (PhilippeIan Lance Taylor1-0/+27
De Muyter). * configure.in (m68k-motorola-sysv*) New target. * config/delta68.mt: New file. * emulparams/delta68.sh: New file. * scripttempl/delta68.sc: New file. * Makefile.in (ALL_EMULATIONS): Added em_delta68.o. (em_delta68.c): New target.
1994-01-08 * scripttempl/elf.c: Define __bss_start before the .sbss section.Ian Lance Taylor1-13/+60
1993-11-12More correct m68k LynxOS supportStan Shebs2-0/+36
1993-11-02 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,Jeff Law1-2/+7
edata, _edata, end): Add definitions of these symbols. (__end): Remove definition of this symbol. (__data_start): Move definition of this symbol.
1993-11-01Keep Sparc fileStan Shebs1-1/+2
1993-10-29Sparc COFF supportStan Shebs1-0/+37
1993-10-19New files for Alpha linker.Ian Lance Taylor2-0/+70
1993-08-24From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:Ken Raeburn1-0/+1
* 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-17 * scripttempl/h8500.sc: Start all sections in a different segment.Steve Chamberlain1-11/+39
* scripttempl/z8ksim.sc: Handle constructors
1993-08-04Keep h8300h.scSteve Chamberlain1-0/+1
1993-07-15 * Makefile.in (em_m88kbcs.c): Correct dependency.Ian Lance Taylor1-0/+41
(scripttempl/m88kbcs.sc): It's ARCH, not arch.
1993-07-12Include .init, .fini, .rodata sections.Ken Raeburn1-4/+8
Create symbol "end" instead of "__end". Comment out some parts that may not be needed (yet) for elf.
1993-07-08keep elf.scKen Raeburn1-1/+1
1993-07-08initial v9 stuffKen Raeburn1-0/+32
1993-06-17Support for constructors.Steve Chamberlain1-0/+11
1993-06-17 * ldfile.c (ldfile_open_command): Don't try .ld extension.David MacKenzie15-0/+466
It wasn't documented (or likely used) and wastes time. (try_open): If EXTEN is empty, don't try it. * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c, ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c, ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls with normal function declarations. * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh. Move *.sc-sh to scripttempl/*.sc. * {emultempl,emulparams,scripttempl}/README: New files. * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files removed, replaced with generic.em. * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from h8[35]00hms.s[ch]. Change their contents to omit the "hms". * *.em (*_get_script): Return script name instead of script contents. * ldlang.c (lang_process): Change caller. * ldlex.l, ldgram.y: Recognize -m option. Check for input files after *all* options in grammar. * ldmain.c (main): Check for -m options. Add default directory for -m. * mkscript.c: File removed. * genscripts.sh: Take two more parameters, tooldirlib and libdir, to add to the default LIB_PATH. Look for input files in the new subdirectories. Create the scripts in emulations subdirectory and don't filter them through mkscript. * configure.in: Make the emulations subdirectory. * Makefile.in: Account for all of the above changes. Remove unused .SUFFIXES. Get libgcc.a path with gcc -print-libgcc-file-name instead of $(libdir)/libgcc.a. Put CFLAGS last in the compilation rules. Add -I../bfd to INCLUDES so sysdep.h is found. * ldfile.c (try_open): If opening without the extension fails, try with the extension even if -v or -V was given. had_script is imported (from ldgram.y), not exported.