aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.1
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-12-02 22:25:50 +0000
committerIan Lance Taylor <ian@airs.com>1994-12-02 22:25:50 +0000
commit39a6e282d1dd53210a534968361aa57b627d7413 (patch)
tree1a8ac1b4ce9380ef8eb7d9647b3c5f0c767d0d74 /ld/ld.1
parent4461196e69bfa64e92dbbf9d7056f78c5d5a8d61 (diff)
downloadgdb-39a6e282d1dd53210a534968361aa57b627d7413.zip
gdb-39a6e282d1dd53210a534968361aa57b627d7413.tar.gz
gdb-39a6e282d1dd53210a534968361aa57b627d7413.tar.bz2
* ld.h (args_type): Add new field embedded_relocs.
* ldemul.h (ldemul_after_open, after_open_default): Declare. (ld_emulation_xfer_struct): Add new field after_open. * ldemul.c (ldemul_after_open): New function. (after_open_default): New function. * ldlang.c (lang_process): Call ldemul_after_open. * lexsup.c (parse_args): Handle --embedded-relocs. * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize new after_open field to after_open_default. * emultempl/generic.em, emultempl/gld960.em: Likewise. * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise. * emultempl/linux.em, emultempl/m88kbcs.em: Likewise. * emultempl/sunos.em, emultempl/vanilla.em: Likewise. * ld.texinfo, ld.1: Mention -embedded-relocs.
Diffstat (limited to 'ld/ld.1')
-rw-r--r--ld/ld.111
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/ld.1 b/ld/ld.1
index 102c8a2..c229710 100644
--- a/ld/ld.1
+++ b/ld/ld.1
@@ -42,6 +42,7 @@ ld \- the GNU linker
.RB "[\|" "\-e\ "\c
.I entry\c
\&\|]
+.RB "[\|" \-embedded\-relocs "\|]"
.RB "[\|" \-F "\|]"
.RB "[\|" "\-F\ "\c
.I format\c
@@ -427,6 +428,16 @@ discussion of defaults and other ways of specifying the
entry point.
.TP
+.B \-embedded\-relocs
+This option is only meaningful when linking MIPS embedded PIC code,
+generated by the
+.B \-membedded\-pic
+option to the GNU compiler and assembler. It causes the linker to
+create a table which may be used at runtime to relocate any data which
+was statically initialized to pointer values. See the code in
+testsuite/ld-empic for details.
+
+.TP
.B \-F
.TP
.BI "-F" "format"\c