[rtems commit] bsps/powerpc: Fix linker command files
Sebastian Huber
sebh at rtems.org
Fri Mar 16 14:12:40 UTC 2018
Module: rtems
Branch: master
Commit: 9860cc7bbab10fc9dbc0099168d43b8f5dad394d
Changeset: http://git.rtems.org/rtems/commit/?id=9860cc7bbab10fc9dbc0099168d43b8f5dad394d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Mar 16 11:01:03 2018 +0100
bsps/powerpc: Fix linker command files
Update #3339.
---
c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base b/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base
index 90cfb9e..e0dfdcc 100644
--- a/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base
+++ b/c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base
@@ -139,16 +139,18 @@ SECTIONS {
PROVIDE_HIDDEN (__fini_array_end = .);
} > REGION_RODATA AT > REGION_RODATA_LOAD
.ctors : ALIGN_WITH_INPUT {
+ KEEP (*ecrti.o(.ctors))
KEEP (*crtbegin.o(.ctors))
KEEP (*crtbegin?.o(.ctors))
- KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
+ KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o *ecrtn.o) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
} > REGION_RODATA AT > REGION_RODATA_LOAD
.dtors : ALIGN_WITH_INPUT {
+ KEEP (*ecrti.o(.dtors))
KEEP (*crtbegin.o(.dtors))
KEEP (*crtbegin?.o(.dtors))
- KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
+ KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o *ecrtn.o) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
} > REGION_RODATA AT > REGION_RODATA_LOAD
More information about the vc
mailing list