mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 15:29:11 +01:00
gcc: Pass --eh-frame-hdr to linker by default
This creates a PT_EH_FRAME section in Haiku binaries, allowing 3rd party unwind libraries (libunwind) to obtain frame information for unwind procedures. Change-Id: If475909d182bcac11024ebbc8220456733330fe8 Reviewed-on: https://review.haiku-os.org/c/buildtools/+/5434 Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
493aaad4dc
commit
0665c85caf
@ -67,6 +67,12 @@ Boston, MA 02111-1307, USA. */
|
|||||||
#define USE_LD_AS_NEEDED 1
|
#define USE_LD_AS_NEEDED 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Pass --eh-frame-hdr to provide a PT_EH_FRAME section, allowing unwind
|
||||||
|
libraries to get frame information. */
|
||||||
|
#if defined(HAVE_LD_EH_FRAME_HDR)
|
||||||
|
#define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} "
|
||||||
|
#endif
|
||||||
|
|
||||||
#undef STARTFILE_SPEC
|
#undef STARTFILE_SPEC
|
||||||
#define STARTFILE_SPEC "crti.o%s crtbeginS.o%s %{!shared:%{!nostart:start_dyn.o%s}} init_term_dyn.o%s"
|
#define STARTFILE_SPEC "crti.o%s crtbeginS.o%s %{!shared:%{!nostart:start_dyn.o%s}} init_term_dyn.o%s"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user