public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug uprobes/12851] New: Wrong section group usage in <sys/sdt.h>
@ 2011-06-07  3:15 hjl.tools at gmail dot com
  2011-06-07 11:33 ` [Bug uprobes/12851] " mjw at redhat dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: hjl.tools at gmail dot com @ 2011-06-07  3:15 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=12851

           Summary: Wrong section group usage in <sys/sdt.h>
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: uprobes
        AssignedTo: systemtap@sourceware.org
        ReportedBy: hjl.tools@gmail.com


When compiling GCC 4.7 on Fedora 15 with
systemtap-sdt-devel-1.4-9.fc15.x86_64, x64-64
unwind-dw2.s has

.pushsection .note.stapsdt,"?","note"
.balign 4
.4byte 992f-991f,994f-993f,3
991: .asciz "stapsdt"
992: .balign 4
993: .8byte 990b
.8byte _.stapsdt.base
.8byte 0
.asciz "libgcc"
.asciz "unwind"
.asciz "8@%rdi 8@%rsi"
994: .balign 4
.popsection

# 0 "" 2
# 1555 "/export/gnu/import/git/gcc-x32/libgcc/../gcc/unwind-dw2.c" 1
        .ifndef _.stapsdt.base
.pushsection .stapsdt.base,"aG","progbits",.stapsdt.base,comdat
.weak _.stapsdt.base
.hidden _.stapsdt.base
_.stapsdt.base: .space 1
.size _.stapsdt.base,1

It is unsafe since .stapsdt.base section may be deleted
by another .stapsdt.base section group and it leads
to undefined reference error in .note.stapsdt section.
2 sections must be put in the same section group.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-06-14  2:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-07  3:15 [Bug uprobes/12851] New: Wrong section group usage in <sys/sdt.h> hjl.tools at gmail dot com
2011-06-07 11:33 ` [Bug uprobes/12851] " mjw at redhat dot com
2011-06-07 13:11 ` hjl.tools at gmail dot com
2011-06-07 13:59 ` mjw at redhat dot com
2011-06-07 14:42 ` hjl.tools at gmail dot com
2011-06-08 15:16 ` mjw at redhat dot com
2011-06-08 15:44 ` hjl.tools at gmail dot com
2011-06-08 15:44 ` hjl.tools at gmail dot com
2011-06-08 17:39 ` [Bug ld/12851] " hjl.tools at gmail dot com
2011-06-08 17:40 ` [Bug ld/12851] --gc-sections doesn't work on comdat sections hjl.tools at gmail dot com
2011-06-08 20:09 ` [Bug ld/12851] --gc-sections doesn't work on note sections hjl.tools at gmail dot com
2011-06-08 20:11 ` hjl.tools at gmail dot com
2011-06-09  4:53 ` cvs-commit at gcc dot gnu.org
2011-06-09 12:43 ` hjl.tools at gmail dot com
2011-06-14  2:46 ` cvs-commit at gcc dot gnu.org
2011-06-14  2:48 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).