aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
1994-02-25 Use getopt instead of lex and yacc to parse the command line.David MacKenzie1-0/+41
* 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-22 * ldlang.c (lang_size_sections): Only align section to alignmentIan Lance Taylor1-0/+4
required by linker script, not to maximum alignment of input sections.
1994-02-22 * ldlang.h (largest_section): Don't declare.Ian Lance Taylor1-0/+6
* ldlang.c (largest_section): Don't define. (size_input_section): Don't set largest_section; not used.
1994-02-21 * ldlang.c (new_afile): Pass NULL as last argument to concat.Ian Lance Taylor1-0/+4
1994-02-17Various entries.Ian Lance Taylor1-0/+9
1994-02-17 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error andDavid MacKenzie1-0/+5
bfd_set_error and new error names.
1994-02-16i960-bout linker fixes, install-info bugfixKen Raeburn1-0/+20
1994-02-12 * ldlex.l (comment): Increment line number when newline is read.David MacKenzie1-0/+4
1994-02-11 * ldlang.c (lookup_name): Take new argument, force_load. If true,Ian Lance Taylor1-0/+9
reload the file even if it is already loaded. (wild): Call lookup_name with force_load argument of 0. (open_input_bfds): Call lookup_name with force_load argument of 1. (print_symbol): Remove declaration of non-existent function. (print_one_symbol): Return true rather than falling off end.
1994-02-10 * ldmain.c (main): Use %ld when printing long values.Ian Lance Taylor1-0/+11
1994-02-08 * Rename all "hppaosf" files to "hppaelf".Jeff Law1-0/+4
1994-02-07 * ldmain.c (main): Call xatexit, not atexit.David MacKenzie1-0/+3
Call xmalloc_set_program_name.
1994-02-07 * ldlang.c (lang_size_sections): Check if bfd_relax_section setDavid MacKenzie1-0/+5
bfd_errno.
1994-02-05 * emultempl/lnk960.em (append), emultempl/hppaosf.emDavid MacKenzie1-0/+7
(hppaosf_finish): Call xmalloc, not ldmalloc. * ldmain.c (preserve_output): Function removed. (main): Do it here instead.
1994-02-05 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)Jeff Law1-0/+8
GNU C specific macros. * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining call to LANG_FOR_EACH_INPUT_SECTION.
1994-02-05 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): FunctionsDavid MacKenzie1-0/+14
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/+4
1994-01-30* ldlex.l: Removed duplicate rules.Ken Raeburn1-0/+6
(yywrap): Provide default definition, needed with some versions of flex.
1994-01-28 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, printDavid MacKenzie1-0/+3
the archive filename too.
1994-01-28 * ldlex.l: Add rule to catch invalid input characters instead ofDavid MacKenzie1-0/+7
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-0/+5
cross-linker until the test suite no longer assumes native mode.
1994-01-28Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)Steve Chamberlain1-0/+5
* ldlang.c (print_one_symbol, print_input_section): Print global symbols in symbol table again.
1994-01-27 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,David MacKenzie1-0/+6
exit successfully instead of complaining if no input files are given.
1994-01-26 * Makefile.in: Format variable definitions consistently.Stan Shebs1-0/+4
(LD_PROG): Remove unnecessary variables from link command, change variable LOADLIBES to EXTRALIBS.
1994-01-25Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-0/+5
* ldmain.c (main): Compute and display total execution time. * ld.texinfo (-stats): Document the option.
1994-01-24 * ldmain.c (reloc_overflow): Added name, reloc_name and addendIan Lance Taylor1-0/+3
arguments.
1994-01-24 * ldlang.c (lookup_name): Set BFD GP size to -G argument valueIan Lance Taylor1-0/+3
after opening BFD.
1994-01-24 * ldlang.c (relaxing): Removed global variable.Ian Lance Taylor1-0/+7
(lang_size_sections): If the canonical symbols have not already been read in, read them in before relaxing. * ldlang.h (relaxing): Removed declaration.
1994-01-21 * ldlang.c (new_afile): Initialize loaded field to false.Ian Lance Taylor1-0/+6
(lookup_name): If file was already loaded, don't call the add_symbols entry point again.
1994-01-19 * ld.texinfo: Clarify what -T option does.David MacKenzie1-0/+4
1994-01-19 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that'sSteve Chamberlain1-0/+5
for a.out.
1994-01-14 Motorola Delta sysV68 support from phdm@info.ucl.ac.BE (PhilippeIan Lance Taylor1-0/+17
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.
1994-01-11 * scripttempl/elf.sc: Correct typo.Ian Lance Taylor1-0/+4
1994-01-11 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y andDavid MacKenzie1-0/+5
their arguments optional, for compatibility with the old GNU ld.
1994-01-08 * scripttempl/elf.c: Define __bss_start before the .sbss section.Ian Lance Taylor1-0/+4
1994-01-06Various entries.Ian Lance Taylor1-0/+21
1994-01-06 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,Ian Lance Taylor1-0/+5
since the Alpha doesn't use them.
1994-01-06 * ldemul.h (ld_emulation_xfer_struct): Comment the members.David MacKenzie1-0/+9
1994-01-01clarify changeDavid MacKenzie1-1/+1
1994-01-01 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;David MacKenzie1-0/+8
needed for i386mach. * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again. (PAGE_SIZE): Don't define; not used.
1993-12-31 * ldgram.y (yyerror): Make argument const char *, and actuallyIan Lance Taylor1-0/+7
print it out rather than assuming it is a syntax error. * ldmisc.h: Change declaration of yyerror. * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
1993-12-31 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't includeDavid MacKenzie1-0/+6
exec header offset, since the exec header isn't loaded. (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
1993-12-30 A major rewrite to move the bulk of the linker into BFD so thatIan Lance Taylor1-0/+107
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-12-14 * ldlex.h: Don't declare yywrap if it is a macro.Ian Lance Taylor1-0/+2
* ldlex.l: Include sysdep.h.
1993-12-14 * ldlang.c (lang_for_each_statement_worker,Ian Lance Taylor1-0/+5
lang_for_each_statement): Forgot to use PARAMS.
1993-12-13 * Makefile.in: Added .PHONY targets where appropriate. Added someIan Lance Taylor1-0/+21
comments. Also: (gcclibdir, version): Removed unused variables. (DEP): New variable, set to mkdep. (ALL_CFLAGS): New variable. Used in .c.o target. (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New variables. (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES, GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed mostly obsolete variables. Adjusted remaining uses. (DEF_EMUL): Removed variable. (ldmain.o): Handle undefined EMUL error correctly. (ldemul-list.h): Depend on config.status rather than Makefile. Create via temporary file. (ver960.c, roll, make): Removed obsolete targets. (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild dependencies.
1993-12-11 Made many changes to eliminate gcc warnings. Made variousIan Lance Taylor1-0/+5
cosmetic changes, declared various things in header files, removed various extern declarations from .c files. No substantive changes.
1993-12-11 * ldlang.c (lang_process): Ifdef out final call toIan Lance Taylor1-0/+10
lang_size_sections again (reverting change of Nove 2), since it breaks the Sun4 linker.
1993-12-02 * ldgram.y (OPTION_Oval): New token.Ian Lance Taylor1-2/+4
(command_line_option): Accept and ignore it. * ldlex.l (<COMMAND>): Handle -On where n is a number.
1993-12-01* configure.in: Group targets by CPU. Merge some m68k target entries withKen Raeburn1-0/+13
different CPU specs that use the same ld_target values. * configure.in: Add sparc*-*-coff. * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files. * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o. (em_coff_sparc.c): Add dependencies and build rules.