aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
authorgrischka <grischka>2009-07-18 22:07:42 +0200
committergrischka <grischka>2009-07-18 22:07:42 +0200
commitc998985c744549292ba4abe077aee3950548b083 (patch)
tree671d8f2e10ae9c691d3301a76a29b306e6b4020a /tccelf.c
parent94ae3984b0d4d3d78975d3bd48810cd5b6381618 (diff)
downloadtinycc-c998985c744549292ba4abe077aee3950548b083.tar.gz
tinycc-c998985c744549292ba4abe077aee3950548b083.tar.bz2
cleanup: constify some global data
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tccelf.c b/tccelf.c
index 826e8e0..e114f42 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -1283,15 +1283,15 @@ static void tcc_add_linker_symbols(TCCState *s1)
/* name of ELF interpreter */
#if defined __FreeBSD__
-static char elf_interp[] = "/usr/libexec/ld-elf.so.1";
+static const char elf_interp[] = "/usr/libexec/ld-elf.so.1";
#elif defined TCC_ARM_EABI
-static char elf_interp[] = "/lib/ld-linux.so.3";
+static const char elf_interp[] = "/lib/ld-linux.so.3";
#elif defined(TCC_TARGET_X86_64)
-static char elf_interp[] = "/lib/ld-linux-x86-64.so.2";
+static const char elf_interp[] = "/lib/ld-linux-x86-64.so.2";
#elif defined(TCC_UCLIBC)
-static char elf_interp[] = "/lib/ld-uClibc.so.0";
+static const char elf_interp[] = "/lib/ld-uClibc.so.0";
#else
-static char elf_interp[] = "/lib/ld-linux.so.2";
+static const char elf_interp[] = "/lib/ld-linux.so.2";
#endif
static void tcc_output_binary(TCCState *s1, FILE *f,