aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.in
AgeCommit message (Collapse)AuthorFilesLines
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
1993-06-18more install/program_transform_name fixesDavid D. Zuhn1-2/+2
1993-06-18Fix install.Steve Chamberlain1-2/+4
1993-06-17get install.sh canonicalizedDavid D. Zuhn1-1/+1
1993-06-17 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .ccDavid MacKenzie1-0/+7
and .cc.o rule.
1993-06-17 * ldfile.c (ldfile_open_command): Don't try .ld extension.David MacKenzie1-94/+90
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.
1993-06-16look in ../include instead of ../bfd for bfd.hKen Raeburn1-1/+1
1993-06-16remove parentdir support; use INSTALL_XFORMDavid D. Zuhn1-17/+13
1993-06-04 * Makefile.in: remove old C++ rules; remove install:all andDavid D. Zuhn1-7/+2
install-info:info dependencies (these cause some spurious rebuilds at 'make install' time)
1993-06-04Remove sh sanitization comments.Ian Lance Taylor1-9/+2
1993-06-04 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.Ian Lance Taylor1-1/+4
(mips-idt-ecoff*): Added trailing '*'. * config/mips-idtl.mt: New file; use EMUL of mipsidtl. * mipsidtl.sh: New file; like mipsidt.sh, but little endian. * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
1993-05-25 * Makefile.in: configure looks for ####, so remove lines with manyIan Lance Taylor1-10/+17
'#' characters. * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0 and HOSTING_LIBS correctly so that ``make check'' will work.