<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 - alignment change after D74736"
href="https://bugs.llvm.org/show_bug.cgi?id=45023">45023</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>alignment change after D74736
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>scottmg@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, smithp352@googlemail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23168" name="attach_23168" title="a.cc">attachment 23168</a> <a href="attachment.cgi?id=23168&action=edit" title="a.cc">[details]</a></span>
a.cc
Minimized-ish:
At clang/lld ToT (after <a href="https://reviews.llvm.org/D74736">https://reviews.llvm.org/D74736</a>)
$ /tmp/dir/bin/clang++ -c a.cc -o a.o && /tmp/dir/bin/ld.lld x.ld a.o -o x &&
objdump -h x
ld.lld: warning: cannot find entry symbol _start; defaulting to 0x4
x: file format elf64-x86-64
Sections:
Idx Name Size VMA LMA File off Algn
0 .rodata 00000004 0000000000000000 0000000000000000 00001000 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
1 .text 00000000 0000000000000004 0000000000000004 00001004 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .data.rel.ro 00000028 0000000000000008 0000000000000008 00001008 2**4
CONTENTS, ALLOC, LOAD, DATA
3 .<a href="show_bug.cgi?id=45023#c000000">comment 000000</a>ff 0000000000000000 0000000000000000 00001030 2**0
CONTENTS, READONLY
vs. before <a href="https://reviews.llvm.org/D74736">https://reviews.llvm.org/D74736</a>
$ prebuilt/third_party/clang/linux-x64/bin/clang++ -c a.cc -o a.o &&
prebuilt/third_party/clang/linux-x64/bin/ld.lld x.ld a.o -o x && objdump -h x
ld.lld: warning: cannot find entry symbol _start; defaulting to 0x4
x: file format elf64-x86-64
Sections:
Idx Name Size VMA LMA File off Algn
0 .rodata 00000004 0000000000000000 0000000000000000 00001000 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
1 .text 00000000 0000000000000004 0000000000000004 00001004 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .data.rel.ro 00000020 0000000000000010 0000000000000010 00001010 2**4
CONTENTS, ALLOC, LOAD, DATA
3 .<a href="show_bug.cgi?id=45023#c000000">comment 000000</a>ff 0000000000000000 0000000000000000 00001030 2**0
CONTENTS, READONLY
In particular, the VMA of .data.rel.ro has changed from a 16 aligned to 8
aligned.</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>