[PATCH] or1k: add KEEP section directives to the linkcmds

Hesham Almatary heshamelmatary at gmail.com
Tue Apr 5 06:46:29 UTC 2016


From: Hesham Almatary <heshamelmatary at gmail.com>

---
 c/src/lib/libbsp/or1k/shared/startup/linkcmds.base | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/or1k/shared/startup/linkcmds.base b/c/src/lib/libbsp/or1k/shared/startup/linkcmds.base
index 31bb92d..2eefc72 100644
--- a/c/src/lib/libbsp/or1k/shared/startup/linkcmds.base
+++ b/c/src/lib/libbsp/or1k/shared/startup/linkcmds.base
@@ -41,7 +41,7 @@ bsp_processor_count = DEFINED (bsp_processor_count) ? bsp_processor_count : 1;
 SECTIONS {
 
   .vector : ALIGN_WITH_INPUT {
-    *(.vector)
+    KEEP (*(.vector))
     . = ALIGN(bsp_vector_table_size);
     bsp_section_vector_end = .;
   } > REGION_VECTOR AT > REGION_VECTOR
-- 
2.8.0.rc3




More information about the devel mailing list