001-debian.patch 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. diff -urN binutils-2.14.90.0.8-dist/bfd/elf64-alpha.c binutils-2.14.90.0.8/bfd/elf64-alpha.c
  2. --- binutils-2.14.90.0.8-dist/bfd/elf64-alpha.c 2004-01-14 15:07:43.000000000 -0600
  3. +++ binutils-2.14.90.0.8/bfd/elf64-alpha.c 2004-02-11 03:42:05.000000000 -0600
  4. @@ -4144,9 +4144,12 @@
  5. loc = srel->contents;
  6. loc += srel->reloc_count++ * sizeof (Elf64_External_Rela);
  7. - bfd_elf64_swap_reloca_out (abfd, &outrel, loc);
  8. - BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count
  9. - <= srel->_cooked_size);
  10. + if (loc)
  11. + {
  12. + bfd_elf64_swap_reloca_out (abfd, &outrel, loc);
  13. + BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count
  14. + <= srel->_cooked_size);
  15. + }
  16. }
  17. /* Relocate an Alpha ELF section for a relocatable link.
  18. diff -urN binutils-2.14.90.0.8-dist/bfd/opncls.c binutils-2.14.90.0.8/bfd/opncls.c
  19. --- binutils-2.14.90.0.8-dist/bfd/opncls.c 2004-01-14 15:07:43.000000000 -0600
  20. +++ binutils-2.14.90.0.8/bfd/opncls.c 2004-02-11 03:42:01.000000000 -0600
  21. @@ -150,6 +150,13 @@
  22. {
  23. bfd *nbfd;
  24. const bfd_target *target_vec;
  25. + struct stat s;
  26. +
  27. + if (stat (filename, &s) == 0)
  28. + if (S_ISDIR(s.st_mode)) {
  29. + bfd_set_error (bfd_error_file_not_recognized);
  30. + return NULL;
  31. + }
  32. nbfd = _bfd_new_bfd ();
  33. if (nbfd == NULL)
  34. diff -urN binutils-2.14.90.0.8-dist/gprof/gprof.texi binutils-2.14.90.0.8/gprof/gprof.texi
  35. --- binutils-2.14.90.0.8-dist/gprof/gprof.texi 2004-01-14 15:07:51.000000000 -0600
  36. +++ binutils-2.14.90.0.8/gprof/gprof.texi 2004-02-11 03:42:01.000000000 -0600
  37. @@ -138,6 +138,10 @@
  38. If more than one profile file is specified, the @code{gprof}
  39. output shows the sum of the profile information in the given profile files.
  40. +If you use gcc 2.95.x or 3.0 to compile your binaries, you may need
  41. +to add the @samp{-fprofile-arcs} to the compile command line in order
  42. +for the call graphs to be properly stored in gmon.out.
  43. +
  44. @code{Gprof} calculates the amount of time spent in each routine.
  45. Next, these times are propagated along the edges of the call graph.
  46. Cycles are discovered, and calls into a cycle are made to share the time
  47. @@ -182,7 +186,7 @@
  48. @c man end
  49. @c man begin SEEALSO
  50. -monitor(3), profil(2), cc(1), prof(1), and the Info entry for @file{gprof}.
  51. +profil(2), cc(1), prof(1), and the Info entry for @file{gprof}.
  52. ``An Execution Profiler for Modular Programs'',
  53. by S. Graham, P. Kessler, M. McKusick;
  54. @@ -268,6 +272,11 @@
  55. options. The same option, @samp{-pg}, alters either compilation or linking
  56. to do what is necessary for profiling. Here are examples:
  57. +If you use gcc 2.95.x or 3.0.x, you may need to add the
  58. +@samp{-fprofile-arcs} option to the compile line along with @samp{-pg}
  59. +in order to allow the call-graphs to be properly included in the gmon.out
  60. +file.
  61. +
  62. @example
  63. cc -g -c myprog.c utils.c -pg
  64. cc -o myprog myprog.o utils.o -pg
  65. diff -urN binutils-2.14.90.0.8-dist/ld/Makefile.am binutils-2.14.90.0.8/ld/Makefile.am
  66. --- binutils-2.14.90.0.8-dist/ld/Makefile.am 2004-01-14 15:07:52.000000000 -0600
  67. +++ binutils-2.14.90.0.8/ld/Makefile.am 2004-02-11 03:42:01.000000000 -0600
  68. @@ -19,7 +19,7 @@
  69. # We put the scripts in the directory $(scriptdir)/ldscripts.
  70. # We can't put the scripts in $(datadir) because the SEARCH_DIR
  71. # directives need to be different for native and cross linkers.
  72. -scriptdir = $(tooldir)/lib
  73. +scriptdir = $(libdir)
  74. EMUL = @EMUL@
  75. EMULATION_OFILES = @EMULATION_OFILES@
  76. diff -urN binutils-2.14.90.0.8-dist/ld/Makefile.in binutils-2.14.90.0.8/ld/Makefile.in
  77. --- binutils-2.14.90.0.8-dist/ld/Makefile.in 2004-01-14 15:07:52.000000000 -0600
  78. +++ binutils-2.14.90.0.8/ld/Makefile.in 2004-02-11 03:42:01.000000000 -0600
  79. @@ -128,7 +128,7 @@
  80. # We put the scripts in the directory $(scriptdir)/ldscripts.
  81. # We can't put the scripts in $(datadir) because the SEARCH_DIR
  82. # directives need to be different for native and cross linkers.
  83. -scriptdir = $(tooldir)/lib
  84. +scriptdir = $(libdir)
  85. EMUL = @EMUL@
  86. EMULATION_OFILES = @EMULATION_OFILES@
  87. diff -urN binutils-2.14.90.0.8-dist/ld/emultempl/elf32.em binutils-2.14.90.0.8/ld/emultempl/elf32.em
  88. --- binutils-2.14.90.0.8-dist/ld/emultempl/elf32.em 2004-01-14 15:07:53.000000000 -0600
  89. +++ binutils-2.14.90.0.8/ld/emultempl/elf32.em 2004-02-11 03:42:01.000000000 -0600
  90. @@ -671,6 +671,8 @@
  91. && command_line.rpath == NULL)
  92. {
  93. lib_path = (const char *) getenv ("LD_RUN_PATH");
  94. + if ((lib_path) && (strlen (lib_path) == 0))
  95. + lib_path = NULL;
  96. if (gld${EMULATION_NAME}_search_needed (lib_path, l->name,
  97. force))
  98. break;
  99. @@ -850,6 +852,8 @@
  100. rpath = command_line.rpath;
  101. if (rpath == NULL)
  102. rpath = (const char *) getenv ("LD_RUN_PATH");
  103. + if ((rpath) && (strlen (rpath) == 0))
  104. + rpath = NULL;
  105. if (! (bfd_elf${ELFSIZE}_size_dynamic_sections
  106. (output_bfd, command_line.soname, rpath,
  107. command_line.filter_shlib,
  108. diff -urN binutils-2.14.90.0.8-dist/ltmain.sh binutils-2.14.90.0.8/ltmain.sh
  109. --- binutils-2.14.90.0.8-dist/ltmain.sh 2002-03-22 16:06:16.000000000 -0600
  110. +++ binutils-2.14.90.0.8/ltmain.sh 2004-02-11 03:42:05.000000000 -0600
  111. @@ -4413,6 +4413,10 @@
  112. # LD_LIBRARY_PATH before the program is installed.
  113. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  114. $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  115. + if test -n "$linkname"; then
  116. + $show "(cd $output_objdir && $rm ../$linkname && $LN_S $output_objdir/$linkname ../$linkname)"
  117. + $run eval '(cd $output_objdir && $rm ../$linkname && $LN_S $output_objdir/$linkname ../$linkname)' || exit $?
  118. + fi
  119. ;;
  120. esac
  121. exit 0
  122. diff -urN binutils-2.14.90.0.8-dist/opcodes/i386-dis.c binutils-2.14.90.0.8/opcodes/i386-dis.c
  123. --- binutils-2.14.90.0.8-dist/opcodes/i386-dis.c 2004-01-14 15:07:55.000000000 -0600
  124. +++ binutils-2.14.90.0.8/opcodes/i386-dis.c 2004-02-11 03:42:01.000000000 -0600
  125. @@ -1879,7 +1879,7 @@
  126. * The function returns the length of this instruction in bytes.
  127. */
  128. -static char intel_syntax;
  129. +static signed char intel_syntax;
  130. static char open_char;
  131. static char close_char;
  132. static char separator_char;