[Bug gas/11509] Strange evaluation of symbol containing register

2010-04-21 Thread hjl dot tools at gmail dot com
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-04-21 18:10 --- Subject: Bug 11509 CVSROOT:/cvs/src Module name:src Changes by: h...@sourceware.org 2010-04-21 18:09:53 Modified files: gas: ChangeLog read.c gas/config

[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

[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 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=4744&action=view) Correct patch: Adds section address to filename symbols' values -- What|Removed

[Bug gprof/11524] New: segmentation fault when use --external-symbol-table option

2010-04-21 Thread hongsheng611 at gmail dot com
the bug is in the file: binutils-2.20/gprof/corefile.c in the function: static int num_of_syms_in (FILE * f) line 520: while (!feof (f) && fgets (buf, sizeof (buf), f)) this is wrong! because the type of buf is char *, so sizeof(buf)=4 this would cause segmentation fault when use --externa

[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