xref: /openbsd-src/gnu/usr.bin/binutils/bfd/doc/mmo.texi (revision d2201f2f89f0be1a0be6f7568000ed297414a06d)
1*d2201f2fSdrahn@section mmo backend
2*d2201f2fSdrahnThe mmo object format is used exclusively together with Professor
3*d2201f2fSdrahnDonald E.@: Knuth's educational 64-bit processor MMIX.  The simulator
4*d2201f2fSdrahn@command{mmix} which is available at
5*d2201f2fSdrahn@url{http://www-cs-faculty.stanford.edu/~knuth/programs/mmix.tar.gz}
6*d2201f2fSdrahnunderstands this format.  That package also includes a combined
7*d2201f2fSdrahnassembler and linker called @command{mmixal}.  The mmo format has
8*d2201f2fSdrahnno advantages feature-wise compared to e.g. ELF.  It is a simple
9*d2201f2fSdrahnnon-relocatable object format with no support for archives or
10*d2201f2fSdrahndebugging information, except for symbol value information and
11*d2201f2fSdrahnline numbers (which is not yet implemented in BFD).  See
12*d2201f2fSdrahn@url{http://www-cs-faculty.stanford.edu/~knuth/mmix.html} for more
13*d2201f2fSdrahninformation about MMIX.  The ELF format is used for intermediate
14*d2201f2fSdrahnobject files in the BFD implementation.
15*d2201f2fSdrahn
16*d2201f2fSdrahn@c We want to xref the symbol table node.  A feature in "chew"
17*d2201f2fSdrahn@c requires that "commands" do not contain spaces in the
18*d2201f2fSdrahn@c arguments.  Hence the hyphen in "Symbol-table".
19*d2201f2fSdrahn@menu
20*d2201f2fSdrahn* File layout::
21*d2201f2fSdrahn* Symbol-table::
22*d2201f2fSdrahn* mmo section mapping::
23*d2201f2fSdrahn@end menu
24*d2201f2fSdrahn
25*d2201f2fSdrahn@node File layout, Symbol-table, mmo, mmo
26*d2201f2fSdrahn@subsection File layout
27*d2201f2fSdrahnThe mmo file contents is not partitioned into named sections as
28*d2201f2fSdrahnwith e.g.@: ELF.  Memory areas is formed by specifying the
29*d2201f2fSdrahnlocation of the data that follows.  Only the memory area
30*d2201f2fSdrahn@samp{0x0000@dots{}00} to @samp{0x01ff@dots{}ff} is executable, so
31*d2201f2fSdrahnit is used for code (and constants) and the area
32*d2201f2fSdrahn@samp{0x2000@dots{}00} to @samp{0x20ff@dots{}ff} is used for
33*d2201f2fSdrahnwritable data.  @xref{mmo section mapping}.
34*d2201f2fSdrahn
35*d2201f2fSdrahnContents is entered as 32-bit words, xor:ed over previous
36*d2201f2fSdrahncontents, always zero-initialized.  A word that starts with the
37*d2201f2fSdrahnbyte @samp{0x98} forms a command called a @samp{lopcode}, where
38*d2201f2fSdrahnthe next byte distinguished between the thirteen lopcodes.  The
39*d2201f2fSdrahntwo remaining bytes, called the @samp{Y} and @samp{Z} fields, or
40*d2201f2fSdrahnthe @samp{YZ} field (a 16-bit big-endian number), are used for
41*d2201f2fSdrahnvarious purposes different for each lopcode.  As documented in
42*d2201f2fSdrahn@url{http://www-cs-faculty.stanford.edu/~knuth/mmixal-intro.ps.gz},
43*d2201f2fSdrahnthe lopcodes are:
44*d2201f2fSdrahn
45*d2201f2fSdrahnThere is provision for specifying ``special data'' of 65536
46*d2201f2fSdrahndifferent types.  We use type 80 (decimal), arbitrarily chosen the
47*d2201f2fSdrahnsame as the ELF @code{e_machine} number for MMIX, filling it with
48*d2201f2fSdrahnsection information normally found in ELF objects. @xref{mmo
49*d2201f2fSdrahnsection mapping}.
50*d2201f2fSdrahn
51*d2201f2fSdrahn@table @code
52*d2201f2fSdrahn@item lop_quote
53*d2201f2fSdrahn0x98000001.  The next word is contents, regardless of whether it
54*d2201f2fSdrahnstarts with 0x98 or not.
55*d2201f2fSdrahn
56*d2201f2fSdrahn@item lop_loc
57*d2201f2fSdrahn0x9801YYZZ, where @samp{Z} is 1 or 2.  This is a location
58*d2201f2fSdrahndirective, setting the location for the next data to the next
59*d2201f2fSdrahn32-bit word (for @math{Z = 1}) or 64-bit word (for @math{Z = 2}),
60*d2201f2fSdrahnplus @math{Y * 2^56}.  Normally @samp{Y} is 0 for the text segment
61*d2201f2fSdrahnand 2 for the data segment.
62*d2201f2fSdrahn
63*d2201f2fSdrahn@item lop_skip
64*d2201f2fSdrahn0x9802YYZZ.  Increase the current location by @samp{YZ} bytes.
65*d2201f2fSdrahn
66*d2201f2fSdrahn@item lop_fixo
67*d2201f2fSdrahn0x9803YYZZ, where @samp{Z} is 1 or 2.  Store the current location
68*d2201f2fSdrahnas 64 bits into the location pointed to by the next 32-bit
69*d2201f2fSdrahn(@math{Z = 1}) or 64-bit (@math{Z = 2}) word, plus @math{Y *
70*d2201f2fSdrahn2^56}.
71*d2201f2fSdrahn
72*d2201f2fSdrahn@item lop_fixr
73*d2201f2fSdrahn0x9804YYZZ.  @samp{YZ} is stored into the current location plus
74*d2201f2fSdrahn@math{2 - 4 * YZ}.
75*d2201f2fSdrahn
76*d2201f2fSdrahn@item lop_fixrx
77*d2201f2fSdrahn0x980500ZZ.  @samp{Z} is 16 or 24.  A value @samp{L} derived from
78*d2201f2fSdrahnthe following 32-bit word are used in a manner similar to
79*d2201f2fSdrahn@samp{YZ} in lop_fixr: it is xor:ed into the current location
80*d2201f2fSdrahnminus @math{4 * L}.  The first byte of the word is 0 or 1.  If it
81*d2201f2fSdrahnis 1, then @math{L = (@var{lowest 24 bits of word}) - 2^Z}, if 0,
82*d2201f2fSdrahnthen @math{L = (@var{lowest 24 bits of word})}.
83*d2201f2fSdrahn
84*d2201f2fSdrahn@item lop_file
85*d2201f2fSdrahn0x9806YYZZ.  @samp{Y} is the file number, @samp{Z} is count of
86*d2201f2fSdrahn32-bit words.  Set the file number to @samp{Y} and the line
87*d2201f2fSdrahncounter to 0.  The next @math{Z * 4} bytes contain the file name,
88*d2201f2fSdrahnpadded with zeros if the count is not a multiple of four.  The
89*d2201f2fSdrahnsame @samp{Y} may occur multiple times, but @samp{Z} must be 0 for
90*d2201f2fSdrahnall but the first occurrence.
91*d2201f2fSdrahn
92*d2201f2fSdrahn@item lop_line
93*d2201f2fSdrahn0x9807YYZZ.  @samp{YZ} is the line number.  Together with
94*d2201f2fSdrahnlop_file, it forms the source location for the next 32-bit word.
95*d2201f2fSdrahnNote that for each non-lopcode 32-bit word, line numbers are
96*d2201f2fSdrahnassumed incremented by one.
97*d2201f2fSdrahn
98*d2201f2fSdrahn@item lop_spec
99*d2201f2fSdrahn0x9808YYZZ.  @samp{YZ} is the type number.  Data until the next
100*d2201f2fSdrahnlopcode other than lop_quote forms special data of type @samp{YZ}.
101*d2201f2fSdrahn@xref{mmo section mapping}.
102*d2201f2fSdrahn
103*d2201f2fSdrahnOther types than 80, (or type 80 with a content that does not
104*d2201f2fSdrahnparse) is stored in sections named @code{.MMIX.spec_data.@var{n}}
105*d2201f2fSdrahnwhere @var{n} is the @samp{YZ}-type.  The flags for such a
106*d2201f2fSdrahnsections say not to allocate or load the data.  The vma is 0.
107*d2201f2fSdrahnContents of multiple occurrences of special data @var{n} is
108*d2201f2fSdrahnconcatenated to the data of the previous lop_spec @var{n}s.  The
109*d2201f2fSdrahnlocation in data or code at which the lop_spec occurred is lost.
110*d2201f2fSdrahn
111*d2201f2fSdrahn@item lop_pre
112*d2201f2fSdrahn0x980901ZZ.  The first lopcode in a file.  The @samp{Z} field forms the
113*d2201f2fSdrahnlength of header information in 32-bit words, where the first word
114*d2201f2fSdrahntells the time in seconds since @samp{00:00:00 GMT Jan 1 1970}.
115*d2201f2fSdrahn
116*d2201f2fSdrahn@item lop_post
117*d2201f2fSdrahn0x980a00ZZ.  @math{Z > 32}.  This lopcode follows after all
118*d2201f2fSdrahncontent-generating lopcodes in a program.  The @samp{Z} field
119*d2201f2fSdrahndenotes the value of @samp{rG} at the beginning of the program.
120*d2201f2fSdrahnThe following @math{256 - Z} big-endian 64-bit words are loaded
121*d2201f2fSdrahninto global registers @samp{$G} @dots{} @samp{$255}.
122*d2201f2fSdrahn
123*d2201f2fSdrahn@item lop_stab
124*d2201f2fSdrahn0x980b0000.  The next-to-last lopcode in a program.  Must follow
125*d2201f2fSdrahnimmediately after the lop_post lopcode and its data.  After this
126*d2201f2fSdrahnlopcode follows all symbols in a compressed format
127*d2201f2fSdrahn(@pxref{Symbol-table}).
128*d2201f2fSdrahn
129*d2201f2fSdrahn@item lop_end
130*d2201f2fSdrahn0x980cYYZZ.  The last lopcode in a program.  It must follow the
131*d2201f2fSdrahnlop_stab lopcode and its data.  The @samp{YZ} field contains the
132*d2201f2fSdrahnnumber of 32-bit words of symbol table information after the
133*d2201f2fSdrahnpreceding lop_stab lopcode.
134*d2201f2fSdrahn@end table
135*d2201f2fSdrahn
136*d2201f2fSdrahnNote that the lopcode "fixups"; @code{lop_fixr}, @code{lop_fixrx} and
137*d2201f2fSdrahn@code{lop_fixo} are not generated by BFD, but are handled.  They are
138*d2201f2fSdrahngenerated by @code{mmixal}.
139*d2201f2fSdrahn
140*d2201f2fSdrahnThis trivial one-label, one-instruction file:
141*d2201f2fSdrahn
142*d2201f2fSdrahn@example
143*d2201f2fSdrahn :Main TRAP 1,2,3
144*d2201f2fSdrahn@end example
145*d2201f2fSdrahn
146*d2201f2fSdrahncan be represented this way in mmo:
147*d2201f2fSdrahn
148*d2201f2fSdrahn@example
149*d2201f2fSdrahn 0x98090101 - lop_pre, one 32-bit word with timestamp.
150*d2201f2fSdrahn <timestamp>
151*d2201f2fSdrahn 0x98010002 - lop_loc, text segment, using a 64-bit address.
152*d2201f2fSdrahn              Note that mmixal does not emit this for the file above.
153*d2201f2fSdrahn 0x00000000 - Address, high 32 bits.
154*d2201f2fSdrahn 0x00000000 - Address, low 32 bits.
155*d2201f2fSdrahn 0x98060002 - lop_file, 2 32-bit words for file-name.
156*d2201f2fSdrahn 0x74657374 - "test"
157*d2201f2fSdrahn 0x2e730000 - ".s\0\0"
158*d2201f2fSdrahn 0x98070001 - lop_line, line 1.
159*d2201f2fSdrahn 0x00010203 - TRAP 1,2,3
160*d2201f2fSdrahn 0x980a00ff - lop_post, setting $255 to 0.
161*d2201f2fSdrahn 0x00000000
162*d2201f2fSdrahn 0x00000000
163*d2201f2fSdrahn 0x980b0000 - lop_stab for ":Main" = 0, serial 1.
164*d2201f2fSdrahn 0x203a4040   @xref{Symbol-table}.
165*d2201f2fSdrahn 0x10404020
166*d2201f2fSdrahn 0x4d206120
167*d2201f2fSdrahn 0x69016e00
168*d2201f2fSdrahn 0x81000000
169*d2201f2fSdrahn 0x980c0005 - lop_end; symbol table contained five 32-bit words.
170*d2201f2fSdrahn@end example
171*d2201f2fSdrahn@node Symbol-table, mmo section mapping, File layout, mmo
172*d2201f2fSdrahn@subsection Symbol table format
173*d2201f2fSdrahnFrom mmixal.w (or really, the generated mmixal.tex) in
174*d2201f2fSdrahn@url{http://www-cs-faculty.stanford.edu/~knuth/programs/mmix.tar.gz}):
175*d2201f2fSdrahn``Symbols are stored and retrieved by means of a @samp{ternary
176*d2201f2fSdrahnsearch trie}, following ideas of Bentley and Sedgewick. (See
177*d2201f2fSdrahnACM--SIAM Symp.@: on Discrete Algorithms @samp{8} (1997), 360--369;
178*d2201f2fSdrahnR.@:Sedgewick, @samp{Algorithms in C} (Reading, Mass.@:
179*d2201f2fSdrahnAddison--Wesley, 1998), @samp{15.4}.)  Each trie node stores a
180*d2201f2fSdrahncharacter, and there are branches to subtries for the cases where
181*d2201f2fSdrahna given character is less than, equal to, or greater than the
182*d2201f2fSdrahncharacter in the trie.  There also is a pointer to a symbol table
183*d2201f2fSdrahnentry if a symbol ends at the current node.''
184*d2201f2fSdrahn
185*d2201f2fSdrahnSo it's a tree encoded as a stream of bytes.  The stream of bytes
186*d2201f2fSdrahnacts on a single virtual global symbol, adding and removing
187*d2201f2fSdrahncharacters and signalling complete symbol points.  Here, we read
188*d2201f2fSdrahnthe stream and create symbols at the completion points.
189*d2201f2fSdrahn
190*d2201f2fSdrahnFirst, there's a control byte @code{m}.  If any of the listed bits
191*d2201f2fSdrahnin @code{m} is nonzero, we execute what stands at the right, in
192*d2201f2fSdrahnthe listed order:
193*d2201f2fSdrahn
194*d2201f2fSdrahn@example
195*d2201f2fSdrahn (MMO3_LEFT)
196*d2201f2fSdrahn 0x40 - Traverse left trie.
197*d2201f2fSdrahn        (Read a new command byte and recurse.)
198*d2201f2fSdrahn
199*d2201f2fSdrahn (MMO3_SYMBITS)
200*d2201f2fSdrahn 0x2f - Read the next byte as a character and store it in the
201*d2201f2fSdrahn        current character position; increment character position.
202*d2201f2fSdrahn        Test the bits of @code{m}:
203*d2201f2fSdrahn
204*d2201f2fSdrahn        (MMO3_WCHAR)
205*d2201f2fSdrahn        0x80 - The character is 16-bit (so read another byte,
206*d2201f2fSdrahn               merge into current character.
207*d2201f2fSdrahn
208*d2201f2fSdrahn        (MMO3_TYPEBITS)
209*d2201f2fSdrahn        0xf  - We have a complete symbol; parse the type, value
210*d2201f2fSdrahn               and serial number and do what should be done
211*d2201f2fSdrahn               with a symbol.  The type and length information
212*d2201f2fSdrahn               is in j = (m & 0xf).
213*d2201f2fSdrahn
214*d2201f2fSdrahn               (MMO3_REGQUAL_BITS)
215*d2201f2fSdrahn               j == 0xf: A register variable.  The following
216*d2201f2fSdrahn                         byte tells which register.
217*d2201f2fSdrahn               j <= 8:   An absolute symbol.  Read j bytes as the
218*d2201f2fSdrahn                         big-endian number the symbol equals.
219*d2201f2fSdrahn                         A j = 2 with two zero bytes denotes an
220*d2201f2fSdrahn                         unknown symbol.
221*d2201f2fSdrahn               j > 8:    As with j <= 8, but add (0x20 << 56)
222*d2201f2fSdrahn                         to the value in the following j - 8
223*d2201f2fSdrahn                         bytes.
224*d2201f2fSdrahn
225*d2201f2fSdrahn               Then comes the serial number, as a variant of
226*d2201f2fSdrahn               uleb128, but better named ubeb128:
227*d2201f2fSdrahn               Read bytes and shift the previous value left 7
228*d2201f2fSdrahn               (multiply by 128).  Add in the new byte, repeat
229*d2201f2fSdrahn               until a byte has bit 7 set.  The serial number
230*d2201f2fSdrahn               is the computed value minus 128.
231*d2201f2fSdrahn
232*d2201f2fSdrahn        (MMO3_MIDDLE)
233*d2201f2fSdrahn        0x20 - Traverse middle trie.  (Read a new command byte
234*d2201f2fSdrahn               and recurse.)  Decrement character position.
235*d2201f2fSdrahn
236*d2201f2fSdrahn (MMO3_RIGHT)
237*d2201f2fSdrahn 0x10 - Traverse right trie.  (Read a new command byte and
238*d2201f2fSdrahn        recurse.)
239*d2201f2fSdrahn@end example
240*d2201f2fSdrahn
241*d2201f2fSdrahnLet's look again at the @code{lop_stab} for the trivial file
242*d2201f2fSdrahn(@pxref{File layout}).
243*d2201f2fSdrahn
244*d2201f2fSdrahn@example
245*d2201f2fSdrahn 0x980b0000 - lop_stab for ":Main" = 0, serial 1.
246*d2201f2fSdrahn 0x203a4040
247*d2201f2fSdrahn 0x10404020
248*d2201f2fSdrahn 0x4d206120
249*d2201f2fSdrahn 0x69016e00
250*d2201f2fSdrahn 0x81000000
251*d2201f2fSdrahn@end example
252*d2201f2fSdrahn
253*d2201f2fSdrahnThis forms the trivial trie (note that the path between ``:'' and
254*d2201f2fSdrahn``M'' is redundant):
255*d2201f2fSdrahn
256*d2201f2fSdrahn@example
257*d2201f2fSdrahn 203a     ":"
258*d2201f2fSdrahn 40       /
259*d2201f2fSdrahn 40      /
260*d2201f2fSdrahn 10      \
261*d2201f2fSdrahn 40      /
262*d2201f2fSdrahn 40     /
263*d2201f2fSdrahn 204d  "M"
264*d2201f2fSdrahn 2061  "a"
265*d2201f2fSdrahn 2069  "i"
266*d2201f2fSdrahn 016e  "n" is the last character in a full symbol, and
267*d2201f2fSdrahn       with a value represented in one byte.
268*d2201f2fSdrahn 00    The value is 0.
269*d2201f2fSdrahn 81    The serial number is 1.
270*d2201f2fSdrahn@end example
271*d2201f2fSdrahn
272*d2201f2fSdrahn@node mmo section mapping, , Symbol-table, mmo
273*d2201f2fSdrahn@subsection mmo section mapping
274*d2201f2fSdrahnThe implementation in BFD uses special data type 80 (decimal) to
275*d2201f2fSdrahnencapsulate and describe named sections, containing e.g.@: debug
276*d2201f2fSdrahninformation.  If needed, any datum in the encapsulation will be
277*d2201f2fSdrahnquoted using lop_quote.  First comes a 32-bit word holding the
278*d2201f2fSdrahnnumber of 32-bit words containing the zero-terminated zero-padded
279*d2201f2fSdrahnsegment name.  After the name there's a 32-bit word holding flags
280*d2201f2fSdrahndescribing the section type.  Then comes a 64-bit big-endian word
281*d2201f2fSdrahnwith the section length (in bytes), then another with the section
282*d2201f2fSdrahnstart address.  Depending on the type of section, the contents
283*d2201f2fSdrahnmight follow, zero-padded to 32-bit boundary.  For a loadable
284*d2201f2fSdrahnsection (such as data or code), the contents might follow at some
285*d2201f2fSdrahnlater point, not necessarily immediately, as a lop_loc with the
286*d2201f2fSdrahnsame start address as in the section description, followed by the
287*d2201f2fSdrahncontents.  This in effect forms a descriptor that must be emitted
288*d2201f2fSdrahnbefore the actual contents.  Sections described this way must not
289*d2201f2fSdrahnoverlap.
290*d2201f2fSdrahn
291*d2201f2fSdrahnFor areas that don't have such descriptors, synthetic sections are
292*d2201f2fSdrahnformed by BFD.  Consecutive contents in the two memory areas
293*d2201f2fSdrahn@samp{0x0000@dots{}00} to @samp{0x01ff@dots{}ff} and
294*d2201f2fSdrahn@samp{0x2000@dots{}00} to @samp{0x20ff@dots{}ff} are entered in
295*d2201f2fSdrahnsections named @code{.text} and @code{.data} respectively.  If an area
296*d2201f2fSdrahnis not otherwise described, but would together with a neighboring
297*d2201f2fSdrahnlower area be less than @samp{0x40000000} bytes long, it is joined
298*d2201f2fSdrahnwith the lower area and the gap is zero-filled.  For other cases,
299*d2201f2fSdrahna new section is formed, named @code{.MMIX.sec.@var{n}}.  Here,
300*d2201f2fSdrahn@var{n} is a number, a running count through the mmo file,
301*d2201f2fSdrahnstarting at 0.
302*d2201f2fSdrahn
303*d2201f2fSdrahnA loadable section specified as:
304*d2201f2fSdrahn
305*d2201f2fSdrahn@example
306*d2201f2fSdrahn .section secname,"ax"
307*d2201f2fSdrahn TETRA 1,2,3,4,-1,-2009
308*d2201f2fSdrahn BYTE 80
309*d2201f2fSdrahn@end example
310*d2201f2fSdrahn
311*d2201f2fSdrahnand linked to address @samp{0x4}, is represented by the sequence:
312*d2201f2fSdrahn
313*d2201f2fSdrahn@example
314*d2201f2fSdrahn 0x98080050 - lop_spec 80
315*d2201f2fSdrahn 0x00000002 - two 32-bit words for the section name
316*d2201f2fSdrahn 0x7365636e - "secn"
317*d2201f2fSdrahn 0x616d6500 - "ame\0"
318*d2201f2fSdrahn 0x00000033 - flags CODE, READONLY, LOAD, ALLOC
319*d2201f2fSdrahn 0x00000000 - high 32 bits of section length
320*d2201f2fSdrahn 0x0000001c - section length is 28 bytes; 6 * 4 + 1 + alignment to 32 bits
321*d2201f2fSdrahn 0x00000000 - high 32 bits of section address
322*d2201f2fSdrahn 0x00000004 - section address is 4
323*d2201f2fSdrahn 0x98010002 - 64 bits with address of following data
324*d2201f2fSdrahn 0x00000000 - high 32 bits of address
325*d2201f2fSdrahn 0x00000004 - low 32 bits: data starts at address 4
326*d2201f2fSdrahn 0x00000001 - 1
327*d2201f2fSdrahn 0x00000002 - 2
328*d2201f2fSdrahn 0x00000003 - 3
329*d2201f2fSdrahn 0x00000004 - 4
330*d2201f2fSdrahn 0xffffffff - -1
331*d2201f2fSdrahn 0xfffff827 - -2009
332*d2201f2fSdrahn 0x50000000 - 80 as a byte, padded with zeros.
333*d2201f2fSdrahn@end example
334*d2201f2fSdrahn
335*d2201f2fSdrahnNote that the lop_spec wrapping does not include the section
336*d2201f2fSdrahncontents.  Compare this to a non-loaded section specified as:
337*d2201f2fSdrahn
338*d2201f2fSdrahn@example
339*d2201f2fSdrahn .section thirdsec
340*d2201f2fSdrahn TETRA 200001,100002
341*d2201f2fSdrahn BYTE 38,40
342*d2201f2fSdrahn@end example
343*d2201f2fSdrahn
344*d2201f2fSdrahnThis, when linked to address @samp{0x200000000000001c}, is
345*d2201f2fSdrahnrepresented by:
346*d2201f2fSdrahn
347*d2201f2fSdrahn@example
348*d2201f2fSdrahn 0x98080050 - lop_spec 80
349*d2201f2fSdrahn 0x00000002 - two 32-bit words for the section name
350*d2201f2fSdrahn 0x7365636e - "thir"
351*d2201f2fSdrahn 0x616d6500 - "dsec"
352*d2201f2fSdrahn 0x00000010 - flag READONLY
353*d2201f2fSdrahn 0x00000000 - high 32 bits of section length
354*d2201f2fSdrahn 0x0000000c - section length is 12 bytes; 2 * 4 + 2 + alignment to 32 bits
355*d2201f2fSdrahn 0x20000000 - high 32 bits of address
356*d2201f2fSdrahn 0x0000001c - low 32 bits of address 0x200000000000001c
357*d2201f2fSdrahn 0x00030d41 - 200001
358*d2201f2fSdrahn 0x000186a2 - 100002
359*d2201f2fSdrahn 0x26280000 - 38, 40 as bytes, padded with zeros
360*d2201f2fSdrahn@end example
361*d2201f2fSdrahn
362*d2201f2fSdrahnFor the latter example, the section contents must not be
363*d2201f2fSdrahnloaded in memory, and is therefore specified as part of the
364*d2201f2fSdrahnspecial data.  The address is usually unimportant but might
365*d2201f2fSdrahnprovide information for e.g.@: the DWARF 2 debugging format.
366