public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: g++ init_priority support for DJGPP
@ 2000-07-11 14:37 Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2000-07-11 14:37 UTC (permalink / raw)
  To: snowball3; +Cc: binutils

Hi Mark,

: 2000-07-11  Mark Elbrecht  <snowball3@bigfoot.com>
: 
: 	* scripttempl/i386go32.sc: Support the g++ attribute init_priority in
: 	  gcc 2.95.2 and later.

Approved.

Cheers
	 Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

* g++ init_priority support for DJGPP
@ 2000-07-11 13:34 Mark E.
  0 siblings, 0 replies; 2+ messages in thread
From: Mark E. @ 2000-07-11 13:34 UTC (permalink / raw)
  To: binutils

Hi folks:

Adding support for the init_priority attribute in g++ for DJGPP is just a 
matter of a relatively trivial change to the linker script:

ld/Changelog:

2000-07-11  Mark Elbrecht  <snowball3@bigfoot.com>

	* scripttempl/i386go32.sc: Support the g++ attribute init_priority in
	  gcc 2.95.2 and later.

Index: src/ld/scripttempl/i386go32.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/i386go32.sc,v
retrieving revision 1.4
diff -c -p -r1.4 i386go32.sc
*** i386go32.sc	2000/02/28 03:55:16	1.4
--- i386go32.sc	2000/07/11 19:47:11
*************** EXE=${CONSTRUCTING+${RELOCATING+-exe}}
*** 5,12 ****
  
  # These are substituted in as variables in order to get '}' in a shell
  # conditional expansion.
! CTOR='.ctor : { *(.ctor) }'
! DTOR='.dtor : { *(.dtor) }'
  
  cat <<EOF
  OUTPUT_FORMAT("${OUTPUT_FORMAT}${EXE}")
--- 5,18 ----
  
  # These are substituted in as variables in order to get '}' in a shell
  # conditional expansion.
! CTOR='.ctor : {
!     *(SORT(.ctors.*))
!     *(.ctor)
!   }'
! DTOR='.dtor : {
!     *(SORT(.dtors.*))
!     *(.dtor)
!   }'
  
  cat <<EOF
  OUTPUT_FORMAT("${OUTPUT_FORMAT}${EXE}")
*************** SECTIONS
*** 26,34 ****
--- 32,42 ----
    }
    .data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
      ${RELOCATING+djgpp_first_ctor = . ;
+     *(SORT(.ctors.*))
      *(.ctor)
      djgpp_last_ctor = . ;}
      ${RELOCATING+djgpp_first_dtor = . ;
+     *(SORT(.dtors.*))
      *(.dtor)
      djgpp_last_dtor = . ;}
      *(.data)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-07-11 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-11 14:37 g++ init_priority support for DJGPP Nick Clifton
  -- strict thread matches above, loose matches on Subject: below --
2000-07-11 13:34 Mark E.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).