Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XCOFF64 binary created by Go compiler #91

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

riptl
Copy link
Contributor

@riptl riptl commented Nov 27, 2023

Checklist

  • Closing issues: #issue
  • Mark this if you consider it ready to merge
  • I've added tests (optional)
  • I wrote some documentation

Description

The Go compiler is one of the few fully self-hosted toolchains that can produce XCOFF64 binaries for AIX. Therefore, good to have as a test case

Using Go 1.21.4

cat <<EOF > main.go
package main

import (
	"crypto/aes"
	"crypto/sha256"
	"fmt"
)

func main() {
	sum := sha256.Sum256([]byte{})
	cipher, _ := aes.NewCipher(sum[:])
	block := [aes.BlockSize]byte{
		0x99, 0xc3, 0xba, 0x1e, 0x94, 0x36, 0x19, 0xd1,
		0x2b, 0xa1, 0xb1, 0x5d, 0x42, 0xec, 0xbf, 0x21,
	}
	var dest [16]byte
	cipher.Decrypt(dest[:], block[:])
	fmt.Print(string(dest[:]))
	fmt.Println("3")
}
EOF

OOS=aix GOARCH=ppc64 go build

@trufae trufae merged commit 7d7723e into radareorg:master Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants