This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[vms/committed]: Do not create a BFD section for the GST
- From: Tristan Gingold <gingold at adacore dot com>
- To: binutils <binutils at sourceware dot org>
- Date: Fri, 21 May 2010 17:10:42 +0200
- Subject: [vms/committed]: Do not create a BFD section for the GST
Hi,
previously, the alpha vms back-end created a bfd for the GST (= the symbol table) in executable. But this is
useless and confusing, as this doesn't correspond to a section.
Tristan.
bfd/
2010-05-21 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
for the GST.
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 2c6a19c..f4804b4 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -667,12 +667,6 @@ _bfd_vms_slurp_eihs (bfd *abfd, unsigned int offset)
if (gstvbn)
- section = bfd_make_section (abfd, "$GST$");
- if (!section)
- return FALSE;
-
if (bfd_seek (abfd, VMS_BLOCK_SIZE * (gstvbn - 1), SEEK_SET))
{
bfd_set_error (bfd_error_file_truncated);
@@ -682,12 +676,6 @@ _bfd_vms_slurp_eihs (bfd *abfd, unsigned int offset)
if (_bfd_vms_slurp_object_records (abfd) != TRUE)
return FALSE;
- section->filepos = VMS_BLOCK_SIZE * (gstvbn - 1);
- section->size = bfd_tell (abfd) - section->filepos;
-
- if (!bfd_set_section_flags (abfd, section, bfd_flags))
- return FALSE;
-
abfd->flags |= HAS_SYMS;
}