• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/binutils/2.27/0906-microblaze-pr21180.patch
Waldemar BrodkorbWaldemar Brodkorb committed a384ce7d4b825 Feb 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Fix ld segfault for microblaze when --gc-sections is used
2
Upstream: pending
3
https://sourceware.org/bugzilla/show_bug.cgi?id=21180
4
​
5
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
6
​
7
diff -Nur binutils-2.27.orig/bfd/elf32-microblaze.c binutils-2.27/bfd/elf32-microblaze.c
8
--- binutils-2.27.orig/bfd/elf32-microblaze.c   2016-08-03 09:36:50.000000000 +0200
9
+++ binutils-2.27/bfd/elf32-microblaze.c    2017-02-23 19:43:12.612313590 +0100
10
@@ -3297,13 +3297,20 @@
11
          || h->dynindx == -1))
12
         {
13
           asection *sec = h->root.u.def.section;
14
+     bfd_vma value;
15
+
16
+     value = h->root.u.def.value;
17
+     if (sec->output_section != NULL)
18
+       /* PR 21180: If the output section is NULL, then the symbol is no
19
+          longer needed, and in theory the GOT entry is redundant.  But
20
+          it is too late to change our minds now...  */
21
+       value += sec->output_section->vma + sec->output_offset;
22
+
23
           microblaze_elf_output_dynamic_relocation (output_bfd,
24
                                                     srela, srela->reloc_count++,
25
                                                     /* symindex= */ 0,
26
                                                     R_MICROBLAZE_REL, offset,
27
-                                                    h->root.u.def.value
28
-                                                    + sec->output_section->vma
29
-                                                    + sec->output_offset);
30
+                                                    value);
31
         }
32
       else
33
         {
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.