Skip to content

Commit

Permalink
Merge branch 'mr/gnat-llvm-make-personality-reference-reachable' into…
Browse files Browse the repository at this point in the history
… 'master'

Make the personality function reachable on Morello with GNAT-LLVM

See merge request eng/toolchain/bb-runtimes!79
  • Loading branch information
sebastianpoeplau committed Mar 13, 2024
2 parents 2e64403 + da2cc3c commit d79c3c5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions aarch64/morello/common.ld
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,20 @@ SECTIONS
__eh_frame_end = .;
} > REGION_CODE

/* LLVM puts a reference to the personality function in this section. We
place the section here to make sure that it is within the bounds of
__eh_frame_hdr_cap, so that the exception-handling code can read the
reference. */

.data.DW.ref :
{
*(.data.DW.ref.*)
} > REGION_DATA

/* The following sections are located in the GNU_RELRO segment. The GNU_RELRO
segment should be contiguous, so do not place non-GNU_RELRO segments in
between. */

.gcc_except_table :
{
*(.gcc_except_table .gcc_except_table.*)
Expand All @@ -145,6 +159,8 @@ SECTIONS
*(.got)
} > REGION_DATA

/* End of GNU_RELRO segment */

.rela.dyn :
{
*(.rela.dyn)
Expand Down

0 comments on commit d79c3c5

Please sign in to comment.