Support the g++ attribute init_priority in gcc 2.95.2 and later.
This commit is contained in:
parent
2b99395a2e
commit
062739d151
|
@ -1,3 +1,8 @@
|
||||||
|
2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
|
||||||
|
|
||||||
|
* scripttempl/i386go32.sc: Support the g++ attribute init_priority in
|
||||||
|
gcc 2.95.2 and later.
|
||||||
|
|
||||||
2000-07-11 Kazu Hirata <kazu@hxi.com>
|
2000-07-11 Kazu Hirata <kazu@hxi.com>
|
||||||
|
|
||||||
* ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
|
* ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
|
||||||
|
|
|
@ -5,8 +5,14 @@ EXE=${CONSTRUCTING+${RELOCATING+-exe}}
|
||||||
|
|
||||||
# These are substituted in as variables in order to get '}' in a shell
|
# These are substituted in as variables in order to get '}' in a shell
|
||||||
# conditional expansion.
|
# conditional expansion.
|
||||||
CTOR='.ctor : { *(.ctor) }'
|
CTOR='.ctor : {
|
||||||
DTOR='.dtor : { *(.dtor) }'
|
*(SORT(.ctors.*))
|
||||||
|
*(.ctor)
|
||||||
|
}'
|
||||||
|
DTOR='.dtor : {
|
||||||
|
*(SORT(.dtors.*))
|
||||||
|
*(.dtor)
|
||||||
|
}'
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}${EXE}")
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}${EXE}")
|
||||||
|
@ -26,9 +32,11 @@ SECTIONS
|
||||||
}
|
}
|
||||||
.data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
|
.data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
|
||||||
${RELOCATING+djgpp_first_ctor = . ;
|
${RELOCATING+djgpp_first_ctor = . ;
|
||||||
|
*(SORT(.ctors.*))
|
||||||
*(.ctor)
|
*(.ctor)
|
||||||
djgpp_last_ctor = . ;}
|
djgpp_last_ctor = . ;}
|
||||||
${RELOCATING+djgpp_first_dtor = . ;
|
${RELOCATING+djgpp_first_dtor = . ;
|
||||||
|
*(SORT(.dtors.*))
|
||||||
*(.dtor)
|
*(.dtor)
|
||||||
djgpp_last_dtor = . ;}
|
djgpp_last_dtor = . ;}
|
||||||
*(.data)
|
*(.data)
|
||||||
|
|
Loading…
Reference in New Issue