28 lines
1 KiB
Text
28 lines
1 KiB
Text
Index: src/debug/elf/elf.go
|
|
--- src/debug/elf/elf.go.orig
|
|
+++ src/debug/elf/elf.go
|
|
@@ -773,6 +773,7 @@ const (
|
|
|
|
PT_OPENBSD_RANDOMIZE ProgType = 0x65a3dbe6 /* Random data */
|
|
PT_OPENBSD_WXNEEDED ProgType = 0x65a3dbe7 /* W^X violations */
|
|
+ PT_OPENBSD_NOBTCFI ProgType = 0x65a3dbe8 /* no branch target CFI */
|
|
PT_OPENBSD_BOOTDATA ProgType = 0x65a41be6 /* Boot arguments */
|
|
|
|
PT_SUNW_EH_FRAME ProgType = 0x6474e550 /* Frame unwind information */
|
|
@@ -2216,6 +2217,8 @@ const (
|
|
R_MIPS_TLS_TPREL64 R_MIPS = 48 /* TP-relative offset, 64 bit */
|
|
R_MIPS_TLS_TPREL_HI16 R_MIPS = 49 /* TP-relative offset, high 16 bits */
|
|
R_MIPS_TLS_TPREL_LO16 R_MIPS = 50 /* TP-relative offset, low 16 bits */
|
|
+
|
|
+ R_MIPS_PC32 R_MIPS = 248 /* 32 bit PC relative reference */
|
|
)
|
|
|
|
var rmipsStrings = []intName{
|
|
@@ -2267,6 +2270,7 @@ var rmipsStrings = []intName{
|
|
{48, "R_MIPS_TLS_TPREL64"},
|
|
{49, "R_MIPS_TLS_TPREL_HI16"},
|
|
{50, "R_MIPS_TLS_TPREL_LO16"},
|
|
+ {248, "R_MIPS_PC32"},
|
|
}
|
|
|
|
func (i R_MIPS) String() string { return stringName(uint32(i), rmipsStrings, false) }
|