From 7bf072bbb88e913624c4609afa4f621d225889c3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 21 Feb 2018 12:40:40 +0100 Subject: [PATCH] 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 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;