News for hackers. Stuff that matters.
Re:Understanding the x64 code models (2012) by duskwuff on Tuesday July 19, 2022 @05:55PM (#32158487)
> The article doesn’t address what happens if you pick the wrong (too small) model.

The (static) linker will realize that an address won't fit, or that it can't generate a required relocation, and will fail to generate an executable.

Re:Understanding the x64 code models (2012) by chasil on Tuesday July 19, 2022 @10:33PM (#32160661)
Re:Understanding the x64 code models (2012) by layer8 on Tuesday July 19, 2022 @06:03PM (#32158575)
That’s only for non-shared (static) symbols though, if my understanding is correct.