This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[vms/committed] minor comment and style changes
- From: Tristan Gingold <gingold at adacore dot com>
- To: binutils <binutils at sourceware dot org>
- Date: Mon, 24 May 2010 12:24:17 +0200
- Subject: [vms/committed] minor comment and style changes
Hi,
no functional changes in this patch, only comments and indentation changes.
Tristan.
2010-05-24 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
(alpha_vms_write_exec): Add a comment.
(_bfd_vms_write_egsd): Ditto.
(alpha_vms_convert_symbol): Remove a blank line.
bfd/
*** bfd/vms-alpha.c 21 May 2010 15:11:06 -0000 1.12
--- bfd/vms-alpha.c 24 May 2010 10:24:04 -0000
***************
*** 1083,1089 ****
/* Read and process EGSD. Return FALSE on failure. */
static bfd_boolean
! _bfd_vms_slurp_egsd (bfd * abfd)
{
int gsd_type, gsd_size;
asection *section;
--- 1083,1089 ----
/* Read and process EGSD. Return FALSE on failure. */
static bfd_boolean
! _bfd_vms_slurp_egsd (bfd *abfd)
{
int gsd_type, gsd_size;
asection *section;
***************
*** 1116,1125 ****
--- 1116,1127 ----
{
/* Program section definition. */
struct vms_egps *egps = (struct vms_egps *)vms_rec;
+
name = _bfd_vms_save_counted_string (&egps->namlng);
section = bfd_make_section (abfd, name);
if (!section)
return FALSE;
+
old_flags = bfd_getl16 (egps->flags);
vms_section_data (section)->flags = old_flags;
vms_section_data (section)->no_flags = 0;
***************
*** 3075,3080 ****
--- 3077,3083 ----
PRIV (file_pos) += sec->size;
}
+ /* Update EIHS. */
if (eihs != NULL && dst != NULL)
{
bfd_putl32 ((dst->filepos / VMS_BLOCK_SIZE) + 1, eihs->dstvbn);
***************
*** 3210,3219 ****
}
/* Don't know if this is necessary for the linker but for now it keeps
! vms_slurp_gsd happy */
sname = (char *)section->name;
if (*sname == '.')
{
sname++;
if ((*sname == 't') && (strcmp (sname, "text") == 0))
sname = EVAX_CODE_NAME;
--- 3213,3223 ----
}
/* Don't know if this is necessary for the linker but for now it keeps
! vms_slurp_gsd happy. */
+ /* Remove leading dot. */
sname++;
if ((*sname == 't') && (strcmp (sname, "text") == 0))
sname = EVAX_CODE_NAME;
***************
*** 3359,3365 ****
_bfd_vms_output_counted (recwr, hash);
_bfd_vms_output_end_subrec (recwr);
-
}
_bfd_vms_output_alignment (recwr, 8);
--- 3363,3368 ----
***************
*** 4663,4669 ****
value -= sbase;
}
#endif
-
break;
default:
--- 4666,4671 ----