From 34734a010beee3b56b382dc93249b6cd27c9a373 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 2 Nov 2010 13:47:44 +0000 Subject: [PATCH] Include compressed DWARF debug sections in ELF linker scripts. binutils/testsuite/ 2010-11-02 H.J. Lu * binutils-all/libdw2.out: Also accept MIPS_DWARF. ld/ 2010-11-02 H.J. Lu * scripttempl/armbpabi.sc: Include compressed DWARF debug sections. * scripttempl/avr.sc: Likewise. * scripttempl/elf32cr16.sc: Likewise. * scripttempl/elf32crx.sc: Likewise. * scripttempl/elf32msp430.sc: Likewise. * scripttempl/elf32msp430_3.sc: Likewise. * scripttempl/elf32sh-symbian.sc: Likewise. * scripttempl/elf64hppa.sc: Likewise. * scripttempl/elf_chaos.sc: Likewise. * scripttempl/elfd10v.sc: Likewise. * scripttempl/elfd30v.sc: Likewise. * scripttempl/elfi370.sc: Likewise. * scripttempl/elfm68hc11.sc: Likewise. * scripttempl/elfm68hc12.sc: Likewise. * scripttempl/elfxtensa.sc: Likewise. * scripttempl/ip2k.sc: Likewise. * scripttempl/iq2000.sc: Likewise. * scripttempl/mep.sc: Likewise. * scripttempl/mmo.sc: Likewise. * scripttempl/v850.sc: Likewise. * scripttempl/xstormy16.sc: Likewise. ld/testsuite/ 2010-11-02 H.J. Lu * ld-elf/compress1a.d: Also check MIPS_DWARF. * ld-elf/compress1b.d: Likewise. * ld-elf/compress1c.d: Likewise. --- binutils/testsuite/ChangeLog | 4 +++ binutils/testsuite/binutils-all/libdw2.out | 12 ++++---- ld/ChangeLog | 25 ++++++++++++++++ ld/scripttempl/armbpabi.sc | 30 +++++++++---------- ld/scripttempl/avr.sc | 22 +++++++------- ld/scripttempl/elf32cr16.sc | 18 ++++++------ ld/scripttempl/elf32crx.sc | 18 ++++++------ ld/scripttempl/elf32msp430.sc | 22 +++++++------- ld/scripttempl/elf32msp430_3.sc | 22 +++++++------- ld/scripttempl/elf32sh-symbian.sc | 30 +++++++++---------- ld/scripttempl/elf64hppa.sc | 34 +++++++++++----------- ld/scripttempl/elf_chaos.sc | 30 +++++++++---------- ld/scripttempl/elfd10v.sc | 30 +++++++++---------- ld/scripttempl/elfd30v.sc | 22 +++++++------- ld/scripttempl/elfi370.sc | 30 +++++++++---------- ld/scripttempl/elfm68hc11.sc | 22 +++++++------- ld/scripttempl/elfm68hc12.sc | 22 +++++++------- ld/scripttempl/elfxtensa.sc | 34 +++++++++++----------- ld/scripttempl/ip2k.sc | 22 +++++++------- ld/scripttempl/iq2000.sc | 30 +++++++++---------- ld/scripttempl/mep.sc | 30 +++++++++---------- ld/scripttempl/mmo.sc | 20 ++++++------- ld/scripttempl/v850.sc | 30 +++++++++---------- ld/scripttempl/xstormy16.sc | 30 +++++++++---------- ld/testsuite/ChangeLog | 6 ++++ ld/testsuite/ld-elf/compress1a.d | 3 +- ld/testsuite/ld-elf/compress1b.d | 2 +- ld/testsuite/ld-elf/compress1c.d | 2 +- 28 files changed, 319 insertions(+), 283 deletions(-) diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index 230b15f0198..dedc5f226d4 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-11-02 H.J. Lu + + * binutils-all/libdw2.out: Also accept MIPS_DWARF. + 2010-10-29 H.J. Lu * binutils-all/compress.exp: New. diff --git a/binutils/testsuite/binutils-all/libdw2.out b/binutils/testsuite/binutils-all/libdw2.out index 899e6f8dc8a..457774c05dd 100644 --- a/binutils/testsuite/binutils-all/libdw2.out +++ b/binutils/testsuite/binutils-all/libdw2.out @@ -1,13 +1,13 @@ #... - \[[ 0-9]+\] \.debug_info[ ]+PROGBITS[ 0-9a-z]+ [^Z]* + \[[ 0-9]+\] \.debug_info[ ]+(PROGBITS|MIPS_DWARF)[ 0-9a-z]+ [^Z]* #... - \[[ 0-9]+\] \.debug_line[ ]+PROGBITS[ 0-9a-z]+ [^Z]* + \[[ 0-9]+\] \.debug_line[ ]+(PROGBITS|MIPS_DWARF)[ 0-9a-z]+ [^Z]* #... - \[[ 0-9]+\] \.debug_abbrev[ ]+PROGBITS[ 0-9a-z]+ [^Z]* + \[[ 0-9]+\] \.debug_abbrev[ ]+(PROGBITS|MIPS_DWARF)[ 0-9a-z]+ [^Z]* #... - \[[ 0-9]+\] \.debug_info[ ]+PROGBITS[ 0-9a-z]+ [^Z]* + \[[ 0-9]+\] \.debug_info[ ]+(PROGBITS|MIPS_DWARF)[ 0-9a-z]+ [^Z]* #... - \[[ 0-9]+\] \.debug_line[ ]+PROGBITS[ 0-9a-z]+ [^Z]* + \[[ 0-9]+\] \.debug_line[ ]+(PROGBITS|MIPS_DWARF)[ 0-9a-z]+ [^Z]* #... - \[[ 0-9]+\] \.debug_abbrev[ ]+PROGBITS[ 0-9a-z]+ [^Z]* + \[[ 0-9]+\] \.debug_abbrev[ ]+(PROGBITS|MIPS_DWARF)[ 0-9a-z]+ [^Z]* #pass diff --git a/ld/ChangeLog b/ld/ChangeLog index 17d2d95b8dc..6382b83f64d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,28 @@ +2010-11-02 H.J. Lu + + * scripttempl/armbpabi.sc: Include compressed DWARF debug + sections. + * scripttempl/avr.sc: Likewise. + * scripttempl/elf32cr16.sc: Likewise. + * scripttempl/elf32crx.sc: Likewise. + * scripttempl/elf32msp430.sc: Likewise. + * scripttempl/elf32msp430_3.sc: Likewise. + * scripttempl/elf32sh-symbian.sc: Likewise. + * scripttempl/elf64hppa.sc: Likewise. + * scripttempl/elf_chaos.sc: Likewise. + * scripttempl/elfd10v.sc: Likewise. + * scripttempl/elfd30v.sc: Likewise. + * scripttempl/elfi370.sc: Likewise. + * scripttempl/elfm68hc11.sc: Likewise. + * scripttempl/elfm68hc12.sc: Likewise. + * scripttempl/elfxtensa.sc: Likewise. + * scripttempl/ip2k.sc: Likewise. + * scripttempl/iq2000.sc: Likewise. + * scripttempl/mep.sc: Likewise. + * scripttempl/mmo.sc: Likewise. + * scripttempl/v850.sc: Likewise. + * scripttempl/xstormy16.sc: Likewise. + 2010-10-29 H.J. Lu * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after diff --git a/ld/scripttempl/armbpabi.sc b/ld/scripttempl/armbpabi.sc index 8b3ea0a95a1..3049f36452c 100644 --- a/ld/scripttempl/armbpabi.sc +++ b/ld/scripttempl/armbpabi.sc @@ -335,27 +335,27 @@ cat < + + * ld-elf/compress1a.d: Also check MIPS_DWARF. + * ld-elf/compress1b.d: Likewise. + * ld-elf/compress1c.d: Likewise. + 2010-10-29 Joseph Myers * ld-tic6x/attr-compatibility-gnu-gnu.d, diff --git a/ld/testsuite/ld-elf/compress1a.d b/ld/testsuite/ld-elf/compress1a.d index 963623c50e8..a8eac404cf2 100644 --- a/ld/testsuite/ld-elf/compress1a.d +++ b/ld/testsuite/ld-elf/compress1a.d @@ -2,8 +2,9 @@ #as: --compress-debug-sections #ld: -e func_cu2 #readelf: -S --wide +#notarget: alpha-* #failif #... - \[[ 0-9]+\] \.zdebug_.*[ ]+PROGBITS[ 0-9a-z]+ .* + \[[ 0-9]+\] \.zdebug_.*[ ]+(PROGBITS|MIPS_DWARF)[ 0-9a-z]+ .* #... diff --git a/ld/testsuite/ld-elf/compress1b.d b/ld/testsuite/ld-elf/compress1b.d index 02109d53e2b..f3428d4580b 100644 --- a/ld/testsuite/ld-elf/compress1b.d +++ b/ld/testsuite/ld-elf/compress1b.d @@ -5,5 +5,5 @@ #failif #... - \[[ 0-9]+\] \.zdebug_.*[ ]+PROGBITS[ 0-9a-z]+ .* + \[[ 0-9]+\] \.zdebug_.*[ ]+(PROGBITS|MIPS_DWARF)[ 0-9a-z]+ .* #... diff --git a/ld/testsuite/ld-elf/compress1c.d b/ld/testsuite/ld-elf/compress1c.d index 7be7cfbde3e..50426942af6 100644 --- a/ld/testsuite/ld-elf/compress1c.d +++ b/ld/testsuite/ld-elf/compress1c.d @@ -6,5 +6,5 @@ #failif #... - \[[ 0-9]+\] \.zdebug_.*[ ]+PROGBITS[ 0-9a-z]+ .* + \[[ 0-9]+\] \.zdebug_.*[ ]+(PROGBITS|MIPS_DWARF)[ 0-9a-z]+ .* #... -- 2.30.2