1
0
mirror of https://github.com/golang/go synced 2024-11-06 05:26:11 -07:00
go/src/debug/elf
Ian Lance Taylor c9ed065fbb debug/elf: SPARC64 relocation type is only 8 bits
https://docs.oracle.com/cd/E53394_01/html/E54813/chapter6-54839.html#OSLLGchapter6-24:

"For 64–bit SPARC Elf64_Rela structures, the r_info field is further
broken down into an 8–bit type identifier and a 24–bit type dependent
data field. For the existing relocation types, the data field is
zero. New relocation types, however, might make use of the data bits.

 #define ELF64_R_TYPE_ID(info)         (((Elf64_Xword)(info)<<56)>>56)
"

No test for this because the only test would be an invalid object file.

Change-Id: I5052ca3bfaf0759e920f9a24a16fd97543b24486
Reviewed-on: https://go-review.googlesource.com/33091
Reviewed-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
2016-11-10 22:58:49 +00:00
..
testdata debug/elf: add support for GOARCH=mips{,le} 2016-11-03 22:38:25 +00:00
elf_test.go
elf.go
file_test.go debug/elf: add support for GOARCH=mips{,le} 2016-11-03 22:38:25 +00:00
file.go debug/elf: SPARC64 relocation type is only 8 bits 2016-11-10 22:58:49 +00:00
reader.go all: use SeekStart, SeekCurrent, SeekEnd 2016-05-06 00:10:41 +00:00
symbols_test.go