i believe this is correct. not sure what it does to be honest but
may do something.
--- a/patches/gcc/pic30.h.diff Sat Jan 21 12:58:55 2017 +0000
+++ b/patches/gcc/pic30.h.diff Sat Jan 21 13:11:03 2017 +0000
@@ -17,7 +17,7 @@
+#define CC1_SPEC "%(mchp_cci_cc1_spec) -mresource="QUOTE(DEVICE_INFO)
-#define LINK_SPEC "%{mmemorysummary=*:--memorysummary %*} %{mpartition=*:--partition %*} %{mcpu=*:-p%*} -omf=" OMF
-+#define LINK_SPEC "%{mmemorysummary=*:--memorysummary %*} %{mpartition=*:-partition} %{mcpu=*:-p%*}"
++#define LINK_SPEC "%{mmemorysummary=*:--memorysummary %*} %{mpartition=*:--partition} %{mcpu=*:-p%*}"
/*
** A C string constant that tells the GNU CC driver program how to run any