<div dir="ltr">Hi, I'm taking a look at docs.<div>On dwarf-2.0.0.pdf I see at "7.20 Address Range Table"</div><div><i>This header is followed by a series of tuples.<br>Each tuple consists of an address and a length, each in the size appropriate for an address on the<br>target architecture. The first tuple following the header in each set begins at an offset that is a<br>multiple of the size of a single tuple (that is, twice the size of an address). <b>The header is padded, if necessary, to the appropriate boundary.</b> Each set of tuples is terminated by a 0 for the address and 0 for the length.</i><br clear="all"><div><br></div><div>on Dwarf3.pdf is identical.</div><div><br></div><div>I've some HEX data on my file (elf version 2):</div><div><font face="monospace">The ".debug_aranges" section 0x0007482F<br>------------------------------------</font><span style="font-family:monospace">---------------</span><font face="monospace"><br><br>00074820                                                1c  |."....S.........|<br>00074830  00 00 00 02 00 63 02 00  00 04 00 00 00 00 00 30  |.....c.........0|<br>00074840  54 01 80 ec 02 00 00 00  00 00 00 00 00 00 00 1c  |T...............|<br>00074850  00 00 00 02 00 94 0d 00  00 04 00 00 00 00 00 1c  |................|<br>00074860  57 01 80 82 03 00 00 00  00 00 00 00 00 00 00 1c  |W...............|</font><br></div><div><br></div><div>Exploding the data at the first address range I see this:</div><font face="monospace">00:: 1c 00 00 00<br><br></font></div><div><font face="monospace">1. 0x0000001c (28) length<br><br></font></div><div><span style="font-family:monospace">04:: </span><font face="monospace">02 00 63 02 00 00 04 00</font></div><div><font face="monospace"><br>2. 0x0002</font></div><div><font face="monospace">3. 0x00000263 (611)</font></div><div><font face="monospace">4  0x04 (4)</font></div><div><font face="monospace">5. 0x00 (0)</font></div><div><font face="monospace"><br></font><span style="font-family:monospace">0c:: </span><font face="monospace">00 00 00 00 (I suppose this is padding padding)</font></div><div><font face="monospace"><br>10:: 30 54 01 80 ec 02 00 00<br>6. 0x80015430 0x000002ec<br></font><div><font face="monospace">18:: 00 00 00 00 00 00 00 00 <- termination (28th byte)</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">a. If I understood well what is written, after field 5, there are four bytes of padding, a</font><span style="font-family:monospace">m I correct?</span></div><div><font face="monospace">b. About the "appropriate bound", just for confirmation, t</font><span style="font-family:monospace">he address must stay at 0xHHHHHHH0 or 0xHHHHHHH</span><span style="font-family:monospace">8 respect to the relative address. Is this correct?</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">In this case (4 bytes address) the alignment is (2x4): </span></div><div><span style="font-family:monospace">0xHHHHHHH0 or 0xHHHHHHH</span><span style="font-family:monospace">8</span><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">If we were in (8 bytes address) the allowed alignment would be (2x8)</span></div><div><span style="font-family:monospace">0xHHHHHHH0</span><br></div><div><span style="font-family:monospace">the padding would disappear?</span></div><div><span style="font-family:monospace">Thank you in advance,</span><br></div><div><span style="font-family:monospace">C.</span></div></div></div>