-Oz=section,section,...
The options allows specific sections to be optimized. By default the Code section will be optimized.
Linker Options > Optimize Sections
To optimize the CODE and BOOTCODE sections:
-Oz=CODE,BOOTCODE