[rtems commit] Add missing BSD sections.

Joel Sherrill joel at rtems.org
Fri Mar 9 16:33:47 UTC 2012


Module:    rtems
Branch:    master
Commit:    0bda8b47a66746be4727306226ec53ad7f8a0333
Changeset: http://git.rtems.org/rtems/commit/?id=0bda8b47a66746be4727306226ec53ad7f8a0333

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri Mar  9 10:28:39 2012 -0600

Add missing BSD sections.

---

 c/src/lib/libbsp/powerpc/psim/startup/linkcmds |   26 ++++++++++++++---------
 1 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/psim/startup/linkcmds b/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
index 91fee17..9676b08 100644
--- a/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
+++ b/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
@@ -71,19 +71,25 @@ SECTIONS
     *(.eh_frame_hdr*)
     *(.eh_frame*)
 
-    /*
-     * Special FreeBSD sysctl sections.
-     */
-    . = ALIGN (16);
-    __start_set_sysctl_set = .;
-    *(set_sysctl_*);
-    __stop_set_sysctl_set = ABSOLUTE(.);
-    *(set_domain_*);
-    *(set_pseudo_*);
-
     /* .gnu.warning sections are handled specially by elf32.em.  */
     *(.gnu.warning)
   } >RAM
+	.robsdsets : {
+		/* Special FreeBSD linker set sections */
+		__start_set_sysctl_set = .;
+		*(set_sysctl_*);
+		__stop_set_sysctl_set = .;
+		*(set_domain_*);
+		*(set_pseudo_*);
+		_bsd__start_set_modmetadata_set = .;
+		*(_bsd_set_modmetadata_set);
+		_bsd__stop_set_modmetadata_set = .;
+		_bsd__start_set_sysctl_set = .;
+		*(_bsd_set_sysctl_set);
+		_bsd__stop_set_sysctl_set = .;
+
+		bsp_section_rodata_end = .;
+	} > RAM
   .init           :
   {
     KEEP (*(.init))




More information about the vc mailing list