aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
AgeCommit message (Collapse)AuthorFilesLines
2001-08-23 * elf-bfd.h (enum elf_reloc_type_class): New.Jakub Jelinek1-1/+26
(struct elf_backend_data): Add elf_backend_reloc_type_class. (_bfd_elf_reloc_type_class): New. * elfxx-target.h (elf_backend_reloc_type_class): Define. (elfNN_bed): Add elf_backend_reloc_type_class. * elf.c (_bfd_elf_reloc_type_class): New. * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf_i386_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf32_sparc_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (sparc64_elf_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field. (elfNN_ia64_hash_table_create): Clear ia64_info. (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only section. (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag instead of looking up section names for DT_TEXTREL. (elfNN_ia64_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elflink.h (size_dynamic_sections): Add spare DT_NULL tags. (struct elf_link_sort_rela): New. (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New. (elf_bfd_final_link): Call elf_link_sort_relocs. Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if necessary. * bfdlink.h (struct bfd_link_info): Add combreloc and spare_dynamic_tags fields. * emultempl/elf32.em (place_orphan): Place orphan .rel* sections into .rel.dyn resp. .rela.dyn if combreloc. (get_script): If .x linker script is equal to .xn, only put it once into the binary. Add .xc and .xsc scripts. (parse_args): Handle -z combreloc and -z nocombreloc. * scripttempl/elf.sc (.rela.sbss): Fix a typo. For .xc and .xsc scripts put all .rel* or .rela* input sections but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn. * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME is elf. Strip trailing whitespace from script. Generate .xc and .xsc scripts if requested. * ldmain.c (main): Initialize link_info.combreloc and link_info.spare_dynamic_tags. * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define. (ld_options): Add --spare-dynamic-tags option. (parse_args): Likewise. * ld.texinfo: Document -z combreloc and -z nocombreloc. * ldint.texinfo: Document .xc and .xsc linker scripts. * NEWS: Add notes about -z combreloc and SHF_MERGE.
2001-08-17 * ld.texinfo: Document that fill values now use the four leastAlan Modra5-5/+5
significant bytes. * emulparams/elf32fr30.sh (NOP): Update. * emulparams/elf32mcore.sh: Likewise. * emulparams/elf64_s390.sh: Likewise. * emulparams/elf_i386.sh: Likewise. * emulparams/elf_i386_be.sh: Likewise. * emulparams/elf_i386_chaos.sh: Likewise. * emulparams/elf_i386_ldso.sh: Likewise. * emulparams/elf_s390.sh: Likewise. * emulparams/elf_x86_64.sh: Likewise. * emulparams/i386moss.sh: Likewise. * emulparams/i386nw.sh: Likewise. * emulparams/m68kelf.sh: Likewise. * scripttempl/elf.sc: Update NOP comment. * scripttempl/elfi370.sc: Likewise. * scripttempl/elfm68hc11.sc: Likewise. * scripttempl/elfm68hc12.sc: Likewise. * scripttempl/nw.sc: Likewise.
2001-08-12 * scripttempl/elf.sc, scripttempl/elfd30v.sc,Richard Henderson5-2/+20
scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc, scripttempl/v850.sc: Keep .jcr data.
2001-08-09 * scripttempl/elf.sc: Move non-text .dynamic section beforeAlan Modra1-3/+5
.plt/.got/.sdata* group. (OTHER_GOT_SECTIONS): Move to immediately after .got. (OTHER_SDATA_SECTIONS): Add. * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than OTHER_GOT_SECTIONS. * emulparams/crislinux.sh: Likewise. * emulparams/elf32b4300.sh: Likewise. * emulparams/elf32bmip.sh: Likewise. * emulparams/elf32bmipn32.sh: Likewise. * emulparams/elf32bsmip.sh: Likewise. * emulparams/elf32btsmip.sh: Likewise. * emulparams/elf32ebmip.sh: Likewise. * emulparams/elf32elmip.sh: Likewise. * emulparams/elf32l4300.sh: Likewise. * emulparams/elf32lmip.sh: Likewise. * emulparams/elf32lsmip.sh: Likewise. * emulparams/elf32ltsmip.sh: Likewise. * emulparams/elf64bmip.sh: Likewise. * emulparams/elf64btsmip.sh: Likewise. * emulparams/elf64ltsmip.sh: Likewise.
2001-08-03 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handleStephane Carrez2-40/+216
.fini[0-4] sections used by _exit (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM. (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*. * scripttempl/elfm68hc11.sc: Likewise.
2001-07-032001-07-03 H.J. Lu <hjl@gnu.org>H.J. Lu1-10/+1
* scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on 2001-07-03. It creates dynamic entries even for static binaries.
2001-07-032001-07-03 Jakub Jelinek <jakub@redhat.com>H.J. Lu1-1/+10
* scripttempl/elf.sc (DYNAMIC_PAD): New variable. (DYNAMIC): Use it to reserve few dynamic entries for post-linking tools.
2001-05-24Support for xcoff64Tom Rix1-3/+10
2001-04-27Add support for arm-vxworks targetNick Clifton1-2/+3
2001-03-23Support the GCC flags '-ffunction-sections' and '-fdata-sections'.Nick Clifton1-0/+5
Set the VMA of STABS sections to zero.
2001-03-08Fixup checkin of wrong sourceMichael Meissner1-1/+6
2001-03-08Add support for -fdata-sectionsMichael Meissner1-3/+18
2001-01-102001-01-10 Kazu Hirata <kazu@hxi.com>Kazu Hirata5-116/+96
* scripttempl/h8500.sc: Fix formatting. * scripttempl/h8500b.sc: Likewise. * scripttempl/h8500c.sc: Likewise. * scripttempl/h8500m.sc: Likewise. * scripttempl/h8500s.sc: Likewise.
2001-01-102001-01-10 Kazu Hirata <kazu@hxi.com>Kazu Hirata3-53/+53
* scripttempl/h8300.sc: Fix formatting. Fix a comment typo. * scripttempl/h8300h.sc: Fix formatting. * scripttempl/h8300s.sc: Likewise.
2000-12-06* scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.DJ Delorie1-3/+13
Set DWARF2 sections to a VMA of zero.
2000-11-30 * emulparams/crislinux.sh (ENTRY): Change back to _start.Hans-Peter Nilsson1-36/+36
(TEXT_START_SYMBOLS): Remove conditional setting of __start. * scripttempl/crisaout.sc: Change all RELOCATING not related to merging non-a.out sections into CONSTRUCTING.
2000-11-142000-11-14 Kazu Hirata <kazu@hxi.com>Kazu Hirata3-30/+30
* scripttempl/h8300.sc: Fix formatting. * scripttempl/h8300h.sc: Likewise. * scripttempl/h8300s.sc: Likewise.
2000-11-13 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.Denis Chertykov1-2/+2
2000-11-03Use ${CONSTRUCTING...} to enclose constructors and destructors.Nick Clifton11-280/+385
2000-10-18 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),Hans-Peter Nilsson1-0/+12
for consecutive sections.
2000-09-29 * scripttempl/crisaout.sc (ENTRY): Now __start.Hans-Peter Nilsson1-10/+7
(.text): Add default setting for __start. Remove CONSTRUCTORS handling. (/DISCARD/): Add .gnu.warning.*. * emulparams/crislinux.sh (ENTRY): Now __start. (TEXT_START_SYMBOLS): New; provide __Stext and __start default. * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris. (ENTRY): Now __start. (INITIAL_READONLY_SECTIONS): Add KEEP for .startup. (EXECUTABLE_SYMBOLS): Add default setting for __start.
2000-09-02Add .gnu.linkonce.wi.* to .debug_info sections.Nick Clifton9-9/+9
2000-08-14* scripttempl/elf.sc: Fix last change to use correct commentAndreas Schwab1-20/+19
syntax.
2000-08-10* scripttempl/elf.sc: Add a comment giving the correspondenceGeoffrey Keating1-21/+84
between sections, per-datum sections, and linkonce sections. Make the comment true even for .bss, .sdata, .sdata2, .sbss, and .sbss2.
2000-08-08Define __bss_size symbol to indicate the final size of .bss section.Nick Clifton2-0/+4
2000-07-20 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,Hans-Peter Nilsson1-0/+122
ecrislinux.o. (ecrisaout.c, ecriself.c, ecrislinux.c): New rules. Regenerate dependencies. * Makefile.in: Rebuild. * configure.tgt (cris-*-*): New target. * emulparams/crisaout.sh, emulparams/criself.sh, emulparams/crislinux.sh, scripttempl/crisaout.sc: New files. * po/POTFILES.in, po/ld.pot: Regenerate.
2000-07-17 * scripttempl/elf.sc (.init): Only do ${INIT_START} andHans-Peter Nilsson1-4/+4
${INIT_END} if relocating. (.fini): Likewise ${FINI_START} and ${FINI_END}.
2000-07-12Support the g++ attribute init_priority in gcc 2.95.2 and later.Nick Clifton1-2/+10
2000-06-30Remove unimplemented "PAGE N:" flag from default linker script.Timothy Wall1-3/+3
2000-06-20tic54x/ibmc54xdsp target for ld.Timothy Wall1-0/+52
2000-06-19Update list of targets supporting --gc-sections.Alan Modra2-2/+2
KEEP .eh_frame contents.
2000-06-19Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add supportNick Clifton2-0/+718
for m68hc11 and m68hc12 processors.
2000-05-27 * emulparams/avr1200.sh (STACK): Define as 0.Denis Chertykov1-0/+2
* emulparams/avr23xx.sh (STACK): Define as last internal SRAM address. * emulparams/avr4433.sh (STACK): Likewise. * emulparams/avr44x4.sh (STACK): Likewise. * emulparams/avr85xx.sh (STACK): Likewise. * emulparams/avrmega103.sh (STACK): Likewise. * emulparams/avrmega161.sh (STACK): Likewise. * emulparams/avrmega603.sh (STACK): Likewise. * scripttempl/elf32avr.sc (__data_start): Define for gcrt1. (__stack): Define from ${STACK} for main().
2000-04-21 * scripttempl/elfd30v.sc: Place .gcc_except_table.Richard Henderson1-0/+1
2000-04-14* scripttempl/elfppc.sc: Remove.Geoffrey Keating1-288/+0
* emulparams/elf32ppc.sh: Use elf.sc. * emulparams/elf32lppc.sh: Use elf.sc. * emulparams/elf32ppclinux.sh: Use elf.sc. * emulparams/elf32ppcsim.sh: New file. * emulparams/elf32lppcsim.sh: New file. * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim. (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim. * Makefile.in: Regenerate. * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2000-04-13Correct previous misapplied patch.Geoffrey Keating1-10/+9
2000-04-13* scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.Geoffrey Keating1-13/+31
Add new BSS_PLT variable for when .plt need not be contained in the file. Move _etext so that it is also after .fini, and provide both etext and _etext with a leading underscore. Mark the start and end of .sbss.
2000-03-27ATMEL AVR microcontroller support.Alan Modra1-0/+149
2000-02-282000-02-27 Mark Elbrecht <snowball3@bigfoot.com>Ian Lance Taylor1-3/+3
* scripttempl/i386go32.sc: Move misplaced semicolons.
2000-02-24Add support for WinCE based toolchains.Nick Clifton1-0/+5
2000-02-23 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.Richard Henderson1-98/+39
Add and use memory regions.
2000-02-23Add IBM 370 support.Alan Modra1-0/+218
2000-02-16 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.Richard Henderson1-0/+1
2000-01-05 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.Catherine Moore1-2/+2
(name_list): New. * ld.texinfo (EXCLUDE_FILE): Update documentation. * ldgram.y (wildcard_spec): Support a list of excluded_files. (exclude_name_list): New. ldlang.c (walk_wild_section): Support list of excluded files. (print_wild_statement): Likewise. (lang_add_wild): Likewise. * ldlang.h (lang_wild_statement_type): Likewise. * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
1999-12-02Add arm-epoc-pe specific linker scriptNick Clifton1-0/+151
1999-10-07* scripttempl/elf.sc (.rel.sdata): Combine all the sdata relocsGeoffrey Keating1-3/+25
being .rel.sdata, .rel.sdata.*, .rel.gnu.linkonce.s*. (.rela.sdata): Likewise for .rela.sdata.* and .rela.gnu.linkonce.s*. (.rel.sbss): Make like .rel.bss. (.rela.sbss): Make like .rel.bss. (.sdata): Don't include .gnu.linkonce.s.* or .sdata.* when ld -r. (.sbss): Do the same things as for .bss: include SDATA_START_SYMBOLS, .dynsbss.
1999-09-28* scripttempl/elf.sc (.sdata): Include .gnu.linkonce.s.* sectionsGeoffrey Keating1-1/+1
in .sdata too.
1999-09-26Merge sections named .bss.* into .bss section. Similarly for .sbss.Nick Clifton1-1/+6
1999-09-121999-09-12 Donn Terry <donn@interix.com>Ian Lance Taylor1-13/+13
* scripttempl/pe.sc: Use ${ENTRY} rather than _mainCRTStartup. Move .bss section after .rdata. Move .reloc section after .rsrc.
1999-09-10 * emulparms/elf64hppa.sh (OTHER_READONLY_SECTIONS): Put stubs beforeJeff Law1-2/+19
unwinders so that they are closer to the text section. (OTHER_BSS_SECTIONS): Define. (EXECUTABLE_SYMBOLS): Provide __SYSTEM_ID and _FPU_STATUS. (INIT_START, INIT_END): Define. (FINI_START, FINI_END): Define. * scripttempl/elf.sc: Add support for INIT_START, INIT_END, FINI_START, FINI_END and OTHER_BSS_SECTIONS.