aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2015-03-26 17:51:57 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2015-03-26 17:51:57 +0000
commitef99b3de9f7b97d1a3ab9f3b009c80fe26d16b33 (patch)
tree5fc0a4e9d053c924d7db500797bf93206722ac3b /libgo
parentfd0c2f00f6b8adde3706d210d6de7a6e4b8f0ccc (diff)
downloadgcc-ef99b3de9f7b97d1a3ab9f3b009c80fe26d16b33.zip
gcc-ef99b3de9f7b97d1a3ab9f3b009c80fe26d16b33.tar.gz
gcc-ef99b3de9f7b97d1a3ab9f3b009c80fe26d16b33.tar.bz2
re PR go/65587 (C package incomplete/not working for powerpc-linux-gnu)
PR go/65587 debug/elf: apply relocations for SHT_RELA/EM_PPC From-SVN: r221698
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/debug/elf/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/debug/elf/file.go b/libgo/go/debug/elf/file.go
index 653b8d4..0135f7f 100644
--- a/libgo/go/debug/elf/file.go
+++ b/libgo/go/debug/elf/file.go
@@ -828,7 +828,7 @@ func (f *File) DWARF() (*dwarf.Data, error) {
// If there's a relocation table for .debug_info, we have to process it
// now otherwise the data in .debug_info is invalid for x86-64 objects.
rela := f.Section(".rela.debug_info")
- if rela != nil && rela.Type == SHT_RELA && (f.Machine == EM_X86_64 || f.Machine == EM_AARCH64 || f.Machine == EM_PPC64 || f.Machine == EM_S390) {
+ if rela != nil && rela.Type == SHT_RELA && (f.Machine == EM_X86_64 || f.Machine == EM_AARCH64 || f.Machine == EM_PPC || f.Machine == EM_PPC64 || f.Machine == EM_S390) {
data, err := rela.Data()
if err != nil {
return nil, err