[lld] r280541 - Move a test file to the right place.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 2 13:46:06 PDT 2016
Author: ruiu
Date: Fri Sep 2 15:46:06 2016
New Revision: 280541
URL: http://llvm.org/viewvc/llvm-project?rev=280541&view=rev
Log:
Move a test file to the right place.
Added:
lld/trunk/test/ELF/linkerscript/outsections-addr.s
- copied, changed from r280540, lld/trunk/test/ELF/linkerscript-outsections-addr.s
Removed:
lld/trunk/test/ELF/linkerscript-outsections-addr.s
Removed: lld/trunk/test/ELF/linkerscript-outsections-addr.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript-outsections-addr.s?rev=280540&view=auto
==============================================================================
--- lld/trunk/test/ELF/linkerscript-outsections-addr.s (original)
+++ lld/trunk/test/ELF/linkerscript-outsections-addr.s (removed)
@@ -1,122 +0,0 @@
-# REQUIRES: x86
-# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: echo "SECTIONS { \
-# RUN: .aaa 0x2000 : \
-# RUN: { \
-# RUN: *(.aaa) \
-# RUN: } \
-# RUN: .bbb 0x1 ? 0x3000 : 0x4000 : \
-# RUN: { \
-# RUN: *(.bbb) \
-# RUN: } \
-# RUN: .ccc ALIGN(CONSTANT (MAXPAGESIZE)) + (. & (CONSTANT (MAXPAGESIZE) - 1)) : \
-# RUN: { \
-# RUN: *(.ccc) \
-# RUN: } \
-# RUN: .ddd 0x5001 : \
-# RUN: { \
-# RUN: *(.ddd) \
-# RUN: } \
-# RUN: }" > %t.script
-# RUN: ld.lld %t --script %t.script -o %tout
-# RUN: llvm-readobj -s %tout | FileCheck %s
-
-## Check:
-## 1) Simple constant as address.
-## 2) That something that contains ":" character, like ternary
-## operator works as expression.
-## 3) That complex expressions work.
-## 4) That section alignment still applied to explicitly specified address.
-
-#CHECK:Sections [
-#CHECK: Section {
-#CHECK: Index: 0
-#CHECK: Name:
-#CHECK: Type: SHT_NULL
-#CHECK: Flags [
-#CHECK: ]
-#CHECK: Address: 0x0
-#CHECK: Offset: 0x0
-#CHECK: Size: 0
-#CHECK: Link: 0
-#CHECK: Info: 0
-#CHECK: AddressAlignment: 0
-#CHECK: EntrySize: 0
-#CHECK: }
-#CHECK: Section {
-#CHECK: Index: 1
-#CHECK: Name: .aaa
-#CHECK: Type: SHT_PROGBITS
-#CHECK: Flags [
-#CHECK: SHF_ALLOC
-#CHECK: ]
-#CHECK: Address: 0x2000
-#CHECK: Offset: 0x1000
-#CHECK: Size: 8
-#CHECK: Link: 0
-#CHECK: Info: 0
-#CHECK: AddressAlignment: 1
-#CHECK: EntrySize: 0
-#CHECK: }
-#CHECK: Section {
-#CHECK: Index: 2
-#CHECK: Name: .bbb
-#CHECK: Type: SHT_PROGBITS
-#CHECK: Flags [
-#CHECK: SHF_ALLOC
-#CHECK: ]
-#CHECK: Address: 0x3000
-#CHECK: Offset: 0x2000
-#CHECK: Size: 8
-#CHECK: Link: 0
-#CHECK: Info: 0
-#CHECK: AddressAlignment: 1
-#CHECK: EntrySize: 0
-#CHECK: }
-#CHECK: Section {
-#CHECK: Index: 3
-#CHECK: Name: .ccc
-#CHECK: Type: SHT_PROGBITS
-#CHECK: Flags [
-#CHECK: SHF_ALLOC
-#CHECK: ]
-#CHECK: Address: 0x203008
-#CHECK: Offset: 0x2008
-#CHECK: Size: 8
-#CHECK: Link: 0
-#CHECK: Info: 0
-#CHECK: AddressAlignment: 1
-#CHECK: EntrySize: 0
-#CHECK: }
-#CHECK: Section {
-#CHECK: Index: 4
-#CHECK: Name: .ddd
-#CHECK: Type: SHT_PROGBITS
-#CHECK: Flags [
-#CHECK: SHF_ALLOC
-#CHECK: ]
-#CHECK: Address: 0x5010
-#CHECK: Offset: 0x2010
-#CHECK: Size: 8
-#CHECK: Link: 0
-#CHECK: Info: 0
-#CHECK: AddressAlignment: 16
-#CHECK: EntrySize: 0
-#CHECK: }
-
-.globl _start
-_start:
-nop
-
-.section .aaa, "a"
-.quad 0
-
-.section .bbb, "a"
-.quad 0
-
-.section .ccc, "a"
-.quad 0
-
-.section .ddd, "a"
-.align 16
-.quad 0
Copied: lld/trunk/test/ELF/linkerscript/outsections-addr.s (from r280540, lld/trunk/test/ELF/linkerscript-outsections-addr.s)
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/outsections-addr.s?p2=lld/trunk/test/ELF/linkerscript/outsections-addr.s&p1=lld/trunk/test/ELF/linkerscript-outsections-addr.s&r1=280540&r2=280541&rev=280541&view=diff
==============================================================================
(empty)
More information about the llvm-commits
mailing list