cplusplus-rom.ld 674 B

1234567891011121314151617181920212223242526
  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_PROLOGUE(.gcc_except_table,,ONLY_IF_RO)
  8. {
  9. *(.gcc_except_table .gcc_except_table.*)
  10. } GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
  11. #if defined (CONFIG_EXCEPTIONS)
  12. SECTION_PROLOGUE(.eh_frame_hdr,,)
  13. {
  14. *(.eh_frame_hdr)
  15. } GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
  16. SECTION_PROLOGUE(.eh_frame,,)
  17. {
  18. KEEP (*(SORT_NONE(EXCLUDE_FILE (*crtend.o) .eh_frame)))
  19. KEEP (*(SORT_NONE(.eh_frame)))
  20. } GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
  21. #endif /* CONFIG_EXCEPTIONS */
  22. #endif /* CONFIG_CPLUSPLUS */