Don't generate .debug_line section if it isn't empty.
commita30691ab5d1406cbad298b3a3f543efd8c07717a
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 5 Jul 2010 15:07:17 +0000 (5 15:07 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 5 Jul 2010 15:07:17 +0000 (5 15:07 +0000)
tree2408c60dc9d648f6011df6465412f586ca2a3210
parentc4d6024061b21445dbc34596115a001069023aa4
Don't generate .debug_line section if it isn't empty.

binutils/testsuite/

2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10531
PR gas/11789
* binutils-all/objdump.W: Remove bogus line debug info.

gas/

2010-07-05  Jim Wilson  <wilson@codesourcery.com>

PR gas/10531
PR gas/11789
* dwarf2dbg.c (dwarf2_finish): Don't generate .debug_line section
if it isn't empty.

gas/testsuite/

2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10531
PR gas/11789
* gas/i386/dw2-compress-1.d: Remove bogus line debug info.

* gas/elf/dwarf2-1.d: New.
* gas/elf/dwarf2-1.s: Likewise.
* gas/elf/dwarf2-2.d: Likewise.
* gas/elf/dwarf2-2.s: Likewise.
* gas/elf/dwarf2-3.d: Likewise.
* gas/elf/dwarf2-3.s: Likewise.
* gas/i386/debug1.d: Likewise.
* gas/i386/debug1.s: Likewise.

* gas/elf/elf.exp: Run dwarf2-1, dwarf2-2 and dwarf2-3.

* gas/i386/i386.exp: Run debug1 for both 32bit and 64bit.
16 files changed:
binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/objdump.W
gas/ChangeLog
gas/dwarf2dbg.c
gas/testsuite/ChangeLog
gas/testsuite/gas/elf/dwarf2-1.d [copied from binutils/testsuite/binutils-all/objdump.W with 79% similarity]
gas/testsuite/gas/elf/dwarf2-1.s [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf2-2.d [copied from binutils/testsuite/binutils-all/objdump.W with 79% similarity]
gas/testsuite/gas/elf/dwarf2-2.s [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf2-3.d [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf2-3.s [new file with mode: 0644]
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/i386/debug1.d [new file with mode: 0644]
gas/testsuite/gas/i386/debug1.s [new file with mode: 0644]
gas/testsuite/gas/i386/dw2-compress-1.d
gas/testsuite/gas/i386/i386.exp