diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-10-16 18:13:54 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-10-16 18:13:54 +0000 |
commit | b58f81aef6a84930bcb58db39f2bad0c45383a6d (patch) | |
tree | 3898cd356f0d9f0d894b447a4fdb46915a7bfac0 /ld/emultempl | |
parent | fd5008162e2dc522e4fea16de38a355f7e1a43be (diff) | |
download | gdb-b58f81aef6a84930bcb58db39f2bad0c45383a6d.zip gdb-b58f81aef6a84930bcb58db39f2bad0c45383a6d.tar.gz gdb-b58f81aef6a84930bcb58db39f2bad0c45383a6d.tar.bz2 |
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.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/elf32.em | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index f9e2cf9..c6bc7c2 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1571,7 +1571,8 @@ cat >>e${EMULATION_NAME}.c <<EOF #define OPTION_ENABLE_NEW_DTAGS (OPTION_DISABLE_NEW_DTAGS + 1) #define OPTION_GROUP (OPTION_ENABLE_NEW_DTAGS + 1) #define OPTION_EH_FRAME_HDR (OPTION_GROUP + 1) - +#define OPTION_EXCLUDE_LIBS (OPTION_EH_FRAME_HDR + 1) + static void gld${EMULATION_NAME}_add_options (int ns, char **shortopts, int nl, struct option **longopts, @@ -1586,6 +1587,7 @@ cat >>e${EMULATION_NAME}.c <<EOF {"disable-new-dtags", no_argument, NULL, OPTION_DISABLE_NEW_DTAGS}, {"enable-new-dtags", no_argument, NULL, OPTION_ENABLE_NEW_DTAGS}, {"eh-frame-hdr", no_argument, NULL, OPTION_EH_FRAME_HDR}, + {"exclude-libs", required_argument, NULL, OPTION_EXCLUDE_LIBS}, {"Bgroup", no_argument, NULL, OPTION_GROUP}, EOF fi @@ -1638,6 +1640,10 @@ cat >>e${EMULATION_NAME}.c <<EOF link_info.unresolved_syms_in_shared_libs = RM_GENERATE_ERROR; break; + case OPTION_EXCLUDE_LIBS: + add_excluded_libs (optarg); + break; + case 'z': if (strcmp (optarg, "initfirst") == 0) link_info.flags_1 |= (bfd_vma) DF_1_INITFIRST; |