Skip to content

Commit

Permalink
remove some comments and update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Force Charlie authored and akavel committed Apr 17, 2020
1 parent 9fdd135 commit b8dad72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions coff/coff.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ type RelocationEntry struct {
const (
_IMAGE_REL_AMD64_ADDR32NB = 0x03
_IMAGE_REL_I386_DIR32NB = 0x07
//#define IMAGE_REL_ARM64_ADDR32NB 0x0002 // 32 bit address w/o image base (RVA: for Data/PData/XData)
_IMAGE_REL_ARM64_ADDR32NB = 0x02
//#define IMAGE_REL_ARM_ADDR32NB 0x0002 // 32 bit address w/o image base
_IMAGE_REL_ARM_ADDR32NB = 0x02
_IMAGE_REL_ARM_ADDR32NB = 0x02
)

type Auxiliary [18]byte
Expand Down
6 changes: 3 additions & 3 deletions rsrc.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"regexp"
"strings"

"github.com/akavel/rsrc/coff"
"github.com/akavel/rsrc/binutil"
"github.com/akavel/rsrc/coff"
"github.com/akavel/rsrc/internal"
"github.com/akavel/rsrc/rsrc"
)
Expand All @@ -36,7 +36,7 @@ func main() {
flags.StringVar(&fnameico, "ico", "", "comma-separated list of paths to .ico files to embed")
flags.StringVar(&fnamedata, "data", "", "path to raw data file to embed [WARNING: useless for Go 1.4+]")
flags.StringVar(&fnameout, "o", "rsrc.syso", "name of output COFF (.res or .syso) file")
flags.StringVar(&arch, "arch", "386", "architecture of output file - one of: 386, [EXPERIMENTAL: amd64]")
flags.StringVar(&arch, "arch", "386", "architecture of output file - one of: 386, amd64, [EXPERIMENTAL: arm, arm64]")
_ = flags.Parse(os.Args[1:])
if fnameout == "" || (fnamein == "" && fnamedata == "" && fnameico == "") {
fmt.Fprintf(os.Stderr, usage, os.Args[0])
Expand Down Expand Up @@ -101,4 +101,4 @@ void ·get_NAME(Slice a) {
}`, "NAME", symname, -1))

return nil
}
}

0 comments on commit b8dad72

Please sign in to comment.