configlines.append("BR2_PIC_PIE=y\n")
if randint(0, 4) == 0:
configlines.append("BR2_RELRO_FULL=y\n")
+ elif randint(0, 4) == 0:
+ configlines.append("BR2_RELRO_PARTIAL=y\n")
if randint(0, 4) == 0:
configlines.append("BR2_SSP_ALL=y\n")
+ elif randint(0, 4) == 0:
+ configlines.append("BR2_SSP_REGULAR=y\n")
+ elif randint(0, 4) == 0:
+ configlines.append("BR2_SSP_STRONG=y\n")
+ if randint(0, 4) == 0:
+ configlines.append("BR2_FORTIFY_SOURCE_2=y\n")
+ elif randint(0, 4) == 0:
+ configlines.append("BR2_FORTIFY_SOURCE_1=y\n")
# Randomly enable BR2_REPRODUCIBLE 10% of times
# also enable tar filesystem images for testing