public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* .init_array/.fini_array
@ 2002-10-21 12:20 Steve Ellcey
  2002-10-22  1:51 ` .init_array/.fini_array Alan Modra
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Ellcey @ 2002-10-21 12:20 UTC (permalink / raw)
  To: binutils; +Cc: gcc


I have a question about the .init_array and .fini_array ELF sections.
In gas/config/obj-elf.c these are defined as standard SHT_PROGBITS
sections instead of special SHT_INIT_ARRAY or SHT_FINI_ARRAY sections.
The file contains the comment:

  /* FIXME: The current gcc, as of 2002-03-03, will emit

        .section .init_array,"aw",@progbits

     for __attribute__ ((section (".init_array"))). "@progbits" marks
     the incorrect section type. For now, we make them with
     SHT_PROGBITS. BFD will fix the section type. Gcc should be changed
     to emit

        .section .init_array

I was wondering if there has been any change in this status?  On HP-UX
IA64 I am using the HP linker and it handles these sections so I would
like them to have their correct definitions.

Rather then use

	.section .init_array

in GCC I am currently putting out:

	.section	.init_array,	"aw",	"init_array"

for this section based on CTORS_SECTION_ASM_OP in config/ia64/hpux.h and
I need the correct definition of .init_array/.fini_array/.preinit_array
for this to work.

Steve Ellcey
sje@cup.hp.com

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

end of thread, other threads:[~2002-10-22  8:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-21 12:20 .init_array/.fini_array Steve Ellcey
2002-10-22  1:51 ` .init_array/.fini_array Alan Modra
2002-10-22  3:58   ` .init_array/.fini_array Richard Henderson
2002-10-22  5:54     ` .init_array/.fini_array Alan Modra

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).