[PATCH] bsp/powerpc: Remove wildcards in linkcmds.base
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon May 14 14:00:08 UTC 2018
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 e0dfdcc914..25a6414855 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;
--
2.12.3
More information about the devel
mailing list