Advertisement
Guest User

binutils-2.24-gcc4.9.patch

a guest
Sep 29th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. diff -rupN a/binutils/objcopy.c b/binutils/objcopy.c
  2. --- a/binutils/objcopy.c 2013-11-04 13:33:37.000000000 -0200
  3. +++ b/binutils/objcopy.c 2015-09-28 11:17:45.809115957 -0300
  4. @@ -1890,7 +1890,7 @@ copy_object (bfd *ibfd, bfd *obfd, const
  5. /* Umm, not sure what to do in this case. */
  6. debuglink_vma = 0x1000;
  7.  
  8. - bfd_set_section_vma (obfd, gnu_debuglink_section, debuglink_vma);
  9. + (void) bfd_set_section_vma (obfd, gnu_debuglink_section, debuglink_vma);
  10. }
  11. }
  12. }
  13. diff -rupN a/gas/config/obj-elf.c b/gas/config/obj-elf.c
  14. --- a/gas/config/obj-elf.c 2013-11-04 13:33:37.000000000 -0200
  15. +++ b/gas/config/obj-elf.c 2015-09-28 11:18:17.489114797 -0300
  16. @@ -1937,7 +1937,7 @@ obj_elf_init_stab_section (segT seg)
  17.  
  18. /* Force the section to align to a longword boundary. Without this,
  19. UnixWare ar crashes. */
  20. - bfd_set_section_alignment (stdoutput, seg, 2);
  21. + (void) bfd_set_section_alignment (stdoutput, seg, 2);
  22.  
  23. /* Make space for this first symbol. */
  24. p = frag_more (12);
  25. diff -rupN a/gas/subsegs.c b/gas/subsegs.c
  26. --- a/gas/subsegs.c 2013-11-04 13:33:37.000000000 -0200
  27. +++ b/gas/subsegs.c 2015-09-28 11:18:48.985113644 -0300
  28. @@ -67,7 +67,7 @@ subseg_change (register segT seg, regist
  29. {
  30. seginfo = (segment_info_type *) xcalloc (1, sizeof (*seginfo));
  31. seginfo->bfd_section = seg;
  32. - bfd_set_section_userdata (stdoutput, seg, seginfo);
  33. + (void) bfd_set_section_userdata (stdoutput, seg, seginfo);
  34. }
  35. }
  36.  
  37.  
  38. @@ -169,7 +169,7 @@ subseg_get (const char *segname, int for
  39. secptr->output_section = secptr;
  40. seginfo = (segment_info_type *) xcalloc (1, sizeof (*seginfo));
  41. seginfo->bfd_section = secptr;
  42. - bfd_set_section_userdata (stdoutput, secptr, seginfo);
  43. + (void) bfd_set_section_userdata (stdoutput, secptr, seginfo);
  44. }
  45. return secptr;
  46. }
  47. diff -rupN a/gas/write.c b/gas/write.c
  48. --- a/gas/write.c 2013-11-04 13:33:38.000000000 -0200
  49. +++ b/gas/write.c 2015-09-28 11:19:18.833112552 -0300
  50. @@ -363,7 +363,7 @@ record_alignment (/* Segment to which al
  51. return;
  52.  
  53. if ((unsigned int) align > bfd_get_section_alignment (stdoutput, seg))
  54. - bfd_set_section_alignment (stdoutput, seg, align);
  55. + (void) bfd_set_section_alignment (stdoutput, seg, align);
  56. }
  57.  
  58. int
  59. diff -rupN a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em
  60. --- a/ld/emultempl/armelf.em 2013-11-04 13:33:39.000000000 -0200
  61. +++ b/ld/emultempl/armelf.em 2015-09-28 11:30:52.697087154 -0300
  62. @@ -200,7 +200,7 @@ elf32_arm_add_stub_section (const char *
  63. if (stub_sec == NULL)
  64. goto err_ret;
  65.  
  66. - bfd_set_section_alignment (stub_file->the_bfd, stub_sec, alignment_power);
  67. + (void) bfd_set_section_alignment (stub_file->the_bfd, stub_sec, alignment_power);
  68.  
  69. output_section = input_section->output_section;
  70. secname = bfd_get_section_name (output_section->owner, output_section);
  71. diff -rupN a/ld/ldlang.c b/ld/ldlang.c
  72. --- a/ld/ldlang.c 2013-11-04 13:33:39.000000000 -0200
  73. +++ b/ld/ldlang.c 2015-09-28 11:20:09.577110694 -0300
  74. @@ -4831,7 +4831,7 @@ lang_size_sections_1
  75. " section %s\n"), os->name);
  76.  
  77. input = os->children.head->input_section.section;
  78. - bfd_set_section_vma (os->bfd_section->owner,
  79. + (void) bfd_set_section_vma (os->bfd_section->owner,
  80. os->bfd_section,
  81. bfd_section_vma (input->owner, input));
  82. os->bfd_section->size = input->size;
  83. @@ -4916,7 +4916,7 @@ lang_size_sections_1
  84. os->name, (unsigned long) (newdot - savedot));
  85. }
  86.  
  87. - bfd_set_section_vma (0, os->bfd_section, newdot);
  88. + (void) bfd_set_section_vma (0, os->bfd_section, newdot);
  89.  
  90. os->bfd_section->output_offset = 0;
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement