ld: Replace exp_dataseg_none with exp_seg_none
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Nov 2017 16:19:10 +0000 (08:19 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Nov 2017 16:19:10 +0000 (08:19 -0800)
* emultempl/ppc32elf.em (ppc_before_allocation): Replace
exp_dataseg_none with exp_seg_none.
* emultempl/ppc64elf.em (prelim_size_sections): Likewise.
* emultempl/spuelf.em (spu_before_allocation): Likewise.

ld/ChangeLog
ld/emultempl/ppc32elf.em
ld/emultempl/ppc64elf.em
ld/emultempl/spuelf.em

index a619491..16786d7 100644 (file)
@@ -1,3 +1,10 @@
+2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * emultempl/ppc32elf.em (ppc_before_allocation): Replace
+       exp_dataseg_none with exp_seg_none.
+       * emultempl/ppc64elf.em (prelim_size_sections): Likewise.
+       * emultempl/spuelf.em (spu_before_allocation): Likewise.
+
 2017-11-12  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ldlang.c (lang_size_sections_1): Extract GNU_RELRO region check
index b1ea04d..f78a117 100644 (file)
@@ -149,7 +149,7 @@ ppc_before_allocation (void)
       if (expld.phase != lang_mark_phase_enum)
        {
          expld.phase = lang_mark_phase_enum;
-         expld.dataseg.phase = exp_dataseg_none;
+         expld.dataseg.phase = exp_seg_none;
          one_lang_size_sections_pass (NULL, FALSE);
          lang_reset_memory_regions ();
        }
index ac30664..d6d5b0a 100644 (file)
@@ -266,7 +266,7 @@ prelim_size_sections (void)
   if (expld.phase != lang_mark_phase_enum)
     {
       expld.phase = lang_mark_phase_enum;
-      expld.dataseg.phase = exp_dataseg_none;
+      expld.dataseg.phase = exp_seg_none;
       one_lang_size_sections_pass (NULL, FALSE);
       /* We must not cache anything from the preliminary sizing.  */
       lang_reset_memory_regions ();
index f8650a5..8d8aa25 100644 (file)
@@ -272,7 +272,7 @@ spu_before_allocation (void)
       /* Size the sections.  This is premature, but we need to know the
         rough layout so that overlays can be found.  */
       expld.phase = lang_mark_phase_enum;
-      expld.dataseg.phase = exp_dataseg_none;
+      expld.dataseg.phase = exp_seg_none;
       one_lang_size_sections_pass (NULL, TRUE);
 
       /* Find overlays by inspecting section vmas.  */