diff options
author | Steve Chamberlain <sac@cygnus> | 1995-06-15 15:48:35 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1995-06-15 15:48:35 +0000 |
commit | 8a239b623503a391d5b49e1fbdcfd69a3d852f2e (patch) | |
tree | 611813da67f422cf9e1397c26c3bfa244c9c2721 /ld/scripttempl | |
parent | d25079a09626c82c7cc997cd73e6dec9619e0cba (diff) | |
download | gdb-8a239b623503a391d5b49e1fbdcfd69a3d852f2e.zip gdb-8a239b623503a391d5b49e1fbdcfd69a3d852f2e.tar.gz gdb-8a239b623503a391d5b49e1fbdcfd69a3d852f2e.tar.bz2 |
* scripttempl/armpe.sc: Add constructor support.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/armpe.sc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ld/scripttempl/armpe.sc b/ld/scripttempl/armpe.sc index 56a945d..ea4e89c 100644 --- a/ld/scripttempl/armpe.sc +++ b/ld/scripttempl/armpe.sc @@ -11,7 +11,6 @@ ENTRY(_mainCRTStartup) SECTIONS { - .text ${RELOCATING+ 0x401000} : { ${RELOCATING+ *(.init);} @@ -23,7 +22,9 @@ SECTIONS .rdata BLOCK(0x1000) : { - *(.rdata) + *(.rdata) + ${CONSTRUCTING+ __CTOR_LIST__ = .; LONG (-1); *(.ctors); LONG (0); } + ${CONSTRUCTING+ __DTOR_LIST__ = .; LONG (-1); *(.dtors); LONG (0); } ; } .data BLOCK(0x1000) : { @@ -85,15 +86,16 @@ SECTIONS end = . ; } - .stab 0 ${RELOCATING+(NOLOAD)} : + .stab 0 : { [ .stab ] } - .stabstr 0 ${RELOCATING+(NOLOAD)} : + .stabstr 0 : { [ .stabstr ] } - stack = 0x800000 ; + +${RELOCATING+ stack = 0x800000 ;} } EOF |