Skip to content

Commit 1c8cb87

Browse files
author
Milica Lazarevic
committedSep 18, 2024
Revert "Update linker script - eh_frame support"
This reverts commit 5c21fac.
1 parent 5c21fac commit 1c8cb87

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed
 

‎libgloss/mips/mti32.ld

-4
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,11 @@ SECTIONS
5858
.eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*) }
5959
.eh_frame :
6060
{
61-
__eh_frame_start = .;
6261
/* The .eh_frame section from the crtend file contains the
6362
end of eh_frame marker and it must be last. */
6463
KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
6564
KEEP (*(.eh_frame))
66-
__eh_frame_end = .;
6765
}
68-
__eh_frame_hdr_start = SIZEOF(.eh_frame_hdr) > 0 ? ADDR(.eh_frame_hdr) : 0;
69-
__eh_frame_hdr_end = SIZEOF(.eh_frame_hdr) > 0 ? . : 0;
7066
.gcc_except_table : { *(.gcc_except_table .gcc_except_table.*) }
7167
.gnu_extab : { *(.gnu_extab .gnu_extab.*) }
7268
.jcr : { KEEP (*(.jcr)) }

‎libgloss/mips/uhi32.ld

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
__entry = DEFINED(__reset_vector) ? 0xbfc00000 : _start;
88
ENTRY(__entry)
99
OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradbigmips", "elf32-tradlittlemips")
10-
GROUP(-lc -luhi -lhal)
10+
GROUP(-lc -luhi -lgcc -lhal)
1111
SEARCH_DIR(.)
1212
__DYNAMIC = 0;
1313
STARTUP(crt0.o)
@@ -183,15 +183,11 @@ SECTIONS
183183
.eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*) }
184184
.eh_frame :
185185
{
186-
__eh_frame_start = .;
187186
/* The .eh_frame section from the crtend file contains the
188187
end of eh_frame marker and it must be last. */
189188
KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
190189
KEEP (*(.eh_frame))
191-
__eh_frame_end = .;
192190
}
193-
__eh_frame_hdr_start = SIZEOF(.eh_frame_hdr) > 0 ? ADDR(.eh_frame_hdr) : 0;
194-
__eh_frame_hdr_end = SIZEOF(.eh_frame_hdr) > 0 ? . : 0;
195191

196192
.gcc_except_table : { *(.gcc_except_table .gcc_except_table.*) }
197193
.gnu_extab : { *(.gnu_extab .gnu_extab.*) }

0 commit comments

Comments
 (0)