News for hackers. Stuff that matters.
Re:LD_PRELOAD: The Hero We Need and Deserve by peterwwillis on Monday February 18, 2019 @12:31AM (#19188815)
Wait until they find out how Go apps work...
Re:LD_PRELOAD: The Hero We Need and Deserve by graememcc on Monday February 18, 2019 @08:55AM (#19190585)
Given Jess used to work at Docker, much of which is written in Go, and has spoken at various Go conferences, she already knows.
Re:LD_PRELOAD: The Hero We Need and Deserve by akhilcacharya on Monday February 18, 2019 @12:49AM (#19188870)
...what's this a reference to?
Re:LD_PRELOAD: The Hero We Need and Deserve by yjftsjthsd-h on Monday February 18, 2019 @01:43AM (#19189002)
Static linking, which makes this trick not work.
Re:LD_PRELOAD: The Hero We Need and Deserve by saagarjha on Monday February 18, 2019 @01:53AM (#19189022)
And the fact that Go will embed raw syscalls in its binaries, which is also somewhat annoying.
Re:LD_PRELOAD: The Hero We Need and Deserve by trasz on Monday February 18, 2019 @03:06AM (#19189227)
Which is unsupported on anything other than Linux and various BSDs.
Re:LD_PRELOAD: The Hero We Need and Deserve by floatboth on Monday February 18, 2019 @01:11PM (#19192730)
On FreeBSD, it's supported but kinda sucks. e.g., porting to a new CPU architecture is hell (I contributed to the FreeBSD/aarch64 go port, someone else picked it up now…)

The libc is the stable ABI on pretty much any OS that's not called Linux, just use it.

Re:LD_PRELOAD: The Hero We Need and Deserve by yjftsjthsd-h on Monday February 18, 2019 @02:15PM (#19193365)
Okay, but now you're using a C library as the basis for your non-C programming language. I understand why it is that way, but that kind of sucks.
Re:LD_PRELOAD: The Hero We Need and Deserve by floatboth on Monday February 18, 2019 @05:55PM (#19195236)
Ehh… does it kind of suck? The ABI of libc's syscall wrappers is basically "here's some ELF symbols to call with some arguments using the operating system's preferred calling convention". The only really "C" thing about it, other than the name, is struct layouts of various arguments.