diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-05-08 05:04:12 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-05-08 05:05:49 -0700 |
commit | 573cc2e57db66165b390044338d3a4ad51f36bf8 (patch) | |
tree | d504be11ff656471087dfa0e9eae6808c2b90b3d /gas/ChangeLog | |
parent | 422349a385c2ccfc1e66f5c65560e5bd5fc97953 (diff) | |
download | gdb-573cc2e57db66165b390044338d3a4ad51f36bf8.zip gdb-573cc2e57db66165b390044338d3a4ad51f36bf8.tar.gz gdb-573cc2e57db66165b390044338d3a4ad51f36bf8.tar.bz2 |
Add -mno-shared to x86 assembler
On ELF target, the assembler normally generates code which can go into a
shared library where non-weak symbols can be preempted. The -mno-shared
option tells the assembler to generate code not for a shared library,
where non-weak symbols won't be preempted. The resulting code is slightly
smaller. This option mainly affects the handling of branch instructions.
gas/
* config/tc-i386.c (no_shared): New.
(OPTION_MNO_SHARED): Likewise.
(elf_symbol_resolved_in_segment_p): Check no_shared.
(md_longopts): Add mno-shared.
(md_parse_option): Handle OPTION_MNO_SHARED.
(md_show_usage): Add -mno-shared.
* doc/c-i386.texi: Document -mno-shared.
gas/testsuite/
* gas/i386/i386.exp: Run relax-4 and x86-64-relax-3.
* gas/i386/relax-4.d: New file.
* gas/i386/x86-64-relax-3.d: Likewise.
Diffstat (limited to 'gas/ChangeLog')
-rw-r--r-- | gas/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 9758e72..9bf6931 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,13 @@ +2015-05-08 H.J. Lu <hongjiu.lu@intel.com> + + * config/tc-i386.c (no_shared): New. + (OPTION_MNO_SHARED): Likewise. + (elf_symbol_resolved_in_segment_p): Check no_shared. + (md_longopts): Add mno-shared. + (md_parse_option): Handle OPTION_MNO_SHARED. + (md_show_usage): Add -mno-shared. + * doc/c-i386.texi: Document -mno-shared. + 2015-05-07 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (elf_symbol_resolved_in_segment_p): New. |