randomized bss section?

Tom St Denis tstdenis@ellipticsemi.com
Wed Oct 15 18:44:00 GMT 2008


I did a quick google before asking here so forgive me if this has 
already come up ...

In a project we're working on switching from 4.1.x to 4.3.2 exposed a 
simple off by one which I attribute to the layout of the .bss section 
(basically I think beforehand we weren't overwriting anything of 
consequence).  I was wondering if there was a gcc option for randomizing 
the .bss section at the very least just the order of the symbols (still 
contiguous)?

With such an option we'd be more likely to expose this (and no valgrind 
didn't turn up this error) sort of error in the future I think.

Thanks,
Tom



More information about the Gcc-help mailing list