nios2: set up common linker script for XIP and non-XIP

We will require 6 variables to be defined by SOC-specific
linker script; these values in turn can be pulled from
defines in layout.h.

To help position code correctly we define two new ELF sections
for this arch, 'reset' and 'exceptions'.

Change-Id: Idffbd53895945b7d0ec0aac281e5bf7c85b4b2c2
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index 3b80d0c..e1b41e8 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -385,9 +385,10 @@
 
     alloc_sections = ["bss", "noinit"]
     rw_sections = ["datas", "initlevel", "_k_mem_map_ptr", "_k_pipe_ptr",
-                   "_k_task_ptr", "_k_task_list", "_k_event_list"]
+                   "_k_task_ptr", "_k_task_list", "_k_event_list",
+                   "exceptions"]
     # These get copied into RAM only on non-XIP
-    ro_sections = ["text", "ctors", "init_array",
+    ro_sections = ["text", "ctors", "init_array", "reset",
                    "rodata", "devconfig", "gpio_compat"]
 
     def __init__(self, filename):