From dfc46d83b743b953ec0c3610e398a500bcfb8921 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 2 Dec 2017 15:39:28 -0500 Subject: [PATCH] runtime_loader: Fix #13799. - Don't remove .eh_frame in the linker scripts, as this saves little space in practice, and results in debug binaries of the runtime loader not being properly debuggable due to missing canonical frame information. --- src/system/ldscripts/arm/runtime_loader.ld | 2 +- src/system/ldscripts/m68k/runtime_loader.ld | 2 +- src/system/ldscripts/ppc/runtime_loader.ld | 2 +- src/system/ldscripts/x86/runtime_loader.ld | 2 +- src/system/ldscripts/x86_64/runtime_loader.ld | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/system/ldscripts/arm/runtime_loader.ld b/src/system/ldscripts/arm/runtime_loader.ld index dfe708c3f0..56145ea92b 100644 --- a/src/system/ldscripts/arm/runtime_loader.ld +++ b/src/system/ldscripts/arm/runtime_loader.ld @@ -64,5 +64,5 @@ SECTIONS PROVIDE (_end = .); /* Strip unnecessary stuff */ - /DISCARD/ : { *(.comment .note .eh_frame .dtors) } + /DISCARD/ : { *(.comment .note .dtors) } } diff --git a/src/system/ldscripts/m68k/runtime_loader.ld b/src/system/ldscripts/m68k/runtime_loader.ld index 853d5834da..d66e8f4b3a 100644 --- a/src/system/ldscripts/m68k/runtime_loader.ld +++ b/src/system/ldscripts/m68k/runtime_loader.ld @@ -59,5 +59,5 @@ SECTIONS PROVIDE (_end = .); /* Strip unnecessary stuff */ - /DISCARD/ : { *(.comment .note .eh_frame .dtors) } + /DISCARD/ : { *(.comment .note .dtors) } } diff --git a/src/system/ldscripts/ppc/runtime_loader.ld b/src/system/ldscripts/ppc/runtime_loader.ld index 908df7fdcb..5ceda877d5 100644 --- a/src/system/ldscripts/ppc/runtime_loader.ld +++ b/src/system/ldscripts/ppc/runtime_loader.ld @@ -59,5 +59,5 @@ SECTIONS PROVIDE (_end = .); /* Strip unnecessary stuff */ - /DISCARD/ : { *(.comment .note .eh_frame .dtors) } + /DISCARD/ : { *(.comment .note .dtors) } } diff --git a/src/system/ldscripts/x86/runtime_loader.ld b/src/system/ldscripts/x86/runtime_loader.ld index ae1062f74a..f7f403f850 100644 --- a/src/system/ldscripts/x86/runtime_loader.ld +++ b/src/system/ldscripts/x86/runtime_loader.ld @@ -59,5 +59,5 @@ SECTIONS PROVIDE (_end = .); /* Strip unnecessary stuff */ - /DISCARD/ : { *(.comment .note .eh_frame .dtors) } + /DISCARD/ : { *(.comment .note .dtors) } } diff --git a/src/system/ldscripts/x86_64/runtime_loader.ld b/src/system/ldscripts/x86_64/runtime_loader.ld index ee0b42f2e3..864bd7016b 100644 --- a/src/system/ldscripts/x86_64/runtime_loader.ld +++ b/src/system/ldscripts/x86_64/runtime_loader.ld @@ -49,5 +49,5 @@ SECTIONS PROVIDE (_end = .); /* Strip unnecessary stuff */ - /DISCARD/ : { *(.comment .note .eh_frame .dtors) } + /DISCARD/ : { *(.comment .note .dtors) } }