Richard Earnshaw wrote: > No it's not. The optimizer doesn't create totally random bases. If the > code + data is less than 1M in size, then any offsets it does create > will fit within the size of the relocations selected by the compiler.
No that's completely false. There is no way you can guarantee that without my patch. My patch is precisely there to ensure we only allow offsets that guarantee linking succeeds if all code and data fits in 1M or 4GB. Even then there are many cases where we don't know the size of an object and so have to constrain the offset to something conservative (which cannot be the full range it allows today). Wilco