This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]