0d3d4c7a82
This is work in progress. It is being commited as a starting point so other people can look at it/fix issues/and maybe Art can add Hammer support? :) It has been lightly tested on macppc/sparc64/i386 and compile tested by mickey@ on hppa. DO NOT try to build ld.so on sparc/sparc64/macppc and install the resulting binary unless you like having a hosed system. A known "misfeature" in ld.so that is being worked on. -- MAINTAINER ok
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
--- binutils/objcopy.c.orig Mon Jul 15 22:04:33 2002
|
|
+++ binutils/objcopy.c Sun Mar 16 19:47:51 2003
|
|
@@ -1292,7 +1292,7 @@ copy_archive (ibfd, obfd, output_target)
|
|
} *list, *l;
|
|
bfd **ptr = &obfd->archive_head;
|
|
bfd *this_element;
|
|
- char *dir = make_tempname (bfd_get_filename (obfd));
|
|
+ char *dir = make_tempname (bfd_get_filename (obfd), 1);
|
|
|
|
/* Make a temp directory to hold the contents. */
|
|
if (MKDIR (dir, 0700) != 0)
|
|
@@ -1324,7 +1324,7 @@ copy_archive (ibfd, obfd, output_target)
|
|
/* If the file already exists, make another temp dir. */
|
|
if (stat (output_name, &buf) >= 0)
|
|
{
|
|
- output_name = make_tempname (output_name);
|
|
+ output_name = make_tempname (output_name, 1);
|
|
if (MKDIR (output_name, 0700) != 0)
|
|
{
|
|
fatal (_("cannot mkdir %s for archive copying (error: %s)"),
|
|
@@ -2083,7 +2083,7 @@ strip_main (argc, argv)
|
|
if (output_file != NULL)
|
|
tmpname = output_file;
|
|
else
|
|
- tmpname = make_tempname (argv[i]);
|
|
+ tmpname = make_tempname (argv[i], 0);
|
|
status = 0;
|
|
|
|
copy_file (argv[i], tmpname, input_target, output_target);
|
|
@@ -2592,7 +2592,7 @@ copy_main (argc, argv)
|
|
|
|
if (output_filename == (char *) NULL)
|
|
{
|
|
- char *tmpname = make_tempname (input_filename);
|
|
+ char *tmpname = make_tempname (input_filename, 0);
|
|
|
|
copy_file (input_filename, tmpname, input_target, output_target);
|
|
if (status == 0)
|