Skip to content

Commit

Permalink
drop the /DISCARD/ section
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
japaric committed Oct 19, 2017
1 parent 12521c9 commit fbb0e5c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cortex-m-rt/link.x
Original file line number Diff line number Diff line change
Expand Up @@ -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 | */
Expand Down

0 comments on commit fbb0e5c

Please sign in to comment.