© Jiewen Yao and Vincent Zimmer 2020
J. Yao, V. ZimmerBuilding Secure Firmwarehttps://doi.org/10.1007/978-1-4842-6106-4_15

15. Compiler Defensive Technology

Jiewen Yao1  and Vincent Zimmer2
(1)
Shanghai, China
(2)
Issaquah, WA, USA
 

Today, most firmware implementations are written in the C language. At the same time, the C compiler provides rich compiler options to harden the software. Some of the compiler options can also be applied to the firmware. This chapter only focuses on the C language and C compiler. If the firmware is written in another language, such as Rust or Forth, we will discuss those details in Chapter 20.

There are two major types of compiler defensive methods – to eliminate the vulnerability and to thwart the exploit. To support eliminating ...

Get Building Secure Firmware: Armoring the Foundation of the Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.