Search
 
SCRIPT & CODE EXAMPLE
 

C

Recommended compiler and linker flags for GCC


Flag	Purpose	Applicable 
-D_FORTIFY_SOURCE=2	Run-time buffer overflow detection
-fasynchronous-unwind-tables	Increased reliability of backtraces	
-fexceptions	Enable table-based thread cancellation
-fpie -Wl,-pie	Full ASLR for executables	7 and later (for executables)	All (for executables)
-fpic -shared	No text relocations for shared libraries
-fplugin=annobin	Generate data for hardening quality control	Future	
-fstack-clash-protection	Increased reliability of stack overflow detection
-fstack-protector or -fstack-protector-all	Stack smashing protector
-fstack-protector-strong
-g	Generate debugging information
-grecord-gcc-switches	Store compiler flags in debugging information
-mcet -fcf-protection	Control flow integrity protection	
-pipe	Avoid temporary files, speeding up builds
-Wall	Recommended compiler warnings
-Werror=format-security	Reject potentially unsafe format string arguents
-Werror=implicit-function-declaration	Reject missing function prototypes
-Wl,-z,defs	Detect and reject underlinking
-Wl,-z,now	Disable lazy binding
-Wl,-z,relro	Read-only segments after relocation
Comment

PREVIOUS NEXT
Code Example
C :: c check if is a right triangle 
C :: 4k stogram chave 
C :: array length in c++ 
::  
Dart :: flutter remove debug flag 
Dart :: flutter sleep 
Dart :: flutter transparent appbar 
Dart :: flutetr stepper color 
Dart :: how to change input text color in flutter 
Dart :: how to give shape to card in flutter 
Dart :: multi dex flutter 
Dart :: canonical tag 
Dart :: type check of variable dart 
Dart :: flutter tooltip circle border 
Dart :: How can I add shadow to the widget in flutter? 
Dart :: check if isempty TextEditingController flutter 
Dart :: dart collection for 
Dart :: flutter snackbar width 
Dart :: flutter var type 
Dart :: dart try-catch 
Dart :: flutter tooltip padding 
Dart :: text field validation in flutter 
Dart :: flutter gesturedetector 
Dart :: flutter date add time 
Dart :: how to decorate container in flutter 
Dart :: badge flutter 
Dart :: dart string to hex 
Dart :: dart else if 
Dart :: dart ternary operator multiple 
Dart :: timer.delay flutter 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =