[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2009-10-16 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  r...@openpkg.org
  Module: openpkg-src  Date:   16-Oct-2009 18:47:45
  Branch: HEAD Handle: 2009101617474500

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
upgrading package: binutils 2.19.1 -> 2.20

  Summary:
RevisionChanges Path
1.26+0  -42 openpkg-src/binutils/binutils.patch
1.89+6  -2  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.25 -r1.26 binutils.patch
  --- openpkg-src/binutils/binutils.patch   9 Apr 2009 16:51:28 -   
1.25
  +++ openpkg-src/binutils/binutils.patch   16 Oct 2009 16:47:45 -  
1.26
  @@ -176,45 +176,3 @@
  if (sec_info)
free (sec_info);
   
  --
  -
  -http://sourceware.org/bugzilla/show_bug.cgi?id=9938
  -
  -Index: bfd/elf32-i386.c
   bfd/elf32-i386.c.origMon Jul 28 20:07:05 2008
  -+++ bfd/elf32-i386.c Wed Apr  1 12:11:49 2009
  -@@ -1007,11 +1007,14 @@
  - return FALSE;
  - 
  -   h = sym_hashes[r_symndx - symtab_hdr->sh_info];
  -+  /* Use strncmp to check ___tls_get_addr since ___tls_get_addr
  -+ may be versioned.  */
  -   return (h != NULL
  -   && h->root.root.string != NULL
  -   && (ELF32_R_TYPE (rel[1].r_info) == R_386_PC32
  -   || ELF32_R_TYPE (rel[1].r_info) == R_386_PLT32)
  --  && (strcmp (h->root.root.string, "___tls_get_addr") == 0));
  -+  && (strncmp (h->root.root.string, "___tls_get_addr",
  -+  15) == 0));
  - 
  - case R_386_TLS_IE:
  -   /* Check transition from IE access model:
  -Index: bfd/elf64-x86-64.c
   bfd/elf64-x86-64.c.orig  Mon Jul 28 20:07:05 2008
  -+++ bfd/elf64-x86-64.c   Wed Apr  1 12:12:59 2009
  -@@ -810,11 +810,14 @@
  - return FALSE;
  - 
  -   h = sym_hashes[r_symndx - symtab_hdr->sh_info];
  -+  /* Use strncmp to check __tls_get_addr since __tls_get_addr
  -+ may be versioned.  */ 
  -   return (h != NULL
  -   && h->root.root.string != NULL
  -   && (ELF64_R_TYPE (rel[1].r_info) == R_X86_64_PC32
  -   || ELF64_R_TYPE (rel[1].r_info) == R_X86_64_PLT32)
  --  && (strcmp (h->root.root.string, "__tls_get_addr") == 0));
  -+  && (strncmp (h->root.root.string,
  -+  "__tls_get_addr", 14) == 0));
  - 
  - case R_X86_64_GOTTPOFF:
  -   /* Check transition from IE access model:
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.88 -r1.89 binutils.spec
  --- openpkg-src/binutils/binutils.spec18 Apr 2009 13:08:57 -  
1.88
  +++ openpkg-src/binutils/binutils.spec16 Oct 2009 16:47:45 -  
1.89
  @@ -31,8 +31,8 @@
   Class:CORE
   Group:Compiler
   License:  GPL
  -Version:  2.19.1
  -Release:  20090409
  +Version:  2.20
  +Release:  20091016
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ -96,6 +96,8 @@
   CONFIG_SHELL="%{l_bash}" \
   ./configure \
   --prefix=%{l_prefix} \
  +--mandir=%{l_prefix}/man \
  +--infodir=%{l_prefix}/info \
   --includedir=%{l_prefix}/include/binutils \
   --libdir=%{l_prefix}/lib/binutils \
   --disable-werror \
  @@ -112,6 +114,8 @@
   %{l_make} %{l_mflags} install \
   prefix=$RPM_BUILD_ROOT%{l_prefix} \
   exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
  +mandir=$RPM_BUILD_ROOT%{l_prefix}/man \
  +infodir=$RPM_BUILD_ROOT%{l_prefix}/info \
   includedir=$RPM_BUILD_ROOT%{l_prefix}/include/binutils \
   libdir=$RPM_BUILD_ROOT%{l_prefix}/lib/binutils
   
  @@ .
__
OpenPKG http://openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2009-04-09 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  r...@openpkg.org
  Module: openpkg-src  Date:   09-Apr-2009 18:51:29
  Branch: HEAD Handle: 2009040917512801

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
apply an upstream patch for Solaris/amd64

  Summary:
RevisionChanges Path
1.25+42 -0  openpkg-src/binutils/binutils.patch
1.87+1  -1  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.24 -r1.25 binutils.patch
  --- openpkg-src/binutils/binutils.patch   3 Feb 2009 07:31:51 -   
1.24
  +++ openpkg-src/binutils/binutils.patch   9 Apr 2009 16:51:28 -   
1.25
  @@ -176,3 +176,45 @@
  if (sec_info)
free (sec_info);
   
  +-
  +
  +http://sourceware.org/bugzilla/show_bug.cgi?id=9938
  +
  +Index: bfd/elf32-i386.c
  +--- bfd/elf32-i386.c.origMon Jul 28 20:07:05 2008
   bfd/elf32-i386.c Wed Apr  1 12:11:49 2009
  +@@ -1007,11 +1007,14 @@
  + return FALSE;
  + 
  +   h = sym_hashes[r_symndx - symtab_hdr->sh_info];
  ++  /* Use strncmp to check ___tls_get_addr since ___tls_get_addr
  ++ may be versioned.  */
  +   return (h != NULL
  +   && h->root.root.string != NULL
  +   && (ELF32_R_TYPE (rel[1].r_info) == R_386_PC32
  +   || ELF32_R_TYPE (rel[1].r_info) == R_386_PLT32)
  +-  && (strcmp (h->root.root.string, "___tls_get_addr") == 0));
  ++  && (strncmp (h->root.root.string, "___tls_get_addr",
  ++  15) == 0));
  + 
  + case R_386_TLS_IE:
  +   /* Check transition from IE access model:
  +Index: bfd/elf64-x86-64.c
  +--- bfd/elf64-x86-64.c.orig  Mon Jul 28 20:07:05 2008
   bfd/elf64-x86-64.c   Wed Apr  1 12:12:59 2009
  +@@ -810,11 +810,14 @@
  + return FALSE;
  + 
  +   h = sym_hashes[r_symndx - symtab_hdr->sh_info];
  ++  /* Use strncmp to check __tls_get_addr since __tls_get_addr
  ++ may be versioned.  */ 
  +   return (h != NULL
  +   && h->root.root.string != NULL
  +   && (ELF64_R_TYPE (rel[1].r_info) == R_X86_64_PC32
  +   || ELF64_R_TYPE (rel[1].r_info) == R_X86_64_PLT32)
  +-  && (strcmp (h->root.root.string, "__tls_get_addr") == 0));
  ++  && (strncmp (h->root.root.string,
  ++  "__tls_get_addr", 14) == 0));
  + 
  + case R_X86_64_GOTTPOFF:
  +   /* Check transition from IE access model:
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.86 -r1.87 binutils.spec
  --- openpkg-src/binutils/binutils.spec3 Feb 2009 07:31:51 -   
1.86
  +++ openpkg-src/binutils/binutils.spec9 Apr 2009 16:51:29 -   
1.87
  @@ -32,7 +32,7 @@
   Group:Compiler
   License:  GPL
   Version:  2.19.1
  -Release:  20090203
  +Release:  20090409
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ .
__
OpenPKG http://openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2009-02-02 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  r...@openpkg.org
  Module: openpkg-src  Date:   03-Feb-2009 08:31:52
  Branch: HEAD Handle: 2009020307315100

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
upgrading package: binutils 2.19 -> 2.19.1

  Summary:
RevisionChanges Path
1.24+23 -22 openpkg-src/binutils/binutils.patch
1.86+3  -2  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.23 -r1.24 binutils.patch
  --- openpkg-src/binutils/binutils.patch   16 Oct 2008 20:41:07 -  
1.23
  +++ openpkg-src/binutils/binutils.patch   3 Feb 2009 07:31:51 -   
1.24
  @@ -8,9 +8,9 @@
   linker under Solaris 10/amd64.
   
   Index: include/elf/common.h
   include/elf/common.h.orig2007-08-28 19:19:40 +0200
  -+++ include/elf/common.h 2007-08-29 09:30:04 +0200
  -@@ -353,6 +353,9 @@
  +--- include/elf/common.h.orig2008-08-04 01:20:42 +0200
   include/elf/common.h 2009-02-03 08:15:09 +0100
  +@@ -404,6 +404,9 @@
#define SHT_SUNW_verdef 0x6ffd  /* Versions defined by file */
#define SHT_SUNW_verneed 0x6ffe /* Versions needed by file */
#define SHT_SUNW_versym 0x6fff  /* Symbol versions */
  @@ -21,9 +21,9 @@
#define SHT_GNU_verdef  SHT_SUNW_verdef
#define SHT_GNU_verneed SHT_SUNW_verneed
   Index: bfd/elf.c
   bfd/elf.c.orig   2007-08-28 19:19:33 +0200
  -+++ bfd/elf.c2007-08-29 09:30:04 +0200
  -@@ -1793,6 +1793,11 @@
  +--- bfd/elf.c.orig   2008-12-23 14:54:48 +0100
   bfd/elf.c2009-02-03 08:15:09 +0100
  +@@ -1859,6 +1859,11 @@
  elf_tdata (abfd)->dynverref_hdr = *hdr;
  return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);

  @@ -35,7 +35,7 @@
case SHT_SHLIB:
  return TRUE;

  -@@ -4682,6 +4687,12 @@
  +@@ -4825,6 +4830,12 @@
  else
i_ehdrp->e_type = ET_REL;

  @@ -49,9 +49,9 @@
{
case bfd_arch_unknown:
   Index: bfd/elf64-x86-64.c
   bfd/elf64-x86-64.c.orig  2007-08-06 21:59:33 +0200
  -+++ bfd/elf64-x86-64.c   2007-08-29 09:30:04 +0200
  -@@ -345,7 +345,11 @@
  +--- bfd/elf64-x86-64.c.orig  2008-07-28 20:07:05 +0200
   bfd/elf64-x86-64.c   2009-02-03 08:15:09 +0100
  +@@ -346,7 +346,11 @@
/* The name of the dynamic interpreter.  This is put in the .interp
   section.  */

  @@ -69,9 +69,9 @@
   Support FreeBSD >= 4.10 by fixing platform detection.
   
   Index: bfd/configure
   bfd/configure.orig   2007-08-28 22:19:51 +0200
  -+++ bfd/configure2007-08-29 09:30:04 +0200
  -@@ -17459,6 +17459,10 @@
  +--- bfd/configure.orig   2009-02-02 11:44:37 +0100
   bfd/configure2009-02-03 08:15:09 +0100
  +@@ -18061,6 +18061,10 @@
  i[3-7]86-*-bsdi)
COREFILE=
;;
  @@ -88,8 +88,8 @@
   Fight problems with --disable-nls under Solaris
   
   Index: gas/asintl.h
   gas/asintl.h.orig2007-08-06 21:59:49 +0200
  -+++ gas/asintl.h 2007-08-29 09:30:04 +0200
  +--- gas/asintl.h.orig2007-07-03 13:01:02 +0200
   gas/asintl.h 2009-02-03 08:15:09 +0100
   @@ -20,6 +20,11 @@
   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
   02110-1301, USA.  */
  @@ -103,8 +103,8 @@
# ifndef ENABLE_NLS
   /* The Solaris version of locale.h always includes libintl.h.  If we have
   Index: ld/ld.h
   ld/ld.h.orig 2007-08-06 22:00:19 +0200
  -+++ ld/ld.h  2007-08-29 09:30:04 +0200
  +--- ld/ld.h.orig 2008-05-31 18:35:56 +0200
   ld/ld.h  2009-02-03 08:15:09 +0100
   @@ -23,6 +23,11 @@
#ifndef LD_H
#define LD_H
  @@ -118,9 +118,9 @@
#endif
#ifndef SEEK_CUR
   Index: ld/Makefile.in
   ld/Makefile.in.orig  2007-08-06 22:29:54 +0200
  -+++ ld/Makefile.in   2007-08-29 09:30:04 +0200
  -@@ -287,7 +287,7 @@
  +--- ld/Makefile.in.orig  2008-12-23 14:54:52 +0100
   ld/Makefile.in   2009-02-03 08:15:09 +0100
  +@@ -291,7 +291,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
  @@ -136,7 +136,7 @@
   
   Index: libiberty/fibheap.c
   --- libiberty/fibheap.c.orig 2005-05-10 17:33:33 +0200
  -+++ libiberty/fibheap.c  2007-08-29 09:30:04 +0200
   libiberty/fibheap.c  2009-02-03 08:15:09 +0100
   @@ -34,8 +34,11 @@
#include "libiberty.h"
#

[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2008-10-16 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   16-Oct-2008 22:41:07
  Branch: HEAD Handle: 2008101621410700

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
upgrading package: binutils 2.18 -> 2.19

  Summary:
RevisionChanges Path
1.23+7  -7  openpkg-src/binutils/binutils.patch
1.85+2  -2  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.22 -r1.23 binutils.patch
  --- openpkg-src/binutils/binutils.patch   11 Nov 2007 14:50:53 -  
1.22
  +++ openpkg-src/binutils/binutils.patch   16 Oct 2008 20:41:07 -  
1.23
  @@ -161,17 +161,17 @@
   any problems and this message really confused, just disable it for now.
   
   Index: bfd/elf-eh-frame.c
   bfd/elf-eh-frame.c.orig  2007-08-06 21:59:22 +0200
  -+++ bfd/elf-eh-frame.c   2007-11-11 15:46:44 +0100
  -@@ -970,9 +970,11 @@
  -   return offset != sec->rawsize;
  +--- bfd/elf-eh-frame.c.orig  2008-09-17 11:00:44 +0200
   bfd/elf-eh-frame.c   2008-10-16 22:34:32 +0200
  +@@ -887,9 +887,11 @@
  +   goto success;

  - free_no_table:
  +  free_no_table:
   +#if 0
  (*info->callbacks->einfo)
(_("%P: error in %B(%A); no .eh_frame_hdr table will be created.\n"),
 abfd, sec);
   +#endif
  -   if (ehbuf)
  - free (ehbuf);
  +   hdr_info->table = FALSE;
  if (sec_info)
  + free (sec_info);
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.84 -r1.85 binutils.spec
  --- openpkg-src/binutils/binutils.spec1 Jan 2008 14:51:20 -   
1.84
  +++ openpkg-src/binutils/binutils.spec16 Oct 2008 20:41:07 -  
1.85
  @@ -31,8 +31,8 @@
   Class:CORE
   Group:Compiler
   License:  GPL
  -Version:  2.18
  -Release:  20080101
  +Version:  2.19
  +Release:  20081016
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ .
__
OpenPKG http://openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2007-11-11 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   11-Nov-2007 15:50:53
  Branch: HEAD Handle: 200714505300

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
get rid of a confusing error message

  Summary:
RevisionChanges Path
1.22+24 -0  openpkg-src/binutils/binutils.patch
1.83+1  -1  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.21 -r1.22 binutils.patch
  --- openpkg-src/binutils/binutils.patch   29 Aug 2007 07:54:37 -  
1.21
  +++ openpkg-src/binutils/binutils.patch   11 Nov 2007 14:50:53 -  
1.22
  @@ -151,3 +151,27 @@
static void fibheap_ins_root (fibheap_t, fibnode_t);
static void fibheap_rem_root (fibheap_t, fibnode_t);
   
  +-
  +
  +Disable the "error" about "eh_frame_hdr" as it is actually more a
  +warning (the linking is *not* aborted) and it occurs at least under
  +FreeBSD-7.0/amd64 regularily without doing any obvious harm. Seems
  +like the issue itself exists since a longer time, but in recent GNU
  +binutils this additional message was introduced. As we cannot observe
  +any problems and this message really confused, just disable it for now.
  +
  +Index: bfd/elf-eh-frame.c
  +--- bfd/elf-eh-frame.c.orig  2007-08-06 21:59:22 +0200
   bfd/elf-eh-frame.c   2007-11-11 15:46:44 +0100
  +@@ -970,9 +970,11 @@
  +   return offset != sec->rawsize;
  + 
  + free_no_table:
  ++#if 0
  +   (*info->callbacks->einfo)
  + (_("%P: error in %B(%A); no .eh_frame_hdr table will be created.\n"),
  +  abfd, sec);
  ++#endif
  +   if (ehbuf)
  + free (ehbuf);
  +   if (sec_info)
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.82 -r1.83 binutils.spec
  --- openpkg-src/binutils/binutils.spec29 Aug 2007 07:54:37 -  
1.82
  +++ openpkg-src/binutils/binutils.spec11 Nov 2007 14:50:53 -  
1.83
  @@ -33,7 +33,7 @@
   Group:Compiler
   License:  GPL
   Version:  2.18
  -Release:  20070829
  +Release:  2007
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ .
__
OpenPKG http://openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2007-08-29 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   29-Aug-2007 09:54:38
  Branch: HEAD Handle: 2007082908543700

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
upgrading package: binutils 2.17 -> 2.18

  Summary:
RevisionChanges Path
1.21+23 -76 openpkg-src/binutils/binutils.patch
1.82+2  -2  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.20 -r1.21 binutils.patch
  --- openpkg-src/binutils/binutils.patch   23 Jun 2007 12:52:55 -  
1.20
  +++ openpkg-src/binutils/binutils.patch   29 Aug 2007 07:54:37 -  
1.21
  @@ -8,9 +8,9 @@
   linker under Solaris 10/amd64.
   
   Index: include/elf/common.h
   include/elf/common.h.orig2006-02-17 15:36:26 +0100
  -+++ include/elf/common.h 2006-06-24 21:50:39 +0200
  -@@ -346,6 +346,9 @@
  +--- include/elf/common.h.orig2007-08-28 19:19:40 +0200
   include/elf/common.h 2007-08-29 09:30:04 +0200
  +@@ -353,6 +353,9 @@
#define SHT_SUNW_verdef 0x6ffd  /* Versions defined by file */
#define SHT_SUNW_verneed 0x6ffe /* Versions needed by file */
#define SHT_SUNW_versym 0x6fff  /* Symbol versions */
  @@ -21,21 +21,21 @@
#define SHT_GNU_verdef  SHT_SUNW_verdef
#define SHT_GNU_verneed SHT_SUNW_verneed
   Index: bfd/elf.c
   bfd/elf.c.orig   2006-03-16 13:20:15 +0100
  -+++ bfd/elf.c2006-06-24 21:50:39 +0200
  -@@ -2121,6 +2121,11 @@
  +--- bfd/elf.c.orig   2007-08-28 19:19:33 +0200
   bfd/elf.c2007-08-29 09:30:04 +0200
  +@@ -1793,6 +1793,11 @@
  +   elf_tdata (abfd)->dynverref_hdr = *hdr;
  return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
  -   break;

   +case SHT_SUNW_syminfo:
  -+case SHT_SUNW_signature:
  ++/* case SHT_SUNW_signature: conflicts with new SHT_GNU_HASH in Binutils 
2.18 */
   +case SHT_SUNW_dof:
   +  return TRUE;
   +
case SHT_SHLIB:
  return TRUE;

  -@@ -4862,6 +4867,12 @@
  +@@ -4682,6 +4687,12 @@
  else
i_ehdrp->e_type = ET_REL;

  @@ -49,9 +49,9 @@
{
case bfd_arch_unknown:
   Index: bfd/elf64-x86-64.c
   bfd/elf64-x86-64.c.orig  2006-03-23 09:23:09 +0100
  -+++ bfd/elf64-x86-64.c   2006-06-24 21:50:39 +0200
  -@@ -327,7 +327,11 @@
  +--- bfd/elf64-x86-64.c.orig  2007-08-06 21:59:33 +0200
   bfd/elf64-x86-64.c   2007-08-29 09:30:04 +0200
  +@@ -345,7 +345,11 @@
/* The name of the dynamic interpreter.  This is put in the .interp
   section.  */

  @@ -64,15 +64,14 @@
/* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
   copying dynamic variables from a shared lib into an app's dynbss
   
  -
   -
   
   Support FreeBSD >= 4.10 by fixing platform detection.
   
   Index: bfd/configure
   bfd/configure.orig   2006-06-23 20:17:03 +0200
  -+++ bfd/configure2006-06-24 21:50:39 +0200
  -@@ -11495,6 +11495,10 @@
  +--- bfd/configure.orig   2007-08-28 22:19:51 +0200
   bfd/configure2007-08-29 09:30:04 +0200
  +@@ -17459,6 +17459,10 @@
  i[3-7]86-*-bsdi)
COREFILE=
;;
  @@ -88,24 +87,9 @@
   
   Fight problems with --disable-nls under Solaris
   
  -Index: binutils/bucomm.h
   binutils/bucomm.h.orig   2006-02-09 12:49:53 +0100
  -+++ binutils/bucomm.h2006-06-24 21:50:39 +0200
  -@@ -138,6 +138,11 @@
  - #endif
  - 
  - 
  -+#ifndef ENABLE_NLS
  -+# define _LIBINTL_H
  -+# define _LIBGETTEXT_H
  -+#endif
  -+
  - #ifdef HAVE_LOCALE_H
  - # ifndef ENABLE_NLS
  -/* The Solaris version of locale.h always includes libintl.h.  If we have
   Index: gas/asintl.h
   gas/asintl.h.orig2005-09-30 13:42:01 +0200
  -+++ gas/asintl.h 2006-06-24 21:50:39 +0200
  +--- gas/asintl.h.orig2007-08-06 21:59:49 +0200
   gas/asintl.h 2007-08-29 09:30:04 +0200
   @@ -20,6 +20,11 @@
   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
   02110-1301, USA.  */
  @@ -119,8 +103,8 @@
# ifndef ENABLE_NLS
   /* The Solaris version of locale.h always includes libintl.h.  If we have
   Index: ld/ld.h
   ld/ld.h.orig 2005-09-30 13:42:04 +0200
  -+++ ld/ld.h  2006-06-24 21:50:39 +0200
  +--- ld/ld.h.orig 2007-08-06 22:00:19 +0200
   ld/ld.h  2007-08-29 09:30:04 +0200
   @@ -23,6 +23,11 @@

[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2007-06-23 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   23-Jun-2007 14:52:55
  Branch: HEAD Handle: 2007062313525500

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
Silently ignore ld(1) option --hash-style=ARG which
RedHat/Fedora introduce in GNU binutils >= 2.17.50.
This is required to be able to build GCC under Fedora 7
as here the vendor cc(1) temporarily used our ld(1).

  Summary:
RevisionChanges Path
1.20+37 -0  openpkg-src/binutils/binutils.patch
1.81+1  -1  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.19 -r1.20 binutils.patch
  --- openpkg-src/binutils/binutils.patch   6 Jun 2007 09:17:53 -   
1.19
  +++ openpkg-src/binutils/binutils.patch   23 Jun 2007 12:52:55 -  
1.20
  @@ -167,3 +167,40 @@
static void fibheap_ins_root (fibheap_t, fibnode_t);
static void fibheap_rem_root (fibheap_t, fibnode_t);
   
  +-
  +
  +Silently ignore ld(1) option --hash-style=ARG which
  +RedHat/Fedora introduce in GNU binutils >= 2.17.50.
  +This is required to be able to build GCC under Fedora 7
  +as here the vendor cc(1) temporarily used our ld(1).
  +
  +Index: ld/emultempl/elf32.em
  +--- ld/emultempl/elf32.em.orig   2006-06-12 15:05:04 +0200
   ld/emultempl/elf32.em2007-06-23 14:46:32 +0200
  +@@ -1734,6 +1734,7 @@
  + #define OPTION_GROUP(OPTION_ENABLE_NEW_DTAGS + 1)
  + #define OPTION_EH_FRAME_HDR (OPTION_GROUP + 1)
  + #define OPTION_EXCLUDE_LIBS (OPTION_EH_FRAME_HDR + 1)
  ++#define OPTION_HASH_STYLE   (OPTION_EXCLUDE_LIBS + 1)
  + 
  + static void
  + gld${EMULATION_NAME}_add_options
  +@@ -1750,6 +1751,7 @@
  + {"enable-new-dtags", no_argument, NULL, OPTION_ENABLE_NEW_DTAGS},
  + {"eh-frame-hdr", no_argument, NULL, OPTION_EH_FRAME_HDR},
  + {"exclude-libs", required_argument, NULL, OPTION_EXCLUDE_LIBS},
  ++{"hash-style", required_argument, NULL, OPTION_HASH_STYLE},
  + {"Bgroup", no_argument, NULL, OPTION_GROUP},
  + EOF
  + fi
  +@@ -1806,6 +1808,10 @@
  +   add_excluded_libs (optarg);
  +   break;
  + 
  ++case OPTION_HASH_STYLE:
  ++  /* silently ignore --hash-style=ARG from GNU binutils >= 2.17.50 */
  ++  break;
  ++
  + case 'z':
  +   if (strcmp (optarg, "initfirst") == 0)
  + link_info.flags_1 |= (bfd_vma) DF_1_INITFIRST;
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.80 -r1.81 binutils.spec
  --- openpkg-src/binutils/binutils.spec9 Jun 2007 07:00:43 -   
1.80
  +++ openpkg-src/binutils/binutils.spec23 Jun 2007 12:52:55 -  
1.81
  @@ -33,7 +33,7 @@
   Group:Compiler
   License:  GPL
   Version:  2.17
  -Release:  20070609
  +Release:  20070623
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ .
__
OpenPKG http://openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2007-06-06 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   06-Jun-2007 11:17:54
  Branch: HEAD Handle: 2007060610175301

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
blindly try to add some additional Mac OS X support

  Summary:
RevisionChanges Path
1.19+21 -0  openpkg-src/binutils/binutils.patch
1.78+1  -1  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.18 -r1.19 binutils.patch
  --- openpkg-src/binutils/binutils.patch   24 Jun 2006 20:04:49 -  
1.18
  +++ openpkg-src/binutils/binutils.patch   6 Jun 2007 09:17:53 -   
1.19
  @@ -146,3 +146,24 @@
BFDDIR = $(BASEDIR)/bfd
INCDIR = $(BASEDIR)/include
   
  +-
  +
  +workaround problems under Mac OS X.
  +
  +Index: libiberty/fibheap.c
  +--- libiberty/fibheap.c.orig 2005-05-10 17:33:33 +0200
   libiberty/fibheap.c  2007-06-06 11:11:42 +0200
  +@@ -34,8 +34,11 @@
  + #include "libiberty.h"
  + #include "fibheap.h"
  + 
  +-
  ++#ifdef LONG_MIN
  + #define FIBHEAPKEY_MIN  LONG_MIN
  ++#else
  ++#define FIBHEAPKEY_MIN  (-0x7fffL - 1)
  ++#endif
  + 
  + static void fibheap_ins_root (fibheap_t, fibnode_t);
  + static void fibheap_rem_root (fibheap_t, fibnode_t);
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.77 -r1.78 binutils.spec
  --- openpkg-src/binutils/binutils.spec5 Jun 2007 17:48:36 -   
1.77
  +++ openpkg-src/binutils/binutils.spec6 Jun 2007 09:17:54 -   
1.78
  @@ -33,7 +33,7 @@
   Group:Compiler
   License:  GPL
   Version:  2.17
  -Release:  20070605
  +Release:  20070606
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ .
__
OpenPKG http://openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2006-06-24 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   24-Jun-2006 22:04:49
  Branch: HEAD Handle: 2006062421044900

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
upgrading package: binutils 2.16.1 -> 2.17

  Summary:
RevisionChanges Path
1.18+33 -279openpkg-src/binutils/binutils.patch
1.70+2  -2  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.17 -r1.18 binutils.patch
  --- openpkg-src/binutils/binutils.patch   29 May 2006 13:10:22 -  
1.17
  +++ openpkg-src/binutils/binutils.patch   24 Jun 2006 20:04:49 -  
1.18
  @@ -8,9 +8,9 @@
   linker under Solaris 10/amd64.
   
   Index: include/elf/common.h
   include/elf/common.h.orig2004-10-08 15:55:08 +0200
  -+++ include/elf/common.h 2006-04-10 13:58:15 +0200
  -@@ -335,6 +335,9 @@
  +--- include/elf/common.h.orig2006-02-17 15:36:26 +0100
   include/elf/common.h 2006-06-24 21:50:39 +0200
  +@@ -346,6 +346,9 @@
#define SHT_SUNW_verdef 0x6ffd  /* Versions defined by file */
#define SHT_SUNW_verneed 0x6ffe /* Versions needed by file */
#define SHT_SUNW_versym 0x6fff  /* Symbol versions */
  @@ -21,10 +21,10 @@
#define SHT_GNU_verdef  SHT_SUNW_verdef
#define SHT_GNU_verneed SHT_SUNW_verneed
   Index: bfd/elf.c
   bfd/elf.c.orig   2005-05-30 00:00:10 +0200
  -+++ bfd/elf.c2006-04-10 13:58:42 +0200
  -@@ -2009,6 +2009,11 @@
  -   return _bfd_elf_make_section_from_shdr (abfd, hdr, name);
  +--- bfd/elf.c.orig   2006-03-16 13:20:15 +0100
   bfd/elf.c2006-06-24 21:50:39 +0200
  +@@ -2121,6 +2121,11 @@
  +   return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
  break;

   +case SHT_SUNW_syminfo:
  @@ -35,7 +35,7 @@
case SHT_SHLIB:
  return TRUE;

  -@@ -4627,6 +4632,12 @@
  +@@ -4862,6 +4867,12 @@
  else
i_ehdrp->e_type = ET_REL;

  @@ -49,9 +49,9 @@
{
case bfd_arch_unknown:
   Index: bfd/elf64-x86-64.c
   bfd/elf64-x86-64.c.orig  2005-02-06 19:11:30 +0100
  -+++ bfd/elf64-x86-64.c   2006-04-10 15:34:03 +0200
  -@@ -259,7 +259,11 @@
  +--- bfd/elf64-x86-64.c.orig  2006-03-23 09:23:09 +0100
   bfd/elf64-x86-64.c   2006-06-24 21:50:39 +0200
  +@@ -327,7 +327,11 @@
/* The name of the dynamic interpreter.  This is put in the .interp
   section.  */

  @@ -70,9 +70,9 @@
   Support FreeBSD >= 4.10 by fixing platform detection.
   
   Index: bfd/configure
   bfd/configure.orig   2005-05-02 21:43:54 +0200
  -+++ bfd/configure2005-05-03 19:49:53 +0200
  -@@ -9956,6 +9956,10 @@
  +--- bfd/configure.orig   2006-06-23 20:17:03 +0200
   bfd/configure2006-06-24 21:50:39 +0200
  +@@ -11495,6 +11495,10 @@
  i[3-7]86-*-bsdi)
COREFILE=
;;
  @@ -89,23 +89,23 @@
   Fight problems with --disable-nls under Solaris
   
   Index: binutils/bucomm.h
   binutils/bucomm.h.orig   2005-08-16 21:35:21.0 +0200
  -+++ binutils/bucomm.h2005-09-13 16:55:29.276456000 +0200
  -@@ -125,6 +125,11 @@
  - # endif /* HAVE_ALLOCA_H */
  +--- binutils/bucomm.h.orig   2006-02-09 12:49:53 +0100
   binutils/bucomm.h2006-06-24 21:50:39 +0200
  +@@ -138,6 +138,11 @@
#endif

  + 
   +#ifndef ENABLE_NLS
   +# define _LIBINTL_H
   +# define _LIBGETTEXT_H
   +#endif
   +
#ifdef HAVE_LOCALE_H
  - # include 
  - #endif
  + # ifndef ENABLE_NLS
  +/* The Solaris version of locale.h always includes libintl.h.  If we have
   Index: gas/asintl.h
   gas/asintl.h.orig2005-05-05 11:12:43.0 +0200
  -+++ gas/asintl.h 2005-09-13 16:58:29.082469000 +0200
  +--- gas/asintl.h.orig2005-09-30 13:42:01 +0200
   gas/asintl.h 2006-06-24 21:50:39 +0200
   @@ -20,6 +20,11 @@
   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
   02110-1301, USA.  */
  @@ -116,25 +116,11 @@
   +#endif
   +
#ifdef HAVE_LOCALE_H
  - # include 
  - #endif
  -Index: gprof/gprof.c
   gprof/gprof.c.orig   2005-04-23 19:13:31.0 +0200
  -+++ gprof/gprof.c2005-09-13 17:13:52.242443000 +0200
  -@@ -189,8 +189,10 @@
  - #if defined (HAVE_SETLOCALE)
  -   setlocale (LC_CTYPE, "");
  - #endif
  -+#ifdef ENABLE_NLS
  -   bindtextdomain (PACKAGE, LOCALEDIR);
  -   textdomain (PACKAGE);
  -+#endif
  - 
  -   whoami = argv[0];
  -   xmalloc_set_pr

[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2006-05-29 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   29-May-2006 15:10:24
  Branch: HEAD Handle: 2006052914102201

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
Fix GNU binutils support for Solaris 10/amd64:

- recognize and ignore Solaris 10's "Solaris Cryptographic Framework"
  ELF header type "SUNW_signature"
- recognize and ignore Solaris 10's "Symbol information"
  ELF header type "SUNW_syminfo"
- recognize and ignore Solaris 10's "DTrace Object Format"
  ELF header type.
- Fix the path to the dynamic linker under Solaris 10/amd64.
- Enable 64-bit support in GNU binutils libbfd.

Sponsored by: SpaceNet AG 

  Summary:
RevisionChanges Path
1.17+50 -3  openpkg-src/binutils/binutils.patch
1.69+9  -4  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.16 -r1.17 binutils.patch
  --- openpkg-src/binutils/binutils.patch   26 May 2006 19:09:30 -  
1.16
  +++ openpkg-src/binutils/binutils.patch   29 May 2006 13:10:22 -  
1.17
  @@ -1,10 +1,41 @@
   Use the platform specific ELF branding expected under FreeBSD.
   This is similar to what the vendor ld(1) does on this platform.
   
  +Additionally, recognize and ignore Solaris 10's "Solaris Cryptographic
  +Framework" ELF header type "SUNW_signature", Solaris 10 "Symbol
  +information" ELF header type "SUNW_syminfo" and Solaris 10 "DTrace
  +Object Format" ELF header type. Also, fix the path to the dynamic
  +linker under Solaris 10/amd64.
  +
  +Index: include/elf/common.h
  +--- include/elf/common.h.orig2004-10-08 15:55:08 +0200
   include/elf/common.h 2006-04-10 13:58:15 +0200
  +@@ -335,6 +335,9 @@
  + #define SHT_SUNW_verdef 0x6ffd  /* Versions defined by file */
  + #define SHT_SUNW_verneed 0x6ffe /* Versions needed by file */
  + #define SHT_SUNW_versym 0x6fff  /* Symbol versions */
  ++#define SHT_SUNW_syminfo 0x6ffc /* Symbol information */
  ++#define SHT_SUNW_signature 0x6ff6   /* Solaris Cryptographic 
Framework: Digital Signature */
  ++#define SHT_SUNW_dof 0x6ff4 /* Solaris DTrace Object Format */
  + 
  + #define SHT_GNU_verdef  SHT_SUNW_verdef
  + #define SHT_GNU_verneed SHT_SUNW_verneed
   Index: bfd/elf.c
   bfd/elf.c.orig   2005-03-06 03:02:15 +0100
  -+++ bfd/elf.c2005-05-03 19:48:25 +0200
  -@@ -4621,6 +4621,12 @@
  +--- bfd/elf.c.orig   2005-05-30 00:00:10 +0200
   bfd/elf.c2006-04-10 13:58:42 +0200
  +@@ -2009,6 +2009,11 @@
  +   return _bfd_elf_make_section_from_shdr (abfd, hdr, name);
  +   break;
  + 
  ++case SHT_SUNW_syminfo:
  ++case SHT_SUNW_signature:
  ++case SHT_SUNW_dof:
  ++  return TRUE;
  ++
  + case SHT_SHLIB:
  +   return TRUE;
  + 
  +@@ -4627,6 +4632,12 @@
  else
i_ehdrp->e_type = ET_REL;

  @@ -17,6 +48,22 @@
  switch (bfd_get_arch (abfd))
{
case bfd_arch_unknown:
  +Index: bfd/elf64-x86-64.c
  +--- bfd/elf64-x86-64.c.orig  2005-02-06 19:11:30 +0100
   bfd/elf64-x86-64.c   2006-04-10 15:34:03 +0200
  +@@ -259,7 +259,11 @@
  + /* The name of the dynamic interpreter.  This is put in the .interp
  +section.  */
  + 
  ++#if defined(OPENPKG_OS_SOLARIS)
  ++#define ELF_DYNAMIC_INTERPRETER "/lib/amd64/ld.so.1"
  ++#else
  + #define ELF_DYNAMIC_INTERPRETER "/lib/ld64.so.1"
  ++#endif
  + 
  + /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
  +copying dynamic variables from a shared lib into an app's dynbss
  +
   
   -
   
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.68 -r1.69 binutils.spec
  --- openpkg-src/binutils/binutils.spec26 May 2006 19:09:30 -  
1.68
  +++ openpkg-src/binutils/binutils.spec29 May 2006 13:10:23 -  
1.69
  @@ -33,7 +33,7 @@
   Group:Utility
   License:  GPL
   Version:  2.16.1
  -Release:  20060526
  +Release:  20060529
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ -42,8 +42,8 @@
   #   build information
   Prefix:   %{l_prefix}
   BuildRoot:%{l_buildroot}
  -BuildPreReq:  Op

[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2006-05-26 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   26-May-2006 21:09:31
  Branch: HEAD Handle: 2006052620093000

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
Security Issue (PR binutils/2584, CVE-2006-2362)

  Summary:
RevisionChanges Path
1.16+233 -0 openpkg-src/binutils/binutils.patch
1.68+1  -1  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.15 -r1.16 binutils.patch
  --- openpkg-src/binutils/binutils.patch   21 Sep 2005 19:29:45 -  
1.15
  +++ openpkg-src/binutils/binutils.patch   26 May 2006 19:09:30 -  
1.16
  @@ -112,3 +112,236 @@

EMUL = @EMUL@
EMULATION_OFILES = @EMULATION_OFILES@
  +
  +-
  +
  +Security Issue (PR binutils/2584, CVE-2006-2362)
  +
  +Index: bfd/tekhex.c
  +--- bfd/tekhex.c.orig2004-10-08 16:54:02 +0200
   bfd/tekhex.c 2006-05-26 20:21:02 +0200
  +@@ -99,7 +99,7 @@
  + #define ISHEX(x)  hex_p(x)
  + 
  + static void tekhex_init PARAMS ((void));
  +-static bfd_vma getvalue PARAMS ((char **));
  ++static bfd_boolean getvalue PARAMS ((char **, bfd_vma *));
  + static void tekhex_print_symbol
  +  PARAMS ((bfd *, PTR, asymbol *, bfd_print_symbol_type));
  + static void tekhex_get_symbol_info PARAMS ((bfd *, asymbol *, symbol_info 
*));
  +@@ -121,11 +121,11 @@
  + static bfd_boolean tekhex_mkobject PARAMS ((bfd *));
  + static long tekhex_get_symtab_upper_bound PARAMS ((bfd *));
  + static long tekhex_canonicalize_symtab PARAMS ((bfd *, asymbol **));
  +-static void pass_over PARAMS ((bfd *, void (*) (bfd*, int, char *)));
  +-static void first_phase PARAMS ((bfd *, int, char *));
  ++static bfd_boolean pass_over PARAMS ((bfd *, bfd_boolean (*) (bfd*, int, 
char *)));
  ++static bfd_boolean first_phase PARAMS ((bfd *, int, char *));
  + static void insert_byte PARAMS ((bfd *, int, bfd_vma));
  + static struct data_struct *find_chunk PARAMS ((bfd *, bfd_vma));
  +-static unsigned int getsym PARAMS ((char *, char **));
  ++static bfd_boolean getsym PARAMS ((char *, char **, unsigned int *));
  + 
  + /*
  + Here's an example
  +@@ -304,40 +304,53 @@
  + 
  + #define enda(x) (x->vma + x->size)
  + 
  +-static bfd_vma
  +-getvalue (srcp)
  ++static bfd_boolean
  ++getvalue (srcp, valuep)
  +  char **srcp;
  ++ bfd_vma *valuep;
  + {
  +   char *src = *srcp;
  +   bfd_vma value = 0;
  +-  unsigned int len = hex_value(*src++);
  ++  unsigned int len;
  ++
  ++  if (!ISHEX(*src))
  ++return FALSE;
  + 
  ++  len = hex_value(*src++);
  +   if (len == 0)
  + len = 16;
  +   while (len--)
  + {
  ++  if (!ISHEX(*src))
  ++return FALSE;
  +   value = value << 4 | hex_value(*src++);
  + }
  +   *srcp = src;
  +-  return value;
  ++  *valuep = value;
  ++  return TRUE;
  + }
  + 
  +-static unsigned int
  +-getsym (dstp, srcp)
  ++static bfd_boolean
  ++getsym (dstp, srcp, lenp)
  +  char *dstp;
  +  char **srcp;
  ++ unsigned int *lenp;
  + {
  +   char *src = *srcp;
  +   unsigned int i;
  +-  unsigned int len = hex_value(*src++);
  ++  unsigned int len;
  + 
  ++  if (!ISHEX(*src))
  ++return FALSE;
  ++  len = hex_value(*src++);
  +   if (len == 0)
  + len = 16;
  +   for (i = 0; i < len; i++)
  + dstp[i] = src[i];
  +   dstp[i] = 0;
  +   *srcp = src + i;
  +-  return len;
  ++  *lenp = len;
  ++  return TRUE;
  + }
  + 
  + static struct data_struct *
  +@@ -383,7 +396,7 @@
  + 
  + /* The first pass is to find the names of all the sections, and see
  +   how big the data is */
  +-static void
  ++static bfd_boolean
  + first_phase (abfd, type, src)
  +  bfd *abfd;
  +  int type;
  +@@ -391,6 +404,7 @@
  + {
  +   asection *section = bfd_abs_section_ptr;
  +   unsigned int len;
  ++  bfd_vma val;
  +   char sym[17]; /* A symbol can only be 16chars long */
  + 
  +   switch (type)
  +@@ -398,7 +412,10 @@
  + case '6':
  +   /* Data record - read it and store it */
  +   {
  +-bfd_vma addr = getvalue (&src);
  ++bfd_vma addr;
  ++
  ++if (!getvalue (&src, &addr))
  ++  return FALSE;
  + 
  + while (*src)
  +   {
  +@@ -408,17 +425,18 @@
  +   }
  +   }
  + 
  +-  return;
  ++  return TRUE;
  + case '3':
  +   /* Symbol record, read the segment */
  +-  len = getsym (sym, &src);
  ++  if (!getsym (sym,

[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2005-09-21 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   21-Sep-2005 21:29:45
  Branch: HEAD Handle: 2005092120294500

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
provide both the binutils related C APIs and the ld(1) ldscripts
(which for unknown reasons are definetely required on x86-solaris10
when building gcc 4.0)

  Summary:
RevisionChanges Path
1.15+12 -0  openpkg-src/binutils/binutils.patch
1.66+6  -5  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.14 -r1.15 binutils.patch
  --- openpkg-src/binutils/binutils.patch   13 Sep 2005 19:47:25 -  
1.14
  +++ openpkg-src/binutils/binutils.patch   21 Sep 2005 19:29:45 -  
1.15
  @@ -100,3 +100,15 @@
#ifdef HAVE_LOCALE_H
# include 
#endif
  +Index: ld/Makefile.in
  +--- ld/Makefile.in.orig  2005-01-23 06:36:37 +0100
   ld/Makefile.in   2005-09-21 21:06:55 +0200
  +@@ -139,7 +139,7 @@
  + # We put the scripts in the directory $(scriptdir)/ldscripts.
  + # We can't put the scripts in $(datadir) because the SEARCH_DIR
  + # directives need to be different for native and cross linkers.
  +-scriptdir = $(tooldir)/lib
  ++scriptdir = $(libdir)
  + 
  + EMUL = @EMUL@
  + EMULATION_OFILES = @EMULATION_OFILES@
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.65 -r1.66 binutils.spec
  --- openpkg-src/binutils/binutils.spec13 Sep 2005 19:47:25 -  
1.65
  +++ openpkg-src/binutils/binutils.spec21 Sep 2005 19:29:45 -  
1.66
  @@ -33,7 +33,7 @@
   Group:Utility
   License:  GPL
   Version:  2.16.1
  -Release:  20050913
  +Release:  20050921
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ -91,6 +91,8 @@
   CONFIG_SHELL="%{l_bash}" \
   ./configure \
   --prefix=%{l_prefix} \
  +--includedir=%{l_prefix}/include/binutils \
  +--libdir=%{l_prefix}/lib/binutils \
   --disable-nls
   
   #   build package
  @@ -102,7 +104,9 @@
   #   build package
   %{l_make} %{l_mflags} install \
   prefix=$RPM_BUILD_ROOT%{l_prefix} \
  -exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  +exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
  +includedir=$RPM_BUILD_ROOT%{l_prefix}/include/binutils \
  +libdir=$RPM_BUILD_ROOT%{l_prefix}/lib/binutils
   
   #   strip down installation
   rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  @@ -112,9 +116,6 @@
   rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/dlltool.1
   rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/nlmconv.1
   rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/windres.1
  -rm -rf $RPM_BUILD_ROOT%{l_prefix}/include
  -rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
  -rm -rf $RPM_BUILD_ROOT%{l_prefix}/share
   rm -rf $RPM_BUILD_ROOT%{l_prefix}/*-*-*
   rm -rf $RPM_BUILD_ROOT%{l_prefix}/bin/c++filt
   strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  @@ .
__
The OpenPKG Projectwww.openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2005-09-13 Thread Matthias Kurz
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Matthias Kurz
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   13-Sep-2005 21:47:25
  Branch: HEAD Handle: 2005091320472500

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
Problems with --disable-nls under Solaris

- Prevent inclusion of , when ENABLE_NLS is not set.
  When ENABLE_NLS is not set, some parts of binutils are declaring dummy
  versions of bindtextdomain, texdomain etc.
   under Solaris includes , which leads to problems,
  because the dummy definitions conflict with the definitions in libintl.h.
- Finally the dummy routines lead to a compilation error in gprof.c, because
  they generate a warning ("statement without effect", or so) and the
  compiler switch -Werror is used.

Real errors happen only in the current CVS version, but there where many
warnings in 2.16.1, so i applied the patch anyway.

  Summary:
RevisionChanges Path
1.14+64 -0  openpkg-src/binutils/binutils.patch
1.65+1  -1  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.13 -r1.14 binutils.patch
  --- openpkg-src/binutils/binutils.patch   3 May 2005 17:59:39 -   
1.13
  +++ openpkg-src/binutils/binutils.patch   13 Sep 2005 19:47:25 -  
1.14
  @@ -36,3 +36,67 @@
  i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | 
i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | 
i[3-7]86-*-freebsd*aout*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/i386bsd.h"'
  +
  +-
  +
  +Fight problems with --disable-nls under Solaris
  +
  +Index: binutils/bucomm.h
  +--- binutils/bucomm.h.orig   2005-08-16 21:35:21.0 +0200
   binutils/bucomm.h2005-09-13 16:55:29.276456000 +0200
  +@@ -125,6 +125,11 @@
  + # endif /* HAVE_ALLOCA_H */
  + #endif
  + 
  ++#ifndef ENABLE_NLS
  ++# define _LIBINTL_H
  ++# define _LIBGETTEXT_H
  ++#endif
  ++
  + #ifdef HAVE_LOCALE_H
  + # include 
  + #endif
  +Index: gas/asintl.h
  +--- gas/asintl.h.orig2005-05-05 11:12:43.0 +0200
   gas/asintl.h 2005-09-13 16:58:29.082469000 +0200
  +@@ -20,6 +20,11 @@
  +Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
  +02110-1301, USA.  */
  + 
  ++#ifndef ENABLE_NLS
  ++# define _LIBINTL_H
  ++# define _LIBGETTEXT_H
  ++#endif
  ++
  + #ifdef HAVE_LOCALE_H
  + # include 
  + #endif
  +Index: gprof/gprof.c
  +--- gprof/gprof.c.orig   2005-04-23 19:13:31.0 +0200
   gprof/gprof.c2005-09-13 17:13:52.242443000 +0200
  +@@ -189,8 +189,10 @@
  + #if defined (HAVE_SETLOCALE)
  +   setlocale (LC_CTYPE, "");
  + #endif
  ++#ifdef ENABLE_NLS
  +   bindtextdomain (PACKAGE, LOCALEDIR);
  +   textdomain (PACKAGE);
  ++#endif
  + 
  +   whoami = argv[0];
  +   xmalloc_set_program_name (whoami);
  +Index: ld/ld.h
  +--- ld/ld.h.orig 2005-06-09 04:05:46.0 +0200
   ld/ld.h  2005-09-13 17:24:03.767249000 +0200
  +@@ -23,6 +23,11 @@
  + #ifndef LD_H
  + #define LD_H
  + 
  ++#ifndef ENABLE_NLS
  ++# define _LIBINTL_H
  ++# define _LIBGETTEXT_H
  ++#endif
  ++
  + #ifdef HAVE_LOCALE_H
  + # include 
  + #endif
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.64 -r1.65 binutils.spec
  --- openpkg-src/binutils/binutils.spec9 Sep 2005 05:55:27 -   
1.64
  +++ openpkg-src/binutils/binutils.spec13 Sep 2005 19:47:25 -  
1.65
  @@ -33,7 +33,7 @@
   Group:Utility
   License:  GPL
   Version:  2.16.1
  -Release:  20050909
  +Release:  20050913
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ .
__
The OpenPKG Projectwww.openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2005-05-03 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   03-May-2005 19:59:39
  Branch: HEAD Handle: 2005050318593900

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
upgrading package: binutils 2.15 -> 2.16

  Summary:
RevisionChanges Path
1.13+7  -33 openpkg-src/binutils/binutils.patch
1.60+2  -2  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.12 -r1.13 binutils.patch
  --- openpkg-src/binutils/binutils.patch   2 Feb 2005 09:55:42 -   
1.12
  +++ openpkg-src/binutils/binutils.patch   3 May 2005 17:59:39 -   
1.13
  @@ -2,9 +2,9 @@
   This is similar to what the vendor ld(1) does on this platform.
   
   Index: bfd/elf.c
   bfd/elf.c.orig   2004-05-17 21:35:57 +0200
  -+++ bfd/elf.c2004-11-24 13:21:56 +0100
  -@@ -4327,6 +4327,12 @@
  +--- bfd/elf.c.orig   2005-03-06 03:02:15 +0100
   bfd/elf.c2005-05-03 19:48:25 +0200
  +@@ -4621,6 +4621,12 @@
  else
i_ehdrp->e_type = ET_REL;

  @@ -23,9 +23,9 @@
   Support FreeBSD >= 4.10 by fixing platform detection.
   
   Index: bfd/configure
   bfd/configure.orig   2004-05-17 21:35:57 +0200
  -+++ bfd/configure2004-11-24 15:14:05 +0100
  -@@ -5312,6 +5312,10 @@
  +--- bfd/configure.orig   2005-05-02 21:43:54 +0200
   bfd/configure2005-05-03 19:49:53 +0200
  +@@ -9956,6 +9956,10 @@
  i[3-7]86-*-bsdi)
COREFILE=
;;
  @@ -33,32 +33,6 @@
   +COREFILE=''
   +TRAD_HEADER='"hosts/i386bsd.h"'
   +;;
  -   i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | 
i[3-7]86-*-freebsd4\.[01234]* | i[3-7]86-*-freebsd*aout*)
  +   i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | 
i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | 
i[3-7]86-*-freebsd*aout*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/i386bsd.h"'
  -
  --
  -
  -Compare section id, not pointers
  -
   bfd/elflink.c.orig   2004-05-17 21:36:02.0 +0200
  -+++ bfd/elflink.c2005-01-07 15:39:43.0 +0100
  -@@ -2700,7 +2700,7 @@
  - return vdiff > 0 ? 1 : -1;
  -   else
  - {
  --  long sdiff = h1->root.u.def.section - h2->root.u.def.section;
  -+  long sdiff = h1->root.u.def.section->id - h2->root.u.def.section->id;
  -   if (sdiff != 0)
  - return sdiff > 0 ? 1 : -1;
  - }
  -@@ -3954,7 +3954,7 @@
  - i = idx + 1;
  -   else
  - {
  --  long sdiff = slook - h->root.u.def.section;
  -+  long sdiff = slook->id - h->root.u.def.section->id;
  -   if (sdiff < 0)
  - j = idx;
  -   else if (sdiff > 0)
  -
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.59 -r1.60 binutils.spec
  --- openpkg-src/binutils/binutils.spec24 Mar 2005 11:18:28 -  
1.59
  +++ openpkg-src/binutils/binutils.spec3 May 2005 17:59:39 -   
1.60
  @@ -32,8 +32,8 @@
   Class:CORE
   Group:Utility
   License:  GPL
  -Version:  2.15
  -Release:  20050202
  +Version:  2.16
  +Release:  20050503
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ .
__
The OpenPKG Projectwww.openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2005-02-02 Thread Christoph Schug
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Christoph Schug
  Root:   /e/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   02-Feb-2005 10:55:42
  Branch: HEAD Handle: 2005020209554200

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
fixed patch

  Summary:
RevisionChanges Path
1.12+1  -1  openpkg-src/binutils/binutils.patch
1.58+1  -1  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.11 -r1.12 binutils.patch
  --- openpkg-src/binutils/binutils.patch   7 Jan 2005 17:38:36 -   
1.11
  +++ openpkg-src/binutils/binutils.patch   2 Feb 2005 09:55:42 -   
1.12
  @@ -57,7 +57,7 @@
  else
{
   -  long sdiff = slook - h->root.u.def.section;
  -+  long sdiff = slook - h->root.u.def.section->id;
  ++  long sdiff = slook->id - h->root.u.def.section->id;
  if (sdiff < 0)
j = idx;
  else if (sdiff > 0)
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.57 -r1.58 binutils.spec
  --- openpkg-src/binutils/binutils.spec11 Jan 2005 13:01:51 -  
1.57
  +++ openpkg-src/binutils/binutils.spec2 Feb 2005 09:55:42 -   
1.58
  @@ -34,7 +34,7 @@
   Group:Utility
   License:  GPL
   Version:  2.15
  -Release:  20050111
  +Release:  20050202
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ .
__
The OpenPKG Projectwww.openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2005-01-07 Thread Christoph Schug
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Christoph Schug
  Root:   /e/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   07-Jan-2005 18:38:37
  Branch: HEAD Handle: 2005010717383600

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
fixed ld(1) segfault probs on Solaris 8

  Summary:
RevisionChanges Path
1.11+25 -0  openpkg-src/binutils/binutils.patch
1.56+1  -1  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.10 -r1.11 binutils.patch
  --- openpkg-src/binutils/binutils.patch   25 Nov 2004 10:55:25 -  
1.10
  +++ openpkg-src/binutils/binutils.patch   7 Jan 2005 17:38:36 -   
1.11
  @@ -37,3 +37,28 @@
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/i386bsd.h"'
   
  +-
  +
  +Compare section id, not pointers
  +
  +--- bfd/elflink.c.orig   2004-05-17 21:36:02.0 +0200
   bfd/elflink.c2005-01-07 15:39:43.0 +0100
  +@@ -2700,7 +2700,7 @@
  + return vdiff > 0 ? 1 : -1;
  +   else
  + {
  +-  long sdiff = h1->root.u.def.section - h2->root.u.def.section;
  ++  long sdiff = h1->root.u.def.section->id - h2->root.u.def.section->id;
  +   if (sdiff != 0)
  + return sdiff > 0 ? 1 : -1;
  + }
  +@@ -3954,7 +3954,7 @@
  + i = idx + 1;
  +   else
  + {
  +-  long sdiff = slook - h->root.u.def.section;
  ++  long sdiff = slook - h->root.u.def.section->id;
  +   if (sdiff < 0)
  + j = idx;
  +   else if (sdiff > 0)
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.55 -r1.56 binutils.spec
  --- openpkg-src/binutils/binutils.spec1 Jan 2005 10:48:02 -   
1.55
  +++ openpkg-src/binutils/binutils.spec7 Jan 2005 17:38:36 -   
1.56
  @@ -34,7 +34,7 @@
   Group:Utility
   License:  GPL
   Version:  2.15
  -Release:  20041125
  +Release:  20050107
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ .
__
The OpenPKG Projectwww.openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2004-11-25 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   25-Nov-2004 11:55:26
  Branch: HEAD Handle: 2004112510552500

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
GNU binutils 2.15 segfaulted in the past when built with GNU gcc 3.4.0
under at least Sun Solaris. Now with gcc 3.4.3 this seems to be no
longer happening, so try again to upgrade to GNU binutils 2.15. This is
especially needed for supporting amd64-freebsd5.3.

  Summary:
RevisionChanges Path
1.10+9  -76 openpkg-src/binutils/binutils.patch
1.54+3  -4  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.9 -r1.10 binutils.patch
  --- openpkg-src/binutils/binutils.patch   29 May 2004 07:22:12 -  
1.9
  +++ openpkg-src/binutils/binutils.patch   25 Nov 2004 10:55:25 -  
1.10
  @@ -2,9 +2,9 @@
   This is similar to what the vendor ld(1) does on this platform.
   
   Index: bfd/elf.c
   bfd/elf.c.orig   2002-07-30 20:19:42.0 +0200
  -+++ bfd/elf.c2002-08-22 17:41:47.0 +0200
  -@@ -4235,6 +4235,12 @@
  +--- bfd/elf.c.orig   2004-05-17 21:35:57 +0200
   bfd/elf.c2004-11-24 13:21:56 +0100
  +@@ -4327,6 +4327,12 @@
  else
i_ehdrp->e_type = ET_REL;

  @@ -20,87 +20,20 @@
   
   -
   
  -Fix the linker under Solaris/SPARC.
  -
  -Index: bfd/elf64-sparc.c
   bfd/elf64-sparc.c.orig   2003-06-20 09:42:19.0 +0200
  -+++ bfd/elf64-sparc.c2003-06-20 09:42:40.0 +0200
  -@@ -2684,7 +2684,7 @@
  -overflows.  We don't, but this breaks stabs debugging
  -info, whose relocations are only 32-bits wide.  Ignore
  -overflows for discarded entries.  */
  --if (r_type == R_SPARC_32
  -+if ((r_type == R_SPARC_32 || r_type == R_SPARC_DISP32)
  - && _bfd_elf_section_offset (output_bfd, info, input_section,
  - rel->r_offset) == (bfd_vma) -1)
  -   break;
  -
  --
  -
  -Support FreeBSD 4.10 by fixing platform detection.
  +Support FreeBSD >= 4.10 by fixing platform detection.
   
   Index: bfd/configure
   bfd/configure.orig   2003-06-12 16:25:46.0 +0200
  -+++ bfd/configure2004-04-30 22:01:31.0 +0200
  -@@ -5133,6 +5133,10 @@
  -   i[3456]86-*-bsdi)
  +--- bfd/configure.orig   2004-05-17 21:35:57 +0200
   bfd/configure2004-11-24 15:14:05 +0100
  +@@ -5312,6 +5312,10 @@
  +   i[3-7]86-*-bsdi)
COREFILE=
;;
   +  i[3456]86-*-freebsd4.1[0-9]*)
   +COREFILE=''
   +TRAD_HEADER='"hosts/i386bsd.h"'
   +;;
  -   i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | 
i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01234]* | 
i[34567]86-*-freebsd*aout*)
  +   i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | 
i[3-7]86-*-freebsd4\.[01234]* | i[3-7]86-*-freebsd*aout*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/i386bsd.h"'
   
  --
  -
  -Accept (and ignore) --as-needed/--no-as-needed options from GNU binutils
  -2.15 in our GNU binutils 2.14 to resolve a chicken and egg problem under
  -platforms (like Fedora Core 2) which already run GNU binutils 2.15: the
  -vendor cc(1) knows that it has ld(1) from GNU binutils 2.15 and hence
  -always uses the --as-needed option when calling ld(1). Unfortunately,
  -between having built "binutils" and "gcc" packages, this will break
  -OpenPKG because the vendor cc(1) would run the OpenPKG ld(1) with an
  -option is (still) does not understand. The only workaround is to let our
  -ld(1) accept and ignore this option. Once our cc(1) from "gcc" package
  -is installed, the problem is gone, because our "gcc" package correctly
  -detects that our ld(1) still does ot understand --as-needed.
  -
  -Index: ld/lexsup.c
   ld/lexsup.c.orig 2003-03-31 20:12:52.0 +0200
  -+++ ld/lexsup.c  2004-05-05 16:52:46.0 +0200
  -@@ -112,7 +112,9 @@
  - #define OPTION_SPLIT_BY_RELOC   (OPTION_WARN_SECTION_ALIGN + 1)
  - #define OPTION_SPLIT_BY_FILE(OPTION_SPLIT_BY_RELOC + 1)
  - #define OPTION_WHOLE_ARCHIVE(OPTION_SPLIT_BY_FILE + 1)
  --#define OPTION_WRAP 

[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2004-05-18 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   18-May-2004 09:19:30
  Branch: HEAD Handle: 2004051808192900

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
upgrading package: binutils 2.14 -> 2.15

  Summary:
RevisionChanges Path
1.8 +1  -68 openpkg-src/binutils/binutils.patch
1.49+2  -2  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.7 -r1.8 binutils.patch
  --- openpkg-src/binutils/binutils.patch   6 May 2004 09:37:31 -   1.7
  +++ openpkg-src/binutils/binutils.patch   18 May 2004 07:19:29 -  1.8
  @@ -20,23 +20,6 @@
   
   -
   
  -Fix the linker under Solaris/SPARC.
  -
  -Index: bfd/elf64-sparc.c
   bfd/elf64-sparc.c.orig   2003-06-20 09:42:19.0 +0200
  -+++ bfd/elf64-sparc.c2003-06-20 09:42:40.0 +0200
  -@@ -2684,7 +2684,7 @@
  -overflows.  We don't, but this breaks stabs debugging
  -info, whose relocations are only 32-bits wide.  Ignore
  -overflows for discarded entries.  */
  --if (r_type == R_SPARC_32
  -+if ((r_type == R_SPARC_32 || r_type == R_SPARC_DISP32)
  - && _bfd_elf_section_offset (output_bfd, info, input_section,
  - rel->r_offset) == (bfd_vma) -1)
  -   break;
  -
  --
  -
   Support FreeBSD 4.10 by fixing platform detection.
   
   Index: bfd/configure
  @@ -50,57 +33,7 @@
   +COREFILE=''
   +TRAD_HEADER='"hosts/i386bsd.h"'
   +;;
  -   i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | 
i[34567]86-*-freebsd4\.[01234]* | i[34567]86-*-freebsd*aout*)
  +   i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | 
i[3-7]86-*-freebsd4\.[01234]* | i[3-7]86-*-freebsd*aout*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/i386bsd.h"'
   
  --
  -
  -Accept (and ignore) --as-needed/--no-as-needed options from GNU binutils
  -2.15 in our GNU binutils 2.14 to resolve a chicken and egg problem under
  -platforms (like Fedora Core 2) which already run GNU binutils 2.15: the
  -vendor cc(1) knows that it has ld(1) from GNU binutils 2.15 and hence
  -always uses the --as-needed option when calling ld(1). Unfortunately,
  -between having built "binutils" and "gcc" packages, this will break
  -OpenPKG because the vendor cc(1) would run the OpenPKG ld(1) with an
  -option is (still) does not understand. The only workaround is to let our
  -ld(1) accept and ignore this option. Once our cc(1) from "gcc" package
  -is installed, the problem is gone, because our "gcc" package correctly
  -detects that our ld(1) still does ot understand --as-needed.
  -
  -Index: ld/lexsup.c
   ld/lexsup.c.orig 2003-03-31 20:12:52.0 +0200
  -+++ ld/lexsup.c  2004-05-05 16:52:46.0 +0200
  -@@ -112,7 +112,9 @@
  - #define OPTION_SPLIT_BY_RELOC   (OPTION_WARN_SECTION_ALIGN + 1)
  - #define OPTION_SPLIT_BY_FILE(OPTION_SPLIT_BY_RELOC + 1)
  - #define OPTION_WHOLE_ARCHIVE(OPTION_SPLIT_BY_FILE + 1)
  --#define OPTION_WRAP (OPTION_WHOLE_ARCHIVE + 1)
  -+#define OPTION_AS_NEEDED(OPTION_WHOLE_ARCHIVE + 1)
  -+#define OPTION_NO_AS_NEEDED (OPTION_AS_NEEDED + 1)
  -+#define OPTION_WRAP (OPTION_NO_AS_NEEDED + 1)
  - #define OPTION_FORCE_EXE_SUFFIX (OPTION_WRAP + 1)
  - #define OPTION_GC_SECTIONS  (OPTION_FORCE_EXE_SUFFIX + 1)
  - #define OPTION_NO_GC_SECTIONS   (OPTION_GC_SECTIONS + 1)
  -@@ -423,6 +425,10 @@
  -  TWO_DASHES },
  -   { {"whole-archive", no_argument, NULL, OPTION_WHOLE_ARCHIVE},
  -   '\0', NULL, N_("Include all objects from following archives"), TWO_DASHES },
  -+  { {"as-needed", no_argument, NULL, OPTION_AS_NEEDED},
  -+  '\0', NULL, N_("Only set DT_NEEDED for following dynamic libs if used"), 
TWO_DASHES },
  -+  { {"no-as-needed", no_argument, NULL, OPTION_NO_AS_NEEDED},
  -+  '\0', NULL, N_("Always set DT_NEEDED for following dynamic libs"), 
TWO_DASHES },
  -   { {"wrap", required_argument, NULL, OPTION_WRAP},
  -   '\0', N_("SYMBOL"), N_("Use wrapper functions for SYMBOL"), TWO_D

[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2004-05-06 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   06-May-2004 11:37:32
  Branch: HEAD Handle: 2004050610373100

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
cleanup patch and add workaround for Fedora

  Summary:
RevisionChanges Path
1.7 +67 -1  openpkg-src/binutils/binutils.patch
1.48+1  -1  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.6 -r1.7 binutils.patch
  --- openpkg-src/binutils/binutils.patch   30 Apr 2004 20:04:53 -  1.6
  +++ openpkg-src/binutils/binutils.patch   6 May 2004 09:37:31 -   1.7
  @@ -1,3 +1,7 @@
  +Use the platform specific ELF branding expected under FreeBSD.
  +This is similar to what the vendor ld(1) does on this platform.
  +
  +Index: bfd/elf.c
   --- bfd/elf.c.orig   2002-07-30 20:19:42.0 +0200
   +++ bfd/elf.c2002-08-22 17:41:47.0 +0200
   @@ -4235,6 +4235,12 @@
  @@ -13,7 +17,13 @@
  switch (bfd_get_arch (abfd))
{
case bfd_arch_unknown:
   bfd/elf64-sparc.c.dist   2003-06-20 09:42:19.0 +0200
  +
  +-
  +
  +Fix the linker under Solaris/SPARC.
  +
  +Index: bfd/elf64-sparc.c
  +--- bfd/elf64-sparc.c.orig   2003-06-20 09:42:19.0 +0200
   +++ bfd/elf64-sparc.c2003-06-20 09:42:40.0 +0200
   @@ -2684,7 +2684,7 @@
   overflows.  We don't, but this breaks stabs debugging
  @@ -24,6 +34,11 @@
&& _bfd_elf_section_offset (output_bfd, info, input_section,
rel->r_offset) == (bfd_vma) -1)
  break;
  +
  +-
  +
  +Support FreeBSD 4.10 by fixing platform detection.
  +
   Index: bfd/configure
   --- bfd/configure.orig   2003-06-12 16:25:46.0 +0200
   +++ bfd/configure2004-04-30 22:01:31.0 +0200
  @@ -38,3 +53,54 @@
  i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | 
i[34567]86-*-freebsd4\.[01234]* | i[34567]86-*-freebsd*aout*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/i386bsd.h"'
  +
  +-
  +
  +Accept (and ignore) --as-needed/--no-as-needed options from GNU binutils
  +2.15 in our GNU binutils 2.14 to resolve a chicken and egg problem under
  +platforms (like Fedora Core 2) which already run GNU binutils 2.15: the
  +vendor cc(1) knows that it has ld(1) from GNU binutils 2.15 and hence
  +always uses the --as-needed option when calling ld(1). Unfortunately,
  +between having built "binutils" and "gcc" packages, this will break
  +OpenPKG because the vendor cc(1) would run the OpenPKG ld(1) with an
  +option is (still) does not understand. The only workaround is to let our
  +ld(1) accept and ignore this option. Once our cc(1) from "gcc" package
  +is installed, the problem is gone, because our "gcc" package correctly
  +detects that our ld(1) still does ot understand --as-needed.
  +
  +Index: ld/lexsup.c
  +--- ld/lexsup.c.orig 2003-03-31 20:12:52.0 +0200
   ld/lexsup.c  2004-05-05 16:52:46.0 +0200
  +@@ -112,7 +112,9 @@
  + #define OPTION_SPLIT_BY_RELOC   (OPTION_WARN_SECTION_ALIGN + 1)
  + #define OPTION_SPLIT_BY_FILE(OPTION_SPLIT_BY_RELOC + 1)
  + #define OPTION_WHOLE_ARCHIVE(OPTION_SPLIT_BY_FILE + 1)
  +-#define OPTION_WRAP (OPTION_WHOLE_ARCHIVE + 1)
  ++#define OPTION_AS_NEEDED(OPTION_WHOLE_ARCHIVE + 1)
  ++#define OPTION_NO_AS_NEEDED (OPTION_AS_NEEDED + 1)
  ++#define OPTION_WRAP (OPTION_NO_AS_NEEDED + 1)
  + #define OPTION_FORCE_EXE_SUFFIX (OPTION_WRAP + 1)
  + #define OPTION_GC_SECTIONS  (OPTION_FORCE_EXE_SUFFIX + 1)
  + #define OPTION_NO_GC_SECTIONS   (OPTION_GC_SECTIONS + 1)
  +@@ -423,6 +425,10 @@
  +  TWO_DASHES },
  +   { {"whole-archive", no_argument, NULL, OPTION_WHOLE_ARCHIVE},
  +   '\0', NULL, N_("Include all objects from following archives"), TWO_DASHES },
  ++  { {"as-needed", no_argument, NULL, OPTION_AS_NEEDED},
  ++  '\0', NULL, N_("Only set DT_NEEDED for following dynamic libs if used"), 
TWO_DASHES },
  ++  { {"no-as-needed", no_argument, NULL, OPTION_NO_AS_NEEDED},
  ++  '\0', NULL, N_("Always set DT_N

[CVS] OpenPKG: openpkg-src/binutils/ binutils.patch binutils.spec

2004-04-30 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   30-Apr-2004 22:04:54
  Branch: HEAD Handle: 2004043021045300

  Modified files:
openpkg-src/binutilsbinutils.patch binutils.spec

  Log:
add support for FreeBSD 4.10

  Summary:
RevisionChanges Path
1.6 +14 -0  openpkg-src/binutils/binutils.patch
1.47+1  -1  openpkg-src/binutils/binutils.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.patch
  
  $ cvs diff -u -r1.5 -r1.6 binutils.patch
  --- openpkg-src/binutils/binutils.patch   20 Jun 2003 10:10:40 -  1.5
  +++ openpkg-src/binutils/binutils.patch   30 Apr 2004 20:04:53 -  1.6
  @@ -24,3 +24,17 @@
&& _bfd_elf_section_offset (output_bfd, info, input_section,
rel->r_offset) == (bfd_vma) -1)
  break;
  +Index: bfd/configure
  +--- bfd/configure.orig   2003-06-12 16:25:46.0 +0200
   bfd/configure2004-04-30 22:01:31.0 +0200
  +@@ -5133,6 +5133,10 @@
  +   i[3456]86-*-bsdi)
  + COREFILE=
  + ;;
  ++  i[3456]86-*-freebsd4.1[0-9]*)
  ++COREFILE=''
  ++TRAD_HEADER='"hosts/i386bsd.h"'
  ++;;
  +   i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | 
i[34567]86-*-freebsd4\.[01234]* | i[34567]86-*-freebsd*aout*)
  + COREFILE=trad-core.lo
  + TRAD_HEADER='"hosts/i386bsd.h"'
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/binutils/binutils.spec
  
  $ cvs diff -u -r1.46 -r1.47 binutils.spec
  --- openpkg-src/binutils/binutils.spec7 Feb 2004 17:53:49 -   1.46
  +++ openpkg-src/binutils/binutils.spec30 Apr 2004 20:04:53 -  1.47
  @@ -34,7 +34,7 @@
   Group:Utility
   License:  GPL
   Version:  2.14
  -Release:  20040207
  +Release:  20040430
   
   #   list of sources
   Source0:  
ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
  @@ .
__
The OpenPKG Projectwww.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]