Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | ·9c67c1ee46e893ffdf405448354c3dda·26294804·debug·optional·binutils-mingw-w64-i686-dbgsym_2.44-3+12_arm64.deb | 1 | ·9c67c1ee46e893ffdf405448354c3dda·26294804·debug·optional·binutils-mingw-w64-i686-dbgsym_2.44-3+12_arm64.deb |
2 | · | 2 | ·44eba2182ba52373f00255d35cc16640·2698248·devel·optional·binutils-mingw-w64-i686_2.44-3+12_arm64.deb |
3 | ·d575da6067cafc1895021bf2d9008783·28701728·debug·optional·binutils-mingw-w64-ucrt64-dbgsym_2.44-3+12_arm64.deb | 3 | ·d575da6067cafc1895021bf2d9008783·28701728·debug·optional·binutils-mingw-w64-ucrt64-dbgsym_2.44-3+12_arm64.deb |
4 | · | 4 | ·84ad599a9c5dcc46adb7abb7d3c8a2f5·3259148·devel·optional·binutils-mingw-w64-ucrt64_2.44-3+12_arm64.deb |
5 | ·9baec06745c8e45afc853a412de55da7·29235384·debug·optional·binutils-mingw-w64-x86-64-dbgsym_2.44-3+12_arm64.deb | 5 | ·9baec06745c8e45afc853a412de55da7·29235384·debug·optional·binutils-mingw-w64-x86-64-dbgsym_2.44-3+12_arm64.deb |
6 | · | 6 | ·0c049ae9442803dc443d0432357fff79·3262288·devel·optional·binutils-mingw-w64-x86-64_2.44-3+12_arm64.deb |
7 | ·520f4d1d7afbf14321ba98b3ad43d657·149224·devel·optional·binutils-mingw-w64_2.44-3+12_all.deb | 7 | ·520f4d1d7afbf14321ba98b3ad43d657·149224·devel·optional·binutils-mingw-w64_2.44-3+12_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-10-26·18:03:55.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-10-26·18:03:55.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····2016·2024-10-26·18:03:55.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····2016·2024-10-26·18:03:55.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··2696 | 3 | -rw-r--r--···0········0········0··2696040·2024-10-26·18:03:55.000000·data.tar.xz |
Offset 49, 15 lines modified | Offset 49, 15 lines modified | ||
49 | -rw-r--r--···0·root·········(0)·root·········(0)·····7222·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-ar.1.gz | 49 | -rw-r--r--···0·root·········(0)·root·········(0)·····7222·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-ar.1.gz |
50 | -rw-r--r--···0·root·········(0)·root·········(0)····29664·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-as.1.gz | 50 | -rw-r--r--···0·root·········(0)·root·········(0)····29664·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-as.1.gz |
51 | -rw-r--r--···0·root·········(0)·root·········(0)·····3765·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-c++filt.1.gz | 51 | -rw-r--r--···0·root·········(0)·root·········(0)·····3765·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-c++filt.1.gz |
52 | -rw-r--r--···0·root·········(0)·root·········(0)·····5720·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-dlltool.1.gz | 52 | -rw-r--r--···0·root·········(0)·root·········(0)·····5720·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-dlltool.1.gz |
53 | -rw-r--r--···0·root·········(0)·root·········(0)······311·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-dllwrap.1.gz | 53 | -rw-r--r--···0·root·········(0)·root·········(0)······311·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-dllwrap.1.gz |
54 | -rw-r--r--···0·root·········(0)·root·········(0)·····2557·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-elfedit.1.gz | 54 | -rw-r--r--···0·root·········(0)·root·········(0)·····2557·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-elfedit.1.gz |
55 | -rw-r--r--···0·root·········(0)·root·········(0)·····7943·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-gprof.1.gz | 55 | -rw-r--r--···0·root·········(0)·root·········(0)·····7943·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-gprof.1.gz |
56 | -rw-r--r--···0·root·········(0)·root·········(0)····47 | 56 | -rw-r--r--···0·root·········(0)·root·········(0)····47205·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-ld.1.gz |
57 | -rw-r--r--···0·root·········(0)·root·········(0)·····7084·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-nm.1.gz | 57 | -rw-r--r--···0·root·········(0)·root·········(0)·····7084·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-nm.1.gz |
58 | -rw-r--r--···0·root·········(0)·root·········(0)····14200·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-objcopy.1.gz | 58 | -rw-r--r--···0·root·········(0)·root·········(0)····14200·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-objcopy.1.gz |
59 | -rw-r--r--···0·root·········(0)·root·········(0)····14901·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-objdump.1.gz | 59 | -rw-r--r--···0·root·········(0)·root·········(0)····14901·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-objdump.1.gz |
60 | -rw-r--r--···0·root·········(0)·root·········(0)·····2144·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-ranlib.1.gz | 60 | -rw-r--r--···0·root·········(0)·root·········(0)·····2144·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-ranlib.1.gz |
61 | -rw-r--r--···0·root·········(0)·root·········(0)·····8507·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-readelf.1.gz | 61 | -rw-r--r--···0·root·········(0)·root·········(0)·····8507·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-readelf.1.gz |
62 | -rw-r--r--···0·root·········(0)·root·········(0)·····3015·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-size.1.gz | 62 | -rw-r--r--···0·root·········(0)·root·········(0)·····3015·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-size.1.gz |
63 | -rw-r--r--···0·root·········(0)·root·········(0)·····3806·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-strings.1.gz | 63 | -rw-r--r--···0·root·········(0)·root·········(0)·····3806·2024-10-26·18:03:55.000000·./usr/share/man/man1/i686-w64-mingw32-strings.1.gz |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | .\"·-*-·mode:·troff;·coding:·utf-8·-*- | 1 | .\"·-*-·mode:·troff;·coding:·utf-8·-*- |
2 | .\"·Automatically·generated·by·Pod::Man· | 2 | .\"·Automatically·generated·by·Pod::Man·5.0102·(Pod::Simple·3.45) |
3 | .\" | 3 | .\" |
4 | .\"·Standard·preamble: | 4 | .\"·Standard·preamble: |
5 | .\"·======================================================================== | 5 | .\"·======================================================================== |
6 | .de·Sp·\"·Vertical·space·(when·we·can't·use·.PP) | 6 | .de·Sp·\"·Vertical·space·(when·we·can't·use·.PP) |
7 | .if·t·.sp·.5v | 7 | .if·t·.sp·.5v |
8 | .if·n·.sp | 8 | .if·n·.sp |
9 | .. | 9 | .. |
Offset 48, 21 lines modified | Offset 48, 18 lines modified | ||
48 | .········if·!\nF==2·\{\ | 48 | .········if·!\nF==2·\{\ |
49 | .············nr·%·0 | 49 | .············nr·%·0 |
50 | .············nr·F·2 | 50 | .············nr·F·2 |
51 | .········\} | 51 | .········\} |
52 | .····\} | 52 | .····\} |
53 | .\} | 53 | .\} |
54 | .rr·rF | 54 | .rr·rF |
55 | .\" | ||
56 | .\"·Required·to·disable·full·justification·in·groff·1.23.0. | ||
57 | .if·n·.ds·AD·l | ||
58 | .\"·======================================================================== | 55 | .\"·======================================================================== |
59 | .\" | 56 | .\" |
60 | .IX·Title·"LD·1" | 57 | .IX·Title·"LD·1" |
61 | .TH·LD·1·202 | 58 | .TH·LD·1·2024-10-26·binutils-2.44·"GNU·Development·Tools" |
62 | .\"·For·nroff,·turn·off·justification.··Always·turn·off·hyphenation;·it·makes | 59 | .\"·For·nroff,·turn·off·justification.··Always·turn·off·hyphenation;·it·makes |
63 | .\"·way·too·many·mistakes·in·technical·documents. | 60 | .\"·way·too·many·mistakes·in·technical·documents. |
64 | .if·n·.ad·l | 61 | .if·n·.ad·l |
65 | .nh | 62 | .nh |
66 | .SH·NAME | 63 | .SH·NAME |
67 | ld·\-·The·GNU·linker | 64 | ld·\-·The·GNU·linker |
68 | .SH·SYNOPSIS | 65 | .SH·SYNOPSIS |
Offset 71, 15 lines modified | Offset 68, 15 lines modified | ||
71 | .SH·DESCRIPTION | 68 | .SH·DESCRIPTION |
72 | .IX·Header·"DESCRIPTION" | 69 | .IX·Header·"DESCRIPTION" |
73 | \&\fBld\fR·combines·a·number·of·object·and·archive·files,·relocates | 70 | \&\fBld\fR·combines·a·number·of·object·and·archive·files,·relocates |
74 | their·data·and·ties·up·symbol·references.·Usually·the·last·step·in | 71 | their·data·and·ties·up·symbol·references.·Usually·the·last·step·in |
75 | compiling·a·program·is·to·run·\fBld\fR. | 72 | compiling·a·program·is·to·run·\fBld\fR. |
76 | .PP | 73 | .PP |
77 | \&\fBld\fR·accepts·Linker·Command·Language·files·written·in | 74 | \&\fBld\fR·accepts·Linker·Command·Language·files·written·in |
78 | a·superset·of·AT&T | 75 | a·superset·of·AT&T's·Link·Editor·Command·Language·syntax, |
79 | to·provide·explicit·and·total·control·over·the·linking·process. | 76 | to·provide·explicit·and·total·control·over·the·linking·process. |
80 | .PP | 77 | .PP |
81 | This·man·page·does·not·describe·the·command·language;·see·the | 78 | This·man·page·does·not·describe·the·command·language;·see·the |
82 | \&\fBld\fR·entry·in·\f(CW\*(C`info\*(C'\fR·for·full·details·on·the·command | 79 | \&\fBld\fR·entry·in·\f(CW\*(C`info\*(C'\fR·for·full·details·on·the·command |
83 | language·and·on·other·aspects·of·the·GNU·linker. | 80 | language·and·on·other·aspects·of·the·GNU·linker. |
84 | .PP | 81 | .PP |
85 | This·version·of·\fBld\fR·uses·the·general·purpose·BFD·libraries | 82 | This·version·of·\fBld\fR·uses·the·general·purpose·BFD·libraries |
Offset 95, 41 lines modified | Offset 92, 41 lines modified | ||
95 | (or,·in·some·cases,·to·get·an·output·file·in·spite·of·the·error). | 92 | (or,·in·some·cases,·to·get·an·output·file·in·spite·of·the·error). |
96 | .PP | 93 | .PP |
97 | The·GNU·linker·\fBld\fR·is·meant·to·cover·a·broad·range·of·situations, | 94 | The·GNU·linker·\fBld\fR·is·meant·to·cover·a·broad·range·of·situations, |
98 | and·to·be·as·compatible·as·possible·with·other·linkers.··As·a·result, | 95 | and·to·be·as·compatible·as·possible·with·other·linkers.··As·a·result, |
99 | you·have·many·choices·to·control·its·behavior. | 96 | you·have·many·choices·to·control·its·behavior. |
100 | .SH·OPTIONS | 97 | .SH·OPTIONS |
101 | .IX·Header·"OPTIONS" | 98 | .IX·Header·"OPTIONS" |
102 | The·linker·supports·a·plethora·of·command | 99 | The·linker·supports·a·plethora·of·command-line·options,·but·in·actual |
103 | practice·few·of·them·are·used·in·any·particular·context. | 100 | practice·few·of·them·are·used·in·any·particular·context. |
104 | For·instance,·a·frequent·use·of·\fBld\fR·is·to·link·standard·Unix | 101 | For·instance,·a·frequent·use·of·\fBld\fR·is·to·link·standard·Unix |
105 | object·files·on·a·standard,·supported·Unix·system.··On·such·a·system,·to | 102 | object·files·on·a·standard,·supported·Unix·system.··On·such·a·system,·to |
106 | link·a·file·\f(CW\*(C`hello.o\*(C'\fR: | 103 | link·a·file·\f(CW\*(C`hello.o\*(C'\fR: |
107 | .PP | 104 | .PP |
108 | .Vb·1 | 105 | .Vb·1 |
109 | \&········ld·\-o·<output>·/lib/crt0.o·hello.o·\-lc | 106 | \&········ld·\-o·<output>·/lib/crt0.o·hello.o·\-lc |
110 | .Ve | 107 | .Ve |
111 | .PP | 108 | .PP |
112 | This·tells·\fBld\fR·to·produce·a·file·called·\fIoutput\fR·as·the | 109 | This·tells·\fBld\fR·to·produce·a·file·called·\fIoutput\fR·as·the |
113 | result·of·linking·the·file·\f(CW\*(C`/lib/crt0.o\*(C'\fR·with·\f(CW\*(C`hello.o\*(C'\fR·and | 110 | result·of·linking·the·file·\f(CW\*(C`/lib/crt0.o\*(C'\fR·with·\f(CW\*(C`hello.o\*(C'\fR·and |
114 | the·library·\f(CW\*(C`libc.a\*(C'\fR,·which·will·come·from·the·standard·search | 111 | the·library·\f(CW\*(C`libc.a\*(C'\fR,·which·will·come·from·the·standard·search |
115 | directories.··(See·the·discussion·of·the·\fB\-l\fR·option·below.) | 112 | directories.··(See·the·discussion·of·the·\fB\-l\fR·option·below.) |
116 | .PP | 113 | .PP |
117 | Some·of·the·command | 114 | Some·of·the·command-line·options·to·\fBld\fR·may·be·specified·at·any |
118 | point·in·the·command·line.··However,·options·which·refer·to·files,·such | 115 | point·in·the·command·line.··However,·options·which·refer·to·files,·such |
119 | as·\fB\-l\fR·or·\fB\-T\fR,·cause·the·file·to·be·read·at·the·point·at | 116 | as·\fB\-l\fR·or·\fB\-T\fR,·cause·the·file·to·be·read·at·the·point·at |
120 | which·the·option·appears·in·the·command·line,·relative·to·the·object | 117 | which·the·option·appears·in·the·command·line,·relative·to·the·object |
121 | files·and·other·file·options.··Repeating·non | 118 | files·and·other·file·options.··Repeating·non-file·options·with·a |
122 | different·argument·will·either·have·no·further·effect,·or·override·prior | 119 | different·argument·will·either·have·no·further·effect,·or·override·prior |
123 | occurrences·(those·further·to·the·left·on·the·command·line)·of·that | 120 | occurrences·(those·further·to·the·left·on·the·command·line)·of·that |
124 | option.··Options·which·may·be·meaningfully·specified·more·than·once·are | 121 | option.··Options·which·may·be·meaningfully·specified·more·than·once·are |
125 | noted·in·the·descriptions·below. | 122 | noted·in·the·descriptions·below. |
126 | .PP | 123 | .PP |
127 | Non | 124 | Non-option·arguments·are·object·files·or·archives·which·are·to·be·linked |
128 | together.··They·may·follow,·precede,·or·be·mixed·in·with·command | 125 | together.··They·may·follow,·precede,·or·be·mixed·in·with·command-line |
129 | options,·except·that·an·object·file·argument·may·not·be·placed·between | 126 | options,·except·that·an·object·file·argument·may·not·be·placed·between |
130 | an·option·and·its·argument. | 127 | an·option·and·its·argument. |
131 | .PP | 128 | .PP |
132 | Usually·the·linker·is·invoked·with·at·least·one·object·file,·but·you·can | 129 | Usually·the·linker·is·invoked·with·at·least·one·object·file,·but·you·can |
133 | specify·other·forms·of·binary·input·files·using·\fB\-l\fR,·\fB\-R\fR, | 130 | specify·other·forms·of·binary·input·files·using·\fB\-l\fR,·\fB\-R\fR, |
134 | and·the·script·command·language.··If·\fIno\fR·binary·input·files·at·all | 131 | and·the·script·command·language.··If·\fIno\fR·binary·input·files·at·all |
135 | are·specified,·the·linker·does·not·produce·any·output,·and·issues·the | 132 | are·specified,·the·linker·does·not·produce·any·output,·and·issues·the |
Offset 151, 53 lines modified | Offset 148, 53 lines modified | ||
151 | option·arguments·must·either·follow·the·option·letter·without·intervening | 148 | option·arguments·must·either·follow·the·option·letter·without·intervening |
152 | whitespace,·or·be·given·as·separate·arguments·immediately·following·the | 149 | whitespace,·or·be·given·as·separate·arguments·immediately·following·the |
153 | option·that·requires·them. | 150 | option·that·requires·them. |
154 | .PP | 151 | .PP |
155 | For·options·whose·names·are·multiple·letters,·either·one·dash·or·two·can | 152 | For·options·whose·names·are·multiple·letters,·either·one·dash·or·two·can |
156 | precede·the·option·name;·for·example,·\fB\-trace\-symbol\fR·and | 153 | precede·the·option·name;·for·example,·\fB\-trace\-symbol\fR·and |
157 | \&\fB\-\-trace\-symbol\fR·are·equivalent.··Note\-\-\-there·is·one·exception·to | 154 | \&\fB\-\-trace\-symbol\fR·are·equivalent.··Note\-\-\-there·is·one·exception·to |
158 | this·rule.··Multiple·letter·options·that·start·with·a·lower·case· | 155 | this·rule.··Multiple·letter·options·that·start·with·a·lower·case·'o'·can |
159 | only·be·preceded·by·two·dashes.··This·is·to·reduce·confusion·with·the | 156 | only·be·preceded·by·two·dashes.··This·is·to·reduce·confusion·with·the |
160 | \&\fB\-o\fR·option.··So·for·example·\fB\-omagic\fR·sets·the·output·file | 157 | \&\fB\-o\fR·option.··So·for·example·\fB\-omagic\fR·sets·the·output·file |
161 | name·to·\fBmagic\fR·whereas·\fB\-\-omagic\fR·sets·the·NMAGIC·flag·on·the | 158 | name·to·\fBmagic\fR·whereas·\fB\-\-omagic\fR·sets·the·NMAGIC·flag·on·the |
162 | output. | 159 | output. |
163 | .PP | 160 | .PP |
164 | Arguments·to·multiple | 161 | Arguments·to·multiple-letter·options·must·either·be·separated·from·the |
165 | option·name·by·an·equals·sign,·or·be·given·as·separate·arguments | 162 | option·name·by·an·equals·sign,·or·be·given·as·separate·arguments |
166 | immediately·following·the·option·that·requires·them.··For·example, | 163 | immediately·following·the·option·that·requires·them.··For·example, |
167 | \&\fB\-\-trace\-symbol·foo\fR·and·\fB\-\-trace\-symbol=foo\fR·are·equivalent. | 164 | \&\fB\-\-trace\-symbol·foo\fR·and·\fB\-\-trace\-symbol=foo\fR·are·equivalent. |
168 | Unique·abbreviations·of·the·names·of·multiple | 165 | Unique·abbreviations·of·the·names·of·multiple-letter·options·are |
169 | accepted. | 166 | accepted. |
170 | .PP | 167 | .PP |
171 | Note\-\-\-if·the·linker·is·being·invoked·indirectly,·via·a·compiler·driver | 168 | Note\-\-\-if·the·linker·is·being·invoked·indirectly,·via·a·compiler·driver |
172 | (e.g.·\fBgcc\fR)·then·all·the·linker·command | 169 | (e.g.·\fBgcc\fR)·then·all·the·linker·command-line·options·should·be |
173 | prefixed·by·\fB\-Wl,\fR·(or·whatever·is·appropriate·for·the·particular | 170 | prefixed·by·\fB\-Wl,\fR·(or·whatever·is·appropriate·for·the·particular |
174 | compiler·driver)·like·this: | 171 | compiler·driver)·like·this: |
175 | .PP | 172 | .PP |
176 | .Vb·1 | 173 | .Vb·1 |
177 | \&··········gcc·\-Wl,\-\-start\-group·foo.o·bar.o·\-Wl,\-\-end\-group | 174 | \&··········gcc·\-Wl,\-\-start\-group·foo.o·bar.o·\-Wl,\-\-end\-group |
178 | .Ve | 175 | .Ve |
179 | .PP | 176 | .PP |
180 | This·is·important,·because·otherwise·the·compiler·driver·program·may | 177 | This·is·important,·because·otherwise·the·compiler·driver·program·may |
181 | silently·drop·the·linker·options,·resulting·in·a·bad·link.··Confusion | 178 | silently·drop·the·linker·options,·resulting·in·a·bad·link.··Confusion |
182 | may·also·arise·when·passing·options·that·require·values·through·a | 179 | may·also·arise·when·passing·options·that·require·values·through·a |
183 | driver,·as·the·use·of·a·space·between·option·and·argument·acts·as | 180 | driver,·as·the·use·of·a·space·between·option·and·argument·acts·as |
184 | a·separator,·and·causes·the·driver·to·pass·only·the·option·to·the·linker | 181 | a·separator,·and·causes·the·driver·to·pass·only·the·option·to·the·linker |
185 | and·the·argument·to·the·compiler.··In·this·case,·it·is·simplest·to·use | 182 | and·the·argument·to·the·compiler.··In·this·case,·it·is·simplest·to·use |
186 | the·joined·forms·of·both·single\-·and·multiple | 183 | the·joined·forms·of·both·single\-·and·multiple-letter·options,·such·as: |
187 | .PP | 184 | .PP |
Max diff block lines reached; 89960/96532 bytes (93.19%) of diff not shown. |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-10-26·18:03:55.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-10-26·18:03:55.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····205 | 2 | -rw-r--r--···0········0········0·····2052·2024-10-26·18:03:55.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··325 | 3 | -rw-r--r--···0········0········0··3256904·2024-10-26·18:03:55.000000·data.tar.xz |
Offset 35, 15 lines modified | Offset 35, 15 lines modified | ||
35 | -rw-r--r--···0·root·········(0)·root·········(0)·····7222·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-ar.1.gz | 35 | -rw-r--r--···0·root·········(0)·root·········(0)·····7222·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-ar.1.gz |
36 | -rw-r--r--···0·root·········(0)·root·········(0)····29664·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-as.1.gz | 36 | -rw-r--r--···0·root·········(0)·root·········(0)····29664·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-as.1.gz |
37 | -rw-r--r--···0·root·········(0)·root·········(0)·····3765·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-c++filt.1.gz | 37 | -rw-r--r--···0·root·········(0)·root·········(0)·····3765·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-c++filt.1.gz |
38 | -rw-r--r--···0·root·········(0)·root·········(0)·····5720·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-dlltool.1.gz | 38 | -rw-r--r--···0·root·········(0)·root·········(0)·····5720·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-dlltool.1.gz |
39 | -rw-r--r--···0·root·········(0)·root·········(0)······311·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-dllwrap.1.gz | 39 | -rw-r--r--···0·root·········(0)·root·········(0)······311·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-dllwrap.1.gz |
40 | -rw-r--r--···0·root·········(0)·root·········(0)·····2557·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-elfedit.1.gz | 40 | -rw-r--r--···0·root·········(0)·root·········(0)·····2557·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-elfedit.1.gz |
41 | -rw-r--r--···0·root·········(0)·root·········(0)·····7943·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-gprof.1.gz | 41 | -rw-r--r--···0·root·········(0)·root·········(0)·····7943·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-gprof.1.gz |
42 | -rw-r--r--···0·root·········(0)·root·········(0)····47 | 42 | -rw-r--r--···0·root·········(0)·root·········(0)····47205·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-ld.1.gz |
43 | -rw-r--r--···0·root·········(0)·root·········(0)·····7084·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-nm.1.gz | 43 | -rw-r--r--···0·root·········(0)·root·········(0)·····7084·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-nm.1.gz |
44 | -rw-r--r--···0·root·········(0)·root·········(0)····14200·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-objcopy.1.gz | 44 | -rw-r--r--···0·root·········(0)·root·········(0)····14200·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-objcopy.1.gz |
45 | -rw-r--r--···0·root·········(0)·root·········(0)····14901·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-objdump.1.gz | 45 | -rw-r--r--···0·root·········(0)·root·········(0)····14901·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-objdump.1.gz |
46 | -rw-r--r--···0·root·········(0)·root·········(0)·····2144·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-ranlib.1.gz | 46 | -rw-r--r--···0·root·········(0)·root·········(0)·····2144·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-ranlib.1.gz |
47 | -rw-r--r--···0·root·········(0)·root·········(0)·····8507·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-readelf.1.gz | 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····8507·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-readelf.1.gz |
48 | -rw-r--r--···0·root·········(0)·root·········(0)·····3015·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-size.1.gz | 48 | -rw-r--r--···0·root·········(0)·root·········(0)·····3015·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-size.1.gz |
49 | -rw-r--r--···0·root·········(0)·root·········(0)·····3806·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-strings.1.gz | 49 | -rw-r--r--···0·root·········(0)·root·········(0)·····3806·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32ucrt-strings.1.gz |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | .\"·-*-·mode:·troff;·coding:·utf-8·-*- | 1 | .\"·-*-·mode:·troff;·coding:·utf-8·-*- |
2 | .\"·Automatically·generated·by·Pod::Man· | 2 | .\"·Automatically·generated·by·Pod::Man·5.0102·(Pod::Simple·3.45) |
3 | .\" | 3 | .\" |
4 | .\"·Standard·preamble: | 4 | .\"·Standard·preamble: |
5 | .\"·======================================================================== | 5 | .\"·======================================================================== |
6 | .de·Sp·\"·Vertical·space·(when·we·can't·use·.PP) | 6 | .de·Sp·\"·Vertical·space·(when·we·can't·use·.PP) |
7 | .if·t·.sp·.5v | 7 | .if·t·.sp·.5v |
8 | .if·n·.sp | 8 | .if·n·.sp |
9 | .. | 9 | .. |
Offset 48, 21 lines modified | Offset 48, 18 lines modified | ||
48 | .········if·!\nF==2·\{\ | 48 | .········if·!\nF==2·\{\ |
49 | .············nr·%·0 | 49 | .············nr·%·0 |
50 | .············nr·F·2 | 50 | .············nr·F·2 |
51 | .········\} | 51 | .········\} |
52 | .····\} | 52 | .····\} |
53 | .\} | 53 | .\} |
54 | .rr·rF | 54 | .rr·rF |
55 | .\" | ||
56 | .\"·Required·to·disable·full·justification·in·groff·1.23.0. | ||
57 | .if·n·.ds·AD·l | ||
58 | .\"·======================================================================== | 55 | .\"·======================================================================== |
59 | .\" | 56 | .\" |
60 | .IX·Title·"LD·1" | 57 | .IX·Title·"LD·1" |
61 | .TH·LD·1·202 | 58 | .TH·LD·1·2024-10-26·binutils-2.44·"GNU·Development·Tools" |
62 | .\"·For·nroff,·turn·off·justification.··Always·turn·off·hyphenation;·it·makes | 59 | .\"·For·nroff,·turn·off·justification.··Always·turn·off·hyphenation;·it·makes |
63 | .\"·way·too·many·mistakes·in·technical·documents. | 60 | .\"·way·too·many·mistakes·in·technical·documents. |
64 | .if·n·.ad·l | 61 | .if·n·.ad·l |
65 | .nh | 62 | .nh |
66 | .SH·NAME | 63 | .SH·NAME |
67 | ld·\-·The·GNU·linker | 64 | ld·\-·The·GNU·linker |
68 | .SH·SYNOPSIS | 65 | .SH·SYNOPSIS |
Offset 71, 15 lines modified | Offset 68, 15 lines modified | ||
71 | .SH·DESCRIPTION | 68 | .SH·DESCRIPTION |
72 | .IX·Header·"DESCRIPTION" | 69 | .IX·Header·"DESCRIPTION" |
73 | \&\fBld\fR·combines·a·number·of·object·and·archive·files,·relocates | 70 | \&\fBld\fR·combines·a·number·of·object·and·archive·files,·relocates |
74 | their·data·and·ties·up·symbol·references.·Usually·the·last·step·in | 71 | their·data·and·ties·up·symbol·references.·Usually·the·last·step·in |
75 | compiling·a·program·is·to·run·\fBld\fR. | 72 | compiling·a·program·is·to·run·\fBld\fR. |
76 | .PP | 73 | .PP |
77 | \&\fBld\fR·accepts·Linker·Command·Language·files·written·in | 74 | \&\fBld\fR·accepts·Linker·Command·Language·files·written·in |
78 | a·superset·of·AT&T | 75 | a·superset·of·AT&T's·Link·Editor·Command·Language·syntax, |
79 | to·provide·explicit·and·total·control·over·the·linking·process. | 76 | to·provide·explicit·and·total·control·over·the·linking·process. |
80 | .PP | 77 | .PP |
81 | This·man·page·does·not·describe·the·command·language;·see·the | 78 | This·man·page·does·not·describe·the·command·language;·see·the |
82 | \&\fBld\fR·entry·in·\f(CW\*(C`info\*(C'\fR·for·full·details·on·the·command | 79 | \&\fBld\fR·entry·in·\f(CW\*(C`info\*(C'\fR·for·full·details·on·the·command |
83 | language·and·on·other·aspects·of·the·GNU·linker. | 80 | language·and·on·other·aspects·of·the·GNU·linker. |
84 | .PP | 81 | .PP |
85 | This·version·of·\fBld\fR·uses·the·general·purpose·BFD·libraries | 82 | This·version·of·\fBld\fR·uses·the·general·purpose·BFD·libraries |
Offset 95, 41 lines modified | Offset 92, 41 lines modified | ||
95 | (or,·in·some·cases,·to·get·an·output·file·in·spite·of·the·error). | 92 | (or,·in·some·cases,·to·get·an·output·file·in·spite·of·the·error). |
96 | .PP | 93 | .PP |
97 | The·GNU·linker·\fBld\fR·is·meant·to·cover·a·broad·range·of·situations, | 94 | The·GNU·linker·\fBld\fR·is·meant·to·cover·a·broad·range·of·situations, |
98 | and·to·be·as·compatible·as·possible·with·other·linkers.··As·a·result, | 95 | and·to·be·as·compatible·as·possible·with·other·linkers.··As·a·result, |
99 | you·have·many·choices·to·control·its·behavior. | 96 | you·have·many·choices·to·control·its·behavior. |
100 | .SH·OPTIONS | 97 | .SH·OPTIONS |
101 | .IX·Header·"OPTIONS" | 98 | .IX·Header·"OPTIONS" |
102 | The·linker·supports·a·plethora·of·command | 99 | The·linker·supports·a·plethora·of·command-line·options,·but·in·actual |
103 | practice·few·of·them·are·used·in·any·particular·context. | 100 | practice·few·of·them·are·used·in·any·particular·context. |
104 | For·instance,·a·frequent·use·of·\fBld\fR·is·to·link·standard·Unix | 101 | For·instance,·a·frequent·use·of·\fBld\fR·is·to·link·standard·Unix |
105 | object·files·on·a·standard,·supported·Unix·system.··On·such·a·system,·to | 102 | object·files·on·a·standard,·supported·Unix·system.··On·such·a·system,·to |
106 | link·a·file·\f(CW\*(C`hello.o\*(C'\fR: | 103 | link·a·file·\f(CW\*(C`hello.o\*(C'\fR: |
107 | .PP | 104 | .PP |
108 | .Vb·1 | 105 | .Vb·1 |
109 | \&········ld·\-o·<output>·/lib/crt0.o·hello.o·\-lc | 106 | \&········ld·\-o·<output>·/lib/crt0.o·hello.o·\-lc |
110 | .Ve | 107 | .Ve |
111 | .PP | 108 | .PP |
112 | This·tells·\fBld\fR·to·produce·a·file·called·\fIoutput\fR·as·the | 109 | This·tells·\fBld\fR·to·produce·a·file·called·\fIoutput\fR·as·the |
113 | result·of·linking·the·file·\f(CW\*(C`/lib/crt0.o\*(C'\fR·with·\f(CW\*(C`hello.o\*(C'\fR·and | 110 | result·of·linking·the·file·\f(CW\*(C`/lib/crt0.o\*(C'\fR·with·\f(CW\*(C`hello.o\*(C'\fR·and |
114 | the·library·\f(CW\*(C`libc.a\*(C'\fR,·which·will·come·from·the·standard·search | 111 | the·library·\f(CW\*(C`libc.a\*(C'\fR,·which·will·come·from·the·standard·search |
115 | directories.··(See·the·discussion·of·the·\fB\-l\fR·option·below.) | 112 | directories.··(See·the·discussion·of·the·\fB\-l\fR·option·below.) |
116 | .PP | 113 | .PP |
117 | Some·of·the·command | 114 | Some·of·the·command-line·options·to·\fBld\fR·may·be·specified·at·any |
118 | point·in·the·command·line.··However,·options·which·refer·to·files,·such | 115 | point·in·the·command·line.··However,·options·which·refer·to·files,·such |
119 | as·\fB\-l\fR·or·\fB\-T\fR,·cause·the·file·to·be·read·at·the·point·at | 116 | as·\fB\-l\fR·or·\fB\-T\fR,·cause·the·file·to·be·read·at·the·point·at |
120 | which·the·option·appears·in·the·command·line,·relative·to·the·object | 117 | which·the·option·appears·in·the·command·line,·relative·to·the·object |
121 | files·and·other·file·options.··Repeating·non | 118 | files·and·other·file·options.··Repeating·non-file·options·with·a |
122 | different·argument·will·either·have·no·further·effect,·or·override·prior | 119 | different·argument·will·either·have·no·further·effect,·or·override·prior |
123 | occurrences·(those·further·to·the·left·on·the·command·line)·of·that | 120 | occurrences·(those·further·to·the·left·on·the·command·line)·of·that |
124 | option.··Options·which·may·be·meaningfully·specified·more·than·once·are | 121 | option.··Options·which·may·be·meaningfully·specified·more·than·once·are |
125 | noted·in·the·descriptions·below. | 122 | noted·in·the·descriptions·below. |
126 | .PP | 123 | .PP |
127 | Non | 124 | Non-option·arguments·are·object·files·or·archives·which·are·to·be·linked |
128 | together.··They·may·follow,·precede,·or·be·mixed·in·with·command | 125 | together.··They·may·follow,·precede,·or·be·mixed·in·with·command-line |
129 | options,·except·that·an·object·file·argument·may·not·be·placed·between | 126 | options,·except·that·an·object·file·argument·may·not·be·placed·between |
130 | an·option·and·its·argument. | 127 | an·option·and·its·argument. |
131 | .PP | 128 | .PP |
132 | Usually·the·linker·is·invoked·with·at·least·one·object·file,·but·you·can | 129 | Usually·the·linker·is·invoked·with·at·least·one·object·file,·but·you·can |
133 | specify·other·forms·of·binary·input·files·using·\fB\-l\fR,·\fB\-R\fR, | 130 | specify·other·forms·of·binary·input·files·using·\fB\-l\fR,·\fB\-R\fR, |
134 | and·the·script·command·language.··If·\fIno\fR·binary·input·files·at·all | 131 | and·the·script·command·language.··If·\fIno\fR·binary·input·files·at·all |
135 | are·specified,·the·linker·does·not·produce·any·output,·and·issues·the | 132 | are·specified,·the·linker·does·not·produce·any·output,·and·issues·the |
Offset 151, 53 lines modified | Offset 148, 53 lines modified | ||
151 | option·arguments·must·either·follow·the·option·letter·without·intervening | 148 | option·arguments·must·either·follow·the·option·letter·without·intervening |
152 | whitespace,·or·be·given·as·separate·arguments·immediately·following·the | 149 | whitespace,·or·be·given·as·separate·arguments·immediately·following·the |
153 | option·that·requires·them. | 150 | option·that·requires·them. |
154 | .PP | 151 | .PP |
155 | For·options·whose·names·are·multiple·letters,·either·one·dash·or·two·can | 152 | For·options·whose·names·are·multiple·letters,·either·one·dash·or·two·can |
156 | precede·the·option·name;·for·example,·\fB\-trace\-symbol\fR·and | 153 | precede·the·option·name;·for·example,·\fB\-trace\-symbol\fR·and |
157 | \&\fB\-\-trace\-symbol\fR·are·equivalent.··Note\-\-\-there·is·one·exception·to | 154 | \&\fB\-\-trace\-symbol\fR·are·equivalent.··Note\-\-\-there·is·one·exception·to |
158 | this·rule.··Multiple·letter·options·that·start·with·a·lower·case· | 155 | this·rule.··Multiple·letter·options·that·start·with·a·lower·case·'o'·can |
159 | only·be·preceded·by·two·dashes.··This·is·to·reduce·confusion·with·the | 156 | only·be·preceded·by·two·dashes.··This·is·to·reduce·confusion·with·the |
160 | \&\fB\-o\fR·option.··So·for·example·\fB\-omagic\fR·sets·the·output·file | 157 | \&\fB\-o\fR·option.··So·for·example·\fB\-omagic\fR·sets·the·output·file |
161 | name·to·\fBmagic\fR·whereas·\fB\-\-omagic\fR·sets·the·NMAGIC·flag·on·the | 158 | name·to·\fBmagic\fR·whereas·\fB\-\-omagic\fR·sets·the·NMAGIC·flag·on·the |
162 | output. | 159 | output. |
163 | .PP | 160 | .PP |
164 | Arguments·to·multiple | 161 | Arguments·to·multiple-letter·options·must·either·be·separated·from·the |
165 | option·name·by·an·equals·sign,·or·be·given·as·separate·arguments | 162 | option·name·by·an·equals·sign,·or·be·given·as·separate·arguments |
166 | immediately·following·the·option·that·requires·them.··For·example, | 163 | immediately·following·the·option·that·requires·them.··For·example, |
167 | \&\fB\-\-trace\-symbol·foo\fR·and·\fB\-\-trace\-symbol=foo\fR·are·equivalent. | 164 | \&\fB\-\-trace\-symbol·foo\fR·and·\fB\-\-trace\-symbol=foo\fR·are·equivalent. |
168 | Unique·abbreviations·of·the·names·of·multiple | 165 | Unique·abbreviations·of·the·names·of·multiple-letter·options·are |
169 | accepted. | 166 | accepted. |
170 | .PP | 167 | .PP |
171 | Note\-\-\-if·the·linker·is·being·invoked·indirectly,·via·a·compiler·driver | 168 | Note\-\-\-if·the·linker·is·being·invoked·indirectly,·via·a·compiler·driver |
172 | (e.g.·\fBgcc\fR)·then·all·the·linker·command | 169 | (e.g.·\fBgcc\fR)·then·all·the·linker·command-line·options·should·be |
173 | prefixed·by·\fB\-Wl,\fR·(or·whatever·is·appropriate·for·the·particular | 170 | prefixed·by·\fB\-Wl,\fR·(or·whatever·is·appropriate·for·the·particular |
174 | compiler·driver)·like·this: | 171 | compiler·driver)·like·this: |
175 | .PP | 172 | .PP |
176 | .Vb·1 | 173 | .Vb·1 |
177 | \&··········gcc·\-Wl,\-\-start\-group·foo.o·bar.o·\-Wl,\-\-end\-group | 174 | \&··········gcc·\-Wl,\-\-start\-group·foo.o·bar.o·\-Wl,\-\-end\-group |
178 | .Ve | 175 | .Ve |
179 | .PP | 176 | .PP |
180 | This·is·important,·because·otherwise·the·compiler·driver·program·may | 177 | This·is·important,·because·otherwise·the·compiler·driver·program·may |
181 | silently·drop·the·linker·options,·resulting·in·a·bad·link.··Confusion | 178 | silently·drop·the·linker·options,·resulting·in·a·bad·link.··Confusion |
182 | may·also·arise·when·passing·options·that·require·values·through·a | 179 | may·also·arise·when·passing·options·that·require·values·through·a |
183 | driver,·as·the·use·of·a·space·between·option·and·argument·acts·as | 180 | driver,·as·the·use·of·a·space·between·option·and·argument·acts·as |
184 | a·separator,·and·causes·the·driver·to·pass·only·the·option·to·the·linker | 181 | a·separator,·and·causes·the·driver·to·pass·only·the·option·to·the·linker |
185 | and·the·argument·to·the·compiler.··In·this·case,·it·is·simplest·to·use | 182 | and·the·argument·to·the·compiler.··In·this·case,·it·is·simplest·to·use |
186 | the·joined·forms·of·both·single\-·and·multiple | 183 | the·joined·forms·of·both·single\-·and·multiple-letter·options,·such·as: |
187 | .PP | 184 | .PP |
Max diff block lines reached; 89960/96532 bytes (93.19%) of diff not shown. |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-10-26·18:03:55.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-10-26·18:03:55.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····2004·2024-10-26·18:03:55.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····2004·2024-10-26·18:03:55.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··3260 | 3 | -rw-r--r--···0········0········0··3260092·2024-10-26·18:03:55.000000·data.tar.xz |
Offset 35, 15 lines modified | Offset 35, 15 lines modified | ||
35 | -rw-r--r--···0·root·········(0)·root·········(0)·····7222·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-ar.1.gz | 35 | -rw-r--r--···0·root·········(0)·root·········(0)·····7222·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-ar.1.gz |
36 | -rw-r--r--···0·root·········(0)·root·········(0)····29664·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-as.1.gz | 36 | -rw-r--r--···0·root·········(0)·root·········(0)····29664·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-as.1.gz |
37 | -rw-r--r--···0·root·········(0)·root·········(0)·····3765·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-c++filt.1.gz | 37 | -rw-r--r--···0·root·········(0)·root·········(0)·····3765·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-c++filt.1.gz |
38 | -rw-r--r--···0·root·········(0)·root·········(0)·····5720·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-dlltool.1.gz | 38 | -rw-r--r--···0·root·········(0)·root·········(0)·····5720·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-dlltool.1.gz |
39 | -rw-r--r--···0·root·········(0)·root·········(0)······311·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-dllwrap.1.gz | 39 | -rw-r--r--···0·root·········(0)·root·········(0)······311·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-dllwrap.1.gz |
40 | -rw-r--r--···0·root·········(0)·root·········(0)·····2557·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-elfedit.1.gz | 40 | -rw-r--r--···0·root·········(0)·root·········(0)·····2557·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-elfedit.1.gz |
41 | -rw-r--r--···0·root·········(0)·root·········(0)·····7943·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-gprof.1.gz | 41 | -rw-r--r--···0·root·········(0)·root·········(0)·····7943·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-gprof.1.gz |
42 | -rw-r--r--···0·root·········(0)·root·········(0)····47 | 42 | -rw-r--r--···0·root·········(0)·root·········(0)····47205·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-ld.1.gz |
43 | -rw-r--r--···0·root·········(0)·root·········(0)·····7084·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-nm.1.gz | 43 | -rw-r--r--···0·root·········(0)·root·········(0)·····7084·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-nm.1.gz |
44 | -rw-r--r--···0·root·········(0)·root·········(0)····14200·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-objcopy.1.gz | 44 | -rw-r--r--···0·root·········(0)·root·········(0)····14200·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-objcopy.1.gz |
45 | -rw-r--r--···0·root·········(0)·root·········(0)····14901·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-objdump.1.gz | 45 | -rw-r--r--···0·root·········(0)·root·········(0)····14901·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-objdump.1.gz |
46 | -rw-r--r--···0·root·········(0)·root·········(0)·····2144·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-ranlib.1.gz | 46 | -rw-r--r--···0·root·········(0)·root·········(0)·····2144·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-ranlib.1.gz |
47 | -rw-r--r--···0·root·········(0)·root·········(0)·····8507·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-readelf.1.gz | 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····8507·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-readelf.1.gz |
48 | -rw-r--r--···0·root·········(0)·root·········(0)·····3015·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-size.1.gz | 48 | -rw-r--r--···0·root·········(0)·root·········(0)·····3015·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-size.1.gz |
49 | -rw-r--r--···0·root·········(0)·root·········(0)·····3806·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-strings.1.gz | 49 | -rw-r--r--···0·root·········(0)·root·········(0)·····3806·2024-10-26·18:03:55.000000·./usr/share/man/man1/x86_64-w64-mingw32-strings.1.gz |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | .\"·-*-·mode:·troff;·coding:·utf-8·-*- | 1 | .\"·-*-·mode:·troff;·coding:·utf-8·-*- |
2 | .\"·Automatically·generated·by·Pod::Man· | 2 | .\"·Automatically·generated·by·Pod::Man·5.0102·(Pod::Simple·3.45) |
3 | .\" | 3 | .\" |
4 | .\"·Standard·preamble: | 4 | .\"·Standard·preamble: |
5 | .\"·======================================================================== | 5 | .\"·======================================================================== |
6 | .de·Sp·\"·Vertical·space·(when·we·can't·use·.PP) | 6 | .de·Sp·\"·Vertical·space·(when·we·can't·use·.PP) |
7 | .if·t·.sp·.5v | 7 | .if·t·.sp·.5v |
8 | .if·n·.sp | 8 | .if·n·.sp |
9 | .. | 9 | .. |
Offset 48, 21 lines modified | Offset 48, 18 lines modified | ||
48 | .········if·!\nF==2·\{\ | 48 | .········if·!\nF==2·\{\ |
49 | .············nr·%·0 | 49 | .············nr·%·0 |
50 | .············nr·F·2 | 50 | .············nr·F·2 |
51 | .········\} | 51 | .········\} |
52 | .····\} | 52 | .····\} |
53 | .\} | 53 | .\} |
54 | .rr·rF | 54 | .rr·rF |
55 | .\" | ||
56 | .\"·Required·to·disable·full·justification·in·groff·1.23.0. | ||
57 | .if·n·.ds·AD·l | ||
58 | .\"·======================================================================== | 55 | .\"·======================================================================== |
59 | .\" | 56 | .\" |
60 | .IX·Title·"LD·1" | 57 | .IX·Title·"LD·1" |
61 | .TH·LD·1·202 | 58 | .TH·LD·1·2024-10-26·binutils-2.44·"GNU·Development·Tools" |
62 | .\"·For·nroff,·turn·off·justification.··Always·turn·off·hyphenation;·it·makes | 59 | .\"·For·nroff,·turn·off·justification.··Always·turn·off·hyphenation;·it·makes |
63 | .\"·way·too·many·mistakes·in·technical·documents. | 60 | .\"·way·too·many·mistakes·in·technical·documents. |
64 | .if·n·.ad·l | 61 | .if·n·.ad·l |
65 | .nh | 62 | .nh |
66 | .SH·NAME | 63 | .SH·NAME |
67 | ld·\-·The·GNU·linker | 64 | ld·\-·The·GNU·linker |
68 | .SH·SYNOPSIS | 65 | .SH·SYNOPSIS |
Offset 71, 15 lines modified | Offset 68, 15 lines modified | ||
71 | .SH·DESCRIPTION | 68 | .SH·DESCRIPTION |
72 | .IX·Header·"DESCRIPTION" | 69 | .IX·Header·"DESCRIPTION" |
73 | \&\fBld\fR·combines·a·number·of·object·and·archive·files,·relocates | 70 | \&\fBld\fR·combines·a·number·of·object·and·archive·files,·relocates |
74 | their·data·and·ties·up·symbol·references.·Usually·the·last·step·in | 71 | their·data·and·ties·up·symbol·references.·Usually·the·last·step·in |
75 | compiling·a·program·is·to·run·\fBld\fR. | 72 | compiling·a·program·is·to·run·\fBld\fR. |
76 | .PP | 73 | .PP |
77 | \&\fBld\fR·accepts·Linker·Command·Language·files·written·in | 74 | \&\fBld\fR·accepts·Linker·Command·Language·files·written·in |
78 | a·superset·of·AT&T | 75 | a·superset·of·AT&T's·Link·Editor·Command·Language·syntax, |
79 | to·provide·explicit·and·total·control·over·the·linking·process. | 76 | to·provide·explicit·and·total·control·over·the·linking·process. |
80 | .PP | 77 | .PP |
81 | This·man·page·does·not·describe·the·command·language;·see·the | 78 | This·man·page·does·not·describe·the·command·language;·see·the |
82 | \&\fBld\fR·entry·in·\f(CW\*(C`info\*(C'\fR·for·full·details·on·the·command | 79 | \&\fBld\fR·entry·in·\f(CW\*(C`info\*(C'\fR·for·full·details·on·the·command |
83 | language·and·on·other·aspects·of·the·GNU·linker. | 80 | language·and·on·other·aspects·of·the·GNU·linker. |
84 | .PP | 81 | .PP |
85 | This·version·of·\fBld\fR·uses·the·general·purpose·BFD·libraries | 82 | This·version·of·\fBld\fR·uses·the·general·purpose·BFD·libraries |
Offset 95, 41 lines modified | Offset 92, 41 lines modified | ||
95 | (or,·in·some·cases,·to·get·an·output·file·in·spite·of·the·error). | 92 | (or,·in·some·cases,·to·get·an·output·file·in·spite·of·the·error). |
96 | .PP | 93 | .PP |
97 | The·GNU·linker·\fBld\fR·is·meant·to·cover·a·broad·range·of·situations, | 94 | The·GNU·linker·\fBld\fR·is·meant·to·cover·a·broad·range·of·situations, |
98 | and·to·be·as·compatible·as·possible·with·other·linkers.··As·a·result, | 95 | and·to·be·as·compatible·as·possible·with·other·linkers.··As·a·result, |
99 | you·have·many·choices·to·control·its·behavior. | 96 | you·have·many·choices·to·control·its·behavior. |
100 | .SH·OPTIONS | 97 | .SH·OPTIONS |
101 | .IX·Header·"OPTIONS" | 98 | .IX·Header·"OPTIONS" |
102 | The·linker·supports·a·plethora·of·command | 99 | The·linker·supports·a·plethora·of·command-line·options,·but·in·actual |
103 | practice·few·of·them·are·used·in·any·particular·context. | 100 | practice·few·of·them·are·used·in·any·particular·context. |
104 | For·instance,·a·frequent·use·of·\fBld\fR·is·to·link·standard·Unix | 101 | For·instance,·a·frequent·use·of·\fBld\fR·is·to·link·standard·Unix |
105 | object·files·on·a·standard,·supported·Unix·system.··On·such·a·system,·to | 102 | object·files·on·a·standard,·supported·Unix·system.··On·such·a·system,·to |
106 | link·a·file·\f(CW\*(C`hello.o\*(C'\fR: | 103 | link·a·file·\f(CW\*(C`hello.o\*(C'\fR: |
107 | .PP | 104 | .PP |
108 | .Vb·1 | 105 | .Vb·1 |
109 | \&········ld·\-o·<output>·/lib/crt0.o·hello.o·\-lc | 106 | \&········ld·\-o·<output>·/lib/crt0.o·hello.o·\-lc |
110 | .Ve | 107 | .Ve |
111 | .PP | 108 | .PP |
112 | This·tells·\fBld\fR·to·produce·a·file·called·\fIoutput\fR·as·the | 109 | This·tells·\fBld\fR·to·produce·a·file·called·\fIoutput\fR·as·the |
113 | result·of·linking·the·file·\f(CW\*(C`/lib/crt0.o\*(C'\fR·with·\f(CW\*(C`hello.o\*(C'\fR·and | 110 | result·of·linking·the·file·\f(CW\*(C`/lib/crt0.o\*(C'\fR·with·\f(CW\*(C`hello.o\*(C'\fR·and |
114 | the·library·\f(CW\*(C`libc.a\*(C'\fR,·which·will·come·from·the·standard·search | 111 | the·library·\f(CW\*(C`libc.a\*(C'\fR,·which·will·come·from·the·standard·search |
115 | directories.··(See·the·discussion·of·the·\fB\-l\fR·option·below.) | 112 | directories.··(See·the·discussion·of·the·\fB\-l\fR·option·below.) |
116 | .PP | 113 | .PP |
117 | Some·of·the·command | 114 | Some·of·the·command-line·options·to·\fBld\fR·may·be·specified·at·any |
118 | point·in·the·command·line.··However,·options·which·refer·to·files,·such | 115 | point·in·the·command·line.··However,·options·which·refer·to·files,·such |
119 | as·\fB\-l\fR·or·\fB\-T\fR,·cause·the·file·to·be·read·at·the·point·at | 116 | as·\fB\-l\fR·or·\fB\-T\fR,·cause·the·file·to·be·read·at·the·point·at |
120 | which·the·option·appears·in·the·command·line,·relative·to·the·object | 117 | which·the·option·appears·in·the·command·line,·relative·to·the·object |
121 | files·and·other·file·options.··Repeating·non | 118 | files·and·other·file·options.··Repeating·non-file·options·with·a |
122 | different·argument·will·either·have·no·further·effect,·or·override·prior | 119 | different·argument·will·either·have·no·further·effect,·or·override·prior |
123 | occurrences·(those·further·to·the·left·on·the·command·line)·of·that | 120 | occurrences·(those·further·to·the·left·on·the·command·line)·of·that |
124 | option.··Options·which·may·be·meaningfully·specified·more·than·once·are | 121 | option.··Options·which·may·be·meaningfully·specified·more·than·once·are |
125 | noted·in·the·descriptions·below. | 122 | noted·in·the·descriptions·below. |
126 | .PP | 123 | .PP |
127 | Non | 124 | Non-option·arguments·are·object·files·or·archives·which·are·to·be·linked |
128 | together.··They·may·follow,·precede,·or·be·mixed·in·with·command | 125 | together.··They·may·follow,·precede,·or·be·mixed·in·with·command-line |
129 | options,·except·that·an·object·file·argument·may·not·be·placed·between | 126 | options,·except·that·an·object·file·argument·may·not·be·placed·between |
130 | an·option·and·its·argument. | 127 | an·option·and·its·argument. |
131 | .PP | 128 | .PP |
132 | Usually·the·linker·is·invoked·with·at·least·one·object·file,·but·you·can | 129 | Usually·the·linker·is·invoked·with·at·least·one·object·file,·but·you·can |
133 | specify·other·forms·of·binary·input·files·using·\fB\-l\fR,·\fB\-R\fR, | 130 | specify·other·forms·of·binary·input·files·using·\fB\-l\fR,·\fB\-R\fR, |
134 | and·the·script·command·language.··If·\fIno\fR·binary·input·files·at·all | 131 | and·the·script·command·language.··If·\fIno\fR·binary·input·files·at·all |
135 | are·specified,·the·linker·does·not·produce·any·output,·and·issues·the | 132 | are·specified,·the·linker·does·not·produce·any·output,·and·issues·the |
Offset 151, 53 lines modified | Offset 148, 53 lines modified | ||
151 | option·arguments·must·either·follow·the·option·letter·without·intervening | 148 | option·arguments·must·either·follow·the·option·letter·without·intervening |
152 | whitespace,·or·be·given·as·separate·arguments·immediately·following·the | 149 | whitespace,·or·be·given·as·separate·arguments·immediately·following·the |
153 | option·that·requires·them. | 150 | option·that·requires·them. |
154 | .PP | 151 | .PP |
155 | For·options·whose·names·are·multiple·letters,·either·one·dash·or·two·can | 152 | For·options·whose·names·are·multiple·letters,·either·one·dash·or·two·can |
156 | precede·the·option·name;·for·example,·\fB\-trace\-symbol\fR·and | 153 | precede·the·option·name;·for·example,·\fB\-trace\-symbol\fR·and |
157 | \&\fB\-\-trace\-symbol\fR·are·equivalent.··Note\-\-\-there·is·one·exception·to | 154 | \&\fB\-\-trace\-symbol\fR·are·equivalent.··Note\-\-\-there·is·one·exception·to |
158 | this·rule.··Multiple·letter·options·that·start·with·a·lower·case· | 155 | this·rule.··Multiple·letter·options·that·start·with·a·lower·case·'o'·can |
159 | only·be·preceded·by·two·dashes.··This·is·to·reduce·confusion·with·the | 156 | only·be·preceded·by·two·dashes.··This·is·to·reduce·confusion·with·the |
160 | \&\fB\-o\fR·option.··So·for·example·\fB\-omagic\fR·sets·the·output·file | 157 | \&\fB\-o\fR·option.··So·for·example·\fB\-omagic\fR·sets·the·output·file |
161 | name·to·\fBmagic\fR·whereas·\fB\-\-omagic\fR·sets·the·NMAGIC·flag·on·the | 158 | name·to·\fBmagic\fR·whereas·\fB\-\-omagic\fR·sets·the·NMAGIC·flag·on·the |
162 | output. | 159 | output. |
163 | .PP | 160 | .PP |
164 | Arguments·to·multiple | 161 | Arguments·to·multiple-letter·options·must·either·be·separated·from·the |
165 | option·name·by·an·equals·sign,·or·be·given·as·separate·arguments | 162 | option·name·by·an·equals·sign,·or·be·given·as·separate·arguments |
166 | immediately·following·the·option·that·requires·them.··For·example, | 163 | immediately·following·the·option·that·requires·them.··For·example, |
167 | \&\fB\-\-trace\-symbol·foo\fR·and·\fB\-\-trace\-symbol=foo\fR·are·equivalent. | 164 | \&\fB\-\-trace\-symbol·foo\fR·and·\fB\-\-trace\-symbol=foo\fR·are·equivalent. |
168 | Unique·abbreviations·of·the·names·of·multiple | 165 | Unique·abbreviations·of·the·names·of·multiple-letter·options·are |
169 | accepted. | 166 | accepted. |
170 | .PP | 167 | .PP |
171 | Note\-\-\-if·the·linker·is·being·invoked·indirectly,·via·a·compiler·driver | 168 | Note\-\-\-if·the·linker·is·being·invoked·indirectly,·via·a·compiler·driver |
172 | (e.g.·\fBgcc\fR)·then·all·the·linker·command | 169 | (e.g.·\fBgcc\fR)·then·all·the·linker·command-line·options·should·be |
173 | prefixed·by·\fB\-Wl,\fR·(or·whatever·is·appropriate·for·the·particular | 170 | prefixed·by·\fB\-Wl,\fR·(or·whatever·is·appropriate·for·the·particular |
174 | compiler·driver)·like·this: | 171 | compiler·driver)·like·this: |
175 | .PP | 172 | .PP |
176 | .Vb·1 | 173 | .Vb·1 |
177 | \&··········gcc·\-Wl,\-\-start\-group·foo.o·bar.o·\-Wl,\-\-end\-group | 174 | \&··········gcc·\-Wl,\-\-start\-group·foo.o·bar.o·\-Wl,\-\-end\-group |
178 | .Ve | 175 | .Ve |
179 | .PP | 176 | .PP |
180 | This·is·important,·because·otherwise·the·compiler·driver·program·may | 177 | This·is·important,·because·otherwise·the·compiler·driver·program·may |
181 | silently·drop·the·linker·options,·resulting·in·a·bad·link.··Confusion | 178 | silently·drop·the·linker·options,·resulting·in·a·bad·link.··Confusion |
182 | may·also·arise·when·passing·options·that·require·values·through·a | 179 | may·also·arise·when·passing·options·that·require·values·through·a |
183 | driver,·as·the·use·of·a·space·between·option·and·argument·acts·as | 180 | driver,·as·the·use·of·a·space·between·option·and·argument·acts·as |
184 | a·separator,·and·causes·the·driver·to·pass·only·the·option·to·the·linker | 181 | a·separator,·and·causes·the·driver·to·pass·only·the·option·to·the·linker |
185 | and·the·argument·to·the·compiler.··In·this·case,·it·is·simplest·to·use | 182 | and·the·argument·to·the·compiler.··In·this·case,·it·is·simplest·to·use |
186 | the·joined·forms·of·both·single\-·and·multiple | 183 | the·joined·forms·of·both·single\-·and·multiple-letter·options,·such·as: |
187 | .PP | 184 | .PP |
Max diff block lines reached; 89960/96532 bytes (93.19%) of diff not shown. |