[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-21 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2010-04-21 07:02 --- Hi dzidzitop, Oops - sorry about that. I uploaded the wrong patch file by mistake. Please try out the new one instead. With this patch applied, using your test case I get: % addr2line -e bbb.exe 0x4013c0

[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-21 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2010-04-21 07:01 --- Created an attachment (id=4744) -- (http://sourceware.org/bugzilla/attachment.cgi?id=4744action=view) Correct patch: Adds section address to filename symbols' values -- What|Removed

[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-21 Thread dzidzitop at lavabit dot com
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-21 12:36 --- Good job Nick. This works for me, at least under Ubuntu. Thanks. -- What|Removed |Added

[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-21 Thread dzidzitop at lavabit dot com
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-21 12:46 --- By the way ! offset + sec_vma = file_addr ! offset + sec_vma - file_addr = maxdiff) This code from your patch. It could be re-written to store offset + sec_vma - file_addr into a

[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-20 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2010-04-20 17:10 --- Created an attachment (id=4740) -- (http://sourceware.org/bugzilla/attachment.cgi?id=4740action=view) Add section address to symbol's value when looking up filenames --

[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-20 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2010-04-20 17:12 --- Hi dvidvitop, I have uploaded a patch that *might* resolve the problem for you. Please try it out and let me know how you get on. If the patch does not work, please could you include some more detailed

[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-20 Thread dzidzitop at lavabit dot com
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-20 17:32 --- Thanks Nick, but the patch is unlikely to help. The bug is in the other binutils program - addr2line. This patch changes something within the objdump program. Actually, the bug is somewhere inside the BFD

[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-20 Thread dzidzitop at lavabit dot com
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-20 18:05 --- Created an attachment (id=4741) -- (http://sourceware.org/bugzilla/attachment.cgi?id=4741action=view) A file to demonstrate the bug Forget about previous application. It is too large to be sumbited here.

[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-20 Thread dzidzitop at lavabit dot com
-- What|Removed |Added Attachment #4741 is|0 |1 obsolete|| http://sourceware.org/bugzilla/show_bug.cgi?id=11512

[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-20 Thread dzidzitop at lavabit dot com
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-20 18:08 --- Created an attachment (id=4742) -- (http://sourceware.org/bugzilla/attachment.cgi?id=4742action=view) A file to demonstrate the bug -- http://sourceware.org/bugzilla/show_bug.cgi?id=11512 --- You

[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-20 Thread dzidzitop at lavabit dot com
-- What|Removed |Added Attachment #4742|A file to demonstrate the |A file to demonstrate the description|bug |bug (the name of the file

[Bug binutils/11512] addr2line displays frong filename for GCC app compiled with -gcoff option

2010-04-19 Thread dzidzitop at lavabit dot com
-- What|Removed |Added GCC host triplet||WinXP 32bit GCC target triplet||WinXP 32bit PE