diff --git a/ld.go b/ld.go index 1ddc3f2..2de7705 100644 --- a/ld.go +++ b/ld.go @@ -4,15 +4,16 @@ import ( "bytes" "encoding/hex" "fmt" - log "github.com/sirupsen/logrus" "io" "math/rand" "os" "path/filepath" "text/template" + + log "github.com/sirupsen/logrus" ) -var ldArgs = []string{"-G 0", "-S", "-nostartfiles", "-nodefaultlibs", "-nostdinc", "-M"} +var ldArgs = []string{"-G 0", "-nostartfiles", "-nodefaultlibs", "-nostdinc", "-M"} func createLdScript(w *Wave) (io.Reader, error) { t := ` @@ -114,7 +115,8 @@ SECTIONS { /DISCARD/ : { /* Discard everything we haven't explicitly used. */ - *(*) + *(.eh_frame) + *(.MIPS.abiflags) } _RomEnd = _RomSize; }