[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/11802] DWARF .debug_line entry has incorrect address if directi
From: |
richard dot stuckey at virgin dot net |
Subject: |
[Bug gas/11802] DWARF .debug_line entry has incorrect address if directives used for code |
Date: |
12 Jul 2010 10:14:38 -0000 |
------- Additional Comments From richard dot stuckey at virgin dot net
2010-07-12 10:14 -------
Then why does gas create any DWARF info at all for this?
I am working on an application which generates an ELF/DWARF file from an input
file which contains only the hex code of the instructions, not their mnemonics,
outputting a .long for each 4-byte instruction, and a .loc preceding it to give
the file / line number information. This output file is then the input file for
gas, which generates an entry in the .debug_line section for each instruction,
but gets the offset of the first instruction wrong by 4 bytes. There are no
instructions in the .text section of the file input to gas, only the .long
directives, so if gas is not supposed to generate debug info for
.byte/.short/... then surely the .debug_line section should be empty? That
would have been better than debug data which was almost correct.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11802
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.