Handle srdata sections emitted by Intel compiler.
authorJim Wilson <wilson@tuliptree.org>
Wed, 8 Nov 2000 00:39:32 +0000 (00:39 +0000)
committerJim Wilson <wilson@tuliptree.org>
Wed, 8 Nov 2000 00:39:32 +0000 (00:39 +0000)
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.

ld/ChangeLog
ld/emultempl/elf32.em

index adbabcdd71a656eba6cd440473cc673916b2e566..23c7e65bbdca9894ddcaef303048288d00bb34a7 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-07  Jim Wilson  <wilson@redhat.com>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
+       hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
+
 2000-11-06  Nick Clifton  <nickc@redhat.com>
 
        * ld.texinfo: Add GNU Free Documentation License.
index fe4966dc99c2db6aec5a5c16ac6a5500ec7c4920..617c6509930a45c678f7aff16669e57efbc2f088 100644 (file)
@@ -1008,6 +1008,7 @@ gld${EMULATION_NAME}_place_orphan (file, s)
   static struct orphan_save hold_bss;
   static struct orphan_save hold_rel;
   static struct orphan_save hold_interp;
+  static struct orphan_save hold_sdata;
   static int count = 1;
   struct orphan_save *place;
   lang_statement_list_type *old;
@@ -1071,6 +1072,9 @@ gld${EMULATION_NAME}_place_orphan (file, s)
   else if ((s->flags & SEC_HAS_CONTENTS) == 0
           && HAVE_SECTION (hold_bss, ".bss"))
     place = &hold_bss;
+  else if ((s->flags & SEC_SMALL_DATA) != 0
+          && HAVE_SECTION (hold_sdata, ".sdata"))
+    place = &hold_sdata;
   else if ((s->flags & SEC_READONLY) == 0
           && HAVE_SECTION (hold_data, ".data"))
     place = &hold_data;