cplusplus-ram.ld 592 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #if defined (CONFIG_CPLUSPLUS)
  7. SECTION_DATA_PROLOGUE(.gcc_except_table,,ONLY_IF_RW)
  8. {
  9. *(.gcc_except_table .gcc_except_table.*)
  10. } GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
  11. #if defined (CONFIG_EXCEPTIONS)
  12. SECTION_PROLOGUE(.tm_clone_table,,)
  13. {
  14. KEEP (*(SORT_NONE(EXCLUDE_FILE (*crtend.o) .tm_clone_table)))
  15. KEEP (*(SORT_NONE(.tm_clone_table)))
  16. } GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
  17. #endif /* CONFIG_EXCEPTIONS */
  18. #endif /* CONFIG_CPLUSPLUS */