[PATCH] D74736: [ELF] Use ALIGN to decide output section alignment
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 17 23:38:46 PST 2020
grimar added inline comments.
================
Comment at: lld/test/ELF/linkerscript/section-align2.test:1
+# REQUIRES: aarch64
+# RUN: echo '.globl _start; _start: ret; .data.rel.ro; .balign 8; .byte 0; .data; .byte 0; \
----------------
Can it be x86?
================
Comment at: lld/test/ELF/linkerscript/section-align2.test:26
+ ## The input section has a larger alignment and is thus preceded by a gap.
+ .bss . : ALIGN(16) {}
+}
----------------
> The output section is aligned to 16.
But it is aligned to 32 in your output:
```
# CHECK: Name Type Address Off Size ES Flg Lk Inf Al
...
# CHECK-NEXT: .bss NOBITS 0000000000020010 020009 000011 00 WA 0 0 32
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74736/new/
https://reviews.llvm.org/D74736
More information about the llvm-commits
mailing list