1/* 2 * Copyright (c) 2019 Jan Van Winkel <jan.van_winkel@dxplore.eu> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#if defined (CONFIG_CPP) 8 SECTION_PROLOGUE(.gcc_except_table,,ONLY_IF_RO) 9 { 10 *(.gcc_except_table .gcc_except_table.*) 11 } GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) 12 13#if defined (CONFIG_CPP_EXCEPTIONS) 14 SECTION_PROLOGUE(.eh_frame_hdr,,) 15 { 16 *(.eh_frame_hdr) 17 } GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) 18 19 SECTION_PROLOGUE(.eh_frame,,) 20 { 21 KEEP (*(SORT_NONE(EXCLUDE_FILE (*crtend.o) .eh_frame))) 22 KEEP (*(SORT_NONE(.eh_frame))) 23 } GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) 24#endif /* CONFIG_CPP_EXCEPTIONS */ 25 26#endif /* CONFIG_CPP */ 27