[Bug ld/13049] Generates R_ARM_NONE relocations for stub_* symbols when using -fdata-sections
https://sourceware.org/bugzilla/show_bug.cgi?id=13049 Andreas Schwab schwab at sourceware dot org changed: What|Removed |Added CC|jackie.rosen at hushmail dot com | -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13049] Generates R_ARM_NONE relocations for stub_* symbols when using -fdata-sections
https://sourceware.org/bugzilla/show_bug.cgi?id=13049 Andreas Schwab schwab at sourceware dot org changed: What|Removed |Added CC|jackie.rosen at hushmail dot com | -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13049] Generates R_ARM_NONE relocations for stub_* symbols when using -fdata-sections
https://sourceware.org/bugzilla/show_bug.cgi?id=13049 Jackie Rosen jackie.rosen at hushmail dot com changed: What|Removed |Added CC||jackie.rosen at hushmail dot com --- Comment #14 from Jackie Rosen jackie.rosen at hushmail dot com --- *** Bug 260998 has been marked as a duplicate of this bug. *** Seen from the domain http://volichat.com Page where seen: http://volichat.com/adult-chat-rooms Marked for reference. Resolved as fixed @bugzilla. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13049] Generates R_ARM_NONE relocations for stub_* symbols when using -fdata-sections
http://sourceware.org/bugzilla/show_bug.cgi?id=13049 --- Comment #10 from christophe.lyon at st dot com christophe.lyon at st dot com 2011-10-26 08:14:52 UTC --- Hi Alan, I think you are right. I had forgotten about this difference betweem ARM and HPPA/PPC. For the record, it was introduced after this discussion: http://sourceware.org/ml/binutils/2009-03/msg00400.html Nick, sorry for being too paranoid too. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13049] Generates R_ARM_NONE relocations for stub_* symbols when using -fdata-sections
http://sourceware.org/bugzilla/show_bug.cgi?id=13049 --- Comment #11 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot gnu.org 2011-10-26 09:48:02 UTC --- CVSROOT:/cvs/src Module name:src Changes by:ni...@sourceware.org2011-10-26 09:47:58 Modified files: bfd: ChangeLog elf64-ppc.c elf32-hppa.c Log message: PR ld/13049 * elf64-ppc.c (STUB_SUFFIX): Revert previous delta. * elf32-hppa.c (STUB_SUFFIX): Likewise. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5505r2=1.5506 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-ppc.c.diff?cvsroot=srcr1=1.368r2=1.369 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-hppa.c.diff?cvsroot=srcr1=1.180r2=1.181 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13049] Generates R_ARM_NONE relocations for stub_* symbols when using -fdata-sections
http://sourceware.org/bugzilla/show_bug.cgi?id=13049 --- Comment #12 from Nick Clifton nickc at redhat dot com 2011-10-26 09:49:41 UTC --- Hi Alan, Well I felt that there was no harm in being paranoid, but if you prefer the original stub section suffix then so be it. I have reverted the changes to elf64-ppc.c and elf32-hppa.c. Cheers Nick -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13049] Generates R_ARM_NONE relocations for stub_* symbols when using -fdata-sections
http://sourceware.org/bugzilla/show_bug.cgi?id=13049 --- Comment #13 from Alan Modra amodra at gmail dot com 2011-10-26 11:31:33 UTC --- Thanks Nick. Incidentally, it looks to me that the only real problem with using strstr to check for stub sections is the one in elf32_arm_final_link_relocate, introduced in http://sourceware.org/ml/binutils/2010-02/msg00460.html. In all other cases you are dealing with sections in stub_bfd, all linker created so random user named sections aren't involved. I suspect the following is the proper fix, but I don't play enough with arm to be sure. Index: bfd/elf32-arm.c === RCS file: /cvs/src/src/bfd/elf32-arm.c,v retrieving revision 1.280 diff -u -p -r1.280 elf32-arm.c --- bfd/elf32-arm.c24 Oct 2011 12:52:37 -1.280 +++ bfd/elf32-arm.c26 Oct 2011 11:27:31 - @@ -8069,7 +8069,8 @@ elf32_arm_final_link_relocate (reloc_how .tls_vars) == 0) ((r_type != R_ARM_REL32 r_type != R_ARM_REL32_NOI) || !SYMBOL_CALLS_LOCAL (info, h)) - (!strstr (input_section-name, STUB_SUFFIX)) + !(input_bfd == globals-stub_bfd +strstr (input_section-name, STUB_SUFFIX)) (h == NULL || ELF_ST_VISIBILITY (h-other) == STV_DEFAULT || h-root.type != bfd_link_hash_undefweak) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13049] Generates R_ARM_NONE relocations for stub_* symbols when using -fdata-sections
http://sourceware.org/bugzilla/show_bug.cgi?id=13049 Nick Clifton nickc at redhat dot com changed: What|Removed |Added Attachment #6019|0 |1 is obsolete|| --- Comment #4 from Nick Clifton nickc at redhat dot com 2011-10-20 14:30:47 UTC --- Created attachment 6021 -- http://sourceware.org/bugzilla/attachment.cgi?id=6021 Rename stub sections in ARM, PPC and HPPA -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13049] Generates R_ARM_NONE relocations for stub_* symbols when using -fdata-sections
http://sourceware.org/bugzilla/show_bug.cgi?id=13049 --- Comment #1 from Nick Clifton nickc at redhat dot com 2011-10-18 15:40:18 UTC --- Created attachment 6019 -- http://sourceware.org/bugzilla/attachment.cgi?id=6019 Rename stub section -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13049] Generates R_ARM_NONE relocations for stub_* symbols when using -fdata-sections
http://sourceware.org/bugzilla/show_bug.cgi?id=13049 Nick Clifton nickc at redhat dot com changed: What|Removed |Added Status|NEW |WAITING CC||nickc at redhat dot com --- Comment #2 from Nick Clifton nickc at redhat dot com 2011-10-18 15:44:20 UTC --- Hi Mike, This was an interesting one. It turns out that using the word stub at the start of your variable was significant. With -fdata-sections enabled the variable was placed into a section called .data.rel.local.stub_foo which confused the linker into thinking that it was a special section for containing other stubs. I have uploaded a patch which should fix the problem by choosing a name for the stub section suffix which is not valid as the start of the name of a C variable. (Ie __stub). Please can you try it out and let me know if it works for you. Cheers Nick -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils