[Bug ld/12017] New: Would like to disable compiler warning re use of tmpnam
When building code that calls tmpnam, the compiler generates this warning: "warning: the use of `tmpnam' is dangerous, better use `mkstemp'" Unlike other compiler warnings this one does not have a number and so there appears to be no way to disable it. I'd really like to disable this warning as our goal is to have our code compiling warning free, and I get frequent questions about this warning from other developers. For reference, we are explicitly calling this function precisely *because* it is unsafe. We have a library that we preload which wrappers calls to this function so we can trap any calls made to it and print out warnings to the user that it is being invoked before we call it. We do this with several unsafe calls that we want to avoid. Unfortunately this causes the compiler to generate the above warning from our code. -- Summary: Would like to disable compiler warning re use of tmpnam Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: om dot p dot sachan at intel dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=12017 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gprof/12020] New: gprof time accumulation problem in win32
In win32 gprof don't perform accumulation on execution time or report is bad. This works in binutils 2.17. -- Summary: gprof time accumulation problem in win32 Product: binutils Version: unspecified Status: NEW Severity: critical Priority: P1 Component: gprof AssignedTo: unassigned at sources dot redhat dot com ReportedBy: jponteprino at gmail dot com CC: bug-binutils at gnu dot org GCC build triplet: win32 GCC host triplet: win32 GCC target triplet: win32 http://sourceware.org/bugzilla/show_bug.cgi?id=12020 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/10144] mips/ld: non-dynamic relocations refer to dynamic symbol
--- Additional Comments From aurelien at aurel32 dot net 2010-09-14 19:17 --- I am reopening the bug as it appeared that the issue is not fixed in GCC 4.5 as I wrongly said here. It's just that our gcc was configured to default to -mplt which, in some cases, workaround the issue. To summarize the issue: - The issue is reproducible with any gcc version (tested 4.1, 4.3, 4.4, 4.5), provided that you use a binutils from after 2008-08-09. binutils from before 2008-08-08 works find with the same versions of gcc. - The issue can always be workarounded by not using -g - The issue can sometimes be workarounded by using -mplt - The issue is not fixed in HEAD as of 2010-09-14. -- What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID | http://sourceware.org/bugzilla/show_bug.cgi?id=10144 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/10144] mips/ld: non-dynamic relocations refer to dynamic symbol
--- Additional Comments From aurelien at aurel32 dot net 2010-09-14 19:24 --- Created an attachment (id=4981) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4981&action=view) Testcase with C code and makefile This new testcase doesn't obsolete the previous ones, but it's probably more handy as it contains the C code and a Makefile -- http://sourceware.org/bugzilla/show_bug.cgi?id=10144 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/10144] mips/ld: non-dynamic relocations refer to dynamic symbol
--- Additional Comments From macro at linux-mips dot org 2010-09-14 21:16 --- Aurelien, Coincidentally, I've been working on this problem for the last couple of days. I believe I have a fix ready that I plan to submit once it's gone through testing; probably even tonight. BTW, it's enough to pass "-z nocopyreloc" to LD to make this problem happen, regardless of GCC or GAS options used. Maciej -- What|Removed |Added AssignedTo|unassigned at sources dot |macro at linux-mips dot org |redhat dot com | Status|REOPENED|ASSIGNED http://sourceware.org/bugzilla/show_bug.cgi?id=10144 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/10144] mips/ld: non-dynamic relocations refer to dynamic symbol
--- Additional Comments From aurelien at aurel32 dot net 2010-09-14 23:01 --- Thanks for working on that. I have also spend some time trying to understand the problem. I have also written a patch by analysing the difference with other architecture, so I am not really sure it is correct: --- a/elfxx-mips.c +++ b/elfxx-mips.c @@ -8341,6 +8339,11 @@ _bfd_mips_elf_adjust_dynamic_symbol (str if (h->def_regular) return TRUE; + /* If there are no references to this symbol that do not use the + GOT, we don't need to generate a copy reloc. */ + if (!h->non_got_ref) +return TRUE; + /* There's also nothing more to do if we'll convert all relocations against this symbol into dynamic relocations. */ if (!hmips->has_static_relocs) At least it fixes the issue. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10144 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/10144] mips/ld: non-dynamic relocations refer to dynamic symbol
--- Additional Comments From macro at linux-mips dot org 2010-09-14 23:38 --- Aurelien, I have posted my proposal now, including LD testsuite cases: http://sourceware.org/ml/binutils/2010-09/msg00216.html Maciej -- http://sourceware.org/bugzilla/show_bug.cgi?id=10144 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/10144] mips/ld: non-dynamic relocations refer to dynamic symbol
--- Additional Comments From aurelien at aurel32 dot net 2010-09-14 23:53 --- Thanks a lot for your work. I'll test it tomorrow on a few of the cases we have and keep you updated. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10144 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/10144] mips/ld: non-dynamic relocations refer to dynamic symbol
--- Additional Comments From aurelien at aurel32 dot net 2010-09-15 05:37 --- I have built binutils including the patch linked in the previous comment. I confirm it fixes all the problem we currently have wrt this issue. Thanks. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10144 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils