Skip to content

Commit

Permalink
Reapply "Update linker script - eh_frame support"
Browse files Browse the repository at this point in the history
This reverts commit 1c8cb87.

Change-Id: Ided7336b05a3366288d62705662e195e47b5a034
  • Loading branch information
Milica Lazarevic committed Oct 2, 2024
1 parent 1c8cb87 commit f56ff29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libgloss/mips/mti32.ld
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,15 @@ SECTIONS
.eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*) }
.eh_frame :
{
__eh_frame_start = .;
/* The .eh_frame section from the crtend file contains the
end of eh_frame marker and it must be last. */
KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
KEEP (*(.eh_frame))
__eh_frame_end = .;
}
__eh_frame_hdr_start = SIZEOF(.eh_frame_hdr) > 0 ? ADDR(.eh_frame_hdr) : 0;
__eh_frame_hdr_end = SIZEOF(.eh_frame_hdr) > 0 ? . : 0;
.gcc_except_table : { *(.gcc_except_table .gcc_except_table.*) }
.gnu_extab : { *(.gnu_extab .gnu_extab.*) }
.jcr : { KEEP (*(.jcr)) }
Expand Down
4 changes: 4 additions & 0 deletions libgloss/mips/uhi32.ld
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,15 @@ SECTIONS
.eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*) }
.eh_frame :
{
__eh_frame_start = .;
/* The .eh_frame section from the crtend file contains the
end of eh_frame marker and it must be last. */
KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
KEEP (*(.eh_frame))
__eh_frame_end = .;
}
__eh_frame_hdr_start = SIZEOF(.eh_frame_hdr) > 0 ? ADDR(.eh_frame_hdr) : 0;
__eh_frame_hdr_end = SIZEOF(.eh_frame_hdr) > 0 ? . : 0;

.gcc_except_table : { *(.gcc_except_table .gcc_except_table.*) }
.gnu_extab : { *(.gnu_extab .gnu_extab.*) }
Expand Down

0 comments on commit f56ff29

Please sign in to comment.