]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/binutils/binutils-2.14.90.0.6/binutils-uclibc-001-debian.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / binutils / binutils-2.14.90.0.6 / binutils-uclibc-001-debian.patch
1 diff -urN binutils-2.11.90.0.27/gprof/gprof.texi binutils-2.11.90.0.27.new/gprof/gprof.texi
2 --- binutils-2.11.90.0.27/gprof/gprof.texi      Tue Jun 19 14:57:58 2001
3 +++ binutils-2.11.90.0.27.new/gprof/gprof.texi  Mon Aug 27 10:27:23 2001
4 @@ -137,6 +137,10 @@
5  If more than one profile file is specified, the @code{gprof}
6  output shows the sum of the profile information in the given profile files.
7  
8 +If you use gcc 2.95.x or 3.0 to compile your binaries, you may need
9 +to add the @samp{-fprofile-arcs} to the compile command line in order
10 +for the call graphs to be properly stored in gmon.out.
11 +
12  @code{Gprof} calculates the amount of time spent in each routine.
13  Next, these times are propagated along the edges of the call graph.
14  Cycles are discovered, and calls into a cycle are made to share the time
15 @@ -266,6 +270,11 @@
16  to do the linking, simply specify @samp{-pg} in addition to your usual
17  options.  The same option, @samp{-pg}, alters either compilation or linking
18  to do what is necessary for profiling.  Here are examples:
19 +
20 +If you use gcc 2.95.x or 3.0.x, you may need to add the
21 +@samp{-fprofile-arcs} option to the compile line along with @samp{-pg}
22 +in order to allow the call-graphs to be properly included in the gmon.out
23 +file.
24  
25  @example
26  cc -g -c myprog.c utils.c -pg
27 diff -urN binutils-2.12.90.0.12/ld/emultempl/elf32.em binutils-2.12.90.0.12.new/ld/emultempl/elf32.em
28 --- binutils-2.12.90.0.12/ld/emultempl/elf32.em Wed Jun 19 00:41:59 2002
29 +++ binutils-2.12.90.0.12.new/ld/emultempl/elf32.em     Wed Jun 26 10:00:26 2002
30 @@ -672,6 +672,8 @@
31               && command_line.rpath == NULL)
32             {
33               lib_path = (const char *) getenv ("LD_RUN_PATH");
34 +             if ((lib_path) && (strlen (lib_path) == 0))
35 +                 lib_path = NULL;
36               if (gld${EMULATION_NAME}_search_needed (lib_path, l->name,
37                                                       force))
38                 break;
39 @@ -867,6 +869,8 @@
40    rpath = command_line.rpath;
41    if (rpath == NULL)
42      rpath = (const char *) getenv ("LD_RUN_PATH");
43 +  if ((rpath) && (strlen (rpath) == 0))
44 +      rpath = NULL;
45    if (! (bfd_elf${ELFSIZE}_size_dynamic_sections
46           (output_bfd, command_line.soname, rpath,
47           command_line.filter_shlib,
48 diff -urN binutils-2.13.90.0.18/gprof/gprof.texi binutils-2.13.90.0.18.new/gprof/gprof.texi
49 --- binutils-2.13.90.0.18/gprof/gprof.texi      2003-02-02 18:29:09.000000000 -0500
50 +++ binutils-2.13.90.0.18.new/gprof/gprof.texi  2003-02-02 18:28:37.000000000 -0500
51 @@ -185,7 +185,7 @@
52  @c man end
53  
54  @c man begin SEEALSO
55 -monitor(3), profil(2), cc(1), prof(1), and the Info entry for @file{gprof}.
56 +profil(2), cc(1), prof(1), and the Info entry for @file{gprof}.
57  
58  ``An Execution Profiler for Modular Programs'',
59  by S. Graham, P. Kessler, M. McKusick;
60 diff -urN binutils-2.13.90.0.10/opcodes/alpha-opc.c binutils-2.13.90.0.10.new/opcodes/alpha-opc.c
61 --- binutils-2.13.90.0.10/opcodes/alpha-opc.c   2002-03-07 14:52:40.000000000 -0500
62 +++ binutils-2.13.90.0.10.new/opcodes/alpha-opc.c       2002-10-12 20:16:08.000000000 -0400
63 @@ -1101,7 +1101,8 @@
64    { "wmb",             MFC(0x18,0x4400), BASE, ARG_NONE },
65    { "fetch",           MFC(0x18,0x8000), BASE, { ZA, PRB } },
66    { "fetch_m",         MFC(0x18,0xA000), BASE, { ZA, PRB } },
67 -  { "rpcc",            MFC(0x18,0xC000), BASE, { RA } },
68 +  { "rpcc",            MFC(0x18,0xC000), BASE, { RA, ZB } },
69 +  { "rpcc",            MFC(0x18,0xC000), BASE, { RA, RB } },   /* ev6 una */
70    { "rc",              MFC(0x18,0xE000), BASE, { RA } },
71    { "ecb",             MFC(0x18,0xE800), BASE, { ZA, PRB } },  /* ev56 una */
72    { "rs",              MFC(0x18,0xF000), BASE, { RA } },
73 --- binutils-2.13.90.0.18/bfd/elf64-alpha.c     2003-01-21 19:21:32.000000000 +0100
74 +++ binutils-2.13.90.0.18-modif/bfd/elf64-alpha.c       2003-04-11 01:24:26.000000000 +0200
75 @@ -4184,9 +4184,12 @@
76  
77    loc = srel->contents;
78    loc += srel->reloc_count++ * sizeof (Elf64_External_Rela);
79 -  bfd_elf64_swap_reloca_out (abfd, &outrel, loc);
80 -  BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count
81 -             <= srel->_cooked_size);
82 +  if (loc)
83 +    {
84 +      bfd_elf64_swap_reloca_out (abfd, &outrel, loc);
85 +      BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count
86 +                 <= srel->_cooked_size);
87 +    }
88  }
89  
90  /* Relocate an Alpha ELF section for a relocatable link.
91 2003-05-23  H.J. Lu <hongjiu.lu@intel.com>
92
93         * ltmain.sh: Make symlink for shared library if needed.
94
95 opcodes/
96
97 2003-07-14  H.J. Lu <hongjiu.lu@intel.com>
98
99         * Makefile.in: Regenerated.
100
101 2003-06-11  H.J. Lu <hongjiu.lu@intel.com>
102
103         * Makefile.in: Regenerated.
104
105 2003-05-23  H.J. Lu <hongjiu.lu@intel.com>
106
107         * Makefile.am (libopcodes_la_LIBADD): Use "-L../bfd -lbfd"
108         instead of "../bfd/libbfd.la".
109         * Makefile.in: Regenerated.
110
111 --- binutils/ltmain.sh.dso      2002-03-22 00:16:20.000000000 -0800
112 +++ binutils/ltmain.sh  2003-07-14 12:50:17.000000000 -0700
113 @@ -4413,6 +4413,10 @@ relink_command=\"$relink_command\""
114        # LD_LIBRARY_PATH before the program is installed.
115        $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
116        $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
117 +      if test -n "$linkname"; then
118 +        $show "(cd $output_objdir && $rm ../$linkname && $LN_S $output_objdir/$linkname ../$linkname)"
119 +        $run eval '(cd $output_objdir && $rm ../$linkname && $LN_S $output_objdir/$linkname ../$linkname)' || exit $?
120 +      fi
121        ;;
122      esac
123      exit 0
124 --- binutils/opcodes/Makefile.am.dso    2003-06-11 07:18:04.000000000 -0700
125 +++ binutils/opcodes/Makefile.am        2003-07-14 12:50:18.000000000 -0700
126 @@ -283,7 +283,7 @@ disassemble.lo: disassemble.c $(INCDIR)/
127  
128  libopcodes_la_SOURCES =  dis-buf.c disassemble.c
129  libopcodes_la_DEPENDENCIES = $(OFILES) ../bfd/libbfd.la
130 -libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@ ../bfd/libbfd.la
131 +libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@ -L../bfd -lbfd
132  libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
133  
134  # libtool will build .libs/libopcodes.a.  We create libopcodes.a in