diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-03-17 21:24:26 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-03-17 21:24:26 +0000 |
commit | a1ab1d2aa3baf504c67892d1e46724f4a2c54ce5 (patch) | |
tree | 8218d4076c521b56175140896449aed672131546 /ld/emultempl/elf32.em | |
parent | 249e3833ac77d9b9ab6a8e158dbf592732de6df2 (diff) | |
download | gdb-a1ab1d2aa3baf504c67892d1e46724f4a2c54ce5.zip gdb-a1ab1d2aa3baf504c67892d1e46724f4a2c54ce5.tar.gz gdb-a1ab1d2aa3baf504c67892d1e46724f4a2c54ce5.tar.bz2 |
* emultempl/elf32.em (OPTION_GROUP): New macro.
Add new option Bgroup to longopts.
(gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
(gld*_list_options): Add -Bgroup and -z defs.
* ld.1: Document -Bgroup and -z defs.
* ld.texinfo: Likewise.
Diffstat (limited to 'ld/emultempl/elf32.em')
-rw-r--r-- | ld/emultempl/elf32.em | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index e890c75..d5b9eec 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1334,6 +1334,7 @@ cat >>e${EMULATION_NAME}.c <<EOF #define OPTION_DISABLE_NEW_DTAGS (400) #define OPTION_ENABLE_NEW_DTAGS (OPTION_DISABLE_NEW_DTAGS + 1) +#define OPTION_GROUP (OPTION_ENABLE_NEW_DTAGS + 1) static struct option longopts[] = { @@ -1347,6 +1348,8 @@ 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}, {"enable-new-dtags", no_argument, NULL, OPTION_ENABLE_NEW_DTAGS}, + {"Bgroup", no_argument, NULL, OPTION_GROUP}, + {"Bgroup", no_argument, NULL, OPTION_GROUP}, EOF fi @@ -1405,6 +1408,12 @@ cat >>e${EMULATION_NAME}.c <<EOF link_info.new_dtags = true; break; + case OPTION_GROUP: + link_info.flags_1 |= (bfd_vma) DF_1_GROUP; + /* Groups must be self-contained. */ + link_info.no_undefined = true; + break; + case 'z': if (strcmp (optarg, "initfirst") == 0) link_info.flags_1 |= (bfd_vma) DF_1_INITFIRST; @@ -1430,6 +1439,8 @@ cat >>e${EMULATION_NAME}.c <<EOF link_info.flags |= (bfd_vma) DF_ORIGIN; link_info.flags_1 |= (bfd_vma) DF_1_ORIGIN; } + else if (strcmp (optarg, "defs") == 0) + link_info.no_undefined = true; /* What about the other Solaris -z options? FIXME. */ break; EOF @@ -1463,8 +1474,10 @@ EOF if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then cat >>e${EMULATION_NAME}.c <<EOF + fprintf (file, _(" -Bgroup\t\tSelects group name lookup rules for DSO\n")); fprintf (file, _(" --disable-new-dtags\tDisable new dynamic tags\n")); fprintf (file, _(" --enable-new-dtags\tEnable new dynamic tags\n")); + fprintf (file, _(" -z defs\t\tDisallows undefined symbols\n")); fprintf (file, _(" -z initfirst\t\tMark DSO to be initialized first at runtime\n")); fprintf (file, _(" -z interpose\t\tMark object to interpose all DSOs but executable\n")); fprintf (file, _(" -z loadfltr\t\tMark object requiring immediate process\n")); |