From ff7a0acf26799cbaff30be114d7a17d19d2d96a0 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 7 Feb 2008 08:41:10 +0000 Subject: [PATCH] * 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. --- ld/ChangeLog | 8 ++++++++ ld/emultempl/elf32.em | 10 ++++++---- ld/emultempl/lnk960.em | 4 ++-- ld/emultempl/spuelf.em | 6 +++--- ld/ldfile.c | 4 ++-- ld/ldlang.c | 2 +- 6 files changed, 22 insertions(+), 12 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 3407aa6..9f25573 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,13 @@ 2008-02-07 Alan Modra + * 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. + +2008-02-07 Alan Modra + * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as a "present" bit rather than low bit of .buf. Correct indexing into _ovly_buf_table. Use relative loads and stores to access diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index d9daa6e..547bc2a 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -13,7 +13,7 @@ fragment < ELF support by Ian Lance Taylor @@ -556,7 +556,7 @@ gld${EMULATION_NAME}_check_ld_elf_hints (const char *name, int force) FILE *f; char *tmppath; - tmppath = concat (ld_sysroot, _PATH_ELF_HINTS, NULL); + tmppath = concat (ld_sysroot, _PATH_ELF_HINTS, (const char *) NULL); f = fopen (tmppath, FOPEN_RB); free (tmppath); if (f != NULL) @@ -776,11 +776,13 @@ gld${EMULATION_NAME}_check_ld_so_conf (const char *name, int force) info.path = NULL; info.len = info.alloc = 0; - tmppath = concat (ld_sysroot, "${prefix}/etc/ld.so.conf", NULL); + tmppath = concat (ld_sysroot, "${prefix}/etc/ld.so.conf", + (const char *) NULL); if (!gld${EMULATION_NAME}_parse_ld_so_conf (&info, tmppath)) { free (tmppath); - tmppath = concat (ld_sysroot, "/etc/ld.so.conf", NULL); + tmppath = concat (ld_sysroot, "/etc/ld.so.conf", + (const char *) NULL); gld${EMULATION_NAME}_parse_ld_so_conf (&info, tmppath); } free (tmppath); diff --git a/ld/emultempl/lnk960.em b/ld/emultempl/lnk960.em index 1e9e755..aa5afcc 100644 --- a/ld/emultempl/lnk960.em +++ b/ld/emultempl/lnk960.em @@ -3,7 +3,7 @@ fragment <