aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorCooper Qu <cooper.qu@linux.alibaba.com>2020-10-12 22:31:29 +0800
committerLifang Xia <xlf194833_xia@alibaba-inc.com>2020-10-26 17:13:21 +0800
commit1b03c32c3bd08f180f22ee2f8a5dce7f42a74ebf (patch)
tree7d9361fab3824e594f8777015acbbdda7a8bb094 /ld/testsuite
parenteae61d61e97dee34d0d8433eddc1d69dd5579b9c (diff)
downloadgdb-1b03c32c3bd08f180f22ee2f8a5dce7f42a74ebf.zip
gdb-1b03c32c3bd08f180f22ee2f8a5dce7f42a74ebf.tar.gz
gdb-1b03c32c3bd08f180f22ee2f8a5dce7f42a74ebf.tar.bz2
CSKY: Change default linker script for elf toolchain.
ld/ * emulparams/cskyelf.sh (TEXT_START_ADDR): Change to 0x60000000. (DATA_ADDR) : Define. (OTHER_SYMBOLS) : Define. (OTHER_BSS_SYMBOLS) : Set symbol __sbss__. (OTHER_BSS_END_SYMBOLS) : Set symbol __ebss__. * ld/emulparams/cskyelf_linux.sh : Don't include cskyelf.sh. * testsuite/ld-csky/data.d : Fix '/s*' to match spaces. * testsuite/ld-csky/hilo16.d : Likewise. Change-Id: Ia29b32eab4157ae5be0fc0b6125fb5b7d9dac939
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-csky/data.d12
-rw-r--r--ld/testsuite/ld-csky/hilo16.d4
2 files changed, 8 insertions, 8 deletions
diff --git a/ld/testsuite/ld-csky/data.d b/ld/testsuite/ld-csky/data.d
index 21b2f27..f1dd470 100644
--- a/ld/testsuite/ld-csky/data.d
+++ b/ld/testsuite/ld-csky/data.d
@@ -10,9 +10,9 @@
Disassembly of section .text:
[0-9a-f]+ <__start>:
- [0-9a-f]+: cd400004 lrs.b r10, \[0x4\] // the offset is based on .data
- [0-9a-f]+: cd440002 lrs.h r10, \[0x2\] // the offset is based on .data
- [0-9a-f]+: cd480001 lrs.w r10, \[0x1\] // the offset is based on .data
- [0-9a-f]+: cd700004 srs.b r11, \[0x4\] // the offset is based on .data
- [0-9a-f]+: cd740002 srs.h r11, \[0x2\] // the offset is based on .data
- [0-9a-f]+: cd780001 srs.w r11, \[0x1\] // the offset is based on .data
+\s*[0-9a-f]+: cd400004 lrs.b r10, \[0x4\] // the offset is based on .data
+\s*[0-9a-f]+: cd440002 lrs.h r10, \[0x2\] // the offset is based on .data
+\s*[0-9a-f]+: cd480001 lrs.w r10, \[0x1\] // the offset is based on .data
+\s*[0-9a-f]+: cd700004 srs.b r11, \[0x4\] // the offset is based on .data
+\s*[0-9a-f]+: cd740002 srs.h r11, \[0x2\] // the offset is based on .data
+\s*[0-9a-f]+: cd780001 srs.w r11, \[0x1\] // the offset is based on .data
diff --git a/ld/testsuite/ld-csky/hilo16.d b/ld/testsuite/ld-csky/hilo16.d
index f2435c0..d038a06 100644
--- a/ld/testsuite/ld-csky/hilo16.d
+++ b/ld/testsuite/ld-csky/hilo16.d
@@ -10,5 +10,5 @@
Disassembly of section .text:
[0-9a-f]+ <__start>:
- [0-9a-f]+: ea21dead movih r1, 57005
- [0-9a-f]+: ec21beef ori r1, r1, 48879
+\s*[0-9a-f]+: ea21dead movih r1, 57005
+\s*[0-9a-f]+: ec21beef ori r1, r1, 48879