Don't generate .debug_line section if it isn't empty.
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 5 Jul 2010 15:07:20 +0000 (15:07 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 5 Jul 2010 15:07:20 +0000 (15:07 +0000)
commitdf1c40a732c509d6729b2874d7e08987b7815490
treeefa004eff372ae9b16ed80de22e5ed266991a72a
parent5b9144488e69022bcaba2ed410ac777ed22272c2
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 [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf2-1.s [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf2-2.d [new file with mode: 0644]
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