News for hackers. Stuff that matters.
Re:How to dismantle a compiler bomb by prattmic on Saturday March 10, 2018 @12:58PM (#16559422)
> Now, attempting to link a standalone executable without a '_start' symbol, on the other hand...

GNU ld and gold both support --entry to change the entry point. Alternatively, you can specify it in your linker script.

https://gist.github.com/prattmic/1f3618025aab52b0e90e88445b6...

    $ gcc -nostdlib -ffreestanding -Wl,--entry=foobar -o main main.S
    $ ./main; echo $?
    42

There are no comments on this comment yet.