aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
AgeCommit message (Collapse)AuthorFilesLines
1998-10-27Describe -O option.Ulrich Drepper1-0/+23
1998-07-07 * Makefile.am (ldver.texi): New target.Ian Lance Taylor1-3/+4
(ld.info, ld.dvi): Depend upon ldver.texi. * ld.texinfo: Include ldver.texi. Mention version number on title page and in top node. * Makefile.in: Rebuild.
1998-07-03 * ldgram.y (extern_name_list): Do not require symbols to beIan Lance Taylor1-6/+14
separated by commas. (ifile_p1): Add EXTERN. * ldlex.l: Accept EXTERN in BOTH and SCRIPT mode as well as MRI mode. * ld.texinfo (Options): Mention that EXTERN is equivalent to -u. (Miscellaneous Commands): Document EXTERN.
1998-07-02 * ld.h (args_type): Add gc_sections.Richard Henderson1-1/+23
* ldgram.y (ldgram_had_keep, KEEP): New. (input_section_spec_no_keep): Rename from old input_section_spec. (input_section_spec): New. Recognize KEEP. * ldlang.c (wild_section): Handle keep sections. (lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New. (lang_gc_sections_1, lang_gc_sections): New. (lang_process): Invoke lang_gc_sections. (lang_add_wild): Add keep argument. Update all callers. * ldlang.h (lang_wild_statement_struct): Add keep_sections. * ldlex.l (KEEP): Match it. * ldmain.c (main): Error on -r and --gc-sections. * lexsup.c: Add --gc-sections. * scripttempl/elf.sc: Merge .text.* etc sections appropriately. Mark startup sections with KEEP. * scripttempl/elfppc.sc: Likewise. * ld.texinfo: Update for --gc-sections and KEEP.
1998-06-22 * ld.texinfo: Note that -relax may make symbolic debuggingJeff Law1-3/+11
impossible on some platforms.
1998-06-01 * ld.texinfo (Input Section Wildcards): Document SORT keyword.Ian Lance Taylor1-2/+39
1998-04-27 * ld.texinfo (Options) [-rpath-link]: Mention ld.so.conf.Ian Lance Taylor1-0/+3
1998-04-22 * ld.texinfo (MEMORY): Clarify use of >REGION.Ian Lance Taylor1-8/+9
1998-04-22 * ld.texinfo (Simple Example): Rewrite a few things as suggestedIan Lance Taylor1-16/+33
by Nick Clifton <nickc@cygnus.com>. (PROVIDE): Likewise.
1998-04-03tweakIan Lance Taylor1-5/+6
1998-04-03tweakIan Lance Taylor1-8/+21
1998-04-03 * ld.texinfo: Completely rewrite linker script documentation.Ian Lance Taylor1-1449/+1720
1998-01-28 * ld.texinfo (Options): Mention LDEMULATION in description of -m.Ian Lance Taylor1-6/+22
(Environment): Mention LDEMULATION.
1998-01-28 * ld.texinfo (Options): Clarify --export-dynamic a bit.Ian Lance Taylor1-28/+248
1997-01-16 * ld.texinfo (Options): Improve documentation of --filter andIan Lance Taylor1-8/+34
--auxiliary.
1997-01-14 * ld.texinfo (Commands): Clarify that the normal usage is -T.Ian Lance Taylor1-3/+9
1997-01-03 * ld.texinfo (Operators): Remove '@' from @smallexmple in commentIan Lance Taylor1-1/+1
to avoid confusing texi2roff.
1996-12-31 * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlibIan Lance Taylor1-15/+28
fields. * lexsup.c (parse_args): Recognize --auxiliary/-f and --filter/-F. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Pass filter_shlib and auxiliary_filter_shlib to size_dynamic_sections. * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
1996-11-01 * ld.texinfo: Add section on reporting bugs.Ian Lance Taylor1-35/+244
1996-10-09 * ld.h (ld_config_type): Add warn_section_align field.Ian Lance Taylor1-13/+23
* lexsup.c (OPTION_WARN_SECTION_ALIGN): Define. (ld_options): Add --warn-section-align. (parse_args): Handle --warn-section-align. * ldlang.c (lang_size_sections): If warn_section_align, warn if the start of a section changes due to alignment. * ld.texinfo, ld.1: Document --warn-section-align. * ld.texinfo: Change some single dashes to double dashes. PR 10739.
1996-10-07 * ld.texinfo (Options): Mention .so extensions for sharedIan Lance Taylor1-2/+8
libraries.
1996-10-01 * ld.texinfo (Options): Give more detail on -l option.Ian Lance Taylor1-2/+133
PR 10418.
1996-08-02 * ldgram.y (LOADADDR): New terminal.Ian Lance Taylor1-0/+8
(exp): Handle LOADADDR. * ldlex.l: Recognize LOADADDR. * ldexp.c (exp_print_token): Add LOADADDR. (fold_name): Implement LOADADDR. * ldlang.c (exp_init_os): Treat LOADADDR like ADDR. * ld.texinfo (Arithmetic Functions): Document LOADADDR.
1996-08-01 * ld.h (check_nocrossrefs): Declare.Ian Lance Taylor1-0/+18
* ldlang.h (struct lang_nocrossref): Define. (struct lang_nocrossrefs): Define. (nocrossref_list): Declare. (lang_add_nocrossref): Declare. * ldlex.l: Recognize NOCROSSREFS keyword. * ldgram.y (%union): Add nocrossref field. (NOCROSSREFS): New terminal. (ifile_p1): Recognize NOCROSSREFS. (nocrossref_list): New nonterminal. * ldlang.c (nocrossref_list): Define. (lang_add_nocrossref): New function. * ldmain.c (main): If nocrossref_list is not NULL, call check_nocrossrefs. (warning_callback): Free symbols if there is no place to store them. (notice): Call add_cref if nocrossref_list is not NULL. * ldcref.c: Include "ldexp.h" and "ldlang.h". (check_nocrossrefs): New function. (check_nocrossref): New static function. (struct check_refs_info): Define. (check_refs, check_reloc_refs): New static functions. * Makefile.in: Rebuild dependencies. * ld.texinfo (Option Commands): Document NOCROSSREFS.
1996-08-01 * ld.texinfo (Section Placement): Improve the wording of theIan Lance Taylor1-8/+15
wildcard documentation. Mention that wildcards are only searched for on the command line, not in the file system.
1996-07-29 * fnmatch.h, fnmatch.c: New files.Ian Lance Taylor1-3/+49
* ldlex.l: Remove unused definition of FILENAME. Add definition of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a NAME. * ldgram.y (file_NAME_list): Accept '*' and '?' specially. (input_section_spec): Accept '?' specially. (statement): Change exp to mustbe_exp in length and FILL cases. (section): Call ldlex_script before section statements, and call ldlex_popstate after them. * ldlang.c: Include "fnmatch.h". (wildcardp): New static function. (wild_section): Permit the section name to be a wildcard. (wild_file): New static function, broken out of wild. (wild): Call wild_file. Permit the file name to be a wildcard. (open_input_bfds): Don't call lookup_name for a wildcard pattern. * Makefile.in: Rebuild dependencies. (CFILES): Add fnmatch.c. (HFILES): Add fnmatch.h. (OFILES): Add fnmatch.o. * ld.texinfo: Document that file and section names can now be wildcard patterns. * ldlang.c (lang_place_orphans): Correct condition: place a common section if not relocateable or if common definitions are forced.
1996-05-29 * ld.texinfo: Clarify the CONSTRUCTORS command.Ian Lance Taylor1-12/+54
1996-05-07Document semicolon usage.David Edelsohn1-346/+412
1996-04-09 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.Ian Lance Taylor1-3/+5
1996-04-08formatting changeIan Lance Taylor1-1/+1
1996-03-27 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".Ian Lance Taylor1-3/+7
* ldlang.c (init_os): Fail on an attempt to initialize any section named DISCARD_SECTION_NAME. (wild_doit): Discard input sections assigned to an output section named DISCARD_SECTION_NAME. * ld.texinfo: Document use of /DISCARD/.
1996-03-20Wed Mar 20 18:18:25 1996 Andreas Schwab ↵Ian Lance Taylor1-7/+7
<schwab@issan.informatik.uni-dortmund.de> * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
1996-03-12 * lexsup.c (parse_args): Handle --wrap.Ian Lance Taylor1-3/+37
* ldmain.c (main): Initialize link_info.wrap_hash. * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED and NAME cases. * ld.texinfo, ld.1: Document --wrap.
1996-03-12Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>Ian Lance Taylor1-1/+17
* ld.h (ld_config_type): Add warn_multiple_gp field. * lexsup.c (parse_args): Handle --warn-multiple-gp. * ldmain.c (warning_callback): Suppress multiple gp values warning if --warn_multiple_gp was not used. * ld.texinfo, ld.1: Document --warn-multiple-gp.
1996-02-27update copyrightIan Lance Taylor1-2/+2
1996-02-27 * lexsup.c (parse_args): Recognize --no-whole-archive.Ian Lance Taylor1-6/+11
* ldlang.h (lang_input_statement_type): Add whole_archive field. * ldlang.c (new_afile): Set whole_archive field. (load_symbols): Check input file specific whole_archive field rather than global variable. * ld.texinfo, ld.1: Document --no-whole-archive. PR 9094.
1996-02-19 * ld.texinfo: Mention that -R can be used for -rpath.Ian Lance Taylor1-135/+345
1995-11-07 * ld.texinfo: The linker does not use _main as an entry point.Ian Lance Taylor1-2/+0
1995-10-25 * ld.texinfo: The MRI ALIGN directive is supported.Ian Lance Taylor1-9/+62
1995-09-29 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): IfIan Lance Taylor1-9/+29
command_line.rpath is set, use it, rather than the -L options, to build the rules section. * ld.texinfo: Document this use of -rpath.
1995-07-10 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, andIan Lance Taylor1-6/+45
-shared. Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com> * ldmain.c (main): Set link_info.symbolic to false. * lexsup.c (parse_args): Handle -Bsymbolic.
1995-03-10 * ldlex.l: Return -lFILENAME as the token LNAME.Ian Lance Taylor1-12/+52
* ldgram.y: Add token LNAME. (input_list): Treat LNAME like NAME, but pass it to lang_add_input_file as lang_input_file_is_l_enum. * ld.texinfo: Document using -lFILENAME in INPUT.
1994-09-13 * ldlang.c (load_symbols): Check for archive before object. UseIan Lance Taylor1-5/+45
bfd_check_format_matches, and, if ambiguous, print a list of matching formats. If file format is not recognized, treat file as a linker script. * ldgram.y (yyerror): If assuming an object file is a script, mention that. Tweak the format of the error messages. * ldlex.l (lex_warn_invalid): If assuming an object is a script, guess that this is not actually a script, and just report that the file format was not recognized. * ld.texinfo (Options): Admit that -( may be used more than once. Add note that unrecognized object files are now treated as linker scripts. * ldfile.c (ldfile_input_filename): Make const. (ldfile_assumed_script): New variable. (try_open): Change arguments types to const. (ldfile_find_command_file): Likewise. (ldfile_open_command_file): Likewise. Also, set lineno to 1. * ldfile.h: Update declarations for ldfile.c changes. * ldlex.l: Include <ctype.h>. (file_name_stack): Change to be const char *. (lineno_stack): New static variable. (<<EOF>>): Set lineno as well as ldfile_input_filename. (lex_push_file): Make name argument const. Initialize lineno_stack entry. (lex_redirect): Initialize lineno_stack entry. (lex_warn_invalid): Handle non printable characters nicely. * ldlex.h (lex_push_file): Declare second argument as const. * ldgram.y (ifile_p1): Recognize GROUP. * ldlex.l: Recognize GROUP. * ld.texinfo (Option Commands): Document GROUP.
1994-07-20 * ld.h (args_type): Add field rpath.Ian Lance Taylor1-4/+46
* lexsup.c (S_ISDIR): Define if not already defined. (parse_args): Add support for -rpath. If -R is used to name a directory, treat it as -rpath for Solaris compatibility. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Pass command_line.rpath to bfd_elf32_size_dynamic_sections. * ldmain.c (main): Initialize command_line.rpath to NULL. * ld.texinfo: Document -rpath option.
1994-06-15 * ld.h (ld_config_type): Add new field traditional_format.Ian Lance Taylor1-1/+17
* lexsup.c (parse_args): Add traditional_format to longopts, and handle it. * ldmain.c (main): Initialize config.traditional_format to false. * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD flags of output_bfd according to config.traditional_format. * ld.texinfo: Document -traditional-format.
1994-05-11 Don't create unnecessary output sections.Ian Lance Taylor1-10/+35
* ldlang.c (out_bfd_get_section_by_name): Remove. (wild_section): Call bfd_get_section_by_name rather than our_bfd_get_section_by_name. Don't call wild_doit if there is no section. (lang_create_output_section_statements): Remove. (map_input_to_output_sections): For several cases, call init_os if it has not already been called. (lang_size_sections): If output section was not created, skip it. (lang_process): Don't call lan_create_output_section_statements. (lang_place_orphans): Skip files with just_syms_flags set to true. * ld.texinfo: Document change.
1994-02-25 Use getopt instead of lex and yacc to parse the command line.David MacKenzie1-267/+194
* 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-03Formatting adjustments, for better smallbook formattingRoland Pesch1-10/+12
and to agree better w/FSF (RMS) indentation conventions.
1994-02-03Describe -retain-symbols-file.Roland Pesch1-0/+20
1994-02-03misc updates:Roland Pesch1-46/+94
(1) show `-y SYMBOL' with space (2) weaken multi-target stuff, to avoid false expectations now that linker now often config'd with only one target (3) describe -relax support on i960 (4) correct description of hyphen chars in symbols (5) describe CONSTRUCTORS linker script cmd