[Patch]: Remove bfd_special_undocumented_glue
Tristan Gingold
gingold@adacore.com
Wed Jan 6 08:56:00 GMT 2010
Hi,
this kludge was used in binutils/ar.c, but isn't anymore.
Tested by building.
Tristan.
binutils/
2010-01-06 Tristan Gingold <gingold@adacore.com>
* ar.c: Remove bfd_special_undocumented_glue prototype.
Update copyright.
bfd/
2010-01-06 Tristan Gingold <gingold@adacore.com>
* archive.c: Remove bfd_special_undocumented glue.
Update copyright year.
diff -c -r1.60 archive.c
*** bfd/archive.c 11 Dec 2009 13:42:00 -0000 1.60
--- bfd/archive.c 6 Jan 2010 08:51:39 -0000
***************
*** 1,6 ****
/* BFD back-end for archive files (libraries).
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
! 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
Free Software Foundation, Inc.
Written by Cygnus Support. Mostly Gumby Henkel-Wallace's fault.
--- 1,6 ----
/* BFD back-end for archive files (libraries).
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
! 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Written by Cygnus Support. Mostly Gumby Henkel-Wallace's fault.
***************
*** 1703,1724 ****
return ared;
}
- /* This is magic required by the "ar" program. Since it's
- undocumented, it's undocumented. You may think that it would take
- a strong stomach to write this, and it does, but it takes even a
- stronger stomach to try to code around such a thing! */
-
- struct ar_hdr *bfd_special_undocumented_glue (bfd *, const char *);
-
- struct ar_hdr *
- bfd_special_undocumented_glue (bfd *abfd, const char *filename)
- {
- struct areltdata *ar_elt = bfd_ar_hdr_from_filesystem (abfd, filename, 0);
- if (ar_elt == NULL)
- return NULL;
- return (struct ar_hdr *) ar_elt->arch_header;
- }
-
/* Analogous to stat call. */
int
--- 1703,1708 ----
RCS file: /cvs/src/src/binutils/ar.c,v
retrieving revision 1.62
diff -c -r1.62 ar.c
*** binutils/ar.c 11 Dec 2009 13:42:05 -0000 1.62
--- binutils/ar.c 6 Jan 2010 08:51:40 -0000
***************
*** 1,6 ****
/* ar.c - Archive modify and extract.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
! 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
Free Software Foundation, Inc.
This file is part of GNU Binutils.
--- 1,6 ----
/* ar.c - Archive modify and extract.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
! 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
This file is part of GNU Binutils.
***************
*** 46,56 ****
#define EXT_NAME_LEN 6 /* Ditto for *NIX. */
#endif
- /* Kludge declaration from BFD! This is ugly! FIXME! XXX */
-
- struct ar_hdr *
- bfd_special_undocumented_glue (bfd * abfd, const char *filename);
-
/* Static declarations. */
static void mri_emul (void);
--- 46,51 ----
More information about the Binutils
mailing list