summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-04-12 23:15:55 +0000
committerRui Ueyama <ruiu@google.com>2017-04-12 23:15:55 +0000
commit53e0fd33d45df6d06df3c5884f59d5da0be2d8a2 (patch)
tree92e6ff9ef3e21ad64ca0e709c93487a23b6fce57
parent48b1dee7b4c86aa52541385d1bfcac5720d7dc3a (diff)
downloadbcm5719-llvm-53e0fd33d45df6d06df3c5884f59d5da0be2d8a2.tar.gz
bcm5719-llvm-53e0fd33d45df6d06df3c5884f59d5da0be2d8a2.zip
Remove useless 0x prefixes.
llvm-svn: 300128
-rw-r--r--lld/test/ELF/linkerscript/memory.s10
1 files changed, 5 insertions, 5 deletions
diff --git a/lld/test/ELF/linkerscript/memory.s b/lld/test/ELF/linkerscript/memory.s
index eb027b7aeb2..914af1c0e1a 100644
--- a/lld/test/ELF/linkerscript/memory.s
+++ b/lld/test/ELF/linkerscript/memory.s
@@ -17,7 +17,7 @@
## Check RAM and ROM memory regions.
# RUN: echo "MEMORY { \
-# RUN: ram (rwx) : ORIGIN = 0x0, LENGTH = 1024M \
+# RUN: ram (rwx) : ORIGIN = 0, LENGTH = 1024M \
# RUN: rom (rx) : org = 0x80000000, len = 64M \
# RUN: } \
# RUN: SECTIONS { \
@@ -33,7 +33,7 @@
## Check memory region placement by attributes.
# RUN: echo "MEMORY { \
-# RUN: ram (!rx) : ORIGIN = 0x0, LENGTH = 1024M \
+# RUN: ram (!rx) : ORIGIN = 0, LENGTH = 1024M \
# RUN: rom (rx) : o = 0x80000000, l = 64M \
# RUN: } \
# RUN: SECTIONS { \
@@ -62,7 +62,7 @@
## Check duplicate regions.
-# RUN: echo "MEMORY { ram (rwx) : o = 0x8, l = 256K ram (rx) : o = 0x0, l = 256K }" > %t.script
+# RUN: echo "MEMORY { ram (rwx) : o = 8, l = 256K ram (rx) : o = 0, l = 256K }" > %t.script
# RUN: not ld.lld -o %t2 --script %t.script %t 2>&1 \
# RUN: | FileCheck -check-prefix=ERR3 %s
# ERR3: {{.*}}.script:1: region 'ram' already defined
@@ -87,7 +87,7 @@
## Check region overflow.
-# RUN: echo "MEMORY { ram (rwx) : ORIGIN = 0x0, LENGTH = 2K } \
+# RUN: echo "MEMORY { ram (rwx) : ORIGIN = 0, LENGTH = 2K } \
# RUN: SECTIONS { \
# RUN: .text : { *(.text) } > ram \
# RUN: .data : { *(.data) } > ram \
@@ -98,7 +98,7 @@
## Check invalid region attributes.
-# RUN: echo "MEMORY { ram (abc) : ORIGIN = 0x8000, LENGTH = 256K } }" > %t.script
+# RUN: echo "MEMORY { ram (abc) : ORIGIN = 8000, LENGTH = 256K } }" > %t.script
# RUN: not ld.lld -o %t2 --script %t.script %t 2>&1 \
# RUN: | FileCheck -check-prefix=ERR7 %s
# ERR7: {{.*}}.script:1: invalid memory region attribute
OpenPOWER on IntegriCloud