aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
1994-04-27 * scripttempl/sa29200.sc: Align all sections to four byteIan Lance Taylor1-0/+5
boundaries.
1994-04-27 * Makefile.in, configure.in: Support for go32 coff.Steve Chamberlain9-1/+77
* 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 Shebs6-7/+113
* 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-04-26 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16Ian Lance Taylor1-0/+4
byte boundary, in case the global constructors do not take up an even 16 bytes.
1994-04-26 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does notIan Lance Taylor2-2/+8
exist, get crtbegin based on gcc -print-libgcc-file-name. (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
1994-04-25 * ldlang.c (lang_size_sections): When no address is given for aIan Lance Taylor2-0/+7
section, align it according to its requirements.
1994-04-21 * Makefile.in (clean, distclean): Remove configdoc.texi.Ian Lance Taylor2-2/+7
1994-04-19 * configure.in: Add recognition of i[34]86-*-bsd386.Bill Cox2-0/+5
1994-04-15 * ldlang.c (lang_size_sections): When relaxing, adjust theIan Lance Taylor2-1/+18
position of a padding statement, and adjust dot accordingly.
1994-04-14There is no interesting Irix 5, or PowerPC, or RS/6000 support in theIan Lance Taylor1-4/+0
linker, so don't mention them.
1994-04-11 * Makefile.in (check): Set TCL_LIBRARY for runtest.Bill Cox2-4/+36
1994-04-11 * scripttempl/i386coff.sc: If relocating, don't put .init andIan Lance Taylor2-2/+10
.fini sections into .text; keep them separate. * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not exist, get crtbegin based on gcc -print-libgcc-file-name. (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
1994-04-07 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for theJeff Law2-5/+8
manufacturer.
1994-04-06 * emultempl/hppaelf.em (hppaelf_finish): Only resize sectionsJeff Law1-0/+5
if building a final executable.
1994-04-05note that pa support is elf onlyKen Raeburn1-1/+43
1994-04-05 * ldmain.c (main): Check the return value of bfd_close.Ian Lance Taylor1-0/+4
1994-03-31 * scripttempl/alpha.sc: Clean up section alignment to ensure thatIan Lance Taylor1-0/+5
sections never overlap when using -r.
1994-03-30 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFDIan Lance Taylor1-0/+6
changes: get_symtab_upper_bound renamed and returns long, bfd_canonicalize_symtab returns long, check for error indications.
1994-03-25 * ldlang.c (print_input_section): For section size, useIan Lance Taylor2-11/+15
_cooked_size if it is non-zero, size otherwise. (size_input_section): Likewise. (lang_do_assignments): Likewise (case lang_input_section_enum).
1994-03-24 * ldlang.c (new_afile): Add new argument add_to_list. Don't setIan Lance Taylor2-112/+117
real to true for lang_input_file_is_marker_enum. Clear the_bfd. (lang_add_input_file): Pass true to new_afile for add_to_list. (lookup_name): Remove force_load argument. Changed all callers. Pass false to new_afile for add_to_list. Split loading of symbols out into separate function. (load_symbols): New function split out of lookup_name. Don't load the symbols if they are already loaded. (open_input_bfds): For lang_input_statement_enum call load_symbols rather than lookup_name. (lang_process): Pass abs_output_section rather than NULL to lang_size_sections. (lang_startup): Set real field of first_file to true.
1994-03-23 * emultemp/gld960.em: Include libiberty.hIan Lance Taylor1-0/+5
(gld960_before_parse): Pass NULL as final argument to concat.
1994-03-22 * scripttempl/aout.sc: Force _end and __end to be aligned to aIan Lance Taylor1-0/+3
four byte boundary.
1994-03-22 * ldwrite.c (build_link_order): Handle lang_data_statement_enum byIan Lance Taylor1-0/+6
building a bfd_data_link_order, rather than by setting the section contents immediately.
1994-03-22 Changes to make -Ur work again.Ian Lance Taylor3-6/+208
* ldmain.c (add_to_set): Now takes reloc argument rather than bitsize. Check config.build_constructors here. If an new hash table entry is created, mark it as undefined. (constructor_callback): No longer takes bitsize argument. Pass BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the BFD backend supports it. (reloc_overflow): Handle a NULL abfd argument. (reloc_dangerous, unattached_reloc): Likewise. * ldctor.c: Include ldmain.h. (struct set_info): Change bitsize field to reloc. (ldctor_add_set_entry): Now takes reloc argument rather than bitsize. Don't bother to check config.build_constructors here. (ldctor_build_sets): Get the size from the reloc howto. If generating relocateable output, call lang_add_reloc rather than lang_add_data. * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc instead of bitsize. * ldlang.h (statement_enum): Add lang_reloc_statement_enum. (lang_reloc_statement_type): New structure. (lang_statement_union_type): Add reloc_statement field. (lang_add_reloc): Declare new function. * ldlang.c (lang_for_each_statement_worker): Handle lang_reloc_statement_enum. (map_input_to_output_sections, print_statement): Likewise. (lang_size_sections, lang_do_assignments): Likewise. (print_reloc_statement): New function. (lang_add_reloc): New function. * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
1994-03-12Remove ppc.em; do it all in nlmconv instead.Ian Lance Taylor2-374/+0
1994-03-08Set Emacs local variables to never use version control.Ian Lance Taylor1-0/+4
1994-03-08 * config/i386bsd.mh: New file.David MacKenzie3-0/+10
1994-03-07 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to beIan Lance Taylor2-0/+9
defined. * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext. (DATA_START_SYMBOLS): Define _fdata.
1994-03-04Fri Mar 4 11:43:47 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-10/+16
* ldlang.c (lookup_name): Stomp on a pointer if in MPW. * mpw-em.c: Edit to reflect changed syntax of compiled-in linker scripts.
1994-02-28Mon Feb 28 11:09:48 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-0/+9
* mpw-xconfig.in (emulname): Define.
1994-02-28Lose mpw-build.inStan Shebs1-3/+3
1994-02-28Mon Feb 28 11:07:41 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs3-59/+18
* mpw-build.in: Remove, subsumed in mpw-make.in. * mpw-make.in (bindir): Fix pathname. (install): Move here from mpw-build.in.
1994-02-28Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs2-1/+5
* ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
1994-02-28 * emultempl/hppaelf.em (hppaelf_finish): Update comments. ThisJeff Law1-0/+3
works again. Attach some output symbols to the stub file bfd.
1994-02-28 * emultempl/hppaelf.em: Include elf32-hppa.h.Jeff Law2-4/+9
(file_chain): Add decl. (hppa_look_for_stubs_in_section): Delete decl. (hppaelf_finish): Reenable code. Do not pass symbols down to hppa_look_for_stubs_in_section.
1994-02-26 * ldmain.c (write_map): Don't define. Removed all references.Ian Lance Taylor2-1/+14
Just use map_file or map_filename instead. (add_archive_element): Use minfo to write map information, not info_msg. (constructor_callback): Use fprintf to write map information, not info_msg. * ldmain.h (write_map): Don't declare. * ldgram.y (mri_script_command): Removed reference to write_map. * ldlang.c (lang_one_common): Likewise. * lexsup.c (parse_args): Likewise.
1994-02-26 * scripttempl/elf.sc: Force all sections to be aligned.Ian Lance Taylor2-12/+21
1994-02-26 * ldgram.y (section): Reverse the order of memspec_opt andIan Lance Taylor2-2/+6
fill_opt to avoid an ambiguity when both are used. * ld.texinfo: Changed accordingly.
1994-02-26 * ldgram.y: Move include of ldlex.h back with other includes.Ian Lance Taylor2-4/+8
* ldlex.h (input_type): Don't initialize enum constants to particular values. * ldlex.l: Use a switch to return the right token based on input_type, rather than knowing that input_type has a value based on a token type.
1994-02-26 * ldgram.y (dirlist_ptr): Removed; not used.Ian Lance Taylor4-12/+22
* lexsup.c: Include ldver.h. * Makefile.in: Rebuilt dependencies.
1994-02-26Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)Ian Lance Taylor2-2/+6
* ldlang.c (lookup_name): don't call bfd_set_gp_size. (ldlang_add_file): call it here instead.
1994-02-26 * ldgram.y: Include ldlex.h after %token decls, for byacc.David MacKenzie2-1/+8
1994-02-26 * emultempl/hppaelf.em: First attempt to clean this file up.Jeff Law2-81/+155
Add comments in several functions as to their purpose and how they function (or my current best guess). Clean up horrible spacing and indention that never should have been accepted in the first place. Add FIXMEs for issues which need to be resolved. Disable linker-stub generation until it gets fixed. This allows the linker to at least work on simple code for testing purposes.
1994-02-25 * ldlang.c (lang_size_sections): No longer static (PA ELF callsJeff Law3-18/+17
it via hppaelf_finish). Prototype moved into ldlang.h. (lang_process): Move problematic extra call to lang_size_sections into the PA ELF specific code. * emultempl/hppaelf.em (hppaelf_finish): Extra call to lang_size_sections moved here.
1994-02-25Add missing newline in einfo message.David MacKenzie1-1/+1
1994-02-25 * lexsup.c (parse_args): Use symbolic numbers for long options.David MacKenzie2-51/+77
Fix misunderstanding in -Y and -call_shared et al.
1994-02-25For some reason this directory was missing a .Sanitize file.Ian Lance Taylor1-0/+41
1994-02-25Make correspond to djm's last change.Ian Lance Taylor1-2/+2
1994-02-25 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.Ian Lance Taylor9-2/+426
* config/ppc-elf32.mt: New file. * emulparams/elf32ppc.sh: New file. * emultempl/ppc.em: New file. * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o. (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc. (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
1994-02-25 Use getopt instead of lex and yacc to parse the command line.David MacKenzie10-850/+731
* ld.texinfo (Options): Document changes to option syntax. * Makefile.in: Update dependencies. * ldver.c (help): Tweak dashes in usage message. * ldgram.y (%union): Remove unused members. Remove %tokens for command line options; add ones for input types. (command_line): Rules removed. (file): Instead of command line, recognize an input type indicator, then use the nonterminal for that type. (defsym_expr): New nonterminal from code formerly in command_line. * ldlex.h: Declare parser input type enum and variable. Don't declare parse_line. * ldlex.l: Remove unused variables. Make some used ones static and comment them. (COMMAND): Start state and its rules removed. At start of yylex, return input state token if at start of input. (lex_redirect): Don't need to set yyout. (ldlex_command): Function removed. * ldmain.c (main): Instead of calling parse_line, set up the redirections and call yyparse directly. * ldmisc.c (vfinfo): If there's no input filename, print nothing, not "command line". * lexsup.c: Remove #if 0'd code. (parse_line): Function removed. (parse_args): Rewrite to use getopt_long_only. (set_default_dirlist): New function from code formerly in ldgram.y:command_line. (set_section_start): New function. * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em, emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose compiled-in link scripts in "{" and "}", as the grammar no longer wants them to be.