From d77ec871959bbdc132c717f7f343d1f43cb28c9c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 4 Jun 2008 07:08:01 +0000 Subject: * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg. --- ld/emultempl/spuelf.em | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ld/emultempl') diff --git a/ld/emultempl/spuelf.em b/ld/emultempl/spuelf.em index ebaecdb..a56d78f 100644 --- a/ld/emultempl/spuelf.em +++ b/ld/emultempl/spuelf.em @@ -295,12 +295,13 @@ spu_elf_open_overlay_script (void) static void spu_elf_relink (void) { - char **argv = xmalloc ((my_argc + 5) * sizeof (*argv)); + char **argv = xmalloc ((my_argc + 4) * sizeof (*argv)); memcpy (argv, my_argv, my_argc * sizeof (*argv)); argv[my_argc++] = "--no-auto-overlay"; if (tmp_file_list->name == auto_overlay_file) - argv[my_argc++] = auto_overlay_file; + argv[my_argc - 1] = concat (argv[my_argc - 1], "=", + auto_overlay_file, (const char *) NULL); argv[my_argc++] = "-T"; argv[my_argc++] = auto_overlay_file; argv[my_argc] = 0; -- cgit v1.1