MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / ld_linux_so_path

Function ld_linux_so_path

src/util_exec.cpp:295–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295static string
296ld_linux_so_path(int version, bool is32bitElf = false)
297{
298 char buf[80];
299
300#if (defined(__x86_64__) || defined(__aarch64__) || defined(__riscv)) && !defined(CONFIG_M32)
301 if (is32bitElf) {
302 sprintf(buf, "/lib/ld-linux.so.%d", version);
303 } else {
304 sprintf(buf, ELF_INTERPRETER);
305 }
306#else // if (defined(__x86_64__) || defined(__aarch64__)) &&
307 // !defined(CONFIG_M32)
308 sprintf(buf, ELF_INTERPRETER);
309#endif // if (defined(__x86_64__) || defined(__aarch64__)) &&
310 // !defined(CONFIG_M32)
311
312 string cmd = buf;
313 return cmd;
314}
315
316bool
317Util::isStaticallyLinked(const char *filename)

Callers 1

isStaticallyLinkedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected