This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

m68k-aout-g++ : Strange data generated to .data section __GLOBAL__F_*


Hello.

I'm experiencing strange behavior with m68k-aout-g++ :

// Source file : mytest.cc
extern "C" void func2();

extern "C" void func1()
{
    func2();
}


$ m68k-unknown-aout-g++ mytest.cc ; cat mytest.s
#NO_APP
    .text
    .even
    .globl _func1
_func1:
LFB3:
    link a6,#0
LCFI0:
    jbsr _func2
    unlk a6
    rts
LFE3:
    .data
    .even
    .globl __GLOBAL__F_func1
    __GLOBAL__F_func1:
Lframe1:
    .long LECIE1-LSCIE1
LSCIE1:
    .long 0x0
    .byte 0x1
    .ascii "zP\0"
    .uleb128 0x1
    .sleb128 -4
    .byte 0x18
    .uleb128 0x5
    .byte 0x0
    .long ___gxx_personality_v0
    .byte 0xc
    .uleb128 0xf
    .uleb128 0x4
    .byte 0x98
    .uleb128 0x1
    .even
LECIE1:
LSFDE1:
    .long LEFDE1-LASFDE1
LASFDE1:
    .long LASFDE1-Lframe1
    .long LFB3
    .long LFE3-LFB3
    .uleb128 0x0
    .byte 0x4
    .long LCFI0-LFB3
    .byte 0x8e
    .uleb128 0x2
    .byte 0xc
    .uleb128 0xe
    .uleb128 0x8
    .even
LEFDE1:
    .long 0x0



What is all that stuff put into the .data section, after __GLOBAL__F_func1 ?
It disappears if I compile the source with --no-exceptions... so I guess it might be related to exception unwinding ?

That code looks very odd... is it normal ?

Vincent.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]