Replace -g with -ggdb3 in ld compress tests
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 24 Jul 2015 11:14:04 +0000 (04:14 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 24 Jul 2015 11:16:56 +0000 (04:16 -0700)
Use -ggdb3 to generate .debug_macro sections, which are bigger and are
always compressed.

* ld-elf/compress.exp (build_tests): Replace -g with -ggdb3.
* ld-elf/zlibbegin.rS: Also expect "GC".
* ld-elf/zlibnormal.rS: Likewise.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/compress.exp
ld/testsuite/ld-elf/zlibbegin.rS
ld/testsuite/ld-elf/zlibnormal.rS

index 5d29426e23aa90d48b36baca523f500fb566150e..1e5334b1e972736fe93ef45af83a1036fb995e43 100644 (file)
@@ -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.
index 4a3a27841a362b424ff3018ad9d0fdba2736e0a8..f9caa9c6f729a8fdc7c29b4f3daf3eb2da7181ad 100644 (file)
@@ -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"}
 }
 
index 294fdb4416c64b64e49f0afa9987f6870ceabf29..dbab80c2ac874543593648102cb4310fc2253bed 100644 (file)
@@ -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
index 294fdb4416c64b64e49f0afa9987f6870ceabf29..dbab80c2ac874543593648102cb4310fc2253bed 100644 (file)
@@ -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