Declare `md_reloc_size' as a const.

This commit is contained in:
pk 1996-02-16 22:19:26 +00:00
parent f1518de67c
commit 298144d0a4
8 changed files with 13 additions and 13 deletions

View File

@ -86,12 +86,12 @@ int md_short_jump_size = 4;
int md_long_jump_size = 4;
#if defined(BFD_HEADERS)
#ifdef RELSZ
int md_reloc_size = RELSZ; /* Coff headers */
const int md_reloc_size = RELSZ; /* Coff headers */
#else
int md_reloc_size = 12; /* something else headers */
const int md_reloc_size = 12; /* something else headers */
#endif
#else
int md_reloc_size = 12; /* Not bfdized*/
const int md_reloc_size = 12; /* Not bfdized*/
#endif
/* This array holds the chars that always start a comment. If the

View File

@ -47,7 +47,7 @@ const pseudo_typeS md_pseudo_table[] = {
{ 0,0,0 }
};
int md_reloc_size ;
const int md_reloc_size ;
const char EXP_CHARS[] = "eE";

View File

@ -25,7 +25,7 @@
*/
#ifndef lint
static char rcsid[] = "$Id: tc-i386.c,v 1.9 1996/01/18 22:09:08 mycroft Exp $";
static char rcsid[] = "$Id: tc-i386.c,v 1.10 1996/02/16 22:19:45 pk Exp $";
#endif
#include "as.h"
@ -1871,7 +1871,7 @@ register fragS * fragP;
int md_short_jump_size = 2; /* size of byte displacement jmp */
int md_long_jump_size = 5; /* size of dword displacement jmp */
int md_reloc_size = 8; /* Size of relocation record */
const int md_reloc_size = 8; /* Size of relocation record */
void md_create_short_jump(ptr, from_addr, to_addr, frag, to_symbol)
char *ptr;

View File

@ -1157,7 +1157,7 @@ relax_addressT segment_address_in_file;
*/
int md_reloc_size = 12;
const int md_reloc_size = 12;
void tc_aout_fix_to_chars(where, fixP, segment_address_in_file)
char *where;

View File

@ -87,9 +87,9 @@ extern struct hash_control *po_hash;
extern char *next_object_file_charP;
#ifdef OBJ_COFF
int md_reloc_size = sizeof(struct reloc);
const int md_reloc_size = sizeof(struct reloc);
#else /* OBJ_COFF */
int md_reloc_size = sizeof(struct relocation_info);
const int md_reloc_size = sizeof(struct relocation_info);
#endif /* OBJ_COFF */
/***************************

View File

@ -64,7 +64,7 @@ const char FLT_CHARS[] = "rRsSfFdDxXeEpP";
but nothing is ideal around here.
*/
int md_reloc_size = 8; /* Size of relocation record */
const int md_reloc_size = 8; /* Size of relocation record */
/* Its an arbitrary name: This means I don't approve of it */
/* See flames below */

View File

@ -1824,7 +1824,7 @@ segT segment;
int md_short_jump_size = 3;
int md_long_jump_size = 5;
int md_reloc_size = 8; /* Size of relocation record */
const int md_reloc_size = 8; /* Size of relocation record */
void
md_create_short_jump(ptr,from_addr,to_addr,frag,to_symbol)

View File

@ -18,7 +18,7 @@
along with GAS; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/*
* $Id: tc.h,v 1.1 1993/10/02 20:57:58 pk Exp $
* $Id: tc.h,v 1.2 1996/02/16 22:19:26 pk Exp $
*/
@ -42,7 +42,7 @@ relax_typeS;
extern const relax_typeS md_relax_table[]; /* Define it in MACHINE.c */
extern int md_reloc_size; /* Size of a relocation record */
extern const int md_reloc_size; /* Size of a relocation record */
extern void (*md_emit_relocations)();