* config/obj-elf.c (special_sections): Work around HP's incorrect usage
authorDave Anglin <dave.anglin@nrc.ca>
Wed, 1 Jan 2003 16:56:34 +0000 (16:56 +0000)
committerDave Anglin <dave.anglin@nrc.ca>
Wed, 1 Jan 2003 16:56:34 +0000 (16:56 +0000)
        of .init and .fini sections for array initializers and finalizers.

gas/ChangeLog
gas/config/obj-elf.c

index 833e3e062a7c5eddbb0416ba0f932cc55e66b966..346696b29ccba190915432e33457c78d3b33f226 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-01  John David Anglin  <dave.anglin@nrc.ca>
+
+        * config/obj-elf.c (special_sections): Work around HP's incorrect usage
+        of .init and .fini sections for array initializers and finalizers.
+
 2002-12-31  Chris Demetriou  <cgd@broadcom.com>
 
        * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
index 6046a294bebd4980435cd3bcc0632f5750094d5c..5dc4279b2dc8acfb92815ffbf620f1905f129f67 100644 (file)
@@ -609,8 +609,13 @@ static struct special_section const special_sections[] =
   { ".data",   SHT_PROGBITS,   SHF_ALLOC + SHF_WRITE           },
   { ".data1",  SHT_PROGBITS,   SHF_ALLOC + SHF_WRITE           },
   { ".debug",  SHT_PROGBITS,   0                               },
+#if defined (TC_HPPA) && !defined (TE_LINUX) && TARGET_ARCH_SIZE == 64
+  { ".fini",   SHT_PROGBITS,   SHF_ALLOC + SHF_WRITE           },
+  { ".init",   SHT_PROGBITS,   SHF_ALLOC + SHF_WRITE           },
+#else
   { ".fini",   SHT_PROGBITS,   SHF_ALLOC + SHF_EXECINSTR       },
   { ".init",   SHT_PROGBITS,   SHF_ALLOC + SHF_EXECINSTR       },
+#endif
   { ".line",   SHT_PROGBITS,   0                               },
   { ".note",   SHT_NOTE,       0                               },
   { ".rodata", SHT_PROGBITS,   SHF_ALLOC                       },