o regen patches.

o add leading underscode to _GLOBAL_OFFSET_TABLE for a.out.
This commit is contained in:
fgsch 2002-03-10 06:39:30 +00:00
parent 25908a510d
commit f331347981
6 changed files with 47 additions and 32 deletions

View File

@ -1,11 +1,11 @@
--- binutils/ar.c.orig Wed Feb 20 17:35:04 2002 --- binutils/ar.c.orig Thu Jun 7 00:12:27 2001
+++ binutils/ar.c Wed Feb 20 17:42:49 2002 +++ binutils/ar.c Sun Mar 10 02:28:35 2002
@@ -1077,7 +1077,7 @@ @@ -1077,7 +1077,7 @@ write_archive (iarch)
old_name = xmalloc (strlen (bfd_get_filename (iarch)) + 1); old_name = xmalloc (strlen (bfd_get_filename (iarch)) + 1);
strcpy (old_name, bfd_get_filename (iarch)); strcpy (old_name, bfd_get_filename (iarch));
- new_name = make_tempname (old_name); - new_name = make_tempname (old_name);
+ new_name = make_tempname (old_name, 0); + new_name = make_tempname (old_name, 0);
output_filename = new_name; output_filename = new_name;

View File

@ -1,8 +1,8 @@
--- binutils/bucomm.c.orig Wed Feb 20 17:35:00 2002 --- binutils/bucomm.c.orig Mon Jun 11 07:04:27 2001
+++ binutils/bucomm.c Wed Feb 20 17:40:47 2002 +++ binutils/bucomm.c Sun Mar 10 02:28:35 2002
@@ -208,12 +208,14 @@ @@ -208,12 +208,14 @@ print_arelt_descr (file, abfd, verbose)
/* Return the name of a temporary file in the same directory as FILENAME. */ /* Return the name of a temporary file in the same directory as FILENAME. */
char * char *
-make_tempname (filename) -make_tempname (filename)
+make_tempname (filename, isdir) +make_tempname (filename, isdir)
@ -13,11 +13,11 @@
char *tmpname; char *tmpname;
char *slash = strrchr (filename, '/'); char *slash = strrchr (filename, '/');
+ char c; + char c;
#ifdef HAVE_DOS_BASED_FILE_SYSTEM #ifdef HAVE_DOS_BASED_FILE_SYSTEM
{ {
@@ -228,8 +230,6 @@ @@ -228,8 +230,6 @@ make_tempname (filename)
if (slash != (char *) NULL) if (slash != (char *) NULL)
{ {
- char c; - char c;
@ -25,7 +25,7 @@
c = *slash; c = *slash;
*slash = 0; *slash = 0;
tmpname = xmalloc (strlen (filename) + sizeof (template) + 2); tmpname = xmalloc (strlen (filename) + sizeof (template) + 2);
@@ -243,15 +243,31 @@ @@ -243,15 +243,31 @@ make_tempname (filename)
#endif #endif
strcat (tmpname, "/"); strcat (tmpname, "/");
strcat (tmpname, template); strcat (tmpname, template);
@ -59,4 +59,4 @@
+ +
return tmpname; return tmpname;
} }

View File

@ -1,11 +1,11 @@
--- binutils/bucomm.h.orig Wed Feb 20 18:35:42 2002 --- binutils/bucomm.h.orig Thu Jun 7 00:12:27 2001
+++ binutils/bucomm.h Wed Feb 20 18:36:24 2002 +++ binutils/bucomm.h Sun Mar 10 02:28:35 2002
@@ -166,7 +166,7 @@ @@ -166,7 +166,7 @@ void list_supported_targets PARAMS ((con
void print_arelt_descr PARAMS ((FILE *file, bfd *abfd, boolean verbose)); void print_arelt_descr PARAMS ((FILE *file, bfd *abfd, boolean verbose));
-char *make_tempname PARAMS ((char *)); -char *make_tempname PARAMS ((char *));
+char *make_tempname PARAMS ((char *, int)); +char *make_tempname PARAMS ((char *, int));
bfd_vma parse_vma PARAMS ((const char *, const char *)); bfd_vma parse_vma PARAMS ((const char *, const char *));

View File

@ -1,6 +1,6 @@
--- binutils/objcopy.c.orig Fri Mar 8 10:02:46 2002 --- binutils/objcopy.c.orig Thu Jun 7 00:12:27 2001
+++ binutils/objcopy.c Fri Mar 8 10:03:36 2002 +++ binutils/objcopy.c Sun Mar 10 02:28:35 2002
@@ -1243,7 +1243,7 @@ @@ -1243,7 +1243,7 @@ copy_archive (ibfd, obfd, output_target)
} *list, *l; } *list, *l;
bfd **ptr = &obfd->archive_head; bfd **ptr = &obfd->archive_head;
bfd *this_element; bfd *this_element;
@ -9,7 +9,7 @@
/* Make a temp directory to hold the contents. */ /* Make a temp directory to hold the contents. */
#if defined (_WIN32) && !defined (__CYGWIN32__) #if defined (_WIN32) && !defined (__CYGWIN32__)
@@ -1933,7 +1933,7 @@ @@ -1933,7 +1933,7 @@ strip_main (argc, argv)
if (output_file != NULL) if (output_file != NULL)
tmpname = output_file; tmpname = output_file;
else else
@ -18,7 +18,7 @@
status = 0; status = 0;
copy_file (argv[i], tmpname, input_target, output_target); copy_file (argv[i], tmpname, input_target, output_target);
@@ -2370,7 +2370,7 @@ @@ -2370,7 +2370,7 @@ copy_main (argc, argv)
if (output_filename == (char *) NULL) if (output_filename == (char *) NULL)
{ {

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-gas_config_tc-i386_h,v 1.1 2002/03/10 06:39:30 fgsch Exp $
--- gas/config/tc-i386.h.orig Wed May 23 00:41:10 2001
+++ gas/config/tc-i386.h Sun Mar 10 02:34:07 2002
@@ -493,7 +493,11 @@ arch_entry;
/* The name of the global offset table generated by the compiler. Allow
this to be overridden if need be. */
#ifndef GLOBAL_OFFSET_TABLE_NAME
+#ifdef OBJ_ELF
+#define GLOBAL_OFFSET_TABLE_NAME "_GLOBAL_OFFSET_TABLE_"
+#else
#define GLOBAL_OFFSET_TABLE_NAME "__GLOBAL_OFFSET_TABLE_"
+#endif
#endif
#ifdef BFD_ASSEMBLER

View File

@ -1,9 +1,9 @@
--- include/libiberty.h.orig Wed Feb 20 18:12:05 2002 --- include/libiberty.h.orig Thu Jun 7 00:21:38 2001
+++ include/libiberty.h Wed Feb 20 18:16:30 2002 +++ include/libiberty.h Sun Mar 10 02:28:37 2002
@@ -48,6 +48,11 @@ @@ -48,6 +48,11 @@ extern "C" {
#include <stdarg.h> #include <stdarg.h>
#endif #endif
+/* Make temporary file name */ +/* Make temporary file name */
+ +
+extern int mkstemp PARAMS ((char *)); +extern int mkstemp PARAMS ((char *));
@ -11,4 +11,4 @@
+ +
/* Build an argument vector from a string. Allocates memory using /* Build an argument vector from a string. Allocates memory using
malloc. Use freeargv to free the vector. */ malloc. Use freeargv to free the vector. */