aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-11-13 14:30:36 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-01-09 09:22:16 -0800
commit75f88a3cce479cad61b460efe2273997acb6b474 (patch)
tree75291db534265288155ae2d744fbe66909f8790c
parent756d9f918f37035fb62c428421b336c723a6d4f4 (diff)
downloadgdb-75f88a3cce479cad61b460efe2273997acb6b474.zip
gdb-75f88a3cce479cad61b460efe2273997acb6b474.tar.gz
gdb-75f88a3cce479cad61b460efe2273997acb6b474.tar.bz2
ld/ppc/spu: Also set expld.textseg.phase to exp_seg_none
* emultempl/ppc32elf.em (ppc_before_allocation): Also set expld.textseg.phase to exp_seg_none. * emultempl/ppc64elf.em (prelim_size_sections): Likewise. * emultempl/spuelf.em (spu_before_allocation): Likewise.
-rw-r--r--ld/emultempl/ppc32elf.em1
-rw-r--r--ld/emultempl/ppc64elf.em1
-rw-r--r--ld/emultempl/spuelf.em1
3 files changed, 3 insertions, 0 deletions
diff --git a/ld/emultempl/ppc32elf.em b/ld/emultempl/ppc32elf.em
index 6852e9b..08a1a23 100644
--- a/ld/emultempl/ppc32elf.em
+++ b/ld/emultempl/ppc32elf.em
@@ -149,6 +149,7 @@ ppc_before_allocation (void)
if (expld.phase != lang_mark_phase_enum)
{
expld.phase = lang_mark_phase_enum;
+ expld.textseg.phase = exp_seg_none;
expld.dataseg.phase = exp_seg_none;
one_lang_size_sections_pass (NULL, FALSE);
lang_reset_memory_regions ();
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em
index 76eeb07..e7a267d 100644
--- a/ld/emultempl/ppc64elf.em
+++ b/ld/emultempl/ppc64elf.em
@@ -266,6 +266,7 @@ prelim_size_sections (void)
if (expld.phase != lang_mark_phase_enum)
{
expld.phase = lang_mark_phase_enum;
+ expld.textseg.phase = exp_seg_none;
expld.dataseg.phase = exp_seg_none;
one_lang_size_sections_pass (NULL, FALSE);
/* We must not cache anything from the preliminary sizing. */
diff --git a/ld/emultempl/spuelf.em b/ld/emultempl/spuelf.em
index ec70185..6a3c9ce 100644
--- a/ld/emultempl/spuelf.em
+++ b/ld/emultempl/spuelf.em
@@ -272,6 +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.textseg.phase = exp_seg_none;
expld.dataseg.phase = exp_seg_none;
one_lang_size_sections_pass (NULL, TRUE);