diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-03-26 17:51:57 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-03-26 17:51:57 +0000 |
commit | 21ccdb27af35209e4ab589025833b93948cb2096 (patch) | |
tree | 5fc0a4e9d053c924d7db500797bf93206722ac3b /libgo/go/debug | |
parent | 649cf3c4dfd793d5a3529c4747840b90542d59ff (diff) | |
download | gcc-21ccdb27af35209e4ab589025833b93948cb2096.tar.gz |
PR go/65587
debug/elf: apply relocations for SHT_RELA/EM_PPC
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221698 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/debug')
-rw-r--r-- | libgo/go/debug/elf/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/debug/elf/file.go b/libgo/go/debug/elf/file.go index 653b8d42400..0135f7f8dbf 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 |