aboutsummaryrefslogtreecommitdiff
path: root/ld/ldfile.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-02-07 08:41:10 +0000
committerAlan Modra <amodra@gmail.com>2008-02-07 08:41:10 +0000
commitff7a0acf26799cbaff30be114d7a17d19d2d96a0 (patch)
treea4ae9832e349cc2b0a9c584d9c94ec1742d23f53 /ld/ldfile.c
parent1bf57e9fa369e12554ad304935972944ba8a7009 (diff)
downloadbinutils-ff7a0acf26799cbaff30be114d7a17d19d2d96a0.zip
binutils-ff7a0acf26799cbaff30be114d7a17d19d2d96a0.tar.gz
binutils-ff7a0acf26799cbaff30be114d7a17d19d2d96a0.tar.bz2
* ldlang.c (new_afile): Don't pass unadorned NULL to concat.
* ldfile.c (ldfile_add_library_path): Likewise. * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise. * emultempl/lnk960.em (lnk960_before_parse): Likewise. * emultempl/spuelf.em (embedded_spu_file): Likewise.
Diffstat (limited to 'ld/ldfile.c')
-rw-r--r--ld/ldfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c
index c9414ff..4a11fb1 100644
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -1,6 +1,6 @@
/* Linker file opening and searching.
Copyright 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
+ 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
This file is part of the GNU Binutils.
@@ -113,7 +113,7 @@ ldfile_add_library_path (const char *name, bfd_boolean cmdline)
now. */
if (name[0] == '=')
{
- new->name = concat (ld_sysroot, name + 1, NULL);
+ new->name = concat (ld_sysroot, name + 1, (const char *) NULL);
new->sysrooted = TRUE;
}
else