bootlin / training-materials

Bootlin embedded Linux and kernel training materials
https://bootlin.com/training/
Other
603 stars 179 forks source link

Add more build options to ease application debugging #228

Closed Tropicao closed 6 months ago

Tropicao commented 6 months ago

Slide89: we mention the usual warning options (-Wall, -Wextra, -Werror) when building programs. It would be nice to also mention some other options, slightly less generic yet widely used

For example, mentioning source fortification (-D _FORTIFY_SOURCE) allows more runtime checks in glibc, and can generate ABRT signals if some checks do not pass