diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-05-13 04:47:59 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-05-13 04:47:59 -0700 |
commit | e69c76f4bfaf4c1b72f020f811afe03a5f7cd831 (patch) | |
tree | 151e266a775ef99bf77540ddc0166d0c5a972ef9 /gas/config/tc-i386.c | |
parent | 31955f993de7b502b7a89bba4f9c9b0a34f90b2c (diff) | |
download | gdb-e69c76f4bfaf4c1b72f020f811afe03a5f7cd831.zip gdb-e69c76f4bfaf4c1b72f020f811afe03a5f7cd831.tar.gz gdb-e69c76f4bfaf4c1b72f020f811afe03a5f7cd831.tar.bz2 |
Revert "Add -mno-shared to x86 assembler"
This reverts commit 573cc2e57db66165b390044338d3a4ad51f36bf8.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r-- | gas/config/tc-i386.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index db263ee..75f268f 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -524,11 +524,6 @@ static enum x86_elf_abi x86_elf_abi = I386_ABI; static int use_big_obj = 0; #endif -#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) -/* 1 if not generating code for a shared library. */ -static int no_shared = 0; -#endif - /* 1 for intel syntax, 0 if att syntax. */ static int intel_syntax = 0; @@ -8834,10 +8829,6 @@ elf_symbol_resolved_in_segment_p (symbolS *fr_symbol) /* Symbol may be weak or local. */ return !S_IS_WEAK (fr_symbol); - /* Non-weak symbols won't be preempted. */ - if (no_shared) - return 1; - /* Global symbols with default visibility in a shared library may be preempted by another definition. */ return ELF_ST_VISIBILITY (S_GET_OTHER (fr_symbol)) != STV_DEFAULT; @@ -9537,7 +9528,6 @@ const char *md_shortopts = "qn"; #define OPTION_MBIG_OBJ (OPTION_MD_BASE + 18) #define OPTION_OMIT_LOCK_PREFIX (OPTION_MD_BASE + 19) #define OPTION_MEVEXRCIG (OPTION_MD_BASE + 20) -#define OPTION_MNO_SHARED (OPTION_MD_BASE + 21) struct option md_longopts[] = { @@ -9548,7 +9538,6 @@ struct option md_longopts[] = #endif #if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) {"x32", no_argument, NULL, OPTION_X32}, - {"mno-shared", no_argument, NULL, OPTION_MNO_SHARED}, #endif {"divide", no_argument, NULL, OPTION_DIVIDE}, {"march", required_argument, NULL, OPTION_MARCH}, @@ -9609,10 +9598,6 @@ md_parse_option (int c, char *arg) /* -s: On i386 Solaris, this tells the native assembler to use .stab instead of .stab.excl. We always use .stab anyhow. */ break; - - case OPTION_MNO_SHARED: - no_shared = 1; - break; #endif #if (defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) \ || defined (TE_PE) || defined (TE_PEP) || defined (OBJ_MACH_O)) @@ -10042,8 +10027,6 @@ md_show_usage (FILE *stream) -mold-gcc support old (<= 2.8.1) versions of gcc\n")); fprintf (stream, _("\ -madd-bnd-prefix add BND prefix for all valid branches\n")); - fprintf (stream, _("\ - -mno-shared enable branch optimization for non shared code\n")); # if defined (TE_PE) || defined (TE_PEP) fprintf (stream, _("\ -mbig-obj generate big object files\n")); |