aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.in
AgeCommit message (Collapse)AuthorFilesLines
1994-06-09 * Makefile.in (check): Delete ld.new dependency so that a regressionBill Cox1-1/+1
test doesn't trigger a rebuild of the linker.
1994-06-03Rebuilt dependencies.Ian Lance Taylor1-1/+1
1994-06-02Use SunOS shared libraries on a Sun 3.Ian Lance Taylor1-1/+1
1994-06-02 Add support for SunOS shared libraries.Ian Lance Taylor1-1/+1
* 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-1/+1
1994-05-19 Add support for ELF shared libraries.Ian Lance Taylor1-1/+1
* 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-18 * Makefile.in (install): Redirect output of ln to /dev/null.Ian Lance Taylor1-1/+1
1994-05-11* ldver.c (ldversion): Updated version number.Ken Raeburn1-73/+83
* cdtest-foo.cc: Use explicit "#pragma implementation". * cdtest-bar.cc: Renamed from cdtest-func.cc. * Makefile.in: References to cdtest-func.o changed to cdtest-bar.o.
1994-05-04 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,Ian Lance Taylor1-1/+2
cdtest-ur.out, and cdtest-ur.tmp.
1994-04-27 * Makefile.in, configure.in: Support for go32 coff.Steve Chamberlain1-1/+4
* 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 Shebs1-5/+5
* 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-21 * Makefile.in (clean, distclean): Remove configdoc.texi.Ian Lance Taylor1-2/+3
1994-04-11 * Makefile.in (check): Set TCL_LIBRARY for runtest.Bill Cox1-4/+32
1994-02-26 * ldgram.y (dirlist_ptr): Removed; not used.Ian Lance Taylor1-10/+15
* lexsup.c: Include ldver.h. * Makefile.in: Rebuilt dependencies.
1994-02-25 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.Ian Lance Taylor1-2/+6
* 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 MacKenzie1-5/+6
* 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.
1994-02-16(install-info): Depend on ld.info, and use "$<*" soKen Raeburn1-6/+6
it'll get picked up from $(srcdir) if appropriate.
1994-02-05 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): FunctionsDavid MacKenzie1-1/+1
deleted; will use libiberty versions instead. * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c mri.c Makefile.in: Change callers. * ldmisc.c (vfinfo): Remove cleanup code. * ldmain.c (remove_output): Put it here (new function). (preserve_output): New function. (main): Register remove_output and preserve_output with atexit. * ldmain.c ldgram.y: Call xexit instead of exit. * ldmisc.h: Declare xexit.
1994-02-04 * Makefile.in: Lots of new H8/500 memory models.Steve Chamberlain1-0/+13
1994-01-28 * ldlex.l: Add rule to catch invalid input characters instead ofDavid MacKenzie1-1/+1
printing them. Include "ldmain.h" for program_name decl. (lex_warn_invalid): New function. * Makefile.in: Add dependency.
1994-01-28* Makefile.in (check): Don't bother running any tests ofKen Raeburn1-4/+9
cross-linker until the test suite no longer assumes native mode.
1994-01-26Change all occurances of RUNTEST_FLAGS to RUNTESTFLAGS to be consistant withRob Savoye1-2/+2
everything else. (and now work recursively too)
1994-01-26 * Makefile.in: Format variable definitions consistently.Stan Shebs1-20/+21
(LD_PROG): Remove unnecessary variables from link command, change variable LOADLIBES to EXTRALIBS.
1994-01-14 Motorola Delta sysV68 support from phdm@info.ucl.ac.BE (PhilippeIan Lance Taylor1-1/+8
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.
1993-12-30 A major rewrite to move the bulk of the linker into BFD so thatIan Lance Taylor1-197/+143
more efficient backend code can be written for specific object files. * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h, ldwarn.c, ldwarn.h, relax.c, relax.h: Removed. * ldctor.c, ldctor.h: Complete rewrite. * ldwrite.c, ldwrite.h: Complete rewrite. * ld.h (strip_symbols_type, strip_symbols): Removed. Use link_info.strip instead. Changed all uses. (discard_locals_type, discard_locals): Removed. Use link_info.discard instead. Changed all uses. (ld_config_type): Removed relocateable_output field; use link_info.relocateable instead; changed all uses. Added stats field. (set_asymbol_chain, get_asymbol_chain, get_loader_symbol, set_loader_symbol): Removed. * ldexp.h (node_class): Added etree_rel. (etree_type): Added rel field. * ldexp.c (exp_print_token): Bracketed table initialization. (exp_relop): New function. (fold_name): Use linker hash table rather than ldsym functions. (exp_fold_tree): Likewise. Also, handle etree_rel case. (exp_print_tree): Handle etree_rel. * ldgram.y (strip_symbols, discard_locals): Removed. (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them. (REL): New token. Does not appear in grammar, but needed for expression code. (file): Don't call lang_final; it's called by main anyhow. * ldlex.l: Accept -stats and -no-keep-memory options. * ldlang.h (fill_type): Make unsigned int, not unsigned short. * ldlang.c: Consistently use fill_type for fill argument. (lang_init_script_file, script_file): Removed. (create_object_symbols): Removed. Use link_info.create_object_symbols_section instead. Changed all uses. (lang_add_keepsyms_file): Removed. (lookup_name): Call bfd_link_add_symbols instead of ldmain_open_file_read_symbol. (wild): Don't iterate over script_file. (open_output): Create link hash table. (lang_place_undefineds): Rewrote. (lang_size_sections): Handle relaxing (doesn't work yet). (lang_relocate_globals): Removed. (lang_finish): Use link hash table rather than ldsym functions. (lang_common): Rewrote. (lang_one_common): New function. (ldlang_add_file): Add file to link_info.input_bfds list. Set usrdata. (create_symbol): Removed. (lang_process): Don't call lang_init_script_file. Call ldctor_build_sets rather than find_constructors. Don't call lang_relocate_globals. (lang_abs_symbol_at_beginning_of): Rewrote. (lang_abs_symbol_at_end_of): Rewrote. * ldmain.c (had_y): Removed. (lprefix, lprefix_len): Removed; use link_info fields instead. Changed all uses. (multiple_def_count, commons_pending, undefined_global_sym_count, total_symbols_seen, total_files_seen): Removed. (link_callbacks, link_info): New variables. (main): Initialize link_info. Don't call init_bfd_error_vector or ldsym_init. Don't set now unused variables. Handle -stats. (get_emulation): Removed obsolete and nonfunctional GNU960 code. (add_ysym): Rewrote. (read_entry_symbols, refize, enter_global_ref, enter_file_symbols, search_library, gnu960_check_format, decode_library_subfile, linear_library, symdef_library, clear_syms, subfile_wanted_p): Removed. (add_keepsyms_file, add_archive_element, multiple_definition, multiple_common, add_to_set, warning_callback, undefined_symbol, reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym): New functions. * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't require symbols for %C; look them up instead. * emultempl/hppaosf.em: Pass link_info to hppa_look_for_stubs_in_section. * Makefile.in: Rebuilt dependencies. (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and relax.c. (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and relax.h. (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h, ldlang.h and ldctor.h. * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove declarations of free and malloc from flex output. Change malloc to ldmalloc in flex output.
1993-11-04Fix up dependencies and rules for ld.dvi, ld.info.Ken Raeburn1-3/+3
1993-11-03* Makefile.in (distclean): Don't get rid of dvi or info files.Ken Raeburn1-4/+9
1993-10-29Sparc Lynx supportStan Shebs1-0/+4
1993-10-28 * Makefile.in: Add dependency for $(EMULATION_OFILES).Ian Lance Taylor1-5/+28
1993-09-10Changed CXX back to g++. Using ../gcc/xgcc breaks because of <assert.h>Jeffrey Wheat1-0/+2
1993-09-10Changed CXX back to g++. ../gcc/xgcc breaks the cdtest because of <assert.h>Jeffrey Wheat1-0/+3
1993-09-10Fixed RUNTEST* CXX CXXFLAGS macros and check rule.Jeffrey Wheat1-30/+62
1993-09-10* Makefile.in (TAGS): Use shell wildcards.David MacKenzie1-2/+2
1993-09-08 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi targetJeffrey Osier1-35/+110
1993-08-12check targets reimplemented to old way.Jeffrey Wheat1-4/+44
1993-07-22The default script is now compiled in; the others are still in the filesystem.David MacKenzie1-31/+32
1993-07-20change linux to use OTHER_EMULATIONSMark Eichin1-3/+0
1993-07-20Make emul-list.h depend on Makefile, so changes to EMULATION_OFILES getKen Raeburn1-1/+1
reflected.
1993-07-20disable em_i386linux.o until emulparams/i386linux.sh is checked inKen Raeburn1-1/+1
1993-07-19more linux support bitsMark Eichin1-1/+4
1993-07-15Add h8/300h support.David Edelsohn1-1/+4
1993-07-15 * Makefile.in (em_m88kbcs.c): Correct dependency.Ian Lance Taylor1-1/+1
(scripttempl/m88kbcs.sc): It's ARCH, not arch.
1993-07-13add a -I to the makeinfo command lineDavid D. Zuhn1-1/+1
1993-07-08(ALL_EMULATIONS): Include $(OTHER_EMULATIONS) in case some target has stuffKen Raeburn1-1/+4
to add.
1993-07-07 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;Ian Lance Taylor1-3/+1
collect2 doesn't look for gld any more anyhow.
1993-07-03 Passing -L. is no longer necessary.David MacKenzie1-6/+6
1993-07-03 Fix previous fix.David MacKenzie1-2/+2
1993-07-03 * ldmain.c (main): Don't add scriptdir to the lib search path.David MacKenzie1-20/+17
* genscripts.sh: Put the scripts in the ldscripts directory, not emulations. * configure.in (ldscripts): Make, instead of emulations. * Makefile.in (scriptdir): Take off the "ld" part. (install, clean, distclean): Use ldscripts, not emulations. In tests, pass -L., not -Lemulations. (ldmain.o): Don't pass -DSCRIPTDIR=.... * ldlang.c (lang_process): Add "ldscripts/" to the name of the default script file.
1993-06-30* Makefile.in (ldgram.[hc]): rewrite this rule in such a way that gnuK. Richard Pixley1-3/+10
make can run in parallel without colliding on yacc's static file names.
1993-06-18single-quote $program_transform_nameDavid D. Zuhn1-1/+1