[lld] r286226 - [ELF] Test case update (orphan.s)
Eugene Leviant via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 8 03:11:24 PST 2016
Author: evgeny777
Date: Tue Nov 8 05:11:23 2016
New Revision: 286226
URL: http://llvm.org/viewvc/llvm-project?rev=286226&view=rev
Log:
[ELF] Test case update (orphan.s)
Modified:
lld/trunk/test/ELF/linkerscript/orphan.s
Modified: lld/trunk/test/ELF/linkerscript/orphan.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/orphan.s?rev=286226&r1=286225&r2=286226&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/orphan.s (original)
+++ lld/trunk/test/ELF/linkerscript/orphan.s Tue Nov 8 05:11:23 2016
@@ -9,12 +9,16 @@
# RUN: ld.lld -o %t1 --script %t.script %t
# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
+## .jcr is a relro section and should be placed before other RW sections.
+## .bss is SHT_NOBITS section and should be last RW section, so some space
+## in ELF file could be saved.
# CHECK: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .text 00000000 0000000000000000 TEXT DATA
# CHECK-NEXT: 2 .jcr 00000008 0000000000000000 DATA
# CHECK-NEXT: 3 .rw1 00000008 0000000000000008 DATA
# CHECK-NEXT: 4 .rw2 00000008 0000000000000010 DATA
# CHECK-NEXT: 5 .rw3 00000008 0000000000000018 DATA
+# CHECK-NEXT: 6 .bss 00000008 0000000000000020 BSS
.section .rw1, "aw"
.quad 0
@@ -27,3 +31,6 @@
.section .jcr, "aw"
.quad 0
+
+.section .bss, "aw", at nobits
+ .quad 0
More information about the llvm-commits
mailing list