This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 5/6] read.c: constify _bfd_rel::name
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Date: Tue, 16 Feb 2016 22:54:21 -0500
- Subject: [PATCH 5/6] read.c: constify _bfd_rel::name
- Authentication-results: sourceware.org; auth=none
- References: <1455681262-11896-1-git-send-email-tbsaunde+binutils at tbsaunde dot org>
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