<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Dynamically adjust dynamic table Type column width"
href="https://bugs.llvm.org/show_bug.cgi?id=40920">40920</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Dynamically adjust dynamic table Type column width
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>llvm-readobj
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jh7370.2008@my.bristol.ac.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>jh7370.2008@my.bristol.ac.uk, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>The width of the --dynamic-table "Type" column is hard-coded in. This results
in poor output for very long tags, e.g. for certain MIPS tags. There is a test
that already exhibits this behaviour (see
test/tools/llvm-readobj/elf-dynamic-tags-machine-specific.test). Here are some
example lines from that list:
...
# LLVM-MIPS-NEXT: 0x0000000070000019 MIPS_DELTA_INSTANCE 0x1000
# LLVM-MIPS-NEXT: 0x000000007000001A MIPS_DELTA_INSTANCE_NO0x1
...
# LLVM-MIPS-NEXT: 0x0000000070000025 MIPS_LOCALPAGE_GOTIDX0x1
...
# LLVM-MIPS-NEXT: 0x000000007000002D MIPS_RLD_TEXT_RESOLVE_ADDR0x8
...
Note that the test is formatted exactly like the output. A quick solution for
this would be to increase the hard-coded width, but this is not great, as it
just defers the problem until another longer tag is added. It also doesn't play
well with any downstream extensions with long tags. Better would be to
determine the width required for the Type column by iterating over the tags in
the table first, and then using that as a minimum for the width.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>