Hide Forgot
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.
In the upstream tracker, H.J. Lu determined that this is really an issue in ld, and committed a fix as well.
I have added H.J.'s patch to the latest binutils release in rawhide: binutils-2.21.52.0.1-2.fc16. cf: http://sourceware.org/ml/binutils/2011-06/msg00107.html
I released the Linux binutils 2.21.52.0.2, which contains the fix and Intel AVX2 support.