Commit 4942323e by Alan Modra Committed by Alan Modra

invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable and -mrelocatable-lib description.

	* doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
	and -mrelocatable-lib description.

From-SVN: r162929
parent ca542437
2010-08-06 Alan Modra <amodra@gmail.com>
* doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
and -mrelocatable-lib description.
2010-08-05 Bernd Schmidt <bernds@codesourcery.com> 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
From Martin Thuresson <martint@google.com> From Martin Thuresson <martint@google.com>
......
...@@ -15418,20 +15418,25 @@ unaligned memory references will be handled by the system. ...@@ -15418,20 +15418,25 @@ unaligned memory references will be handled by the system.
@itemx -mno-relocatable @itemx -mno-relocatable
@opindex mrelocatable @opindex mrelocatable
@opindex mno-relocatable @opindex mno-relocatable
On embedded PowerPC systems generate code that allows (does not allow) Generate code that allows (does not allow) a static executable to be
the program to be relocated to a different address at runtime. If you relocated to a different address at runtime. A simple embedded
use @option{-mrelocatable} on any module, all objects linked together must PowerPC system loader should relocate the entire contents of
be compiled with @option{-mrelocatable} or @option{-mrelocatable-lib}. @code{.got2} and 4-byte locations listed in the @code{.fixup} section,
a table of 32-bit addresses generated by this option. For this to
work, all objects linked together must be compiled with
@option{-mrelocatable} or @option{-mrelocatable-lib}.
@option{-mrelocatable} code aligns the stack to an 8 byte boundary.
@item -mrelocatable-lib @item -mrelocatable-lib
@itemx -mno-relocatable-lib @itemx -mno-relocatable-lib
@opindex mrelocatable-lib @opindex mrelocatable-lib
@opindex mno-relocatable-lib @opindex mno-relocatable-lib
On embedded PowerPC systems generate code that allows (does not allow) Like @option{-mrelocatable}, @option{-mrelocatable-lib} generates a
the program to be relocated to a different address at runtime. Modules @code{.fixup} section to allow static executables to be relocated at
compiled with @option{-mrelocatable-lib} can be linked with either modules runtime, but @option{-mrelocatable-lib} does not use the smaller stack
compiled without @option{-mrelocatable} and @option{-mrelocatable-lib} or alignment of @option{-mrelocatable}. Objects compiled with
with modules compiled with the @option{-mrelocatable} options. @option{-mrelocatable-lib} may be linked with objects compiled with
any combination of the @option{-mrelocatable} options.
@item -mno-toc @item -mno-toc
@itemx -mtoc @itemx -mtoc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment