aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
AgeCommit message (Collapse)AuthorFilesLines
1999-01-13Removed fr30.sh and fr30.sc.Nick Clifton1-1/+0
Added elf32fr30.sh
1999-01-12Switch over to using generic elf script rather than an fr30 specific one.Nick Clifton1-136/+0
1999-01-11Fill .init and .fini sections with NOPsNick Clifton1-2/+2
1998-11-05Add sanitization for FR30Nick Clifton1-0/+1
1998-11-05Add support for FR30Nick Clifton1-0/+136
1998-10-05 * ldmain.c (main): Error if --gc-sections andCatherine Moore1-5/+7
dyanmic linking. * scripttempl/v850.sc: Add KEEP attribute to .init, .fini, .dtors and .ctors. Add .data and .text wildcards to support section garbage collection.
1998-09-30Fix for PR 17063 - do not create a section called .call_table, instead createNick Clifton1-4/+35
sections called .call_table_data and .call_table_text.
1998-09-01remove elfarm.scCatherine Moore1-1/+0
1998-08-31 * emulparams/armelf.sh: Change SCRIPT_NAME toCatherine Moore1-268/+0
elf. Change TEXT_START_ADDR to 0x8000. Define OTHER_TEXT_SECTIONS, OTHER_BSS_SYMBOLS and OTHER_BSS_END_SYMBOLS. * scripttempl/elf.sc: Modify to use OTHER_BSS_END_SYMBOLS. * scripttempl/elfarm.sc: Remove file.
1998-08-27add elfarm.sc to things to keepCatherine Moore1-7/+1
1998-08-14 * ldgram.y: Include "ldctor.h".Ian Lance Taylor1-15/+58
(statement): Accept SORT around CONSTRUCTORS. * ldctor.c: Include <ctype.h>. (constructors_sorted): New global variable. (ctor_prio, ctor_cmp): New static functions. (ldctor_build_sets): Sort constructors if requested. * ldctor.h (constructors_sorted): Declare. * ldlang.c (print_statement): Print sorted CONSTRUCTORS correctly. * scripttempl/elf.sc: Add sort around CONSTRUCTORS. * ld.texinfo (Output Section Keywords): Document SORT (CONSTRUCTORS).
1998-08-13Thu Aug 13 12:20:39 1998 Catherine Moore <clm@cygnus.com>Catherine Moore1-0/+2
* emulparams/armelf.sh: Define TEMPLATE_NAME to armelf. * scripttempl/elfarm.sc: Include .glue_7t and .glue7 sections. * emultempl/armelf.em: New file.
1998-08-12 * scripttempl/elfarm.sc: Change text start addressCatherine Moore1-3/+1
back to zero.
1998-08-10 * scripttempl/elfarm.sc: Set text start address toCatherine Moore1-1/+2
0x8000. Add __bss_end definition.
1998-08-04fix armelf sanitizationNick Clifton1-0/+7
1998-08-01 * scripttempl/elfarm.sc: New file.Catherine Moore1-0/+267
* emulparams/armelf.sh: Set SCRIPT_NAME to elfarm.
1998-07-24remove d30v sanitizationIan Lance Taylor1-7/+1
1998-07-14 * configure.tgt (i?86-*-beos{pe,elf,}*): Recognize.Richard Henderson1-0/+7
* Makefile.am (ei386beos.o): New. * emulparams/i386beos.sh: New file. * emultempl/beos.em, scripttempl/i386beos.sc: New file.
1998-07-02 * ld.h (args_type): Add gc_sections.Richard Henderson1-14/+33
* ldgram.y (ldgram_had_keep, KEEP): New. (input_section_spec_no_keep): Rename from old input_section_spec. (input_section_spec): New. Recognize KEEP. * ldlang.c (wild_section): Handle keep sections. (lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New. (lang_gc_sections_1, lang_gc_sections): New. (lang_process): Invoke lang_gc_sections. (lang_add_wild): Add keep argument. Update all callers. * ldlang.h (lang_wild_statement_struct): Add keep_sections. * ldlex.l (KEEP): Match it. * ldmain.c (main): Error on -r and --gc-sections. * lexsup.c: Add --gc-sections. * scripttempl/elf.sc: Merge .text.* etc sections appropriately. Mark startup sections with KEEP. * scripttempl/elfppc.sc: Likewise. * ld.texinfo: Update for --gc-sections and KEEP.
1998-05-18 From Jason Merrill <jason@cygnus.com>:Ian Lance Taylor1-2/+17
* ldlang.c (wild_sort): Correct order of sort. * scripttempl/elf.sc: Put *crtbegin.o before other .ctors and .dtors. * scripttempl/elfd10v.sc: Likewise. start-sanitize-d30v * scripttempl/elfd30v.sc: Likewise. end-sanitize-d30v * scripttempl/elfppc.sc: Likewise.
1998-05-15 * ldlex.l: Recognize keyword SORT.Ian Lance Taylor4-17/+247
* ldgram.y (current_file): Change to struct wildcard_spec. (%union): Add new fields cname and wildcard. (wildcard_name, wildcard_spec): New nonterminals. (file_NAME_list): Use wildcard_spec. (input_section_spec): Change current_file usage. * ld.h (struct wildcard_spec): Define. * ldlang.h (lang_wild_statement_struct): Add new fields sections_sorted and filenames_sorted. (lang_add_wild): Update declaration. * ldlang.c (wild_sort): New static function. (wild_section): Use wild_sort. (print_wild_statement): Print sorting information. (lang_add_wild): Add new parameters sections_sorted and filenames_sorted. Change all callers. * mri.c (mri_draw_tree): Update calls to lang_add_wild. * scripttempl/elf.sc: Sort .ctors.* and .dtors.* by section name. * scripttempl/elfd10v.sc: Likewise. * scripttempl/elfd30v.sc: Likewise. * scripttempl/elfppc.sc: Likewise.
1998-04-22fix sanitization for gettext changesIan Lance Taylor1-5/+5
1998-03-25 * scripttempl/pe.sc: Only include .idata\$[0-7] in .idata whenIan Lance Taylor1-6/+12
relocating.
1998-03-19Thu Mar 19 14:54:45 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-34/+35
* scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy section to avoid copying certain data on fork. The linker used to include this between __data_start__ and __data_end__, but that breaks building the cygwin32 dll. The fix is to rename the section ".data_cygwin_nocopy" and explictly include it after __data_end__.
1998-02-03Mon Feb 2 19:34:54 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>Ian Lance Taylor3-0/+94
Add tms320c30 support: * configure.tgt (tic30-*-*aout*, tic30-*-*coff*): New targets. * emulparams/tic30aout.sh: New file. * emulparams/tic30coff.sh: New file. * scripttempl/tic30aout.sc: New file. * scripttempl/tic30coff.sc: New file. * Makefile.am (ALL_EMULATIONS): Add etic30aout.o and etic30coff.o. (etic30aout.c, etic30coff.c): New targets. * Makefile.in: Rebuild.
1998-01-31Fri Jan 30 19:15:17 1998 Geoff Keating <geoffk@ozemail.com.au>Ian Lance Taylor1-0/+1
* scripttempl/elfppc.sc: Put .dynsbss in .sbss.
1998-01-01Link in .eh_section into data sectionMichael Meissner1-27/+61
1997-12-12Renamed v850eq -> v850eaNick Clifton1-30/+0
1997-12-09Change order slightlyMichael Meissner1-16/+15
1997-12-09Add configurability to d30vMichael Meissner1-0/+150
1997-10-15 * scripttempl/pe.sc: Put .stab and .stabstr sections at end.Ian Lance Taylor1-9/+12
1997-09-17Added support for the call table data area.Nick Clifton1-8/+61
1997-06-16Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>Ian Lance Taylor1-5/+6
* 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-07 * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end ofIan Lance Taylor1-62/+52
the import list.
1997-05-13 * scripttempl/elfmips.sc: Remove.Ian Lance Taylor2-208/+0
* 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-12Mon May 12 11:11:06 1997 Andreas Schwab ↵Ian Lance Taylor1-18/+69
<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-02Fix name of constructors/destructorsMichael Meissner1-0/+67
1997-04-30revert Alpha/OpenBSD patchesIan Lance Taylor2-69/+0
1997-04-18Fri Apr 18 11:54:43 1997 Niklas Hallqvist <niklas@appli.se>Ian Lance Taylor2-0/+69
* Makefile.in (ALL_EMULATIONS): Add ealphabsd.o. (ealphabsd.c): New rule. * configure.host (alpha-*-bsd): New target. * configure.tgt (alpha-*-bsd): New target. * emulparams/alphabsd.sh: New file for *BSD/alpha. * scripttempl/alphabsd.sc: New file for *BSD/alpha.
1997-03-28fix commentIan Lance Taylor1-3/+3
1997-03-15 * scripttempl/elfmips.sc: Change handling of data area whenIan Lance Taylor1-2/+3
generating a shared library to not skip a large block of memory. From Per Fogelstrom <pefo@cvs.openbsd.org>.
1997-02-27oops... always keep d10v stuffAngela Marie Thomas1-0/+1
1997-02-22Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-4/+4
* Makefile.in (ed30velf.c): New target. * configure.tgt (d30v-*-*): New target. * emulparams/d30velf.sh: New file. * scripttempl/elfd30v.sc: New file.
1997-02-11 * scripttempl/elfmips.sc: When relocating, put .mips16.fn.* andIan Lance Taylor1-1/+3
.mips16.call.* in .text.
1997-02-10 * emulparams/tic80coff.sh: New (dummy) file for TIc80.Fred Fish1-0/+8
* 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-01-27 * scripttempl/elf.sc: Put linkonce reloc section in otherIan Lance Taylor2-11/+24
appropriate reloc sections. * scripttempl/elfmips.sc: Add linkonce support. * scripttempl/elfppc.sc: Likewise.
1997-01-02 * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.Ian Lance Taylor1-0/+1
* scripttempl/elfmips.sc: Use __start as the entry address for mips*-*-linux*.
1996-12-30Add .tbyte and .tbss sectionsMichael Meissner1-0/+2
1996-12-13Make __{e,g}p correctly start relative to the beginning of the section; CleanupMichael Meissner1-82/+130
1996-11-27 * scripttempl/{elfd10v.sc,elfmips.sc,elfppc.sc,v850.sc}: Likewise.Jason Merrill2-16/+48