[PATCH 5/6] read.c: constify _bfd_rel::name

tbsaunde+binutils@tbsaunde.org tbsaunde+binutils@tbsaunde.org
Wed Feb 17 04:00:00 GMT 2016


From: Trevor Saunders <tbsaunde@tbsaunde.org>

gas/ChangeLog:

2016-02-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

	* read.c (_bfd_rel): Make type of name const char *.
---
 gas/read.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/read.c b/gas/read.c
index 5c04789..c97c50c 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -4038,7 +4038,7 @@ 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; };
+  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 },
-- 
2.7.0



More information about the Binutils mailing list