logoalt Hacker News

Panzerschrektoday at 5:36 AM1 replyview on HN

> By letting the linker run arbitrary code before main

As I know C++ allows running arbitrary code before main too - for constructors of global variables. Does it bring security risks too?


Replies

bonzinitoday at 6:11 AM

It does not, it's actually arbitrary code running during the dynamic loading process, i.e. before _start.

show 1 reply