From 561399c6195af39b511a1143be23629f357a2ab2 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Fri, 20 Oct 2017 00:17:08 +0200 Subject: [PATCH] drop the /DISCARD/ section TL;DR thanks to rust-lang/rust#45031 we no longer need this Now with -C panic=abort all functions are marked with the `nouwind` attribute in LLVM-IR. With this change LLVM won't generate undefined references to `__aeabi_unwind_cpp_pr0` et al. which we don't use / supply but are required by the AEABI standard in the case that a function that throw exceptions exists (semantically, we never have any of those function with panic=abort but the LLVM-IR didn't reflect this before). --- link.x | 7 ------- 1 file changed, 7 deletions(-) diff --git a/link.x b/link.x index 0d043cbc..5f214775 100644 --- a/link.x +++ b/link.x @@ -92,13 +92,6 @@ SECTIONS .debug_gdb_scripts _stext (INFO) : { KEEP(*(.debug_gdb_scripts)) } - - /DISCARD/ : - { - /* Unused unwinding stuff */ - *(.ARM.exidx.*) - *(.ARM.extab.*) - } } /* Do not exceed this mark in the error messages below | */