forked from Imagelibrary/binutils-gdb
Add const to various variables in the gas sources.
* symbols.c (decode_local_label_name): Make type a const char *.
* listing.c (print_source): Make type of p const char *.
(print_line): Make type of string const char *.
(buffer_line): Return const char *.
(title): Make type const char *.
(subtitle): Likewise.
(listing_listing): Make type of p const char *.
* messages.c (as_internal_value_out_of_range): Make type of prefix
const char *.
* stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
and string const char *.
* read.c (_bfd_rel): Make type of name const char *.
* app.c (out_string): Change type to const char *.
(struct app_save::out_string): Likewise.
This commit is contained in:
committed by
Nick Clifton
parent
f4583255d5
commit
cd0bbe6ef9
@@ -4050,10 +4050,11 @@ s_reloc (int ignore ATTRIBUTE_UNUSED)
|
||||
char *r_name;
|
||||
int c;
|
||||
struct reloc_list *reloc;
|
||||
struct _bfd_rel { char *name; bfd_reloc_code_real_type code; };
|
||||
static struct _bfd_rel bfd_relocs[] = {
|
||||
struct _bfd_rel { const char * name; bfd_reloc_code_real_type code; };
|
||||
static struct _bfd_rel bfd_relocs[] =
|
||||
{
|
||||
{ "NONE", BFD_RELOC_NONE },
|
||||
{ "8", BFD_RELOC_8 },
|
||||
{ "8", BFD_RELOC_8 },
|
||||
{ "16", BFD_RELOC_16 },
|
||||
{ "32", BFD_RELOC_32 },
|
||||
{ "64", BFD_RELOC_64 }
|
||||
|
||||
Reference in New Issue
Block a user