From b58f81aef6a84930bcb58db39f2bad0c45383a6d Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sat, 16 Oct 2004 18:13:54 +0000 Subject: bfd/ * bfd-in2.h: Regenerate. * bfd.c (struct bfd): Add no_export. * elflink.c (elf_link_add_object_symbols): Handle no_export. ld/ * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs) (check_excluded_libs): New. (load_symbols): Call check_excluded_libs. * ldlang.h (add_excluded_libs): New prototype. * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define. (gld${EMULATION_NAME}_add_options): Add --exclude-libs. (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs. * ld.texinfo (Command Line Variables): Document --exclude-libs. (Options Specific to i386 PE Targets): Remove --exclude-libs. ld/testsuite/ * ld-elf/exclude1.s, ld-elf/exclude2.s, ld-elf/exclude.exp: New. --- ld/ld.texinfo | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'ld/ld.texinfo') diff --git a/ld/ld.texinfo b/ld/ld.texinfo index bfd3464..5a494c2 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -449,6 +449,17 @@ base 10; you may use a leading @samp{0x} for base 16, or a leading @samp{0} for base 8). @xref{Entry Point}, for a discussion of defaults and other ways of specifying the entry point. +@kindex --exclude-libs +@item --exclude-libs @var{lib},@var{lib},... +Specifies a list of archive libraries from which symbols should not be automatically +exported. The library names may be delimited by commas or colons. Specifying +@code{--exclude-libs ALL} excludes symbols in all archive libraries from +automatic export. This option is available only for the i386 PE targeted +port of the linker and for ELF targeted ports. For i386 PE, symbols +explicitly listed in a .def file are still exported, regardless of this +option. For ELF targeted ports, symbols affected by this option will +be treated as hidden. + @cindex dynamic symbol table @kindex -E @kindex --export-dynamic @@ -1884,15 +1895,6 @@ Specifies a list of symbols which should not be automatically exported. The symbol names may be delimited by commas or colons. [This option is specific to the i386 PE targeted port of the linker] -@kindex --exclude-libs -@item --exclude-libs @var{lib},@var{lib},... -Specifies a list of archive libraries from which symbols should not be automatically -exported. The library names may be delimited by commas or colons. Specifying -@code{--exclude-libs ALL} excludes symbols in all archive libraries from -automatic export. Symbols explicitly listed in a .def file are still exported, -regardless of this option. -[This option is specific to the i386 PE targeted port of the linker] - @kindex --file-alignment @item --file-alignment Specify the file alignment. Sections in the file will always begin at -- cgit v1.1