aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.1
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-05-22 21:58:40 +0000
committerNick Clifton <nickc@redhat.com>2000-05-22 21:58:40 +0000
commit176355da9935d29e302b00cef227c2c9946492c3 (patch)
treeb359ee540423bdf84b39452b0ee7183e9dd7599e /ld/ld.1
parent5110c57e8e960ab73903ff4e3e1a13fe42012a1f (diff)
downloadgdb-176355da9935d29e302b00cef227c2c9946492c3.zip
gdb-176355da9935d29e302b00cef227c2c9946492c3.tar.gz
gdb-176355da9935d29e302b00cef227c2c9946492c3.tar.bz2
Patch from Thomas de Lellis to implement --section-start
Diffstat (limited to 'ld/ld.1')
-rw-r--r--ld/ld.128
1 files changed, 24 insertions, 4 deletions
diff --git a/ld/ld.1 b/ld/ld.1
index 58516b9..129d91e 100644
--- a/ld/ld.1
+++ b/ld/ld.1
@@ -39,7 +39,7 @@ ld \- the GNU linker
.br
.RB "[\|" "\-defsym\ "\c
.I symbol\c
-\& = \c
+\&=\c
.I expression\c
\&\|]
.RB "[\|" \-\-demangle "\|]"
@@ -122,6 +122,11 @@ ld \- the GNU linker
.RB "[\|" "\-T\ "\c
.I commandfile\c
\&\|]
+.RB "[\|" "\-\-section\-start\ "\c
+.I sectionname\c
+\&=\c
+.I sectionorg\c
+\&\|]
.RB "[\|" "\-Ttext\ "\c
.I textorg\c
\&\|]
@@ -253,8 +258,9 @@ The exceptions\(em\&which may meaningfully be used more than once\(em\&are
.B \-format\c
\&), \c
.B \-defsym\c
-\&,
-\c
+\&, \c
+.B \-\-section\-start\c
+\&, \c
.B \-L\c
\&, \c
.B \-l\c
@@ -454,7 +460,7 @@ specified (\c
\& has the same effect.
.TP
-.BI "-defsym " "symbol" "\fR = \fP" expression
+.BI "-defsym " "symbol" "\fR=\fP" expression
Create a global symbol in the output file, containing the absolute
address given by \c
.I expression\c
@@ -890,6 +896,20 @@ Similar to
but creates a new output section for each input file.
.TP
+.BI "--section-start " "sectionname" "\fR=\fP"org
+Locate a section in the output file at the absolute
+address given by \c
+.I org\c
+\&. \c
+\c
+.I org\c
+\& must be a hexadecimal integer.
+You may use this option as many
+times as necessary to locate multiple sections in the command
+line. If you need more elaborate expressions, consider
+using the linker command language from a script.
+
+.TP
.BI "\-Tbss " "org"\c
.TP
.BI "\-Tdata " "org"\c