logoalt Hacker News

tlbtoday at 5:39 AM1 replyview on HN

But in fact no modern processor/OS executes this either. Pages are marked as executable or not, and static data is loaded as non-executable pages.


Replies

dmitrygrtoday at 5:41 AM

that is why it was not "static const char buf[]" ;) it was not an accident

executable stacks are still common (incl on windows with some settings), and sometimes they are required (eg for gcc nested functions)

show 1 reply