[rtems commit] bsp/powerpc: Remove wildcards in linkcmds.base

Sebastian Huber sebh at rtems.org
Fri May 18 08:45:50 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Feb 21 12:40:40 2018 +0100

bsp/powerpc: Remove wildcards in linkcmds.base

This reverts commit 40c623a883da5dd80e4599cf4cd14097834706bd.

The use of postfix wildcards, e.g. of the form "*.x" is dangerous since
it circumvents the standard matching rules for sections.

Unknown input sections should be added explicitly to the desired output
section via "x.*" wildcards.

Update #3307.

---

 bsps/powerpc/shared/start/linkcmds.base | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bsps/powerpc/shared/start/linkcmds.base b/bsps/powerpc/shared/start/linkcmds.base
index e0dfdcc..25a6414 100644
--- a/bsps/powerpc/shared/start/linkcmds.base
+++ b/bsps/powerpc/shared/start/linkcmds.base
@@ -100,10 +100,10 @@ SECTIONS {
 		*(.eh_frame_hdr)
 	} > REGION_RODATA AT > REGION_RODATA_LOAD
 	.eh_frame : ALIGN_WITH_INPUT {
-		KEEP (*(*.eh_frame))
+		KEEP (*(.eh_frame))
 	} > REGION_RODATA AT > REGION_RODATA_LOAD
 	.gcc_except_table : ALIGN_WITH_INPUT {
-		*(.gcc_except_table *.gcc_except_table.*)
+		*(.gcc_except_table .gcc_except_table.*)
 	} > REGION_RODATA AT > REGION_RODATA_LOAD
 	.tdata : ALIGN_WITH_INPUT {
 		_TLS_Data_begin = .;
@@ -260,7 +260,7 @@ SECTIONS {
 		*(set_domain_*);
 		*(set_pseudo_*);
 
-		KEEP (*(SORT(*.rtemsroset.*)))
+		KEEP (*(SORT(.rtemsroset.*)))
 		bsp_section_rodata_end = .;
 	} > REGION_RODATA AT > REGION_RODATA_LOAD
 	bsp_section_rodata_size = bsp_section_rodata_end - bsp_section_rodata_begin;




More information about the vc mailing list