aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-elf.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-03-23 22:39:13 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-03-28 20:38:24 -0400
commit82b8a7851fb9d7724c53d13a4319d1e47acc4460 (patch)
treecca10abb478f1090c8a00eb0bffb510af1ba88ff /gas/config/obj-elf.c
parent5fa9f97233e5c75d4c70f6a86f558eadfed3696e (diff)
downloadgdb-82b8a7851fb9d7724c53d13a4319d1e47acc4460.zip
gdb-82b8a7851fb9d7724c53d13a4319d1e47acc4460.tar.gz
gdb-82b8a7851fb9d7724c53d13a4319d1e47acc4460.tar.bz2
add more const qualifiers
gas/ChangeLog: 2016-03-28 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * config/obj-elf.c (obj_elf_section_name): Return const char *. * config/obj-elf.h (obj_elf_section_name): Adjust. * config/tc-aarch64.c (aarch64_parse_features): Likewise. (aarch64_parse_cpu): Likewise. (aarch64_parse_arch): Likewise. * config/tc-arm.c (arm_parse_extension): Likewise. (arm_parse_cpu): Likewise. (arm_parse_arch): Likewise. * config/tc-nds32.c: Likewise. * config/xtensa-relax.c (parse_special_fn): Likewise. * stabs.c (generate_asm_file): Likewise.
Diffstat (limited to 'gas/config/obj-elf.c')
-rw-r--r--gas/config/obj-elf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index c7a4ee4..40c6e35 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -918,7 +918,7 @@ obj_elf_section_word (char *str, size_t len, int *type)
}
/* Get name of section. */
-char *
+const char *
obj_elf_section_name (void)
{
char *name;
@@ -984,7 +984,8 @@ obj_elf_section_name (void)
void
obj_elf_section (int push)
{
- char *name, *group_name, *beg;
+ const char *name, *group_name;
+ char *beg;
int type, dummy;
bfd_vma attr;
int entsize;