aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-elf/compress.exp20
-rw-r--r--ld/testsuite/ld-elf/zlibbegin.rS2
-rw-r--r--ld/testsuite/ld-elf/zlibnormal.rS2
4 files changed, 18 insertions, 12 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 5d29426..1e5334b 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2015-07-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-elf/compress.exp (build_tests): Replace -g with -ggdb3.
+ * ld-elf/zlibbegin.rS: Also expect "GC".
+ * ld-elf/zlibnormal.rS: Likewise.
+
2015-07-16 Jiong Wang <jiong.wang@arm.com>
* ld-aarch64/tls-tiny-ld.s: New file.
diff --git a/ld/testsuite/ld-elf/compress.exp b/ld/testsuite/ld-elf/compress.exp
index 4a3a278..f9caa9c 100644
--- a/ld/testsuite/ld-elf/compress.exp
+++ b/ld/testsuite/ld-elf/compress.exp
@@ -46,41 +46,41 @@ if { ![ld_assemble $as "--compress-debug-sections=zlib-gabi $srcdir/$subdir/empt
set build_tests {
{"Build libfoo.so with compressed debug sections"
- "-shared" "-fPIC -g -Wa,--compress-debug-sections"
+ "-shared" "-fPIC -ggdb3 -Wa,--compress-debug-sections"
{foo.c} {} "libfoo.so"}
{"Build libbar.so with compressed debug sections"
"-shared -Wl,--compress-debug-sections=none"
- "-fPIC -g -Wa,--compress-debug-sections"
+ "-fPIC -ggdb3 -Wa,--compress-debug-sections"
{begin.c end.c} {} "libbar.so"}
{"Build libfoozlib.so with compressed debug sections with zlib-gabi"
- "-shared" "-fPIC -g -Wa,--compress-debug-sections=zlib-gabi"
+ "-shared" "-fPIC -ggdb3 -Wa,--compress-debug-sections=zlib-gabi"
{foo.c} {} "libfoozlib.so"}
{"Build libbarzlib.so with compressed debug sections with zlib-gabi"
- "-shared" "-fPIC -g -Wa,--compress-debug-sections=zlib-gabi"
+ "-shared" "-fPIC -ggdb3 -Wa,--compress-debug-sections=zlib-gabi"
{begin.c end.c} {} "libbarzlib.so"}
{"Build libzlibfoo.so with zlib compressed debug sections"
"-shared -Wl,--compress-debug-sections=zlib"
- "-fPIC -g -Wa,--compress-debug-sections=zlib"
+ "-fPIC -ggdb3 -Wa,--compress-debug-sections=zlib"
{foo.c} {} "libzlibfoo.so"}
{"Build libgnufoo.so with zlib-gnu compressed debug sections"
"-shared -Wl,--compress-debug-sections=zlib-gnu"
- "-fPIC -g -Wa,--compress-debug-sections=zlib-gnu"
+ "-fPIC -ggdb3 -Wa,--compress-debug-sections=zlib-gnu"
{foo.c} {} "libgnufoo.so"}
{"Build libgabifoo.so with zlib-gabi compressed debug sections"
"-shared -Wl,--compress-debug-sections=zlib-gabi"
- "-fPIC -g -Wa,--compress-debug-sections=zlib-gabi"
+ "-fPIC -ggdb3 -Wa,--compress-debug-sections=zlib-gabi"
{foo.c} {} "libgabifoo.so"}
{"Build zlibbegin.o with zlib compressed debug sections"
"-r -nostdlib -Wl,--compress-debug-sections=zlib"
- "-g -Wa,--compress-debug-sections=zlib"
+ "-ggdb3 -Wa,--compress-debug-sections=zlib"
{begin.c} {} "zlibbegin.o"}
{"Build gnubegin.o with zlib-gnu compressed debug sections"
"-r -nostdlib -Wl,--compress-debug-sections=zlib-gnu"
- "-g -Wa,--compress-debug-sections=zlib-gnu"
+ "-ggdb3 -Wa,--compress-debug-sections=zlib-gnu"
{begin.c} {} "gnubegin.o"}
{"Build gabiend.o with zlib-gabi compressed debug sections"
"-r -nostdlib -Wl,--compress-debug-sections=zlib-gabi"
- "-g -Wa,--compress-debug-sections=zlib-gnu"
+ "-ggdb3 -Wa,--compress-debug-sections=zlib-gnu"
{end.c} {} "gabiend.o"}
}
diff --git a/ld/testsuite/ld-elf/zlibbegin.rS b/ld/testsuite/ld-elf/zlibbegin.rS
index 294fdb4..dbab80c 100644
--- a/ld/testsuite/ld-elf/zlibbegin.rS
+++ b/ld/testsuite/ld-elf/zlibbegin.rS
@@ -1,3 +1,3 @@
#...
- +\[[ 0-9]+\] .debug_.* +(PROGBITS|MIPS_DWARF) +0+ +[0-9a-f]+ +[0-9a-f]+ [0-9a-f]+ +C +0 +0 +1
+ +\[[ 0-9]+\] .debug_.* +(PROGBITS|MIPS_DWARF) +0+ +[0-9a-f]+ +[0-9a-f]+ [0-9a-f]+ +G?C +0 +0 +1
#pass
diff --git a/ld/testsuite/ld-elf/zlibnormal.rS b/ld/testsuite/ld-elf/zlibnormal.rS
index 294fdb4..dbab80c 100644
--- a/ld/testsuite/ld-elf/zlibnormal.rS
+++ b/ld/testsuite/ld-elf/zlibnormal.rS
@@ -1,3 +1,3 @@
#...
- +\[[ 0-9]+\] .debug_.* +(PROGBITS|MIPS_DWARF) +0+ +[0-9a-f]+ +[0-9a-f]+ [0-9a-f]+ +C +0 +0 +1
+ +\[[ 0-9]+\] .debug_.* +(PROGBITS|MIPS_DWARF) +0+ +[0-9a-f]+ +[0-9a-f]+ [0-9a-f]+ +G?C +0 +0 +1
#pass