diff options
Diffstat (limited to 'ld/m68kcoff.sc-sh')
-rw-r--r-- | ld/m68kcoff.sc-sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ld/m68kcoff.sc-sh b/ld/m68kcoff.sc-sh index 1ef0265..519791c 100644 --- a/ld/m68kcoff.sc-sh +++ b/ld/m68kcoff.sc-sh @@ -15,7 +15,17 @@ SECTIONS { .text : { *(.text) - ${RELOCATING+ etext = .}; + ${RELOCATING+ etext = .;} + ${CONSTRUCTING+ __CTOR_LIST__ = .;} + ${CONSTRUCTING+ LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)} + *(.ctors) + ${CONSTRUCTING+ LONG(0)} + ${CONSTRUCTING+ __CTOR_END__ = .;} + ${CONSTRUCTING+ __DTOR_LIST__ = .;} + ${CONSTRUCTING+ LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)} + *(.dtors) + ${CONSTRUCTING+ LONG(0)} + ${CONSTRUCTING+ __DTOR_END__ = .;} *(.lit) *(.shdata) } ${RELOCATING+ > text} |