aboutsummaryrefslogtreecommitdiff
path: root/bfd/mmo.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-08-17 13:29:55 +0000
committerAlan Modra <amodra@gmail.com>2005-08-17 13:29:55 +0000
commit46fda84e7884329104a843e17cf2f4513998a745 (patch)
treea781d991834f3e7bd4ca2c2d4c0667089c5bfa22 /bfd/mmo.c
parent96f8ade54630830d0707c22ae531d32baa3c9966 (diff)
downloadgdb-46fda84e7884329104a843e17cf2f4513998a745.zip
gdb-46fda84e7884329104a843e17cf2f4513998a745.tar.gz
gdb-46fda84e7884329104a843e17cf2f4513998a745.tar.bz2
* elf64-mmix.c (mmix_elf_add_symbol_hook): Mark reg section
SEC_LINKER_CREATED. (mmix_elf_final_link): Check that section hasn't already been removed before removing. * mmo.c (mmo_scan): Mark reg contents section SEC_LINKER_CREATED. (mmo_canonicalize_symtab): Likewise for reg section.
Diffstat (limited to 'bfd/mmo.c')
-rw-r--r--bfd/mmo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/mmo.c b/bfd/mmo.c
index a4559e1..091b341 100644
--- a/bfd/mmo.c
+++ b/bfd/mmo.c
@@ -1853,6 +1853,7 @@ mmo_scan (bfd *abfd)
rsec
= bfd_make_section_old_way (abfd,
MMIX_REG_CONTENTS_SECTION_NAME);
+ rsec->flags |= SEC_LINKER_CREATED;
rsec->vma = z * 8;
loc = mmo_get_loc (rsec, z * 8, (255 - z) * 8);
bfd_put_64 (abfd, first_octa, loc);
@@ -2146,6 +2147,7 @@ mmo_canonicalize_symtab (bfd *abfd, asymbol **alocation)
{
c->section
= bfd_make_section_old_way (abfd, MMIX_REG_SECTION_NAME);
+ c->section->flags |= SEC_LINKER_CREATED;
}
else
{